How To: Create USB to Update iNAND

From HIO Wiki
Jump to: navigation, search

Create USB to Update iNAND under Linux

1. Please download the updated systems image "UpdateiNAND.img" Click to download HIO-1200 Update iNAND image Download

2. Please download which images you want form Pre-built_HIO_Board_Images

3. Flash update image into USB .

 $sudo dd if=YouDownloadDir/UpdateiNAND.img of=/dev/<your-USB> bs=1M conv=fsync

Re-plug you USB when flash finished.

4. Mount USB first partition.

 $sudo mount /dev/<your-USB> /mnt

5. Copy the four files you want to write into the iNAND into 1nd partition of USB update folder by the following command.

 $cd /mnt 
 $sudo cp Pre-builtImageFolder/u-boot-hio-imx6dl-board-xxx.imx ./update/u-boot.imx
 $sudo cp Pre-builtImageFolder/uImage--3.10.17-r0-hio-imx6dl-board-xxx.bin ./update/uImage
 $sudo cp Pre-builtImageFolder/uImage--3.10.17-r0-hio-imx6dl-board-xxx.dtb  ./update/hio-imx6dl-board.dtb
 $sudo cp yPre-builtImageFolder/hio-image-xxx-hio-imx6dl-board-xxx.rootfs.tar.bz2 ./update/rootfs.tar.bz2
 $sync

Note: Please make sure the names of the four file are: hio-imx6dl-board.dtb, rootfs.tar.bz2, u-boot.imx, uImage,they are the same as the values in the ./update/update.ini,and the OPTION can be set to one of them --uboot,kernel,kerneluboot,rootfs,all.

 # cat update/update.ini
   [CURRENT_PRO]
    name=HIO-1200
[HIO-1200_V1.0] UBOOT=u-boot.imx DTB=hio-imx6dl-board.dtb KERNEL=uImage ROOTFS=rootfs.tar.bz2 OPTION=all

If use another kind of HIO-board,e.g.<hio-imx6dl-poe>,you must rename uImage--3.10.17-r0-hio-imx6dl-poe-xxx.dtb to hio-imx6dl-poe.dtb,and set the value of dtb=hio-imx6dl-poe.dtb in the update.ini

6. Insert the USB into the HIO-EMB-1200, and power it on.

Create USB to Update iNAND under Windows

1. Please download the updated systems image "UpdateiNAND.img" Click to download HIO-1200 Update iNAND image Download

2. Please download the flash image tool "Win32DiskImager" Click to download Win32DiskImager download

3. Please download which images you want write into the iNAND form Pre-built_HIO_Board_Images

4. Open the Win32DiskImager,Select the UpdateiNAND.img and USB Device,Click write to start.

Win32imager.jpg

5.Copy the four files you want to write into the iNAND into update folder of USB,and rename them as follows:

 u-boot-hio-imx6dl-board-xxx.imx-->u-boot.imx
 uImage--3.10.17-r0-hio-imx6dl-board-xxx.bin-->uImage
 uImage--3.10.17-r0-hio-imx6dl-board-xxx.dtb-->hio-imx6dl-board.dtb
 hio-image-xxx-hio-imx6dl-board-xxx.rootfs.tar.bz2-->rootfs.tar.bz2

Note: Please make sure the names of the four file are: hio-imx6dl-board.dtb, rootfs.tar.bz2, u-boot.imx, uImage,they are the same as the values in the ./update/update.ini,and the OPTION can be set to one of them --uboot,kernel,kerneluboot,rootfs,all.

   [CURRENT_PRO]
    name=HIO-1200
[HIO-1200_V1.0] UBOOT=u-boot.imx DTB=hio-imx6dl-board.dtb KERNEL=uImage ROOTFS=rootfs.tar.bz2 OPTION=all

If use another kind of HIO-board,e.g.<hio-imx6dl-poe>,you must rename uImage--3.10.17-r0-hio-imx6dl-poe-xxx.dtb to hio-imx6dl-poe.dtb,and set the value of dtb=hio-imx6dl-poe.dtb in the update.ini.

6. Insert the USB into the HIO-EMB-1200, and power it on.