86Duino SysImage Installation (Mac OS X)
86Duino SysImage is a utility which enable you to place 86Duino system firmware onto a MicroSD storage card, include the following:
- Create a bootable MicroSD storage card to launch 86Duino system firmware (Refer to: Advantage for launching 86Duino Firmware from MicroSD).
- Update 86Duino firmware on internal flash, including the bootloader.
- Update 86Duino system BIOS.
This application note talks about SysImage installation and usage (For more information refer to this URL).
- You will need a MicroSD storage card with 1 GB or larger capacity
- An USB-to-MicroSD adapter is also needed
Download the latest version 86Duino SysImage. After expanding the image file content to the /tmp directory on your development machine, you will see the 86duino.img image file, approximately 1 GB in size.
As preparation to configure and place the 86Duino SysImage image onto the MicroSD storage card, insert the MicroSD storage card into the USB adapter and attach the USB adapter to the development machine.
After the USB adapter is detected and recognized by the system, an USB storage device icon is shown on the desktop, which represent the MicroSD storage card, as shown below.
Next, launch the Terminal program.
Execute the following command from the Terminal program:
You will see a list of storage device, as shown below:
From the above list, locate the MicroSD storage card, which is attached via an USB-adapter. In our example, the MicroSD storage card is identified as “/dev/disk1”.
Make note of the partition information for the MicroSD storage card. In this example, the MicroSD storage card only has one partition, identified as “disk1s1”, as shown below.
Next, un-mount the MicroSD partition, using the following command:
diskutil umount /dev/disk1s1
If the MicroSD has multiple partitions, repeat the command to un-mount all partitions.
After the partition is un-mounted, the Terminal program screen displays information to indicate the un-mounted partition, as shown below.
At the same time, the USB storage device icon disappear from the desktop.
From the Terminal window, execute the following command to configure and place 86Duino SysImage onto the MicroSD storage card:
dd of="MicroSD partition" if="SysImage image file path" bs=1m
Here is the actual command for the example in this application note:
dd of=/dev/disk1 if=/tmp/86duino.img bs=1m
The process to configure and place 86Duino.img image onto the MicroSD storage takes approximately 6~7 minutes. Depending on the read/write performance for the MicroSD, the times may vary.
After the process is completed, remove the USB adapter from the development machine and remove MicroSD storage card.
Insert the newly configured MicroSD storage card to the 86Duino board, using the MicroSD as the boot device and apply power to the 86Duino board.
During power on, the 86Duino board detects the inserted MicroSD storage card. When a valid boot partition is found on the MicroSD storage, the 86Duino board will continue the boot process using the MicroSD storage as the bootable storage, instead of the internal flash.
After successfully boot from the MicroSD storage, you can see the LED on the 86Duino board (as shown below) blinks 3 short pulses, follow by 2 long pulses, which indicates the 86Duino board successfully launched the new SysImage from the MicroSD storage.
Next, you can reset power to the 86Duino board and boot from the updated 86Duino BIOS and bootloader on the internal flash. Or, you can boot the 86Duino board using the MicroSD storage created from this application note and use it as the target device, and deploy sketch (86duino application) from the 86Duino IDE to the 86Duino board.
Note: SysImage is a sketch (86Duino application). When you deploy another sketch onto the MicroSD, it will overwritten and delete SysImage.
For more information about how to use SysImage, refer to information on this URL。
The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.