We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:xu3_building_android [2017/02/24 11:35]
codewalker [script for release image]
en:xu3_building_android [2017/05/24 10:45] (current)
codewalker
Line 128: Line 128:
 4 packets transmitted,​ 4 received, 0% packet loss, time 3001ms 4 packets transmitted,​ 4 received, 0% packet loss, time 3001ms
 rtt min/​avg/​max/​mdev = 0.718/​0.971/​1.561/​0.344 ms rtt min/​avg/​max/​mdev = 0.718/​0.971/​1.561/​0.344 ms
-</​code>​ 
- 
-==== device console ==== 
-<​code>​ 
-130|root@odroidxu3:/​ # setprop service.adb.tcp.port 5555      
-</​code>​ 
-<​code>​ 
-root@odroidxu3:/​ # stop adbd && start adbd                                      ​ 
-[  286.223070] [c4] adb_release ​                                                 
-[  286.224485] [c4] dwc3 12400000.dwc3:​ request de1f4f80 was not queued to ep0ot 
-root@odroidxu3:/​ [  286.239830] [c1] adb_open ​                                   
-[  286.242450] [c6] adb_bind_config ​                                             
 </​code>​ </​code>​
  
Line 533: Line 521:
 # SD/eMMC FAT Format # SD/eMMC FAT Format
 #​------------------------------------------------------------------------------------------------------ #​------------------------------------------------------------------------------------------------------
 +mmcinfo 1
 fatformat mmc 1:1 fatformat mmc 1:1
  
Line 561: Line 550:
  
 ===== How to make release image ===== ===== How to make release image =====
 +Make a directory.
 <​code>​ <​code>​
-$ mkdir emmc sd sd2emmc+$ mkdir emmc 
 +$ cd emmc
 </​code>​ </​code>​
-copy update.zip and unzip update.zip+ 
 +Make boot.ini file 
 +<​file>​ 
 +#​------------------------------------------------------------------------------------------------------ 
 +
 +# EMMC to EMMC Recovery boot.ini text file 
 +
 +#​------------------------------------------------------------------------------------------------------ 
 +ODROIDXU-UBOOT-CONFIG 
 +#​------------------------------------------------------------------------------------------------------ 
 +# BL1 write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 bl1.bin 
 +emmc open 0 
 +movi w z f 0 40008000 
 +emmc close 0 
 +#​------------------------------------------------------------------------------------------------------ 
 +# BL2 write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 bl2.bin 
 +emmc open 0 
 +movi w z b 0 40008000 
 +emmc close 0 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Bootloader write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 u-boot.bin 
 +emmc open 0 
 +movi w z u 0 40008000 
 +emmc close 0 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Turst Zone Soft Ware write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 tzsw.bin 
 +emmc open 0 
 +movi w z t 0 40008000 
 +emmc close 0 
 +#​------------------------------------------------------------------------------------------------------ 
 +# UBOOT ENV Erase 
 +#​------------------------------------------------------------------------------------------------------ 
 +mmc write 0 40008000 0x4CF 0x20 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Kernel Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 zImage-dtb 
 +movi write kernel 0 40008000 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# System Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40000000 system.img 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Userdata Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 57000000 userdata.img 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Cache Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 61000000 cache.img 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Partition Create to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fdisk -c 0 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +fastboot flash system 40000000 0 
 +fastboot flash userdata 57000000 0 
 +fastboot flash cache 61000000 0 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# SD/eMMC FAT Format 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatformat mmc 0:1 
 + 
 +reset 
 +</​file>​ 
 + 
 +<​code>​ 
 +$ mkdir sd 
 +$ cd sd 
 +</​code>​ 
 + 
 +Make boot.ini file 
 +<​file>​ 
 +#​------------------------------------------------------------------------------------------------------ 
 +
 +# SD to SD Recovery boot.ini text file 
 +
 +#​------------------------------------------------------------------------------------------------------ 
 +ODROIDXU-UBOOT-CONFIG 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# BL1 write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 bl1.bin 
 +movi w f 0 40008000 
 +#​------------------------------------------------------------------------------------------------------ 
 +# BL2 write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 bl2.bin 
 +movi w b 0 40008000 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Bootloader write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 u-boot.bin 
 +movi w u 0 40008000 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Turst Zone Soft Ware write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 tzsw.bin 
 +movi w t 0 40008000 
 +#​------------------------------------------------------------------------------------------------------ 
 +# UBOOT ENV Erase 
 +#​------------------------------------------------------------------------------------------------------ 
 +mmc write 0 40008000 0x4CF 0x20 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Kernel Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 zImage-dtb 
 +movi write kernel 0 40008000 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# System Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40000000 system.img 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Userdata Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 57000000 userdata.img 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Cache Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 61000000 cache.img 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Partition Create to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fdisk -c 0 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +fastboot flash system 40000000 0 
 +fastboot flash userdata 57000000 0 
 +fastboot flash cache 61000000 0 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# SD/eMMC FAT Format 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatformat mmc 0:1 
 + 
 +reset 
 +</​file>​ 
 + 
 + 
 +<​code>​ 
 +$ mkdir sd2emmc 
 +$ cd sd2emmd 
 +</​code>​ 
 + 
 +Make boot.ini file 
 +<​file>​ 
 +#​------------------------------------------------------------------------------------------------------ 
 +
 +# SD to EMMC Recovery boot.ini text file 
 +
 +#​------------------------------------------------------------------------------------------------------ 
 +ODROIDXU-UBOOT-CONFIG 
 +#​------------------------------------------------------------------------------------------------------ 
 +# BL1 write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 bl1.bin 
 +emmc open 1 
 +movi w z f 1 40008000 
 +emmc close 1 
 +#​------------------------------------------------------------------------------------------------------ 
 +# BL2 write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 bl2.bin 
 +emmc open 1 
 +movi w z b 1 40008000 
 +emmc close 1 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Bootloader write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 u-boot.bin 
 +emmc open 1 
 +movi w z u 1 40008000 
 +emmc close 1 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Turst Zone Soft Ware write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 tzsw.bin 
 +emmc open 1 
 +movi w z t 1 40008000 
 +emmc close 1 
 +#​------------------------------------------------------------------------------------------------------ 
 +# UBOOT ENV Erase 
 +#​------------------------------------------------------------------------------------------------------ 
 +mmc write 1 40008000 0x4CF 0x20 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Kernel Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40008000 zImage-dtb 
 +movi write kernel 1 40008000 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# System Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 40000000 system.img 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Userdata Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 57000000 userdata.img 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Cache Image write to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatload mmc 0:1 61000000 cache.img 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# Partition Create to eMMC 
 +#​------------------------------------------------------------------------------------------------------ 
 +fdisk -c 1 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +fastboot flash system 40000000 1 
 +fastboot flash userdata 57000000 1 
 +fastboot flash cache 61000000 1 
 + 
 +#​------------------------------------------------------------------------------------------------------ 
 +# SD/eMMC FAT Format 
 +#​------------------------------------------------------------------------------------------------------ 
 +fatformat mmc 1:1 
 + 
 +fastboot poweroff 
 +</​file>​ 
 + 
 +<​code>​ 
 +$ sudo mkdir /​media/​[username]/​fat32 
 +</​code>​ 
 + 
 +Copy update.zip and unzip update.zip
 <​code>​ <​code>​
 $ cp out/​target/​product/​odroidxu3/​update.zip . $ cp out/​target/​product/​odroidxu3/​update.zip .
-$ ls -l update +$ unzip update.zip 
--rw-r--r-- 1 codewalker codewalker ​    ​15360 ​ 2월  6 14:01 bl1.bin +$ ls update 
--rw-r--r-- 1 codewalker codewalker ​    ​14592 ​ 2월  6 14:01 bl2.bin +bl1.bin ​ bl2.bin ​ cache.img ​ ramdisk.img ​ system.img ​ tzsw.bin ​ u-boot.bin ​ userdata.img ​ zImage ​ zImage-dtb
--rw-r--r-- 1 codewalker codewalker ​  ​6348948 ​ 2월  6 14:01 cache.img +
--rw-r--r-- 1 codewalker codewalker ​   394033 ​ 2월  6 14:01 ramdisk.img +
--rw-r--r-- 1 codewalker codewalker 377045052 ​ 2월  6 14:01 system.img +
--rw-r--r-- 1 codewalker codewalker ​   262144 ​ 2월  6 14:01 tzsw.bin +
--rw-r--r-- 1 codewalker codewalker ​   276228 ​ 2월  6 14:01 u-boot.bin +
--rw-r--r-- 1 codewalker codewalker ​ 36844316 ​ 2월  6 14:01 userdata.img +
--rw-r--r-- 1 codewalker codewalker ​  ​4694581 ​ 2월  6 14:01 zImage +
--rw-r--r-- 1 codewalker codewalker ​  ​4694581 ​ 2월  6 14:01 zImage-dtb+
 </​code>​ </​code>​
  
-copy uboot folder.+Copy uboot directory.
 <​code>​ <​code>​
 $ cp -a device/​hardkernel/​odroidxu3/​uboot . $ cp -a device/​hardkernel/​odroidxu3/​uboot .
Line 586: Line 815:
  
 <​code>​ <​code>​
-$ ls -l +$ ls 
-drwxrwxr-x 2 codewalker codewalker ​     4096  2월  6 14:11 emmc +emmc  sd  sd2emmc ​ uboot  update ​ update.zip
-drwxrwxr-x 2 codewalker codewalker ​     4096  2월  6 14:10 sd +
-drwxrwxr-x 2 codewalker codewalker ​     4096  2월  6 14:11 sd2emmc +
-drwxrwxr-x 2 codewalker codewalker ​     4096  7월 20  2015 uboot +
-drwxrwxr-x 2 codewalker codewalker ​     4096  2월  6 14:05 update +
--rw-rw-r-- 1 codewalker codewalker 218061408 ​ 2월  6 14:04 update.zip+
 </​code>​ </​code>​
  
en/xu3_building_android.1487905559.txt.gz · Last modified: 2017/02/24 11:35 by codewalker
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0