Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

Prepare a bootable MicroSD Card

917 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 [[How to prepare a bootable MicroSD CardThe bootloader U-Boot|linkU-boot Bootloader]] 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 ifsudo dd if= /[your_u-boot_directory]/u-boot.imx of=/dev/ [your_sd] bs=512 seek=2</pre>You can follow this post [[How to prepare a bootable MicroSD CardThe bootloader U-Boot|linkU-boot Bootloader]] you want build the u-boot.imx  '''How to configure Uenv<br />''' It is need to indicate how start the boot. For this reason it will be created a file called uenv.txt with the correct configuration.
==Root file System==The root file system have We present two examples of help to be extracted into start the'' root folder''  of system from the '''rootfs''' partitionMicroSD 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, '''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'''.    ==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.]   
560
edits