Dies ist eine alte Version des Dokuments!


Write image to SD Card

On the Beagle Bone Blue, there is already a preinstalled OS on the eMMC (internal flash memory). It is recommendet to use this OS. If using a newer version, it is not guaranteed that everything is already set up correctly since the image is for more than one Beagle Bone board types.

The following steps describe how to install an OS image onto a SD card using a Linux host. Afterwards, the SD card can be inserted into the BeagleBone board. The board will boot from the SD card.

1. Download the newest or desired image from: https://beagleboard.org/latest-images

2. Prepare an SD card. Backup all Data from the SD card since they will be lost after writing the image!

3. Compare hash of the image with the one on the download page to make sure the image was downloaded correctly. Use for example sha256sum program which is installed on standard linux desktop distributions already.

ntbler@ntbhost:~$ sha256sum bone-debian-9.3-iot-armhf-2018-03-05-4gb.img.xz
33fc557f32005c811bd449a59264da6b4a9b4ea9f87a1ee0aa43ae651c7f33d1  bone-debian-9.3-iot-armhf-2018-03-05-4gb.img.xz

4. The following steps are to determine which device is the SD card on the system.

  • Run lsblk (in bash) before inserting the SD card.
  • Insert the SD card.
  • Run lsblk again.
  • Read out the device name.
ntbler@ntbhost:~$ lsblk 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sr0     11:0    1  1024M  0 rom  
sda      8:0    0 111.8G  0 disk 
├─sda2   8:2    0     1K  0 part 
├─sda5   8:5    0   7.9G  0 part [SWAP]
└─sda1   8:1    0 103.9G  0 part /
ntbler@ntbhost:~$ lsblk 
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sr0          11:0    1  1024M  0 rom  
sda           8:0    0 111.8G  0 disk 
├─sda2        8:2    0     1K  0 part 
├─sda5        8:5    0   7.9G  0 part [SWAP]
└─sda1        8:1    0 103.9G  0 part /
mmcblk0     179:0    0  29.7G  0 disk 
└─mmcblk0p1 179:1    0  29.7G  0 part /media/ntbler/6230-3334

In the example above, the device name is mmcblk0.

5. Unmount the device with umount:

ntbler@ntbhost:~$ sudo umount /dev/mmcblk0

6. Now, the image can be copied onto the SD card using dd. Make sure to not choosing the wrong device, otherwise you will destroy your filesystem and loose all your data!

ntbler@ntbhost:~/images$ ls
bone-debian-9.3-iot-armhf-2018-03-05-4gb.img  bone-debian-9.3-iot-armhf-2018-03-05-4gb.img.xz
ntbler@ntbhost:~/images$ sudo dd if=./bone-debian-9.3-iot-armhf-2018-03-05-4gb.img of=/dev/mmcblk0 bs=1M
3400+0 records in
3400+0 records out
3565158400 bytes (3.6 GB, 3.3 GiB) copied, 294.984 s, 12.1 MB/s

7. Have fun with the new OS.

Useful Links: