Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Prepare a bootable MicroSD Card

2,999 bytes removed, 14:41, 11 May 2018
no edit summary
After build or download the MLO and u-boot you should follow the next steps:
* Copy MLO and u-boot.img to primary into the ''root folder'' of the '''boot partition'''
<pre>$ cp MLO u<<strong>your_MLO</strong>> /media/<your_user>/boot<br>cp <<strong>your_u-boot.img </strong>> /media/user<your_user>/boot
</pre>
You can follow this [[How to prepare a bootable MicroSD Card|link]] if you want build the MLO and u-boot
* Copy u-boot.imx using dd before primary partition in raw mode as
<pre>sudo dd if=/home/user/u<<strong>your_u-boot-.imx</u-boot.imx strong>> of=/dev/sde <your_microSD> bs=512 seek=2
</pre>
<u>Where /dev/sde is your microsd card</u>
 
 
You can follow this [[How to prepare a bootable MicroSD Card|link]] you want build the u-boot.imx
==Root file System==
In this tutorial we will use The root file system have to be extracted into the [http://downloads.isee.biz/pub/files/linaro/releases/linaro-m-headless-tar-20101108-2.tar.gz linaro headless] (soft floating) image as rootfs but you can use your favorite rootfs also.   {| width="auto" cellspacing="1" cellpadding="1" border="0" align="center"|-||| style="text-align: center;"| |-| scope="row"| ||Here there are many articles about how to get ''root folder'many other [index.php/Category:Software_distributions software distributions]'  of the ''.|}<br /> Here you've the [http://downloads.isee.biz/pub/files/linaro/releases/linaro-11.09-nano-n-tar-20110929-0.tar.gz linaro nano 11.09] (soft floating) available for download from the ISEE server. Notes: You must build your programs with the hard floating if your rootfs is build with it. Notes: IGEPv5 must use Hard floating Rootfs   ===<span id="Create_the_Rootfs_mount_point" class="mw-headline">Create the Rootfs mount point</span>===Go to /media directory and create one sub-folder called "binary" <pre>cd /media sudo mkdir binary</pre>===<span id="Mount_the_RootFS_partition" class="mw-headline">Mount the RootFS partition</span>===Mount the rootfs partition using the 'binary' directory <pre>$ media > sudo mount /dev/mmcblkp2 /media/binary</pre>===<span id="Untar_the_rootfs_package" class="mw-headline">Untar the rootfs package</span>===Copy "linaro-m-headless-tar-20101108-2.tar.gz" file inside the /media directory and untar the file <pre>$ media > sudo tar xvfz linaro-m-headless-tar-20101108-2.tar.gz</pre><br /> Now you should see inside your rootfs ' partition a similar structure like this. <div class="center"><div class="thumb tnone"><div class="thumbinner" style="width: 302px;"><div class="thumbcaption"><div class="magnify"></div></div></div></div></div>===<span id="Install_the_kernel_modules" class="mw-headline">Install the kernel modules</span>===Now you should install your kernel modules inside your root file system. <pre>$ media > cd /home/jdoe/linux-omap-2.6 $ /home/jdoe/linux-omap-2.6> sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_install INSTALL_MOD_PATH=/media/binary</pre>Alternatively if you downloaded the binary package uncompress it inside the directory /media/binary ===<span id="Install_the_kernel_Image" class="mw-headline">Install the kernel Image</span>===Just copy the zImage inside your boot partition, remember before that you must mount your mmc boot partition. <pre>$ /home/jdoe/linux-omap-2.6> sudo cp arch/arm/boot/zImage /media/boot/if you're using dtb kernel as 3.8.y you must copy the dtb too.$ /home/jdoe/linuz-omap-2.6> sudo cp arch/arm/boot/dtbs/omap5-igep0050.dtb /media/boot </pre>After that you can unmount the boot & rootfs partitions. Now we're ready for test our new microsd card ==Kernel & Modules==You can follow this other howto about [index.php/The_Linux_kernel how compile and install the Linux Kernel].  
=<span id="Test_your_new_MicroSD" class="mw-headline">Test your new MicroSD</span>=
You can test your new microSD card with a Serial client such as PuTTy. [index.php/Using_serial_debug_port_to_communicate Here] is an explanation about how to configure it.
(Note that speed should ==Kernel==Kernel files, '''zImage '''and''' .dtb''', can be configured to 115200 bauds).copied into the'' root folder'' of the''' boot partition'''
If you already '''Kernel Modules '''can have configured it or you are to be copied using another Serial client and you have connected the Serial cable to command indicated in the kernel compilation [[Linux Kernel 4.9.y|post]] into the IGEPv2 board, then you are ready to test your microSD'''rootfs partition'''. 
Insert the microSD in your IGEPv2 board and power up the board.
560
edits