-
-
Save hyphop/5bbfe75b0d0a2e9a7d2fa5cad891d3ea to your computer and use it in GitHub Desktop.
#!/bin/sh | |
set -ex | |
cat <<EOF | |
# USAGE | |
curl RAW_URL | sh -s - | |
wget http://192.168.1.111:8080/dl/install.sh -O- | sh -s - | |
# Links | |
https://gist.github.com/hyphop/5bbfe75b0d0a2e9a7d2fa5cad891d3ea | |
EOF | |
VER=0.01 | |
GET=${GET:-$(which curl)} | |
GET=${GET:-$(which wget)} | |
GET=${GET:-busybox wget} | |
#IMAGE=${IMAGE:-http://192.168.1.111:8080/dl/vim4-android-11-64bit-v241211.raw.img.xz} | |
IMAGE=${IMAGE:-http://dl.khadas.com/products/oowow/images/vim4/android-11/vim4-android-11-64bit-v241211.raw.img.xz} | |
IMG=/mnt/$(basename "$IMAGE") | |
DST=${DST:-/dev/mmcblk0} | |
echo "[$VER] Install $IMAGE to $DST" | |
[ -s "$IMG.md5sum" ] || { | |
case $GET in | |
*wget*) wget "$IMAGE" -O "$IMG" ;; | |
*curl*) curl "$IMAGE" -jkl -o "$IMG" ;; | |
esac | |
md5sum "$IMG" > "$IMG.md5sum" | |
} | |
for b in /dev/mmcblk0boot*; do | |
[ -b "$b" ] || continue | |
echo 0 > /sys/block/${b#*/}/force_ro | |
dd bs=1M count=1 if=/dev/zero of=$b | |
done | |
[ -s "$IMG.done" ] || { | |
XZ=${XZ:-$(which pixz)} | |
XZ=${XZ:-$(which xz)} | |
XZ=${XZ:-busybox xz} | |
case $IMG in | |
*.xz) | |
case $XZ in | |
*pixz*) $XZ -p4 -dc -i "$IMG" -o $DST ;; | |
*) $XZ -dc "$IMG" > $DST ;; | |
esac | |
;; | |
*.gz) gzip -dc "$IMG" > $DST ;; | |
*.img) dd if="$IMG" bs=1M of=$DST ;; | |
esac | |
sync | |
date > "$IMG.done" | |
} |
amlburn vim4-android-11-64bit-v241211.img
Burning image 'vim4-android-11-64bit-v241211.img' for 'VIM4' to eMMC...
next try index 3, current opt arg vim4-android-11-64bit-v241211.img
MSG[TLS]pkg path vim4-android-11-64bit-v241211.img
MSG[TLS]exe run path:/mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl
MSG[FLW]Aml_flow_init version V1.1-trunk Nov 1 2019!
MSG[FLW]Tooltype 3
DBG[FLW]ok in load lib AmlImagePack.so
MSG[FLW]OK leave Aml_flow_init
ERR[FLW]f(lua_res_release)L134:lua_res_release!
[Msg]Image package version 0x2
MSG[FLW]open img ok
MSG[FLW]dll modulePath /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow
MSG[FLW]Read usb_flow.aml with sz 188400
MSG[FLW]plug[0] add loader[usb_flow_dnl]
MSG[FLW]plug[0] add loader[aml_mod_imgdec]
MSG[FLW]plug[0] add loader[aml_mod_util]
MSG[FLW]plug[0] add loader[aml_mod_key_burn]
MSG[FLW]plug[0] add loader[aml_mod_tool_apis]
MSG[FLW]plug[0] add loader[aml_mod_fastboot_dev]
MSG[FLW]plug[0] add loader[aml_mod_key_init]
MSG[FLW]plug[0] add loader[usb_flow_image_load]
MSG[FLW]plug[0] add loader[aml_mod_worldcup_dev]
MSG[FLW]plug[0] add loader[usb_flow_worldcup]
MSG[FLW]plug[0] add loader[json]
MSG[FLW]Decrypt and load lua flow ok
MSG[FLW]dll modulePath /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow
MSG[FLW]mod run time path /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow
package.path= /usr/local/share/lua/5.3/?.lua;/usr/local/share/lua/5.3/?/init.lua;/usr/local/lib/lua/5.3/?.lua;/usr/local/lib/lua/5.3/?/init.lua;./?.lua;./?/init.lua
package.cpath= /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow/?.so;/usr/local/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/loadall.so;./?.so;/usr/local/lib/lua/5.3/lib?53.so;./lib?53.so
MSG[AUL]libInstallPath=/mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow
DBG[AUL]ok in load lib /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow/AmlImagePack.so
DBG[AUL]ok in load lib /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow/libamlfastboot.so
[FLW]LMsg[ImgLoad]--[Trunk]flow V2.7 version 0b4a88e-clean at Tue Mar 16 18:46:20 CST 2021
[FLW]LMsg[ImgLoad]imgPath[vim4-android-11-64bit-v241211.img]
DBG[AUL]to open [vim4-android-11-64bit-v241211.img]
[Msg]Image package version 0x2
MSG[AUL]OK in open pkg(vim4-android-11-64bit-v241211.img)
LMsg[Imgdec]item[conf,platform] sz 28, buf cap 28
LMsg[Imgdec]-----platform conf------
LMsg[Imgdec][soctype] T7
LMsg[Imgdec][Platform] 0x0812
LMsg[Imgdec]-----platform conf------
[FLW]LMsg[ImgLoad]maintype subtype FileFormat verify Cmd
[FLW]LMsg[ImgLoad]UBOOT aml_sdc_burn normal 3248640
[FLW]LMsg[ImgLoad]conf platform normal 28
[FLW]LMsg[ImgLoad]dtb meson1 normal 258048
[FLW]LMsg[ImgLoad]USB UBOOT normal 3248128
[FLW]LMsg[ImgLoad]USB DDR normal 3248128
[FLW]LMsg[ImgLoad]PARTITION dtbo_a normal 2097152 verify sha1sum a9e7259ada801a2dfc47c398d30d49721de423dc
[FLW]LMsg[ImgLoad]PARTITION odm_ext_a sparse 5673036 verify sha1sum e357c1fefb12cd6cd939d05ee21dd49dbc887477
[FLW]LMsg[ImgLoad]PARTITION oem_b normal 33554432 verify sha1sum 35148ee998aa7efc7dc5c6840d0a7cb0df734cff
[FLW]LMsg[ImgLoad]PARTITION vendor_boot_a normal 25165824 verify sha1sum e1206144760c21619f8d2b8f2a2710f9d2c1ce89
[FLW]LMsg[ImgLoad]PARTITION vbmeta_system_a normal 4096 verify sha1sum e738421145bbe7e700e4f4c0fd886f2bb81ab354
[FLW]LMsg[ImgLoad]PARTITION custom sparse 5943600 verify sha1sum 8b87a3ec17abf4ca33b3eba013115b78b8c5d8fc
[FLW]LMsg[ImgLoad]PARTITION vbmeta_a normal 8192 verify sha1sum be964a05205c8402666b18f63dfe47b9cac8bd9a
[FLW]LMsg[ImgLoad]PARTITION logo normal 915184 verify sha1sum 52afda3f108f3d7d6c5ce3c87405d0a3b2a08a4e
[FLW]LMsg[ImgLoad]PARTITION super sparse 2011879296 verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63
[FLW]LMsg[ImgLoad]PARTITION bootloader normal 3248128 verify sha1sum de9102cf1900fe7dcb74f50d17337605f13a45df
[FLW]LMsg[ImgLoad]PARTITION oem_a normal 33554432 verify sha1sum 35148ee998aa7efc7dc5c6840d0a7cb0df734cff
[FLW]LMsg[ImgLoad]PARTITION aml_dtb normal 258048 verify sha1sum 5532d6843acc4457649c696aaee9a98e617c8d8c
[FLW]LMsg[ImgLoad]PARTITION boot_a normal 67108864 verify sha1sum 456a8d81be8ee9a26246dfd494b282df6e021fe8
[FLW]LMsg[ImgLoad]ini aml_sdc_burn normal 602
[FLW]LMsg[ImgLoad]aml usb_flow normal 188400
[FLW]LMsg[ImgLoad]end parse image items
[FLW]LMsg[ImgLoad]Use extern key module
[FLW]LMsg[ImgLoad]internal key module init called
[FLW]LMsg[ImgLoad]use external key_provider_init xx
[FLW]LMsg[ImgLoad]use external aml_key
[FLW]LMsg[ImgLoad]Supported usb type nil
[FLW]LMsg[ImgLoad]json cfg /tmp/lua_1nKqCe
[FLW]LMsg[ImgLoad]Load jason OK
[FLW]LMsg[ImgLoad]Save ltype to jason OK
DBG[FLW]pcall ret true, errcode 0
MSG[FLW]imgCfgPath /tmp/lua_1nKqCe
MSG[TLS]Waiting for Amlogic DNL device ANY
MSG[TLS]Update path for existed dev
MSG[TLS]serial not specified, assign to 9099816c03120b1000000000
MSG[TLS]cb: devicePath /dev/bus/usb/007/091
MSG[FLW]cDevType dnl
MSG[TLS]Get para ox0x1c3da678
MSG[FLW]device para 0x0x1c3da678
MSG[FLW]CREATE state for[9099816c03120b1000000000]
MSG[FLW]plug[0] add loader[usb_flow_dnl]
MSG[FLW]plug[0] add loader[aml_mod_imgdec]
MSG[FLW]plug[0] add loader[aml_mod_util]
MSG[FLW]plug[0] add loader[aml_mod_key_burn]
MSG[FLW]plug[0] add loader[aml_mod_tool_apis]
MSG[FLW]plug[0] add loader[aml_mod_fastboot_dev]
MSG[FLW]plug[0] add loader[aml_mod_key_init]
MSG[FLW]plug[0] add loader[usb_flow_image_load]
MSG[FLW]plug[0] add loader[aml_mod_worldcup_dev]
MSG[FLW]plug[0] add loader[usb_flow_worldcup]
MSG[FLW]plug[0] add loader[json]
MSG[FLW]Decrypt and load lua flow ok
MSG[FLW]dll modulePath /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow
DBG[FLW]to call usb_flow_dnl.lua
package.path= /usr/local/share/lua/5.3/?.lua;/usr/local/share/lua/5.3/?/init.lua;/usr/local/lib/lua/5.3/?.lua;/usr/local/lib/lua/5.3/?/init.lua;./?.lua;./?/init.lua
package.cpath= /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow/?.so;/usr/local/lib/lua/5.3/?.so;/usr/local/lib/lua/5.3/loadall.so;./?.so;/usr/local/lib/lua/5.3/lib?53.so;./lib?53.so
MSG[AUL]libInstallPath=/mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow
DBG[AUL]ok in load lib /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow/AmlImagePack.so
LMsg[usbFlw]imgCfgPath /tmp/lua_1nKqCe
LMsg[usbFlw]get img cfg from json file /tmp/lua_1nKqCe
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]modUsb function: 0x1c46ac60
DBG[AUL]p1 is 1, p2 is 2
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]Load mod dnl ok
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]to open img["vim4-android-11-64bit-v241211.img"]
DBG[AUL]to open [vim4-android-11-64bit-v241211.img]
[Msg]Image package version 0x2
MSG[AUL]OK in open pkg(vim4-android-11-64bit-v241211.img)
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]device path [/dev/bus/usb/007/091]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]portXY=[[9099816c03120b1000000000]]
DBG[AUL]To open dev: /dev/bus/usb/007/091
MSG[FB]busnum 7, devnum 91
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]Use extern key module
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]key module loaded
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]identifyHost 6-0-0-0-0-0-0-15
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]soctype is 0x36,T7
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]downloadsize len 7, 0x3F800
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]0x812 download bl2 okay!
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]ready for bl2_boot!
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]wait T7 bl2!
MSG[TLS][9099816c03120b1000000000]burn disconnect
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]^^OK in [romboot] flow
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]status,ret,errcode (true,true, 0x00000000)
DBG[FLW]pcall ret true, errcode 0
DBG[FLW]END call usb_flow_dnl.lua, errcode 0
MSG[TLS]Waiting for DNL[9099816c03120b1000000000] with timeout 8
MSG[TLS]BURN_STAGE_BURNING: skip non-added 9099816c03120b1000000000
Fail in monitor_cb_4_DNL
MSG[TLS]BURN_STAGE_BURNING: skip non-added 9099816c03120b1000000000
Fail in monitor_cb_4_DNL
MSG[TLS]Added device 9099816c03120b1000000000
MSG[TLS]serial 9099816c03120b1000000000 found, update devicePath to /dev/bus/usb/007/092
MSG[TLS]cb: devicePath /dev/bus/usb/007/092
MSG[FLW]cDevType dnl
MSG[TLS]Get para ox0x1c3da678
MSG[FLW]device para 0x0x1c3da678
MSG[FLW]dll modulePath /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow
DBG[FLW]to call usb_flow_dnl.lua
LMsg[usbFlw]imgCfgPath /tmp/lua_1nKqCe
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]to open img["vim4-android-11-64bit-v241211.img"]
DBG[AUL]to open [vim4-android-11-64bit-v241211.img]
[Msg]Image package version 0x2
MSG[AUL]OK in open pkg(vim4-android-11-64bit-v241211.img)
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]device path [/dev/bus/usb/007/092]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]portXY=[[9099816c03120b1000000000]]
DBG[AUL]To open dev: /dev/bus/usb/007/092
MSG[FB]busnum 7, devnum 92
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]identifyHost 6-1-0-8-0-0-0-49
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]bl2/bl2e identifyHost 6-1-0-8-0-0-0-49
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]socFamily nil, package id 1
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]info4_reg0 0x0000030f
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cbw[sequence 00, imgSize 0x11000, fileOffset 0x42000]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]bl2boot need wait sometime and continue next loop
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]bl2 identifyHost after wait: 6-1-0-8-0-0-0-49
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cbw[sequence 02, imgSize 0x11000, fileOffset 0x53000]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]bl2_boot OK, wait new device plug-in^^
MSG[TLS][9099816c03120b1000000000]burn disconnect
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]^^OK in [spl] flow
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]status,ret,errcode (true,true, 0x00000000)
DBG[FLW]pcall ret true, errcode 0
DBG[FLW]END call usb_flow_dnl.lua, errcode 0
MSG[TLS]Waiting for DNL[9099816c03120b1000000000] with timeout 8
MSG[TLS]BURN_STAGE_BURNING: skip non-added 9099816c03120b1000000000
Fail in monitor_cb_4_DNL
MSG[TLS]BURN_STAGE_BURNING: skip non-added 9099816c03120b1000000000
Fail in monitor_cb_4_DNL
MSG[TLS]Added device 9099816c03120b1000000000
MSG[TLS]serial 9099816c03120b1000000000 found, update devicePath to /dev/bus/usb/007/093
MSG[TLS]cb: devicePath /dev/bus/usb/007/093
MSG[FLW]cDevType dnl
MSG[TLS]Get para ox0x1c3da678
MSG[FLW]device para 0x0x1c3da678
MSG[FLW]dll modulePath /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow
DBG[FLW]to call usb_flow_dnl.lua
LMsg[usbFlw]imgCfgPath /tmp/lua_1nKqCe
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]to open img["vim4-android-11-64bit-v241211.img"]
DBG[AUL]to open [vim4-android-11-64bit-v241211.img]
[Msg]Image package version 0x2
MSG[AUL]OK in open pkg(vim4-android-11-64bit-v241211.img)
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]device path [/dev/bus/usb/007/093]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]portXY=[[9099816c03120b1000000000]]
DBG[AUL]To open dev: /dev/bus/usb/007/093
MSG[FB]busnum 7, devnum 93
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]identifyHost 6-1-0-12-0-0-0-15
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]bl2/bl2e identifyHost 6-1-0-12-0-0-0-15
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cbw[sequence 00, imgSize 0x8000, fileOffset 0xa4000]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cbw[sequence 01, imgSize 0x26c260, fileOffset 0xac000]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]bl2_boot OK, wait new device plug-in^^
MSG[TLS][9099816c03120b1000000000]burn disconnect
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]^^OK in [bl2e] flow
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]status,ret,errcode (true,true, 0x00000000)
DBG[FLW]pcall ret true, errcode 0
DBG[FLW]END call usb_flow_dnl.lua, errcode 0
MSG[TLS]Waiting for DNL[9099816c03120b1000000000] with timeout 8
MSG[TLS]BURN_STAGE_BURNING: skip non-added 9099816c03120b1000000000
Fail in monitor_cb_4_DNL
MSG[TLS]BURN_STAGE_BURNING: skip non-added 9099816c03120b1000000000
Fail in monitor_cb_4_DNL
MSG[TLS]BURN_STAGE_BURNING: skip non-added 9099816c03120b1000000000
Fail in monitor_cb_4_DNL
MSG[TLS]Added device 9099816c03120b1000000000
MSG[TLS]serial 9099816c03120b1000000000 found, update devicePath to /dev/bus/usb/007/094
MSG[TLS]cb: devicePath /dev/bus/usb/007/094
MSG[FLW]cDevType dnl
MSG[TLS]Get para ox0x1c3da678
MSG[FLW]device para 0x0x1c3da678
MSG[FLW]dll modulePath /mnt/local/universe/home/master/khadas/utils/aml-flash-tool/tools/adnl/./usb_flow
DBG[FLW]to call usb_flow_dnl.lua
LMsg[usbFlw]imgCfgPath /tmp/lua_1nKqCe
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]to open img["vim4-android-11-64bit-v241211.img"]
DBG[AUL]to open [vim4-android-11-64bit-v241211.img]
[Msg]Image package version 0x2
MSG[AUL]OK in open pkg(vim4-android-11-64bit-v241211.img)
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]device path [/dev/bus/usb/007/094]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]portXY=[[9099816c03120b1000000000]]
DBG[AUL]To open dev: /dev/bus/usb/007/094
MSG[FB]busnum 7, devnum 94
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]identifyHost 6-0-0-16-0-0-0-0
DBG[FLW]UI_Get_Setting
DBG[FLW]UI_Get_Setting
LMsg[ToolApi]eraseCode, eraseKey, eraseBootloader, reboot, eraseDdrFastboot: 1, 0, 1, 0, nil
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]lua state from spl
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]Sleep to improve compatible
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem setvar burnsteps 0xc0041030]
MSG[TLS]UI:Downloading_dtb
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x3f000 normal mem dtb]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem setvar burnsteps 0xc0041031]
MSG[TLS]UI:Flash_init
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem disk_initial 1]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]toolType 3
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem setvar burnsteps 0xc0041032]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]totalPartImgSz 0x827fbfec
MSG[TLS]UI:Downloading_boot_a
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x4000000 normal store boot_a]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_boot_a
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum 456a8d81be8ee9a26246dfd494b282df6e021fe8]
MSG[TLS]UI:Downloading__aml_dtb00] %7..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x3f000 normal store aml_dtb]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying__aml_dtb
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum 5532d6843acc4457649c696aaee9a98e617c8d8c]
MSG[TLS]UI:Downloading_oem_a00000] %7..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x2000000 normal store oem_a]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_oem_a
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum 35148ee998aa7efc7dc5c6840d0a7cb0df734cff]
MSG[TLS]UI:Downloading_dtbo_a0000] %9..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x200000 normal store dtbo_a]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_dtbo_a
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum a9e7259ada801a2dfc47c398d30d49721de423dc]
MSG[TLS]UI:Downloading_vendor_boot_a9..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x1800000 normal store vendor_boot_a]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_vendor_boot_a
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum e1206144760c21619f8d2b8f2a2710f9d2c1ce89]
MSG[TLS]UI:Downloading_logo000000] %10..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0xdf6f0 normal store logo]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_logo
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum 52afda3f108f3d7d6c5ce3c87405d0a3b2a08a4e]
MSG[TLS]UI:Downloading_super00000] %10..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x77ead780 sparse store super]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_super
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0012 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0017 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0020 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0023 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0031 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0047 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0050 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0053 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0056 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0064 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0074 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0083 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0086 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0108 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0111 / 0138 Chunks
MSG[TLS][9099816c03120b1000000000]LMsgusbFlw 0131 / 0138 Chunks
MSG[TLS]UI:Downloading_custom0000] %96..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x5ab130 sparse store custom]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_custom
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum 8b87a3ec17abf4ca33b3eba013115b78b8c5d8fc]
MSG[TLS]UI:Downloading_oem_b00000] %97..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x2000000 normal store oem_b]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_oem_b
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum 35148ee998aa7efc7dc5c6840d0a7cb0df734cff]
MSG[TLS]UI:Downloading_odm_ext_a0] %98..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x56904c sparse store odm_ext_a]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_odm_ext_a
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum e357c1fefb12cd6cd939d05ee21dd49dbc887477]
MSG[TLS]UI:Downloading_vbmeta_a00] %98..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x2000 normal store vbmeta_a]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_vbmeta_a
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum be964a05205c8402666b18f63dfe47b9cac8bd9a]
MSG[TLS]UI:Downloading_vbmeta_system_a..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x1000 normal store vbmeta_system_a]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_vbmeta_system_a
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum e738421145bbe7e700e4f4c0fd886f2bb81ab354]
MSG[TLS]UI:Downloading_bootloader] %98..
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem mwrite 0x319000 normal store bootloader]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw][MWrite] finsihed
MSG[TLS]UI:Verifying_bootloader
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem verify sha1sum de9102cf1900fe7dcb74f50d17337605f13a45df]
MSG[TLS][9099816c03120b1000000000]LMsg[usbFlw]cmd[oem save_setting]
MSG[TLS][9099816c03120b1000000000]burn successful^^
Time elapsed: 3 minute(s).
Done!
Wed Jul 23 03:28:13 PM +07 2025
serial-vim4-serial-amlburn-android-11-64bit.log: text/plain
T7:BL:b9e760;ID:9099816C03120B10;FEAT:30F:1FFF0000:B002F:1;POC:8B;RCY:0;OVD:0;DFU:0;SD:2002;SPINOR:0;RD-0:0;CHK:1;RD-1:0;CHK:1;eMMC:800;USB:ADFUT7:BL:b9e760;ID:9099816C03120B10;FEAT:30F:1FFF0000:B002F:1;POC:8B;RCY:0;OVD:0;DFU:1;USB:0;RD-00:0;:0;CHK:0;SCS:0;
Bl2_early_platform_setup: indicates bl2ex flow!
use efusw adjust vddee voltage, set vol 0.83v
0005000dfe05e000
OTP_LIC00 : 0f0300000000ff1f2f000b0000000000
OTP_LIC10 : 008207000001fc000c00001000000300
OTP_LIC20 : ffffffbfffff0700ff80008003000000
OTP_LIC30 : 00000002010000008f03000203000000
TE: 21328254
BL2 Built : 13:42:24, Oct 17 2023. t7 RC2_V19_Mandatary gd0b36ae - jenkins@walle02-sh
Board ID = 5
Set sys clock to 24Mhz
syspll is 1512Mhz. Locked
sys1pll is 1608Mhz. Locked
Set sys clock to 167Mhz
gp0pll is 0Mhz. Locked
bl2_platform_setup
boot area list:
1STBLOB0000000000040000
BL2E0004000000013000
BL2X0005300000011000
DDRFIP0006400000040000
DEVFIP000a400000300000
storage_usb_init !
derive RSPK OK
DDR driver_vesion: AML_S_PHY_T7_1_19 build time: Oct 17 2023 13:42:15
ddr id: 0
ddr clk to 2016MHz
ch0 clk 2016
ch1 clk 2016PIEI done
Cfg max: 2, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
ddr clk to 2016MHz
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
ch0 1D training succeed
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of Write leveling coarse delay
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
ch1 1D training succeed
Check phy result
INFO : End of initialization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : Training has run successfully!
R0_Rx=8 steps R0_Tx=10 steps Vref_Margin_R0=18 Dramvref_Margin_R0=20
R0_Rx=11 steps R0_Tx=10 steps Vref_Margin_R0=20 Dramvref_Margin_R0=22
soc_vref_reg_value 0x 00000021 00000023 00000022 00000021 00000021 00000022 00000024 00000021 00000023 00000022 00000022 00000023 00000023 00000023 00000023 00000022 00000020 00000021 00000022 00000020 00000022 00000020 00000022 00000021 00000021 00000020 00000020 00000021 00000021 00000023 00000022 00000021
mr8=00000011
dram_verdor_id=00000006
mr18=00000048
mr19=00000004 dram_vref_reg_value 0x 00000008
ch0 2D training succeed
Check phy result
INFO : End of initialization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : Training has run successfully!
R0_Rx=9 steps R0_Tx=10 steps Vref_Margin_R0=18 Dramvref_Margin_R0=20
R0_Rx=11 steps R0_Tx=10 steps Vref_Margin_R0=19 Dramvref_Margin_R0=21
soc_vref_reg_value 0x 0000001f 0000001e 0000001f 00000020 00000020 0000001f 00000020 0000001f 00000020 00000020 00000020 00000020 0000001f 0000001f 00000020 00000020 00000021 0000001f 00000020 00000021 0000001f 00000020 0000001e 00000021 00000021 0000001f 00000022 00000020 00000020 00000021 00000021 00000021
mr8=00000011
dram_verdor_id=00000006
mr18=00000048
mr19=00000004 dram_vref_reg_value 0x 00000008
ch1 2D training succeed
100bdlr_step_size ps== 459
100bdlr_step_size ps== 450
finnal_config_axi
finnal_config_axiset_cci_config:
cpu0_gic_init done
start ao cpu:
Wait AO...done.
debug_read..
SYSCTRL_CCI_CFG1==ffff3fff
SYSCTRL_CCI_CFG9==aaaaaaaa
SYSCTRL_NOC_CFG0==00000000
dram_size_config==10001000ap ao cmd ok
DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00044DDR size: 3584MB
DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00044DDR size: 3584MB
result report
non-sec scramble use random key
scramble use random key
ddr scramble enabled
INFO: bl2_load_bl2ex start!
INFO: load ...
Load: BL2E From: USB - 1.0 src: 00002000, dst: 00fffff0, size: 00011000
complete_block_request, total size:00011000
complete_block_request, total size:00000000
;
INFO: check ...
SHA CHK OK!
aml log : dump from buffer 01000000
30 7d e0 70 d8 45 e5 ca bb d9 57 e0 3a 65 3c c8
06 d3 f1 e4 e3 5c e5 d2 9a 38 6e 36 40 a3 02 8a
INFO: load ...
Load: BL2X From: USB - 1.0 src: 00000000, dst: 007ffff0, size: 00011000
complete_block_request, total size:00011000
complete_block_request, total size:00000000
;
INFO: check ...
SHA CHK OK!
aml log : dump from buffer 00800000
32 5f 1a 3f 44 69 8b 5a 5d dd 97 98 a4 b8 2c c9
7f 77 ed bd 66 2c 03 39 b7 f4 87 5a 42 11 3a e3
run into bl2e
info: get valid params from BL2 !
BL2E: do things as vendor specific ...
Hello world, now in BL2E
TE: 28244823
BL2E Built : 11:22:41, Dec 19 2022. t7 origin/master gdb1f6d0 - jenkins@walle02-sh
Start to do bl2e platform setup !
boot area list:
1STBLOB0000000000040000
BL2E0004000000013000
BL2X0005300000011000
DDRFIP0006400000040000
DEVFIP000a400000300000
aml log : BL2E load BL3X.....
TE: 28248268
usb load fip_hdr:000a4000 00008000
usb load fip header ok
usb load fip_dev:000ac000 0026c260
usb load fip dev ok
bl30 payload size: 0x00010260
bl30 memcpy
bl40 payload size: 0x00018470
bl31 payload size: 0x00040470
bl32 payload size: 0x00080470
bl33 memcpy
bl33 payload size: 0x00180260 offset: 0x000f4000
aml log : BL2E loading BL3X is done...!
boot bl2x
params to bl2x, address=0x0100d190
Hello, we are in BL2X world !
TE: 28924594
BL2X Built : 18:54:20, Sep 8 2022. t7 origin/master g73fa3d7 - jenkins@walle02-sh
bl2_platform_setup
INFO: get valid list_blobinfo, 0x0100d190
Info: get valid bl31 payload info, address= 0x00332000 size= 0x00040470
Info: bl31 image is now ready !
Info: get valid bl40 payload info, address= 0x00319000 size= 0x00018470
FEAT_DISABLE_SECURE_ENCLAVE: 1
bl2e_2 entry: 010000c0
run into bl31
NOTICE: BL31: v1.3(release):259b48703
NOTICE: BL31: Built : 05:06:00, Apr 23 2023. t7 origin/master g259b48703 - jenkins@walle02-sh
BL31:tsensor calibration: tsensor1 = 96000004
BL31:tsensor calibration: tsensor2 = 96000012
BL31:tsensor calibration: tsensor3 = 96000035
BL31:tsensor calibration: tsensor4 = 9600000b
BL31:tsensor calibration: tsensor5 = 96000047
BL31:tsensor calibration: tsensor6 = 96000028
[mhu]: mhu_init-v1
[mhu]: 0xfe007100, 0x12120210
[mhu]: 0xfe007104, 0x12121002
[mhu]: 0xfe00710c, 0xa0a0802
[mhu]: 0xfe007118, 0x12120210
[mhu]: 0xfe00711c, 0x12121002
[mhu]: 0xfe007120, 0x10101010
[mhu]: 0xfe007124, 0x10101010
[mhu]: 0xfe007020, 0x3
[mhu]: 0xfe007028, 0x10
[mhu]: 0xfe007024, 0x8
[mhu]: 0xfe00702c, 0x10
[mhu]: 0xfe007040, 0x9089
[mhu]: 0xfe007044, 0x0
[mhu]: 0xfe007048, 0x660
[mhu]: 0xfe00704c, 0x0
[mhu]: 0xfe007050, 0x90006
[mhu]: 0xfe007054, 0x0
[mhu]: 0xfe007058, 0x66000
[mhu]: 0xfe00705c, 0x0
[mhu]: mhu_init-v1 1230 done
DEVICE_MVN=0x0
[BL31]: id 0 1
[BL31]: id 1 1
[BL31]: id 2 1
[BL31]: id 3 1
[BL31]: id 4 1
[BL31]: id 5 1
[BL31]: id 6 1
[BL31]: id 7 0
[BL31]: id 8 1
[BL31]: id 9 1
[BL31]: id 10 0
[BL31]: id 11 0
[BL31]: id 12 1
[BL31]: id 13 1
[BL31]: id 14 1
[BL31]: id 15 0
[BL31]: id 16 1
[BL31]: id 17 1
[BL31]: id 18 1
[BL31]: id 19 1
[BL31]: id 20 0
[BL31]: id 21 0
[BL31]: id 22 0
[BL31]: id 23 1
[BL31]: id 24 1
[BL31]: id 25 1
[BL31]: id 26 1
[BL31]: id 27 1
[BL31]: id 28 1
[BL31]: id 29 1
[BL31]: id 30 1
[BL31]: id 31 1
[BL31]: id 32 1
[BL31]: id 33 0
[BL31]: id 34 0
[BL31]: id 35 0
[BL31]: id 36 0
[BL31]: id 37 0
[BL31]: id 38 0
[BL31]: id 39 1
[BL31]: id 40 0
[BL31]: id 41 1
[BL31]: id 42 1
[BL31]: id 43 1
[BL31]: id 44 1
[BL31]: id 45 1
[BL31]: id 46 1
[BL31]: id 47 1
[BL31]: id 48 1
[BL31]: id 49 1
[BL31]: id 50 1
[BL31]: id 51 1
NOTICE: BL31: T7 normal boot!
NOTICE: BL31: BL33 decompress pass
E/TC:0 00 INFO: BL3-2: ATOS-V3.8.0-f5377ffbe (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 Thu 24 Nov 2022 07:37:05 AM UTC arm
E/TC:0 00 INFO: BL3-2: secure time TEE
E/TC:0 00 INFO: BL3-2: Chip: T7 Rev: C (36:C - 0:2)
Hello world again, bl2e meet you guys!
valid entry info for bl33, pc = 0x00000000
======== smc start aocpu ========
Starting AOCPU FreeRTOS...
AOCPU image version='(HEAD 43d72a1a409f3ef38b1e0b000485061f59969cac 18:31:12 2024-12-11'
AOCPU_IRQ_SEL=0x0
AOCPU_IRQ_SEL=0x0
AOCPU_IRQ_SEL=0x0
AOCPU_IRQ_SEL=0x0
[AOCPU]: mailbox init start
reg idx=0 cmd=6 handler=f7025228
reg idx=1 cmd=7 handler=f7025212
[AOCPU]: mailbox init end
[AOCPU Led]: leds state init!
reg idx=2 cmd=f7 handler=f7027a22
[AOCPU Led]: Starting leds task ...
Starting timer ...
reg idx=3 cmd=b4 handler=f702216e
reg idx=4 cmd=b5 handler=f702210a
reg idx=5 cmd=b6 handler=f7021c64
reg idx=6 cmd=bb handler=f7021c24
reg idx=7 cmd=bc handler=f7021c44
reg idx=8 cmd=11 handler=f7026b66
reg idx=9 cmd=12 handler=f7026b88
reg idx=10 cmd=4 handler=f7025668
reg idx=11 cmd=30 handler=f7025632
reg idx=12 cmd=31 handler=f7025642
reg idx=13 cmd=40 handler=f7025646
reg idx=14 cmd=f9 handler=f70256a0
Starting task scheduler ...
boot bl33 !
env_init: Environment STORAGE init done (ret=-2)
U-Boot 2019.01-g43d72a1a40 (Dec 11 2024 - 18:31:05 +0800)
DRAM: 8 GiB
Relocation Offset is: df5fa000
Relocating to df5fa000, new gd at d95e9dc8, sp at d95e9db0
board init
watchdog disable
gpio: pin GPIOT_15 (gpio 106) value is 1
fusb302_init: Device ID: 0x91
CC connected in 1 as UFP
fusb302 detect chip.port_num = 0
NOTICE: reg_addr = fe02e028,reg_val = 4f524400!
PHY2=00000000fe03a020,phy-base=0xfe03e000
crg_udc_epcx_update_dqptr Cannot update dqptr for ep0
crg cn
crg_udc_epcx_update_dqptr Cannot update dqptr for ep0
cb_getvar: identify
OEM cmd[setvar burnsteps 0xc0041030]
[MSG]response[0][OKAY]
cb_getvar: secureboot
OEM cmd[mwrite 0x3f000 normal mem dtb]
[MSG]mem base 1000000
Flash 0x0003f000 Bytes normal img to mem:dtb at off 0x0
[MSG]response[0][OKAY]
[MSG]OK in Partition Image
OEM cmd[setvar burnsteps 0xc0041031]
[MSG]response[0][OKAY]
OEM cmd[disk_initial 1]
GUID Partition Table Header signature is wrong: 0xB5E4A5C98483B204 != 0x5452415020494645
Amlogic Multi-DTB tool
GZIP format, decompress...
Multi DTB detected.
Multi DTB tool version: v2.
Support 2 DTBS.
hlm cpu_id.chip_rev=0xc
checkhw aml_dt:
init board ddr size 200000000
hlm 11 cpu_id.chip_rev=0xc
init aml_dt to t7c_a311d2_vim4n
Setting bus to 6
Error reading the chip: -121
TP05 id=0xffffff87
Error reading the chip: -121
TP10 id=0xffffff87
hlm khadas_mipi_id=0
hlm panel_type=mipi_0
Setting bus to 6
Setting bus to 2
Error reading the chip: -121
khadas camera id=0x1
khadas_camera_id=1 id=1---is OS08A10 id=2---is IMX415
Found DTB for "t7c_a311d2_vim4n"
get_partition_from_dts() 232: ret 0
Amlogic Multi-DTB tool
Single DTB detected
parts: 26
00: frp0000000000200000 1
01: factory0000000000800000 11
02:vendor_boot_a0000000001800000 1
enable vendor_boot
03:vendor_boot_b0000000001800000 1
enable vendor_boot
04: tee0000000002000000 1
05: logo0000000000800000 1
06: misc0000000000200000 1
07: dtbo_a0000000000200000 1
08: dtbo_b0000000000200000 1
09: cri_data0000000000800000 2
10: param0000000001000000 2
11: custom0000000006400000 2
12: odm_ext_a0000000001000000 1
13: odm_ext_b0000000001000000 1
14: oem_a0000000002000000 1
15: oem_b0000000002000000 1
16: boot_a0000000004000000 1
set has_boot_slot = 1
17: boot_b0000000004000000 1
18: rsv0000000001000000 1
19: metadata0000000001000000 1
20: vbmeta_a0000000000200000 1
21: vbmeta_b0000000000200000 1
22:vbmeta_system_a0000000000200000 1
23:vbmeta_system_b0000000000200000 1
24: super0000000080000000 1
enable dynamic_partition
25: userdataffffffffffffffff 4
gpio: pin GPIOB_12 (gpio 12) value is 1
[meson_mmc_probe]sd: Controller probe success!
[meson_mmc_probe]emmc: Controller probe success!
emmc: resp timeout, cmd8, status=0x1cf2800
emmc: resp timeout, cmd55, status=0x1cf2800
store flag: 0, types: 1
emmc init success!
boot_device:1
boot_seq:0
boot_bakups:3
rebuid_id :5
ssp->boot_entry[0] offset:0x200, size:0x40000
cal_copy:0x1
align_size:0x1000
reserved_size:0x0
align_size2:4096
boot area list:
bl2 200 40000
emmc: tuning start:
emmc: best_win_start =0, best_win_size =4
GUID Partition Table Header signature is wrong: 0xED31668D204C4D40 != 0x5452415020494645
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
fill_ept_by_gpt: invalid gpt ***
eMMC/TSD partition table have been checked OK!
crc32_s:0x1577dad == storage crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == storage crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == storage crc_pattern:0x79f50f07!!!
emmc probe success
[MSG]eraseFlash 1, initFlag 3
Erased: bootloader OK
Part:reserved is skiped
Part:cache size is 0
Erased: env OK
Erased: frp OK
Part:factory is protected
Erased: vendor_boot_a OK
Erased: vendor_boot_b OK
Erased: tee OK
Erased: logo OK
Erased: misc OK
Erased: dtbo_a OK
Erased: dtbo_b OK
Erased: cri_data OK
Erased: param OK
Erased: custom OK
Erased: odm_ext_a OK
Erased: odm_ext_b OK
Erased: oem_a OK
Erased: oem_b OK
Erased: boot_a OK
Erased: boot_b OK
Erased: rsv OK
Erased: metadata OK
Erased: vbmeta_a OK
Erased: vbmeta_b OK
Erased: vbmeta_system_a OK
Erased: vbmeta_system_b OK
Erased: super OK
Erased: userdata OK
User partition erased: OK
blkcnt = 8192
boot0 partition erased: OK
blkcnt = 8192
boot1 partition erased: OK
[MSG]TO erase gpt for compatible
come to erase_gpt_part_table
erase_gpt_part_table: erase 'Primary GPT Header' (1 blks at 0x1)
erase_gpt_part_table: erase 'Backup GPT Header' (1 blks at 0x3a3dfff)
[MSG]to update dtb for compatible
dtb_write()-3076: valid 0
dtb_write()-3096: new stamp 0, checksum 0xeb465f35, version 1, magic A~D
renew partition table
Amlogic Multi-DTB tool
Single DTB detected
GUID Partition Table Header signature is wrong: 0x6700440083001400 != 0x5452415020494645
Amlogic Multi-DTB tool
Single DTB detected
get_partition_from_dts() 232: ret 0
Amlogic Multi-DTB tool
Single DTB detected
parts: 26
00: frp0000000000200000 1
01: factory0000000000800000 11
02:vendor_boot_a0000000001800000 1
enable vendor_boot
03:vendor_boot_b0000000001800000 1
enable vendor_boot
04: tee0000000002000000 1
05: logo0000000000800000 1
06: misc0000000000200000 1
07: dtbo_a0000000000200000 1
08: dtbo_b0000000000200000 1
09: cri_data0000000000800000 2
10: param0000000001000000 2
11: custom0000000006400000 2
12: odm_ext_a0000000001000000 1
13: odm_ext_b0000000001000000 1
14: oem_a0000000002000000 1
15: oem_b0000000002000000 1
16: boot_a0000000004000000 1
set has_boot_slot = 1
17: boot_b0000000004000000 1
18: rsv0000000001000000 1
19: metadata0000000001000000 1
20: vbmeta_a0000000000200000 1
21: vbmeta_b0000000000200000 1
22:vbmeta_system_a0000000000200000 1
23:vbmeta_system_b0000000000200000 1
24: super0000000080000000 1
enable dynamic_partition
25: userdataffffffffffffffff 4
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
fill_ept_by_gpt: invalid gpt ***
partition table success
[MSG]usb producing env_relocate
Loading Environment from STORAGE... *** Warning - bad CRC, using default environment
*** Warning - !env_storage: import failed, using default environment
Amlogic Multi-DTB tool
Single DTB detected
[MSG]response[0][OKAY]
OEM cmd[setvar burnsteps 0xc0041032]
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x2000 normal store vbmeta_a]
[MSG]flash LOGIC partCap 0x200000B
Flash 0x00002000 Bytes normal img to store:vbmeta_a at off 0x0
[MSG]response[0][OKAY]
[MSG]OK in Partition Image
OEM cmd[verify sha1sum be964a05205c8402666b18f63dfe47b9cac8bd9a]
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x2000000 normal store oem_a]
[MSG]flash LOGIC partCap 0x2000000B
Flash 0x02000000 Bytes normal img to store:oem_a at off 0x0
[MSG]response[0][OKAY]
Downloading %12Downloading %24Downloading %36Downloading %48Downloading %60Downloading %72Downloading %84Downloading %96[MSG]OK in Partition Image
OEM cmd[verify sha1sum 35148ee998aa7efc7dc5c6840d0a7cb0df734cff]
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x2000000 normal store oem_b]
[MSG]flash LOGIC partCap 0x2000000B
Flash 0x02000000 Bytes normal img to store:oem_b at off 0x0
[MSG]response[0][OKAY]
Downloading %12Downloading %24Downloading %36Downloading %48Downloading %60Downloading %72Downloading %84Downloading %96[MSG]OK in Partition Image
OEM cmd[verify sha1sum 35148ee998aa7efc7dc5c6840d0a7cb0df734cff]
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x77ead780 sparse store super]
[MSG]flash LOGIC partCap 0x80000000B
Flash 0x77ead780 Bytes sparse img to store:super at off 0x0
[MSG]response[0][OKAY]
[MSG]totalChunkNum 138, fileHeadSz 0x1c, chunkHeadSz 0xc, blk 0x1000
Downloading %1Downloading %2Downloading %3Downloading %4Downloading %5Downloading %6Downloading %7Downloading %8Downloading %9Downloading %10Downloading %11Downloading %12Downloading %13Downloading %14Downloading %15Downloading %16Downloading %17Downloading %18Downloading %19Downloading %20Downloading %21Downloading %22Downloading %23Downloading %24Downloading %25Downloading %26Downloading %27Downloading %28Downloading %29Downloading %30Downloading %31Downloading %32Downloading %33Downloading %34Downloading %35Downloading %36Downloading %37Downloading %38Downloading %39Downloading %40Downloading %41Downloading %42Downloading %43Downloading %44Downloading %45Downloading %46Downloading %47Downloading %48Downloading %49Downloading %50Downloading %51Downloading %52Downloading %53Downloading %54Downloading %55Downloading %56Downloading %57Downloading %58Downloading %59Downloading %60Downloading %61Downloading %62Downloading %63Downloading %64Downloading %65Downloading %66Downloading %67Downloading %68Downloading %69Downloading %70Downloading %71Downloading %72Downloading %73Downloading %74Downloading %75Downloading %76Downloading %77Downloading %78Downloading %79Downloading %80Downloading %81Downloading %82Downloading %83Downloading %84Downloading %85Downloading %86Downloading %87Downloading %88Downloading %89Downloading %90Downloading %91Downloading %92Downloading %93Downloading %94Downloading %95Downloading %96Downloading %97Downloading %98Downloading %99Downloading %100
[MSG]Finish sparse img
[MSG]OK in Partition Image
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
OEM cmd[verify sha1sum c224c08ebba8a2abdc70d7a9c03b4ed819044f63]
[MSG]verify end
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x5ab130 sparse store custom]
[MSG]flash LOGIC partCap 0x6400000B
Flash 0x005ab130 Bytes sparse img to store:custom at off 0x0
[MSG]response[0][OKAY]
[MSG]totalChunkNum 23, fileHeadSz 0x1c, chunkHeadSz 0xc, blk 0x1000
Downloading %98[MSG]Finish sparse img
[MSG]OK in Partition Image
OEM cmd[verify sha1sum 8b87a3ec17abf4ca33b3eba013115b78b8c5d8fc]
[MSG]verify end
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x3f000 normal store _aml_dtb]
the dtb partition size is:40000 byte
Flash 0x0003f000 Bytes normal img to store:_aml_dtb at off 0x0
[MSG]response[0][OKAY]
the dtb partition size is:40000 byte
Caution! Your devices Erase group is 0x400
The erase range would be change to 0x14000~0x143ff
512 blocks erased: OK
dtb_write()-3076: valid 2
dtb_write()-3096: new stamp 1, checksum 0xc33eff4b, version 1, magic A~D
renew partition table
Amlogic Multi-DTB tool
GZIP format, decompress...
Multi DTB detected.
Multi DTB tool version: v2.
Support 2 DTBS.
hlm cpu_id.chip_rev=0xc
checkhw aml_dt:
init board ddr size 200000000
hlm 11 cpu_id.chip_rev=0xc
init aml_dt to t7c_a311d2_vim4n
Setting bus to 6
Error reading the chip: -121
TP05 id=0xffffff87
Error reading the chip: -121
TP10 id=0xffffff87
hlm khadas_mipi_id=0
hlm panel_type=mipi_0
Setting bus to 6
Setting bus to 2
Error reading the chip: -121
khadas camera id=0x1
khadas_camera_id=1 id=1---is OS08A10 id=2---is IMX415
Found DTB for "t7c_a311d2_vim4n"
GUID Partition Table Header signature is wrong: 0xB5E4A5C98483B204 != 0x5452415020494645
Amlogic Multi-DTB tool
GZIP format, decompress...
Multi DTB detected.
Multi DTB tool version: v2.
Support 2 DTBS.
hlm cpu_id.chip_rev=0xc
checkhw aml_dt:t7c_a311d2_vim4n
Setting bus to 6
Error reading the chip: -121
TP05 id=0xffffff87
Error reading the chip: -121
TP10 id=0xffffff87
hlm khadas_mipi_id=0
hlm panel_type=mipi_0
Setting bus to 6
Setting bus to 2
Error reading the chip: -121
khadas camera id=0x1
khadas_camera_id=1 id=1---is OS08A10 id=2---is IMX415
Found DTB for "t7c_a311d2_vim4n"
get_partition_from_dts() 232: ret 0
Amlogic Multi-DTB tool
Single DTB detected
parts: 26
00: frp0000000000200000 1
01: factory0000000000800000 11
02:vendor_boot_a0000000001800000 1
enable vendor_boot
03:vendor_boot_b0000000001800000 1
enable vendor_boot
04: tee0000000002000000 1
05: logo0000000000800000 1
06: misc0000000000200000 1
07: dtbo_a0000000000200000 1
08: dtbo_b0000000000200000 1
09: cri_data0000000000800000 2
10: param0000000001000000 2
11: custom0000000006400000 2
12: odm_ext_a0000000001000000 1
13: odm_ext_b0000000001000000 1
14: oem_a0000000002000000 1
15: oem_b0000000002000000 1
16: boot_a0000000004000000 1
set has_boot_slot = 1
17: boot_b0000000004000000 1
18: rsv0000000001000000 1
19: metadata0000000001000000 1
20: vbmeta_a0000000000200000 1
21: vbmeta_b0000000000200000 1
22:vbmeta_system_a0000000000200000 1
23:vbmeta_system_b0000000000200000 1
24: super0000000080000000 1
enable dynamic_partition
25: userdataffffffffffffffff 4
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
fill_ept_by_gpt: invalid gpt ***
partition table success
[MSG]OK in Partition Image
OEM cmd[verify sha1sum 5532d6843acc4457649c696aaee9a98e617c8d8c]
the dtb partition size is:40000 byte
dtb_read_shortcut()-2873: short cut in...
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x1000 normal store vbmeta_system_a]
[MSG]flash LOGIC partCap 0x200000B
Flash 0x00001000 Bytes normal img to store:vbmeta_system_a at off 0x0
[MSG]response[0][OKAY]
[MSG]OK in Partition Image
OEM cmd[verify sha1sum e738421145bbe7e700e4f4c0fd886f2bb81ab354]
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x200000 normal store dtbo_a]
[MSG]flash LOGIC partCap 0x200000B
Flash 0x00200000 Bytes normal img to store:dtbo_a at off 0x0
[MSG]response[0][OKAY]
[MSG]OK in Partition Image
OEM cmd[verify sha1sum a9e7259ada801a2dfc47c398d30d49721de423dc]
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x1800000 normal store vendor_boot_a]
[MSG]flash LOGIC partCap 0x1800000B
Flash 0x01800000 Bytes normal img to store:vendor_boot_a at off 0x0
[MSG]response[0][OKAY]
Downloading %16Downloading %32Downloading %48Downloading %65Downloading %81Downloading %97[MSG]OK in Partition Image
OEM cmd[verify sha1sum e1206144760c21619f8d2b8f2a2710f9d2c1ce89]
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0xdf6f0 normal store logo]
[MSG]flash LOGIC partCap 0x800000B
Flash 0x000df6f0 Bytes normal img to store:logo at off 0x0
[MSG]response[0][OKAY]
[MSG]OK in Partition Image
OEM cmd[verify sha1sum 52afda3f108f3d7d6c5ce3c87405d0a3b2a08a4e]
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x56904c sparse store odm_ext_a]
[MSG]flash LOGIC partCap 0x1000000B
Flash 0x0056904c Bytes sparse img to store:odm_ext_a at off 0x0
[MSG]response[0][OKAY]
[MSG]totalChunkNum 4, fileHeadSz 0x1c, chunkHeadSz 0xc, blk 0x1000
Downloading %100
[MSG]Finish sparse img
[MSG]OK in Partition Image
OEM cmd[verify sha1sum e357c1fefb12cd6cd939d05ee21dd49dbc887477]
[MSG]verify end
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x4000000 normal store boot_a]
[MSG]flash LOGIC partCap 0x4000000B
Flash 0x04000000 Bytes normal img to store:boot_a at off 0x0
[MSG]response[0][OKAY]
Downloading %6Downloading %12Downloading %18Downloading %24Downloading %30Downloading %36Downloading %42Downloading %48Downloading %54Downloading %60Downloading %66Downloading %72Downloading %78Downloading %84Downloading %90Downloading %96[MSG]OK in Partition Image
OEM cmd[verify sha1sum 456a8d81be8ee9a26246dfd494b282df6e021fe8]
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[mwrite 0x319000 normal store bootloader]
Flash 0x00319000 Bytes normal img to store:bootloader at off 0x0
[MSG]response[0][OKAY]
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
gpt is invalid
[MSG][bootloader] CpyNum 3, bootCpySz 0x400000
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
gpt is invalid
boot_info.rsv_base_addr:12000
boot_info.ddr.addr:4000
boot_info.ddr.size:0004
boot info: parts 0
boot_info.version:0001
boot_info.checksum:16005
boot_info.rsv_base_addr:12000
boot_info.ddr.addr:4000
boot_info.ddr.size:0004
boot info: parts 0
boot_info.version:0001
boot_info.checksum:16005
[MSG]OK in Partition Image
OEM cmd[verify sha1sum de9102cf1900fe7dcb74f50d17337605f13a45df]
GUID Partition Table Header signature is wrong: 0xED31668D204C4D40 != 0x5452415020494645
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
gpt is invalid
GUID Partition Table Header signature is wrong: 0xED31668D204C4D40 != 0x5452415020494645
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
gpt is invalid
[MSG]Verify finish and successful!
[MSG]response[0][OKAY]
OEM cmd[save_setting]
Saving Environment to STORAGE... OK
[MSG]response[0][OKAY]
=-=-=-= DONE =-=-=-=-=-
https://gist.githubusercontent.com/hyphop/5bbfe75b0d0a2e9a7d2fa5cad891d3ea/raw/fbfab6e71895d0776af0553bcd4b8fbf43269af0/vim4-online-install.sh