Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:xu3_building_android [2017/02/24 11:35] codewalker [script for release image] |
en:xu3_building_android [2017/02/24 11:49] codewalker [How to make release image] |
||
---|---|---|---|
Line 561: | Line 561: | ||
===== 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 /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 | + | $ ls update |
- | -rw-r--r-- 1 codewalker codewalker 15360 2월 6 14:01 bl1.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 14592 2월 6 14:01 bl2.bin | + | |
- | -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 825: | ||
<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> | ||