Open VetSim - BeagleBone Flash Process

The BeagleBone processor provides the computational environment for the SimController. The software can be loaded using the load file below. This file is used to load a MicroSD card that is then used to re-flash the BeagleBone's on-board memory.

This code has been tested on the following BeagleBone boards:

The instructions here assume you are using a Linux computer. If you are using Windows, then the methods would be different.

The file has been compressed using GZIP. After downloading the file, unzip with this command:

vet@vet-NUC7i5BNH:~$ gunzip bboneSim.dd.gz vet@vet-NUC7i5BNH:~$

Then write the file to a 4 GB MicroSD card (a larger card is ok to use). You will probably need root permission to write tot he raw device, so 'sudo' is used. You will need to find the name of the device where the MicroSD card can be accessed. The command lsblk will display the block devices.

vet@vet-NUC7i5BNH:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 34.7M 1 loop /snap/gtk-common-themes/319 loop1 7:1 0 14.5M 1 loop /snap/gnome-logs/37 loop2 7:2 0 2.3M 1 loop /snap/gnome-calculator/180 loop3 7:3 0 3.7M 1 loop /snap/gnome-system-monitor/51 loop4 7:4 0 86.9M 1 loop /snap/core/4917 loop5 7:5 0 140.9M 1 loop /snap/gnome-3-26-1604/70 loop6 7:6 0 13M 1 loop /snap/gnome-characters/103 loop7 7:7 0 87.9M 1 loop /snap/core/5742 loop8 7:8 0 3.7M 1 loop /snap/gnome-system-monitor/57 loop9 7:9 0 13M 1 loop /snap/gnome-characters/139 loop10 7:10 0 2.3M 1 loop /snap/gnome-calculator/260 loop11 7:11 0 14.5M 1 loop /snap/gnome-logs/45 loop12 7:12 0 140.7M 1 loop /snap/gnome-3-26-1604/74 loop13 7:13 0 34.2M 1 loop /snap/gtk-common-themes/808 sda 8:0 0 223.6G 0 disk └─sda1 8:1 0 223.6G 0 part / mmcblk0 179:0 0 14.9G 0 disk └─mmcblk0p1 179:1 0 14.9G 0 part vet@vet-NUC7i5BNH:~$

The block file name you will use is /dev/<name>. The device name you see might be something like mmcblk0 or sdb. Be very sure you use the correct device name. The 'dd' command will overwrite whatever device you specify as the output device. This can overwrite data on another device if you chose incorrectly.

If the device was mounted as a file system when you installed the card, then you will need to unmount it. For example:

sudo umount /dev/mmcblk0p1

The file can then be written to the microSD card. Write to the primary device, not to the partition.

vet@vet-NUC7i5BNH:~$ sudo dd if=bboneSim.dd of=/dev/mmcblk0 bs=4M 931+0 records in 931+0 records out 3904897024 bytes (3.9 GB, 3.6 GiB) copied, 70.2354 s, 55.6 MB/s vet@vet-NUC7i5BNH:~$

You can now remove the MicroSD card from the Linux computer and install it in your BeagleBone. When you power on the BeagleBone, the image from the MicroSD card will be written to the on-board memory. This overwrites the onboard memory and would destroy any data you might already have on the BeagleBone.

Last updated: Aug 6, 2021

You should always check for updates to the sim-ii project directory after installing the BeagleBone image.