Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Prepare a bootable MicroSD Card

2,734 bytes added, 10:55, 10 May 2018
no edit summary
In this image we can see the devices plugged in our computer. And it can be installed with this command.
<pre>sudo apt-get install gparted</pre>
When the install procedure ends you can call the program from your system tools menu or directly using a terminal console.
<div class="center"><div class="thumb tnone"><div class="thumbinner"><div class="thumbcaption"><div class="magnify"></div>We can see our devices and their size.</div></div></div></div>
===<span id="Create_the_MSDOS.C2.A0Partition_Table" class="mw-headline">Create the MSDOS Partition Table</span>===
The next step it's create the msdos table partition for it you should click in the "Device" menu and then in the "Create Partition Table" option.
* Format: FAT32
* Size: 100 MegaBytes
* '''Free Space Preceding: 0 MiB'''
* Label: Boot
* '''Align to: cylinder'''
* Primary Partition
* Format: FAT32
* '''Free Space Preceding: 8 MiB'''
* Size: 100 MegaBytes
* Label: Boot
<pre>$ cp MLO u-boot.img /media/user/boot
</pre>
You can follow this this [index.php/U-Boot_Texas_Instruments_Series HowTo[How to prepare a bootable MicroSD Card|link]] if if you want build the MLO and u-boot
<pre>sudo dd if=/home/user/u-boot-imx/u-boot.imx of=/dev/sde bs=512 seek=2
</pre>
<u>Where /dev/sde is your microsd card</u> 
You can follow this this [index.php/U-boot_Freescale-NXP_iMX6_Series HowTo if[How to prepare a bootable MicroSD Card|link]] you you want build the u-boot.imx
==Root file System==
Bla bla balIn this tutorial we will use 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" align="center" border="0"|-||| style="text-align: center;"| |-| scope="row"|[[]]||Here there are many articles about how to get '''many other [index.php/Category:Software_distributions software distributions]'''.|}<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==
560
edits