User Tools

Site Tools


flash_sd

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 :

$ git clone ssh://dev.quimesis.be:29418/buildroot-quimesis
$ cd buildroot-quimesis
$ make O=build_quimbrain quimesis_imx6dl_quimbrain_defconfig
$ cd build_quimbrain
$ make

Once the build has succeeded, flash an SD card as follow1) :

  1. create a rootfs partition
    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
  2. format the rootfs partition in ext-2
    $ sudo mkfs.ext2 <sd_device>1 -L rootfs
  3. copy the SPL and u-boot to the SD card
     $ 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
  4. copy the rootfs to the rootfs partition
     $ sudo tar xvf rootfs.tar -C </path/to/rootfs/mount/point>
1)
<sd_device> is the block device of the SD card; e.g. /dev/sdc
flash_sd.txt · Last modified: 2018/05/22 10:33 by 127.0.0.1