DuinOS Installation – Windows (Using dd)

This document provides information showing how to install DuinOS using a Windows based PC. For more information about DuinOS and its usage, refer to the here.

Requirements

  1. A blank MicroSD storage card (1 GB or larger).
  2. sd_card

  3. An USB to MicroSD adapter
  4. sd_reader

Step 1

Download the latest DuinOS and unzip to c:\ drive on your PC. The unzipped DuinOS.img file should be about 1 GB.

ddp_21

Step 2

Download the dd for Windows utility via the here.

Note: Version 0.5 or later is needed.

222

After download, unzip and place the dd utility to the “c:\dd-0.5” folder.

Launch a DOS command prompt with administrator privilege.

Without administrator privilege, you will not be able to complete steps in the later sections.

Refer to the here for information, showing how to launch DOS command prompt with administrator privilege:

1113bmp

From the DOS command prompt window, navigate to the C:\dd-0.5 folder.

1114

Step 3

In this section, we will work through the steps to configure the MicroSD flash storage card with DuinOS.

Insert the MicroSD flash storage to the USB-to-MicroSD adapter. Then, insert the USB-to-MicroSD adapter to the PC.

55

Wait for your PC to detect and recognize the MicroSD storage and make not of the drive letter assigned to the MicroSD storage (as shown in the figure below)

my_computer

From the DOS command window, execute the following command to launch Diskpart:

    diskpart

ddp_1

Next, execute the following command to display all detected disk partitions:

    list disk

ddp_2

From the list of detected storage partition, identify the one assigned to the MicroSD storage

(For this example, ‘Disk 1” is assigned to the MicroSD storage)

ddp_3

Execute the following command to select “Disk 1”:

    select disk 1

ddp_4

Next, execute the following command to remote previously configured file partition from “Disk 1”:

    clean

ddp_6

Execute the following command to create a primary file partition:

    create partition primary

ddp_8

Execute the following command to set the partition active:

    active

ddp_10

Execute the following command to exit Diskpart:

    exit

ddp_14

From the dd directory, execute the following command:

    dd --list

ddp_15

You will see a list of storage devices, similar to the following screen:

1120

From the list of storage devices, look for the device listed as removeable media, which is the Micro-SD card. Make note of volume information and assigned drive letter, similar to the following screen:

ddp_16

Scroll down further to look for partition information associate with removable media, similar to the following screen.

For this example in this application note, the volume and partition for the removable media are \\?\Device\HarddiskVolume15 and \\?\Device\Harddisk1\Partition1 respectively.

ddp_17

Next, make note of the partition 0 information, similar to the following screen.

For this example it’s \\?\Device\Harddisk1\Partition0

ddp_17_1

Execute the following command, using the dd command to place DuinOS onto the MicroSD card.

    dd of={Partition 0 on MicroSD} if={DuinOS image file} bs=1M

For the example in this application note, the command is as follow: dd of=\\?\Device\Harddisk1\Partition0 if=c:\DuinOS.img bs=1M

ddp_18

Be patient, it takes 6 ~ 7 minutes or longer to complete the task, depending the the MicroSD card’s read/write speed.

ddp_19

After the process to place DuinOS onto the MicroSD card is completed, you work station’s screen should look similar to the following.

ddp_20

Remove the MicroSD card from your development workstation.

12121

Step 4

Insert the MicroSD configured with DuinOS from the earlier steps into the MicroSD slot on the 86Duino board and apply power..

1313

During startup, when the MicroSD card with DuinOS is detected, the 86Duino board will boot from the MicroSD card instead of its internal flash.

Refer to the here to learn more about DuinOS.


Hacking

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