SmartAudio/package/allwinner/misc-upgrade/readme.txt

221 lines
9.4 KiB
Plaintext
Raw Permalink Normal View History

2018-07-13 01:31:50 +00:00
#<23><><EFBFBD><EFBFBD>˵<EFBFBD><CBB5> luckylau
#<23>޸<EFBFBD>2016-4-14 <20><><EFBFBD>ӷ<EFBFBD><D3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>ɾ<EFBFBD><C9BE>target_sys<79><73>usr.img<6D><67><EFBFBD>֣<EFBFBD><D6A3><EFBFBD><EFBFBD>Ӵ<EFBFBD><D3B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>
#<23>޸<EFBFBD>2016-3-23 <20><>ʼ<EFBFBD>
#author<6F><72>henrisk
AW-OTAʹ<41><CAB9><EFBFBD><EFBFBD>֪<EFBFBD><D6AA>
<20><><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>Ӧ<EFBFBD><D3A6><EFBFBD>д洢<D0B4><E6B4A2><EFBFBD>ʴ<EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><ECA3AC><EFBFBD><EFBFBD>ӦOTA<54><41><EFBFBD><EFBFBD>Ҳ<EFBFBD>ͬ<E1B2BB><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1>32M<32><4D>һ<EFBFBD><D2BB>Ϊspinor<6F><72><EFBFBD>Ľ<EFBFBD><C4BD>ʣ<EFBFBD><CAA3><EFBFBD>ҪԤ<D2AA><D4A4><EFBFBD><EFBFBD><E8B6A8>
make menuconfig
Target Images --->
*** Image Options ***
[*] For storage less than 32M, enable this when using ota
ѡ<>и<EFBFBD><D0B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>rootfs<66><73>/usr<73><EFBFBD>ֲ<EFBFBD><D6B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>usr.squashfs(usr.img)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>extend<6E><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>recovery<72><79><EFBFBD><EFBFBD><EFBFBD><EFBFBD>boot_initramfs<66><73><EFBFBD><EFBFBD><EFBFBD>ø÷<C3B8><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD><D4B4>𵽽<EFBFBD>ʡ<EFBFBD><EFBFBD>ռ<EFBFBD><D5BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>á<EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD>ѡ<E9B2BB>и<EFBFBD><D0B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EEA3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫusr.img<6D><67>extend<6E><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>recovery<72><79><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>OTA<54><41><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>ʡȥ<CAA1>ܶ<EFBFBD><DCB6><EFBFBD><E9B7B3>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǵ<EFBFBD><C7B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>make֮ǰѡ<C7B0><D1A1>Ӧ<EFBFBD>ð<EFBFBD>misc-package<67><65>
make menuconfig
Allwinner --->
<*> misc-upgrade........................... read and write the misc partition
һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
boot<6F><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ں˾<DABA><CBBE><EFBFBD>
rootfs<66><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/lib, /bin, /etc, /sbin<69>ȷ<EFBFBD>/usr<73><72><EFBFBD>ǹ<EFBFBD><C7B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>·<EFBFBD><C2B7><EFBFBD><EFBFBD>wifi֧<69>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD>alsa֧<61>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD>OTA<54><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
extend<6E><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>չϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/usr Ӧ<>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
private<74><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>洢SN<53>ŷ<EFBFBD><C5B7><EFBFBD>
misc<73><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ״̬<D7B4><CCAC>ˢ<EFBFBD><CBA2>״̬<D7B4><CCAC><EFBFBD><EFBFBD>
UDISK<53><4B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD>ݷ<EFBFBD><DDB7><EFBFBD><EFBFBD><EFBFBD>/mnt/UDISK<53><4B>
overlayfs<66><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>洢overlayfs<66><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Сע<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD>ڷ<EFBFBD><DAB7><EFBFBD>ʹ<EFBFBD><CAB9>sys_partition.fex<65>ж<EFBFBD><D0B6><EFBFBD>
size<7A><65><EFBFBD><EFBFBD><E3B7A8><EFBFBD><EFBFBD> 8192/2/1024 = 4M
a<><61><EFBFBD><EFBFBD><EFBFBD><EFBFBD>boot<6F><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1>boot<6F><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD>ں<EFBFBD><DABA><EFBFBD><EFBFBD>ã<EFBFBD><C3A3><EFBFBD>ҪС<D2AA>ڵ<EFBFBD><DAB5><EFBFBD>sys_partition.fex<65>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>boot<6F><74>ǩ<EFBFBD>Ķ<EFBFBD><C4B6>
<20>
[partition]
name = boot
size = 8192
downloadfile = "boot.fex"
user_type = 0x8000
boot<6F><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1>Ҫ<EFBFBD><D2AA>menuconfig<69><67>Ԥ<EFBFBD><D4A4><EFBFBD><EFBFBD><E8B6A8>
make menuconfig
Target Images --->
*** Image Options ***
(4) Boot filesystem partition size (in MB)
b<><62>rootfs<66><73><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫͨ<D2AA><CDA8>make menuconfigȥ<67><EFBFBD><E8B6A8>ֱ<EFBFBD>Ӹ<EFBFBD><D3B8>ݾ<EFBFBD><DDBE><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD>޸ķ<DEB8><C4B7><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ɡ<EFBFBD>
1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һЩС<D0A9><D0A1><EFBFBD><EFBFBD>flash<73>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>16M<36><4D><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/bin <20>´<EFBFBD><C2B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߼<EFBFBD><DFBC><EFBFBD><EFBFBD>򡢰汾<F2A1A2B0><E6B1BE><EFBFBD>Ƴ<EFBFBD><C6B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򡢲<EFBFBD><F2A1A2B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>Щ<EFBFBD>ļ<EFBFBD><C4BC>ڱ<EFBFBD><DAB1><EFBFBD>ʱӦ<CAB1><D3A6>install<6C><6C>/bin<69><6E><EFBFBD><EFBFBD>/lib<69>£<EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD>ڹ̼<DAB9><CCBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󣬲鿴bin/sunxi(sun5i)/<2F><>rootfs.img<6D>Ĵ<EFBFBD>С<EFBFBD>ھ<EFBFBD><DABE><EFBFBD>sys_partition.fex<65><78>rootfs<66><73><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>
\*0*/ $ ll bin/sun5i/rootfs.img
-rw-r--r-- 1 heweihong heweihong 1835008 4<><34> 14 16:44 bin/sun5i/rootfs.img
2<><32><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD>flash<73>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>128M<38><4D><EFBFBD>ϣ<EFBFBD><CFA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E3B9BB>flash<73>ռ<EFBFBD><D5BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE>񣩣<EFBFBD><F1A3A9A3><EFBFBD><EFBFBD><EFBFBD>Ҫ1<D2AA><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ЩOTA<54><41><EFBFBD><EFBFBD><EFBFBD>ij<EFBFBD><C4B3><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD>Ӳ鿴rootfs.img<6D>Ĵ<EFBFBD>С<EFBFBD><EFBFBD><E8B6A8><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>ɡ<EFBFBD>
c<><63>extend<6E><64><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>Ƕ<EFBFBD><C7B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
1<><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> usr.img<6D>Ĵ<EFBFBD>С
2<><32>make_ota_image<67><65>initramfs<66><73><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>С<EFBFBD><D0A1>make_ota_image<67><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20>
\*0*/ $ ll build_dir/target-arm_cortex-xxxxxxxx/linux-sun5i<35><69>linux-sunxi<78><69>/
-rw-r--r-- 1 heweihong heweihong 479232 4<><34> 14 16:44 usr.squashfs
-rwxr-xr-x 1 heweihong heweihong 5510192 4<><34> 14 16:44 zImage-initramfs*
ȡ<><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һЩ<D2BB><D0A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>Ϊinitramfs<66><73><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD>С
make menuconfig
Target Images --->
*** Image Options ***
(8) Boot-Recovery initramfs filesystem partition size (in MB)
d<><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>private<74><65>misc<73><63>ʹ<EFBFBD><CAB9>Ĭ<EFBFBD>ϵĴ<CFB5>С<EFBFBD><D0A1><EFBFBD><EFBFBD>
e<><65>ʣ<EFBFBD>µĿռ<C4BF>ȫ<EFBFBD><C8AB><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>UDISK<53><4B><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><D2BB>Ҫ<EFBFBD><D2AA>ȡһ<C8A1><D2BB><EFBFBD>ռ<EFBFBD><D5BC><EFBFBD>UDISK<53><4B><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ٿ<EFBFBD><D9BF>Ը<EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>أ<EFBFBD>һЩOTA<54><41><EFBFBD>̻<EFBFBD><CCBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>дһЩ<D2BB>м<EFBFBD><D0BC>ļ<EFBFBD><C4BC><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>flash<73>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD>ҲҪ<D2B2><D2AA>֤<EFBFBD><D6A4>256K~512K<32>Ŀռ
<20>ر<EFBFBD>ע<EFBFBD><EFBFBD><E2A3BA>Щ<EFBFBD><D0A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8>OTAȥ<41>޸ĵģ<C4B5><C4A3><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD>flash<73>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƣ<EFBFBD><C6A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>adc<64><63><EFBFBD><EFBFBD><E3A3A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E3B9BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>OTA<54><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݵ<EFBFBD><DDB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>flash<73>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǵ<EFBFBD><C7B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ط<EFBFBD><D8B7><EFBFBD><EFBFBD>Ĵ<EFBFBD>С<EFBFBD><D0A1>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>misc-upgrade<64><65><EFBFBD><EFBFBD>
1. misc-upgrade <20>ǻ<EFBFBD><C7BB><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>flash<73><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>»<EFBFBD><C2BB>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>misc<73><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>extend<6E><64><EFBFBD><EFBFBD>Ϊý<CEAA><C3BD><EFBFBD><EFBFBD><EFBFBD>Ƶ<EFBFBD>OTA<54><41><EFBFBD><EFBFBD>
2. OTA<54><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SDK<44><4B><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>(SDK<44><4B>Ŀ¼)
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
source scripts/setenv.sh
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
make_ota_image (<28><><EFBFBD>°汾<C2B0><E6B1BE><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD><D1BE>ɹ<EFBFBD><C9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD>̼<EFBFBD><CCBC>Ļ<EFBFBD><C4BB><EFBFBD><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD><EFBFBD>ϣ<EFBFBD><CFA3><EFBFBD><EFBFBD><EFBFBD>OTA<54><41><EFBFBD><EFBFBD>)
make_ota_image --force (<28><><EFBFBD>±<EFBFBD><C2B1><EFBFBD><EFBFBD>°汾<C2B0><E6B1BE><EFBFBD>룬Ȼ<EBA3AC><C8BB><EFBFBD>ٴ<EFBFBD><D9B4><EFBFBD>OTA<54><41><EFBFBD><EFBFBD>)
ע<><D7A2><EFBFBD><EFBFBD>ִ<EFBFBD><D6B4>make_ota_image֮ǰ<D6AE><C7B0>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>֧<EFBFBD><D6A7>ramdisk<73><6B>ѡ<EFBFBD><D1A1>xzѹ<7A><D1B9>cpio
make menuconfig
target Images --->
[*] ramdisk --->
--- ramdisk
Compression (xz) --->
3. OTA<54><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
\*0*/ $ ll bin/sunxi<78><69>sun5i<35><69>/ota/
?????? 20856
-rw-rw-r-- 1 heweihong heweihong 5731339 3?? 23 15:48 ramdisk_sys.tar.gz
-rw-rw-r-- 1 heweihong heweihong 10335244 3?? 23 15:48 target_sys.tar.gz
-rw-rw-r-- 1 heweihong heweihong 5116895 3?? 23 15:48 usr_sys.tar.gz
<20><><EFBFBD><EFBFBD>tar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD>OTA<54><41>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ramdisk_sys.tar.gz<67><7A>ramdisk<73><6B><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD>ں˷<DABA><CBB7><EFBFBD><EFBFBD><EFBFBD>rootfs<66><73><EFBFBD><EFBFBD>ʱʹ<CAB1>ã<EFBFBD><C3A3><EFBFBD>ֹ<EFBFBD><D6B9>д<EFBFBD><D0B4><EFBFBD>̵<EFBFBD><CCB5><EFBFBD><E7A3AC><EFBFBD>»<EFBFBD><C2BB><EFBFBD><EFBFBD><EFBFBD>ש<EFBFBD><D7A9>
target_sys.tar.gz<67><7A> ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ں˷<DABA><CBB7><EFBFBD><EFBFBD><EFBFBD>rootfs<66><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
usr_sys.tar.gz<67><7A> Ӧ<>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>extend<6E><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>Ҫʹ<D2AA><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
----------------------------------------------------------------
\*0*/ $ ll bin/sunxi/ota/*_sys/
bin/sunxi/ota/ramdisk_sys/:
-rw-r--r-- 1 heweihong heweihong 7340032 4<><34> 16 12:50 boot_initramfs.img
bin/sunxi/ota/target_sys/:
-rw-r--r-- 1 heweihong heweihong 3145728 4<><34> 16 12:49 boot.img
-rw-r--r-- 1 heweihong heweihong 2883584 4<><34> 16 12:49 rootfs.img
bin/sunxi/ota/usr_sys/:
-rw-r--r-- 1 heweihong heweihong 2752512 4<><34> 16 12:49 usr.img
<20><><EFBFBD>ĸ<EFBFBD><C4B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>img<6D><67><EFBFBD><EFBFBD>
4. С<><D0A1><EFBFBD><EFBFBD>OTA<54><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-f -p <20><>ѡһ
aw_upgrade_process.sh -f <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD>ں˷<DABA><CBB7><EFBFBD><EFBFBD><EFBFBD>rootfs<66><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>extend<6E><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
aw_upgrade_process.sh -p <20><><EFBFBD><EFBFBD>Ӧ<EFBFBD>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD>extend<6E><64><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ע<><D7A2><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>aw_upgrade_normal.sh<73><68><EFBFBD><EFBFBD>aw_upgrade_process.sh
<20><>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>: -l<><6C>-d -u, -n
a<><61><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD>flash<73><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>ñ<EFBFBD><C3B1>ؾ<EFBFBD><D8BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ramdisk_sys.tar.gz<67><7A>target_sys.tar.gz<67><7A>usr_sys.tar.gz<67><7A><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>/mnt/UDISK/misc-upgrade<64>У<EFBFBD><D0A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD><EFBFBD><EFBFBD><EEA3AC><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڼ<EFBFBD><DABC><EFBFBD><EFBFBD><EFBFBD><E7A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҳ<EFBFBD><D2B2><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
-l arg<72><67><EFBFBD><EFBFBD>·<EFBFBD><C2B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20>磺aw_upgrade_process.sh -p(-f) -l /mnt/UDISK/misc-upgrade (ע<><D7A2>mntǰ<74>ĸ<EFBFBD>Ŀ¼"/"<22><><EFBFBD>ô<EFBFBD><C3B4>ϣ<EFBFBD>misc-upgrade<64><65><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>"/")
<20><>-l<><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-d<><64>-u<><75>-n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD><D0A7>ʹ<EFBFBD><CAB9>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
b<><62><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>flash<73><68><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>-l<><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󣬻<EFBFBD><F3A3ACBB><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>س<EFBFBD><D8B3><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD>񣨼<EFBFBD><F1A3A8BC><EFBFBD>5<EFBFBD><35>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
-d arg -u arg<72><67>ͬʱʹ<CAB1>ã<EFBFBD>-d <20><><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>pingͨ<67><CDA8>OTA<54><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD>ַ<EFBFBD><D6B7>-u <20><><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ص<EFBFBD>ַ
-n һЩСddr<64>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD>20m<30><6D><EFBFBD>µķ<C2B5><C4B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>shell<6C><6C>ֱ<EFBFBD><D6B1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ز<EFBFBD>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>4<EFBFBD><34>img<6D>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E8B1B8><EFBFBD>غ<EFBFBD><D8BA><EFBFBD><EFBFBD><EFBFBD>Ҫtar<61><72>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>ʹ<EFBFBD>á<EFBFBD>
<20>磺aw_upgrade_process -f -d 192.168.1.140 -u http://192.168.1.140/
<20><><EFBFBD><EFBFBD>shell<6C><6C><EFBFBD><EFBFBD>ping -d <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ping 192.168.1.140<EFBFBD><EFBFBD><EFBFBD><EFBFBD>pingͨ<EFBFBD><EFBFBD><EFBFBD>󣬻<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ<EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>أ<EFBFBD>
<20><>-n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
http://192.168.1.140/ramdisk_sys.tar.gz
http://192.168.1.140/target_sys.tar.gz
http://192.168.1.140/usr_sys.tar.gz
<20><>-n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
http://192.168.1.140/boot_initramfs.img
http://192.168.1.140/boot.img
http://192.168.1.140/rootfs.img
http://192.168.1.140/usr.img
ʹ<><CAB9>-n<><6E><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵľ<CFB5><C4BE><EFBFBD><EFBFBD>ǣ<EFBFBD>boot_initramfs.img, boot.img, rootfs.img, usr.img
<20><>ʹ<EFBFBD><CAB9>-n<><6E><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵľ<CFB5><C4BE><EFBFBD><EFBFBD>ǣ<EFBFBD>ramdisk_sys.tar.gz, target_sys.tar.gz, usr_sys.tar.gz
5. <20>ű<EFBFBD><C5B1>ӿ<EFBFBD>˵<EFBFBD><CBB5><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>flash<73>ķ<EFBFBD><C4B7><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>пռ<D0BF><D5BC><EFBFBD><E6B4A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ram<61>У<EFBFBD><D0A3>ϵ<EFBFBD><CFB5>ͻᶪʧ<E1B6AA><CAA7>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̶ϵ磬<CFB5><E7A3AC>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ؾ<EFBFBD><D8BE><EFBFBD><EFBFBD><EFBFBD>
aw_upgrade_vendor.sh<73><68><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD>ֵĹ<D6B5><C4B9>ӣ<EFBFBD>SDK<44><4B>ֻ<EFBFBD>Ǹ<EFBFBD>demo<6D><6F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸ġ<DEB8>
ʵ<><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߼<EFBFBD>
check_network_vendor(){
return 0 <20><><EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD><EFBFBD><EFBFBD><E7A3BA><EFBFBD><EFBFBD>pingͨOTA<54><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
return 1 <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
}
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EABEB5><EFBFBD><EFBFBD> $1<><31>ramdisk_sys.tar.gz $2<><32>/tmp
download_image_vendor(){
# $1 image name $2 DIR $@ others
rm -rf $2/$1
echo "wget $ADDR/$1"
wget $ADDR/$1 -P $2
}
<20><>ʼ<EFBFBD><CABC>д<EFBFBD><D0B4><EFBFBD><EFBFBD>״̬<D7B4><CCAC>
aw_upgrade_process.sh -p <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>÷<EFBFBD><C3B7><EFBFBD><EFBFBD><EFBFBD>ģʽ<C4A3>£<EFBFBD><C2A3><EFBFBD><EFBFBD><EFBFBD>0<EFBFBD><30>ʼд<CABC><D0B4><EFBFBD><EFBFBD> 1<><31>д<EFBFBD><D0B4><EFBFBD><EFBFBD>
aw_upgrade_process.sh -f <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
upgrade_start_vendor(){
# $1 mode: upgrade_pre,boot-recovery,upgrade_post
#return 0 -> start upgrade; 1 -> no upgrade
#reutrn value only work in nornal mode
#nornal mode: $NORMAL_MODE
echo upgrade_start_vendor $1
return 0
}
д<><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
upgrade_finish_vendor(){
#set version or others
reboot -f
}
-f (-n)<29><><EFBFBD><EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD>
check_network_vendor ->
upgrade_start_vendor ->
download_image_vendor (ramdisk_sys.tar.gz, -n Ϊ boot_initramfs.img)->
<20>ڲ<EFBFBD><DAB2><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߼<EFBFBD><DFBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD>ʹ<EFBFBD>þ<EFBFBD><C3BE><EFBFBD>ռ<EFBFBD><D5BC><EFBFBD>ڴ棩 ->
download_image_vendor(target_sys.tar.gz, -n Ϊ boot.img rootfs.img) ->
<20>ڲ<EFBFBD><DAB2><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߼<EFBFBD><DFBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD>ʹ<EFBFBD>þ<EFBFBD><C3BE><EFBFBD>ռ<EFBFBD><D5BC><EFBFBD>ڴ棩 ->
download_image_vendor(usr_sys.tar.gz, -n Ϊ usr.img) ->
<20>ڲ<EFBFBD><DAB2><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߼<EFBFBD><DFBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD>ʹ<EFBFBD>þ<EFBFBD><C3BE><EFBFBD>ռ<EFBFBD><D5BC><EFBFBD>ڴ棩 ->
upgrade_finish_vendor
-p<><70><EFBFBD><EFBFBD>˳<EFBFBD><CBB3>
check_network_vendor ->
download_image_vendor (usr_sys.tar.gz) ->
upgrade_start_vendor ->
<20><><EFBFBD><EFBFBD><E2B7B5>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>д ->
upgrade_finish_vendor
6. <20><><EFBFBD><EFBFBD>ϵͳ״̬<D7B4><CCAC>д
<20><><EFBFBD>ص<EFBFBD><D8B5><EFBFBD>Ϣ<EFBFBD><EFBFBD><E6B4A2>misc<73><63><EFBFBD><EFBFBD><EFBFBD><EFBFBD>OTA<54><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><> read_misc [command] [status] [version]
command <20><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳ״̬<D7B4><CCAC>shell<6C>ű<EFBFBD><C5B1><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>ã<EFBFBD>
status <20><><EFBFBD><EFBFBD>ʹ<EFBFBD>ã<EFBFBD><C3A3><EFBFBD>ʾ<EFBFBD>û<EFBFBD><C3BB>Զ<EFBFBD><D4B6><EFBFBD>״̬
version <20><><EFBFBD><EFBFBD>ʹ<EFBFBD>ã<EFBFBD><C3A3><EFBFBD>ʾ<EFBFBD>û<EFBFBD><C3BB>Զ<EFBFBD><D4B6><EFBFBD>״̬
д write_misc [ -c command ] [ -s status ] [ -v version ]
-c <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>޸ģ<DEB8>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD>aw-upgrade shell<6C>޸<EFBFBD>
-s -v <20>Զ<EFBFBD><D4B6><EFBFBD>ʹ<EFBFBD><CAB9>