<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EmbLogic &#187; Manjeet</title>
	<atom:link href="https://www.emblogic.com/blog/author/manjeet-e1/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.emblogic.com/blog</link>
	<description>Embedded System and ARM Training</description>
	<lastBuildDate>Tue, 03 Mar 2020 13:00:06 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Progress Bar</title>
		<link>https://www.emblogic.com/blog/03/progress-bar/</link>
		<comments>https://www.emblogic.com/blog/03/progress-bar/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 11:39:44 +0000</pubDate>
		<dc:creator><![CDATA[Manjeet]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=554</guid>
		<description><![CDATA[van anybdy tell me &#8230;how to check the %age of running shell script&#8230;ie how much it is completed(so dat i cn show it by a progress bar)&#8230;this shell script is mainly used here to install a no of library packages&#8230;dat &#8230; <a href="https://www.emblogic.com/blog/03/progress-bar/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>van anybdy tell me &#8230;how to check the %age of running shell script&#8230;ie how much it is completed(so dat i cn show it by a progress bar)&#8230;this shell script is mainly used here to install a no of library packages&#8230;dat means v have to find out the %age of installation process&#8230;.****comments are most welcome..*****</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/progress-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Embedded linux</title>
		<link>https://www.emblogic.com/blog/01/building-embedded-linux/</link>
		<comments>https://www.emblogic.com/blog/01/building-embedded-linux/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 17:51:31 +0000</pubDate>
		<dc:creator><![CDATA[Manjeet]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=410</guid>
		<description><![CDATA[Can anybdy tell me &#8230;what are the various steps involved in building of a tool chain in some details&#8230;if u hv any kind of docs(what to do after installing Uboot and initrd)..plz tell me&#8230;ur comments may fulfil sum1 needs&#8230;]]></description>
				<content:encoded><![CDATA[<p>Can anybdy tell me &#8230;what are the various steps involved in building of a tool chain in some details&#8230;if u hv any kind of docs(what to do after installing Uboot and initrd)..plz tell me&#8230;ur comments may fulfil sum1 needs&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/01/building-embedded-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>problem regarding gcc compilation</title>
		<link>https://www.emblogic.com/blog/12/problem-regarding-gcc-compilation/</link>
		<comments>https://www.emblogic.com/blog/12/problem-regarding-gcc-compilation/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 10:04:15 +0000</pubDate>
		<dc:creator><![CDATA[Manjeet]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=289</guid>
		<description><![CDATA[i faced a problem &#8230;when i did &#8220;make all&#8221; in gcc compilation(in build-gcc directory)&#8230;i got a error&#8230;No target is specified or Makefile is missing&#8230;.but when i did make all-gcc,then it has done succesfully with no errors&#8230;m waiting for ryt ans&#8230;]]></description>
				<content:encoded><![CDATA[<p>i faced a problem &#8230;when i did &#8220;make all&#8221; in gcc compilation(in build-gcc directory)&#8230;i got a error&#8230;No target is specified or Makefile is missing&#8230;.but when i did make all-gcc,then it has done succesfully with no errors&#8230;m waiting for ryt ans&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/12/problem-regarding-gcc-compilation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>problem in scull_read()</title>
		<link>https://www.emblogic.com/blog/10/problem-in-scull_read/</link>
		<comments>https://www.emblogic.com/blog/10/problem-in-scull_read/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 13:17:36 +0000</pubDate>
		<dc:creator><![CDATA[Manjeet]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=235</guid>
		<description><![CDATA[int scull_read(struct file *filp, char *buff, size_t count, loff_t *fpos) { scull_dev *dev; printk(&#8220;%s \n&#8221;,__func__); dev=(scull_dev *)filp-&#62;private_data; struct scull_qset *dptr;         // Pointer to the beginning of the data int quantum = dev-&#62;quantum;      // Size of a quantum int qset = &#8230; <a href="https://www.emblogic.com/blog/10/problem-in-scull_read/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>int scull_read(struct file *filp, char *buff, size_t count, loff_t *fpos)<br />
{<br />
scull_dev *dev;</p>
<p>printk(&#8220;%s \n&#8221;,__func__);</p>
<p>dev=(scull_dev *)filp-&gt;private_data;</p>
<p>struct scull_qset *dptr;         // Pointer to the beginning of the data<br />
int quantum = dev-&gt;quantum;      // Size of a quantum<br />
int qset = dev-&gt;qset;            // Number of quantums<br />
int itemsize = quantum * qset;   // number of bytes in the listitem<br />
int item, s_pos, q_pos, rest;<br />
ssize_t retval = 0;</p>
<p>char read_buff[100];<br />
int pos=0;<br />
int temp=count/quantum;</p>
<p>if(*fpos &gt;= dev-&gt;size){<br />
goto out;<br />
}</p>
<p>if(*fpos+count &gt; dev-&gt;size){<br />
count = dev-&gt;size &#8211; *fpos;<br />
}</p>
<p>item = (long) *fpos / itemsize;<br />
rest = (long) *fpos % itemsize;<br />
s_pos = rest / quantum;<br />
q_pos = rest % quantum;<br />
dptr = scull_follow(dev,item);</p>
<p>if(dptr == NULL || !dptr-&gt;data || !dptr-&gt;data[s_pos]){<br />
goto out;<br />
}</p>
<p>while(temp!=0)<br />
{<br />
read_buff[pos]=*dptr-&gt;data[s_pos]+q_pos;<br />
printk(&#8220;the address of quantums is %x\n&#8221;,dptr-&gt;data[s_pos]);<br />
if(q_pos &lt;= quantum)<br />
{<br />
pos++;<br />
q_pos++;<br />
}</p>
<p>if(q_pos &gt; quantum)<br />
{<br />
s_pos++;<br />
q_pos=0;<br />
pos&#8211;;<br />
temp&#8211;;<br />
}<br />
}</p>
<p>if(count &gt; quantum &#8211; q_pos)<br />
{<br />
count = quantum &#8211; q_pos;<br />
}</p>
<p>if(copy_to_user(buff, read_buff, count))<br />
{<br />
retval = -EFAULT;<br />
goto out;<br />
}<br />
printk(&#8220;the data in the buff is %s\n&#8221;,read_buff);<br />
*fpos += count;<br />
retval = count;<br />
out:<br />
return retval;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/problem-in-scull_read/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>partial write</title>
		<link>https://www.emblogic.com/blog/10/partial-write/</link>
		<comments>https://www.emblogic.com/blog/10/partial-write/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 04:47:09 +0000</pubDate>
		<dc:creator><![CDATA[Manjeet]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://emblogic.org/blog/?p=208</guid>
		<description><![CDATA[can any bdy tell me &#8230;how to accomplish partial write in scull&#8230;???&#8230;.when i call write cmd from d application,it jst fill only 1 quantum.But when i try to call write cmd multiple times ,it fills a few quantum with d &#8230; <a href="https://www.emblogic.com/blog/10/partial-write/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>can any bdy tell me &#8230;how to accomplish partial write in scull&#8230;???&#8230;.when i call write cmd from d application,it jst fill only 1 quantum.But when i try to call write cmd multiple times ,it fills a few quantum with d same data&#8230;how to prevent this&#8230;????</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/10/partial-write/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
