June 2017
Intermediate to advanced
478 pages
13h 14m
English
The script called MELP/format-sdcard.sh creates two partitions on the micro SD card: one for the boot files and one for the root filesystem. Assuming that you have created the root filesystem image as shown in the previous section, you can use the dd command to write it to the second partition. As always, when copying files directly to storage devices like this, make absolutely sure that you know which is the micro SD card. In this case, I am using a built-in card reader, which is the device called /dev/mmcblk0, so the command is as follows:
$ sudo dd if=rootfs.ext2 of=/dev/mmcblk0p2
Then, slot the micro SD card into the BeagleBone Black, and set the kernel command line to root=/dev/mmcblk0p2. The complete sequence ...
Read now
Unlock full access