86Duino SysImage Installation (Windows)
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).
Preparation
- You will need a MicroSD storage card with 1 GB or larger capacity.
- An USB-to-MicroSD adapter is also needed.
Step 1
Download the latest version 86Duino SysImage. After unzip the content to a directory on your development machine, you will see the 86duino.img image file, approximately 1 GB in size.
Step 2
Download the dd utility.The Windows version of dd is available for download from the following URL:http://www.chrysocome.net/dd
You need to use version 0.5 and later.
After download, unzip dd utility files to the following folder:
• C:\dd-0.5
Launch a DOS command prompt window as “Administrator” (see the steps), as shown below:
From the DOS command prompt, enter ‘cd c:\dd-0.5’ and press enter to navigate to the C:\dd-0.5 directory, as shown below.
Step 3
In this section, we will work through the steps, using 86Duino SysImage, to place 86Duino system firmware on to the MicroSD.
With MicroSD storage card inserted to the USB-to-MicroSD adapter, insert the adapter to the development PC.
After the USB-to-MicroSD adapter is inserted, the MicroSD is recognized by the PC as a storage device. From File Explorer or My Computer screen, identify the drive letter assigned to the MicroSD storage. In our case, driver letter ‘K’ is assigned.
Execute the following command from the DOS command prompt:
diskpart
Execute the following command to scan your disk:
list disk
Find your USB-to-MicroSD adapter form the disk list. In our case, it’s name is “DISK 1”.
Then, execute the following command to select the disk named “DISK 1”.
select disk 1
Execute the following command to clear all partitions on this disk:
clean
Execute the following command to create primary partition:
create partition primary
Execute the following command to set the primary partition as “active”:
active
Execute the following command to exit diskpart program:
exit
Back to the directory of dd program, enter the following command to view storage devices attached to the development PC, as shown below:
dd --list
You can see a list of storage device, similar to the following screen:
From the above list of storage device, look for device listed as removable media with the drive letter assigned to the MicroSD (drive K), as shown below.
Find the same device name in the list. In our case, the device name is \\?\Device\HarddiskVolume15
,
and the partition 1 of MicroSD is named \\?\Device\Harddisk1\Partition1
Take note of the partition 0 name assigned to MicroSD, as shown below. In our case, the partition 0 of MicroSD is named \\?\Device\Harddisk1\Partition0
From the DOS command window, execute the following command to configure and place 86Duino SysImage onto the MicroSD storage card (as shown below):
dd of="the name of MicroSD partition 0" if="86Duino image file" bs=1M
Here is the actual command to configure and place 86Duino.img image file to the MicroSD storage card we are using for this tutorial:
dd of=\\?\Device\Harddisk1\Partition0 if=c:\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 and write performance for the MicroSD, the time may vary.
The process is completion, you should see as below:
remove the USB adapter from the development machine and remove MicroSD storage card.
Step 4
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.