User Tools

Site Tools


flash_sd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
flash_sd [2017/03/08 11:33]
damien created
flash_sd [2018/05/22 10:33] (current)
Line 1: Line 1:
 +====== Flash SD ======
 +
 +The ''​quimesis_imx6dl_quimbrain''​ defconfig from the buildroot-quimesis repository can be used to generate a basic Linux system running on the QuimBrain :
 +
 +<​code>​
 +$ git clone ssh://​dev.quimesis.be:​29418/​buildroot-quimesis
 +$ cd buildroot-quimesis
 +$ make O=build_quimbrain quimesis_imx6dl_quimbrain_defconfig
 +$ cd build_quimbrain
 +$ make
 +</​code>​
 +
 +Once the build has succeeded, flash an SD card as follow((''<​sd_device>''​ is the block device of the SD card; e.g. ''/​dev/​sdc''​)) :
 +
 +  - create a rootfs partition<​code>​
 +sed -e '​s/​\s*\([\+0-9a-zA-Z]*\).*/​\1/'​ << EOF | sudo fdisk <​sd_device>​
 +  d # clear the in memory partition table
 +  n # new partition
 +   # default - primary partition
 +   # default - partition number 1
 +   # default - first sector : 2048
 +   # default - last sector : 7744511
 +  w # write the partition table
 +  q # and we're done
 +EOF
 +</​code>​
 +  - format the //rootfs// partition in ext-2<​code>​
 +$ sudo mkfs.ext2 <​sd_device>​1 -L rootfs
 +</​code>​
 +  - copy the SPL and u-boot to the SD card<​code>​
 + $ cd images
 + $ sudo dd if=SPL of=<​sd_device>​ bs=1k seek=1
 + $ sudo dd if=u-boot.img of=<​sd_device>​ bs=1k seek=42
 +</​code>​
 +  - copy the rootfs to the //rootfs// partition<​code>​
 + $ sudo tar xvf rootfs.tar -C </​path/​to/​rootfs/​mount/​point>​
 +</​code>​
  
flash_sd.txt ยท Last modified: 2018/05/22 10:33 (external edit)