Bootable SD Card

From Chiliboard Wiki
Jump to: navigation, search

Bootable SD Card

Prerequisites

To handle 7-Zip compressed files please install 7-Zip compatible decompressor:

sudo apt-get install p7zip pv

Check of you can use sudo access:

sudo whoami


if not please login as root or enable your user account to work with sudo command.

How to

Find SD Card block device

Insert your SD Card into reader (or connect the reader) and find block device associated with your SD Card:

using dmesg log

List last lines from dmesg log:

dmesg | tail -n 50

And look for new block device:

...
[3966021.587137] sd 71:0:0:0: [sdg] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
[3966021.599624]  sdg: sdg1 sdg2

using /proc

cat /proc/partition

And you will see available block devices and sizes.

major minor  #blocks  name
   ...
   8       32    7565312 sde
   8       33      40960 sde1
   8       34     378880 sde2

Here we have 8GB SD Card (real size 7565 MB) available as /dev/sde, with two partitions:

  • /dev/sde1 (40MB)
  • /dev/sde2 (378MB)

Download SD Card image

wget http://ftp.chiliboard.org/sdcard/chili-yocto-qt4e-sdcard-LATEST.bin.7z

Test archive integrity:

7z t chili-yocto-qt4e-sdcard-LATEST.bin.7z

Write to SD Card

Unpack it directly to SD Card.

!!! Please substitute /dev/sde with correct block device.

sudo su
7z x -so chili-yocto-qt4e-sdcard-LATEST.bin.7z | dd bs=16k of=/dev/sde