Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Prepare a bootable MicroSD Card

785 bytes added, 09:52, 1 July 2019
no edit summary
'''2-''' Insert the microSD Card and show the ''dmesg'' information:
dmesgThe dmesgThe result have to be similar to this:  
[[File:dev.png]]
sudo dd if=/dev/zero of=/dev/sdc bs=1024 count=1024
Before use anyway of partition one good practise is unmount the dev where is inserted the SD. -> <code>umount /dev/sdx</code>
 
Now we are ready to create the corresponding partitions in our MicroSD Card.
|-
| style="width: 431.367px;"|
sudo sfdisk /dev/<strong>sdc</strong> <<EOF<br data-attributes="%20/">label: dos<br data-attributes="%20/">63,144522,0x0C,*<br data-attributes="%20/">160650,,,-<br data-attributes="%20/">EOF<br><br>sudo mkfs.vfat -F32 /dev/<strong>sdcsdc1</strong> -n boot<br data-attributes="%20/"><br data-attributes="%20/">sudo mkfs.ext4 /dev/<strong>sdcsdc2</strong> -L rootfs<br><br>
| style="width: 436.633px;"|
sudo sfdisk /dev/<strong>sdc</strong> <<EOF<br data-attributes="%20/">label: dos<br data-attributes="%20/">16065,128520,0x0C,*<br data-attributes="%20/">144585,,,-<br data-attributes="%20/">EOF<br><br>sudo mkfs.vfat -F32 /dev/<strong>sdcsdc1</strong> -n boot<br><br>sudo mkfs.ext4 /dev/<strong>sdcsdc2</strong> -L rootfs<br><br>
|}
* Copy MLO and u-boot.img to primary into the ''root folder'' of the '''boot partition'''
<pre>cp [your_u-boot_directory]/u.boot.img /media/user/boot cp [your_u-boot_directory]/MLO /media/user/boot
</pre>
You can follow this post [[The bootloader U-Boot|U-boot Bootloader]] if you want build the MLO and u-boot
 
 
'''Freescale processors<br />'''
 
* Copy u-boot.imx using dd before primary partition in raw mode as
 
<pre>sudo dd if=/[your_u-boot_directory]/u-boot.imx of=/dev/[your_sd] bs=512 seek=2</pre>
You can follow this post [[The bootloader U-Boot|U-boot Bootloader]] you want build the u-boot.imx
You can follow this [[How to prepare a bootable MicroSD Card|link]] if you want build the MLO and u-boot
[[The bootloader U-Boot|U-boot Bootloader]]'''How to configure Uenv<br />'''
[[How It is need to prepare indicate how start the boot. For this reason it will be created a bootable MicroSD Card|How to boot from MicroSD Card]]file called uenv.txt with the correct configuration.
We present two examples of help to start the system from the MicroSD Card or from an nfs server.
* If we want boot from the bootable microSD Card. [http://downloads.isee.biz/pub/relaunch/uenv.txt uenv.txt]
* If we want boot from nfs server. [http://downloads.isee.biz/pub/relaunch/uenv_nfs.txt uenv.txt]
These two examples have an ip address assigned to them that can be modified as you want. ==Kernel==Kernel files, '''Freescale processors<br />zImage '''and''' .dtb''', can be copied into the'' root folder'' of the''' boot partition'''
* Copy u-boot'''Kernel Modules''' have to be copied using the command indicated in the kernel compilation [[Linux Kernel 4.9.imx using dd before primary y|post]] into the '''rootfs partition in raw mode as'''. 
<pre>sudo dd if= of=/dev/ bs=512 seek=2 </pre>
You can follow this [[How to prepare a bootable MicroSD Card|link]] you want build the u-boot.imx
==Root file System==
The root file system have to be extracted into the'' root folder''  of the '''rootfs''' ''' partition'''.Where can be [http://labs.isee.biz/index.php/IGEP_Firmware_set-up downloaded here.]
==Kernel==
Kernel files, '''zImage '''and''' .dtb''', can be copied into the'' root folder'' of the''' boot partition'''
'''Kernel Modules '''can have to be copied using the command indicated in the kernel compilation [[Linux Kernel 4.9.y|post]] into the '''rootfs partition'''. 
560
edits