<?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; Atif hasnain Zaidi</title>
	<atom:link href="https://www.emblogic.com/blog/author/atif-zaidi/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>linux booting process.</title>
		<link>https://www.emblogic.com/blog/04/linux-booting-process/</link>
		<comments>https://www.emblogic.com/blog/04/linux-booting-process/#comments</comments>
		<pubDate>Tue, 15 Apr 2014 09:35:05 +0000</pubDate>
		<dc:creator><![CDATA[Atif hasnain Zaidi]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9803</guid>
		<description><![CDATA[booting process. 1.BIOS(Basic Input/Output System) 2.MBR(Master Boot Record) 3.LILO or GRUB LILO:-LInux LOader GRUB:-GRand Unified Bootloader 4.Kernel 5.init 6.Run Levels 1.BIOS: i.When we power on BIOS performs a Power-On Self-Test (POST) for all of the different hardware components in the &#8230; <a href="https://www.emblogic.com/blog/04/linux-booting-process/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>booting process.</p>
<p>        1.BIOS(Basic Input/Output System)</p>
<p>        2.MBR(Master Boot Record)</p>
<p>        3.LILO or GRUB</p>
<p>             LILO:-LInux LOader</p>
<p>             GRUB:-GRand Unified Bootloader</p>
<p>        4.Kernel</p>
<p>        5.init</p>
<p>        6.Run Levels</p>
<p>1.BIOS:</p>
<p>      i.When we power on BIOS performs a Power-On Self-Test (POST) for all of the different hardware components in the system to make sure everything is working properly</p>
<p>     ii.Also it checks for whether the computer is being started from an off position (cold boot) or from a restart (warm boot) is<br />
stored at this location.</p>
<p>     iii.Retrieves information from CMOS (Complementary Metal-Oxide Semiconductor) a battery operated memory chip on the motherboard that stores time, date, and critical system information.</p>
<p>     iv.Once BIOS sees everything is fine it will begin searching for an operating system Boot Sector on a valid master boot sector<br />
on all available drives like hard disks,CD-ROM drive etc.</p>
<p>     v.Once BIOS finds a valid MBR it will give the instructions to boot and executes the first 512-byte boot sector that is the first<br />
sector (“Sector 0?) of a partitioned data storage device such as hard disk or CD-ROM etc .</p>
<p>2.MBR</p>
<p>     i. Normally we use multi-level boot loader.Here MBR means I am referencing to DOS MBR.</p>
<p>     ii.Afer BIOS executes a valid DOS MBR,the DOS MBR will search for a valid primary partition marked as bootable on the hard disk.</p>
<p>     iii.If MBR finds a valid bootable primary partition then it executes the first 512-bytes of that partition which is second level MBR.</p>
<p>     iv. In linux we have two types of the above mentioned second level MBR known as LILO and GRUB</p>
<p>3.LILO</p>
<p>     i.LILO is a linux boot loader which is too big to fit into single sector of 512-bytes.</p>
<p>     ii.So it is divided into two parts :an installer and a runtime module.</p>
<p>     iii.The installer module places the runtime module on MBR.The runtime module has the info about all operating systems installed.</p>
<p>     iv.When the runtime module is executed it selects the operating system to load and transfers the control to kernel.</p>
<p>     v.LILO does not understand filesystems and boot images to be loaded and treats them as raw disk offsets</p>
<p>GRUB</p>
<p>     i.GRUB MBR consists of 446 bytes of primary bootloader code and 64 bytes of the partition table.</p>
<p>     ii.GRUB locates all the operating systems installed and gives a GUI to select the operating system need to be loaded.</p>
<p>     iii.Once user selects the operating system GRUB will pass control to the karnel of that operating system.<br />
see below what is the difference between LILO and GRUB</p>
<p>4.Kernel</p>
<p>     i.Once GRUB or LILO transfers the control to Kernel,the Kernels does the following tasks</p>
<p>    Intitialises devices and loads initrd module<br />
    mounts root filesystem</p>
<p>5.Init</p>
<p>     i.The kernel, once it is loaded, finds init in sbin(/sbin/init) and executes it.</p>
<p>     ii.Hence the first process which is started in linux is init process.</p>
<p>     iii.This init process reads /etc/inittab file and sets the path, starts swapping, checks the file systems, and so on.</p>
<p>     iv.It runs all the boot scripts(/etc/rc.d/*,/etc/rc.boot/*)</p>
<p>     v.starts the system on specified run level in the file /etc/inittab</p>
<p>6.Runlevel</p>
<p>     i.There are 7 run levels in which the linux OS runs and different run levels serves for different purpose.The descriptions are<br />
given below.</p>
<p>    0  – halt<br />
    1  – Single user mode<br />
    2  – Multiuser, without NFS (The same as 3, if you don’t have networking)<br />
    3  – Full multiuser mode<br />
    4  – unused<br />
    5  – X11<br />
    6  – Reboot</p>
<p>     ii.We can set in which runlevel we want to run our operating system by defining it on /etc/inittab file.</p>
<p>Now as per our setting in /etc/inittab the Operating System the operating system boots up and finishes the bootup process.</p>
<p>Below are given some few  important differences about LILO and GRUB<br />
LILO 	</p>
<p>GRUB<br />
LILO has no interactive command interface 	GRUB has interactive command interface<br />
LILO does not support booting from a network 	GRUB does support booting from a network<br />
If you change your LILO config file, you have to rewrite the LILO stage one boot loader to the MBR 	GRUB automatically detects any change in config file and auto loads the OS<br />
LILO supports only linux operating system 	GRUB supports large number of OS</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/04/linux-booting-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>character driver proc with kernel 3.12</title>
		<link>https://www.emblogic.com/blog/03/character-driver-proc-with-kernel-3-12/</link>
		<comments>https://www.emblogic.com/blog/03/character-driver-proc-with-kernel-3-12/#comments</comments>
		<pubDate>Fri, 28 Mar 2014 19:17:10 +0000</pubDate>
		<dc:creator><![CDATA[Atif hasnain Zaidi]]></dc:creator>
				<category><![CDATA[Character Driver]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9634</guid>
		<description><![CDATA[Add two header proc_fs.h, seq_file.h Initialize the proc by proc_create() and remove by remove_proc_entry() Map the file operation in structure write open proc function and give entry]]></description>
				<content:encoded><![CDATA[<p>Add two header proc_fs.h, seq_file.h<br />
Initialize the proc by proc_create() and remove by remove_proc_entry()<br />
Map the file operation in structure<br />
write open proc function and give entry</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/character-driver-proc-with-kernel-3-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ioctl</title>
		<link>https://www.emblogic.com/blog/03/ioctl-3/</link>
		<comments>https://www.emblogic.com/blog/03/ioctl-3/#comments</comments>
		<pubDate>Mon, 24 Mar 2014 06:03:19 +0000</pubDate>
		<dc:creator><![CDATA[Atif hasnain Zaidi]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9278</guid>
		<description><![CDATA[Create a file that contain all macros, that is used by by user as a command this file called ioctl.h After creating ioctl.h ,you create a file ioctl.c that file work for kernel space, that file contain all command specific &#8230; <a href="https://www.emblogic.com/blog/03/ioctl-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Create a file that contain all macros, that is used by by user as a command this file called ioctl.h<br />
After creating ioctl.h ,you create a file ioctl.c that file work for kernel space, that file contain all command specific work.<br />
in application level you give a call to function ioctl() and give the command, this command goto the driver and do the work as your command.</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/ioctl-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>character driver</title>
		<link>https://www.emblogic.com/blog/03/character-driver-26/</link>
		<comments>https://www.emblogic.com/blog/03/character-driver-26/#comments</comments>
		<pubDate>Sat, 22 Mar 2014 19:21:31 +0000</pubDate>
		<dc:creator><![CDATA[Atif hasnain Zaidi]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=9219</guid>
		<description><![CDATA[character ioctl completed]]></description>
				<content:encoded><![CDATA[<p>character</p>
<p>ioctl completed</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/03/character-driver-26/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>character driver</title>
		<link>https://www.emblogic.com/blog/02/character-driver-24/</link>
		<comments>https://www.emblogic.com/blog/02/character-driver-24/#comments</comments>
		<pubDate>Sun, 23 Feb 2014 16:28:32 +0000</pubDate>
		<dc:creator><![CDATA[Atif hasnain Zaidi]]></dc:creator>
				<category><![CDATA[Character Driver]]></category>

		<guid isPermaLink="false">http://www.emblogic.com/blog/?p=8567</guid>
		<description><![CDATA[Finally i completed the writing in multiple quantum. Description of my Character driver- step-1-&#62; registered the driver by alloc_chrdev_region() and unregistered in exit function by unregister_chrdev_region(). After registering the driver you have major number that is given by by kernel. step-2-&#62;Now &#8230; <a href="https://www.emblogic.com/blog/02/character-driver-24/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Finally i completed the writing in multiple quantum.</p>
<p>Description of my Character driver-</p>
<p>step-1-&gt; registered the driver by <strong>alloc_chrdev_region</strong>() and unregistered in exit function by <strong>unregister_chrdev_region</strong>(). After registering the driver you have major number that is given by by kernel.</p>
<p>step-2-&gt;Now initialize device by cdev_init() and use cdev-add() for mapping device to our kernel.</p>
<p>step -3-&gt;After that write an application in user space that give the open call to the device and also write an function in driver for opening the device.</p>
<p>step-4-&gt;in application write something into device, also write a function to write into device.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://www.emblogic.com/blog/02/character-driver-24/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
