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:

This application note talks about SysImage installation and usage (For more information refer to this URL).

Preparation

  1. You will need a MicroSD storage card with 1 GB or larger capacity.
  2. sd_card

  3. An USB-to-MicroSD adapter is also needed.
  4. sd_reader

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.

ddp_21

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.

222

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:

1113bmp

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.

1114

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.

55

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.

my_computer

Execute the following command from the DOS command prompt:

    diskpart

ddp_1

Execute the following command to scan your disk:

    list disk

ddp_2

Find your USB-to-MicroSD adapter form the disk list. In our case, it’s name is “DISK 1”.

ddp_3

Then, execute the following command to select the disk named “DISK 1”.

    select disk 1

ddp_4

Execute the following command to clear all partitions on this disk:

    clean

ddp_6

Execute the following command to create primary partition:

    create partition primary

ddp_8

Execute the following command to set the primary partition as “active”:

    active

ddp_10

Execute the following command to exit diskpart program:

    exit

ddp_14

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

ddp_15

You can see a list of storage device, similar to the following screen:

1120

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.

ddp_16

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

ddp_17

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

ddp_17_1

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

ddp_18

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.

ddp_19

The process is completion, you should see as below:

ddp_20

remove the USB adapter from the development machine and remove MicroSD storage card.

12121

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.

1313

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.

111

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.


Getting-Started Home

The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.