Changes

How to boot from MicroSD Card

1,510 bytes added, 18:52, 2 June 2011
no edit summary
You can follow this other howto about [[The Linux kernel|how compile and install the Linux Kernel]].
We will use In our case we build the [httpkernel sources from zero://downloads.igep.es/files/linaro-m-headless-tar-20101108-2.tar.gz linaro headless] image as rootfs. <br><pre>a) Clone the Kernel git repository
=== Create the Rootfs mount point ===$/home/jdoe/&gt; git clone git://git.igep.es/pub/scm/linux-omap-2.6.git
$/home/jdoe&gt; cd linux-omap-2.6 b) Checkout your desired branch (we used for this howto 2.6.35.y) $/home/jdoe/linux-omap-2.6&gt; git checkout origin/linux-2.6.35.y -b linux-2-6-35.y c) Configure the kernel $/home/jdoe/linux-omap-2.6&gt; make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- igep0020-defconfig d) Build the kernel and Modules $/home/jdoe/linux-omap-2.6&gt; make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- zImage modules</pre>Notes: The kernel binary resides inside the directory: $/home/jdoe/linux-omap-2.6/arch/arm/boot/'''zImage''' We will use the [http://downloads.igep.es/files/linaro-m-headless-tar-20101108-2.tar.gz linaro headless] image as rootfs but you can use your favorite rootfs also.  === Create the Rootfs mount point === Go to /media directory and create one subfolder called "binary"
<pre>$ cd /media
$ sudo mkdir binary
</pre>=== Mount the RootFS partition ===
Mount the rootfs partition using the 'binary' directory
<pre>$ media &gt; sudo mount /dev/mmcblkp2 /media/binary
</pre>
=== Untar the rootfs package ===
 
Copy "linaro-m-headless-tar-20101108-2.tar.gz" file inside the /media directory and untar the file
<pre>$ media &gt; sudo tar xvfz linaro-m-headless-tar-20101108-2.tar.gz</pre>
 
 
Now you should see inside your rootfs partition a similar structure like this.<br>
 
=== [[Image:Linaro_RootFS.png|thumb|center]]Install the kernel modules<br> ===
 
Now you should install your kernel modules inside your root file system.<br>
<pre>$ media &gt; cd /home/jdoe/linux-omap-2.6
 
$ /home/jdoe/linux-omap-2.6&gt; sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_install INSTALL_MOD_PATH=/media/binary
 
</pre>
=== Untar Install the rootfs package kernel Image<br> ===
Copy "linaro-m-headless-tar-20101108-2Just copy the zImage inside your boot partition, remember before that you must mount your mmc boot partition.tar.gz" file inside the /media directory and untar the file<br><pre>$ media /home/jdoe/linux-omap-2.6&gt; sudo tar xvfz linaro-m-headless-tar-20101108-2.tar.gzcp arch/arm/boot/zImage /media/boot/
</pre>
Now we're ready for test our new microsd card.<br>
 
 
 
<br>
 
<br>
 
<br>