Which version of system do you use? Khadas official images, self built images, or others?
sdk使用晶晨提供的android13:t-amlogic-20231110
我主机是ubuntu18.04的
Please describe your issue below:
无法烧录。
1、请问ddr和flash配置需要修改哪些地方
2、ubuntu下的烧录工具burn-tool需要怎么改?
Post a console log of your issue below:
burn-tool工具日志:
s4156@s4156-OptiPlex-3080:/media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/utils$ burn-tool -v aml -b VIM4 -i /media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img
Try to burn Amlogic image...
Burning image '/media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img' for 'VIM4' to eMMC...
next try index 3, current opt arg /media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img
MSG[TLS]pkg path /media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img
MSG[TLS]exe run path:/media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/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 /media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/utils/aml-flash-tool/tools/adnl/./usb_flow
MSG[FLW]Read usb_flow.aml with sz 190960
MSG[FLW]plug[0] add loader[aml_mod_imgdec]
MSG[FLW]plug[0] add loader[usb_flow_image_load]
MSG[FLW]plug[0] add loader[aml_mod_key_init]
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[aml_mod_key_burn]
MSG[FLW]plug[0] add loader[json]
MSG[FLW]plug[0] add loader[aml_mod_tool_apis]
MSG[FLW]plug[0] add loader[usb_flow_dnl]
MSG[FLW]plug[0] add loader[aml_mod_fastboot_dev]
MSG[FLW]plug[0] add loader[aml_mod_util]
MSG[FLW]Decrypt and load lua flow ok
MSG[FLW]dll modulePath /media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/utils/aml-flash-tool/tools/adnl/./usb_flow
MSG[FLW]mod run time path /media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/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= /media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/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=/media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/utils/aml-flash-tool/tools/adnl/./usb_flow
DBG[AUL]ok in load lib /media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/utils/aml-flash-tool/tools/adnl/./usb_flow/AmlImagePack.so
DBG[AUL]ok in load lib /media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/utils/aml-flash-tool/tools/adnl/./usb_flow/libamlfastboot.so
[FLW]LMsg[ImgLoad]--[Trunk]flow V2.7.5 version 776a86e-clean at Thu Jul 8 18:18:46 CST 2021
[FLW]LMsg[ImgLoad]imgPath[/media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img]
DBG[AUL]to open [/media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img]
[Msg]Image package version 0x2
MSG[AUL]OK in open pkg(/media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.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]USB UBOOT normal 3248128
[FLW]LMsg[ImgLoad]USB DDR normal 3248128
[FLW]LMsg[ImgLoad]UBOOT aml_sdc_burn normal 3248640
[FLW]LMsg[ImgLoad]dtb meson1 normal 81434
[FLW]LMsg[ImgLoad]conf platform normal 28
[FLW]LMsg[ImgLoad]PARTITION super sparse 1564117036 verify sha1sum ccf0e70aab1c6cedfc1424e4506c1ea73cce74dc
[FLW]LMsg[ImgLoad]PARTITION vendor_boot_a normal 67108864 verify sha1sum 968d8e2d59471cd48e3e0112142364bb04dc12f5
[FLW]LMsg[ImgLoad]PARTITION bootloader normal 4097024 verify sha1sum 5813ae67b959b3a0d43dce1f80a899bc69d9662a
[FLW]LMsg[ImgLoad]PARTITION boot_a normal 67108864 verify sha1sum 4715fe185761d2f363dd2c7831b4fa07204d0bac
[FLW]LMsg[ImgLoad]PARTITION vbmeta_system_a normal 4096 verify sha1sum d9b7aa9c6241e410939ab73dd2ee0febc7383405
[FLW]LMsg[ImgLoad]PARTITION odm_ext_a sparse 6819916 verify sha1sum 46dee16b6a5c1ab1b64ffb9a15c6872abe00387f
[FLW]LMsg[ImgLoad]PARTITION bootloader_a normal 4097024 verify sha1sum 5813ae67b959b3a0d43dce1f80a899bc69d9662a
[FLW]LMsg[ImgLoad]PARTITION oem_a normal 33554432 verify sha1sum 87b3c9dc18bc39723f51a7ce4473872e9ef79674
[FLW]LMsg[ImgLoad]PARTITION oem_b normal 33554432 verify sha1sum 87b3c9dc18bc39723f51a7ce4473872e9ef79674
[FLW]LMsg[ImgLoad]PARTITION vbmeta_a normal 8192 verify sha1sum 9410f12707fac4e04a4c9abf353b04809871409d
[FLW]LMsg[ImgLoad]PARTITION _aml_dtb normal 81434 verify sha1sum 6ce091eef4b3942127e4075cfc438af526423e2e
[FLW]LMsg[ImgLoad]PARTITION logo normal 1160640 verify sha1sum 0c946d397d7383195500a2c6512031370944f156
[FLW]LMsg[ImgLoad]PARTITION dtbo_a normal 2097152 verify sha1sum 7679ce0e1649b35bb882f77fc013d569f188eadb
[FLW]LMsg[ImgLoad]PARTITION init_boot_a normal 8388608 verify sha1sum 02a4d3419b5590da74c5205c0292d6fefe52899d
[FLW]LMsg[ImgLoad]bin gpt normal 34304
[FLW]LMsg[ImgLoad]aml usb_flow normal 190960
[FLW]LMsg[ImgLoad]ini aml_sdc_burn normal 602
[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_g3uryF
[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_g3uryF
MSG[TLS]Waiting for Amlogic DNL device ANY
MSG[TLS]Update path for existed dev
MSG[TLS]serial not specified, assign to 9059c06d8460230d00000000
MSG[TLS]cb: devicePath /dev/bus/usb/001/099
MSG[FLW]cDevType dnl
MSG[TLS]Get para ox0x21e34d8
MSG[FLW]device para 0x0x21e34d8
MSG[FLW]CREATE state for[9059c06d8460230d00000000]
MSG[FLW]plug[0] add loader[aml_mod_imgdec]
MSG[FLW]plug[0] add loader[usb_flow_image_load]
MSG[FLW]plug[0] add loader[aml_mod_key_init]
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[aml_mod_key_burn]
MSG[FLW]plug[0] add loader[json]
MSG[FLW]plug[0] add loader[aml_mod_tool_apis]
MSG[FLW]plug[0] add loader[usb_flow_dnl]
MSG[FLW]plug[0] add loader[aml_mod_fastboot_dev]
MSG[FLW]plug[0] add loader[aml_mod_util]
MSG[FLW]Decrypt and load lua flow ok
MSG[FLW]dll modulePath /media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/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= /media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/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=/media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/utils/aml-flash-tool/tools/adnl/./usb_flow
DBG[AUL]ok in load lib /media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/utils/aml-flash-tool/tools/adnl/./usb_flow/AmlImagePack.so
LMsg[usbFlw]imgCfgPath /tmp/lua_g3uryF
LMsg[usbFlw]get img cfg from json file /tmp/lua_g3uryF
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]modUsb function: 0x224fa70
DBG[AUL]p1 is 1, p2 is 2
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]Load mod dnl ok
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]to open img["/media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img"]
DBG[AUL]to open [/media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img]
[Msg]Image package version 0x2
MSG[AUL]OK in open pkg(/media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img)
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]device path [/dev/bus/usb/001/099]
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]portXY=[[9059c06d8460230d00000000]]
DBG[AUL]To open dev: /dev/bus/usb/001/099
MSG[FB]busnum 1, devnum 99
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]Use extern key module
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]key module loaded
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]identifyHost 6-0-0-0-0-0-0-15
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]soctype is 0x36,T7
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]downloadsize len 7, 0x3F800
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]0x812 download bl2 okay!
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]ready for bl2_boot!
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]wait T7 bl2!
MSG[TLS][9059c06d8460230d00000000]burn disconnect
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]^_^OK in [romboot] flow
MSG[TLS][9059c06d8460230d00000000]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[9059c06d8460230d00000000] with timeout 8
MSG[TLS]Added device 9059c06d8460230d00000000
MSG[TLS]serial 9059c06d8460230d00000000 found, update devicePath to /dev/bus/usb/001/100
MSG[TLS]cb: devicePath /dev/bus/usb/001/100
MSG[FLW]cDevType dnl
MSG[TLS]Get para ox0x21e34d8
MSG[FLW]device para 0x0x21e34d8
MSG[FLW]dll modulePath /media/s4156/D/os_code/a311d2-khadas-vim4/burn_tool/utils/aml-flash-tool/tools/adnl/./usb_flow
DBG[FLW]to call usb_flow_dnl.lua
LMsg[usbFlw]imgCfgPath /tmp/lua_g3uryF
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]to open img["/media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img"]
DBG[AUL]to open [/media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img]
[Msg]Image package version 0x2
MSG[AUL]OK in open pkg(/media/s4156/D/os_code/android13_a311d2/t-amlogic-20231110/out/target/product/t7_an400/aml_upgrade_package.img)
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]device path [/dev/bus/usb/001/100]
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]portXY=[[9059c06d8460230d00000000]]
DBG[AUL]To open dev: /dev/bus/usb/001/100
MSG[FB]busnum 1, devnum 100
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]identifyHost 6-1-0-8-0-0-0-49
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]bl2/bl2e identifyHost 6-1-0-8-0-0-0-49
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]socFamily nil, package id 1
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]info4_reg0 0x0000030f
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]cbw[sequence 00, imgSize 0x1000, fileOffset 0x64000]
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]bl2boot need wait sometime and continue next loop
ERR[FB]data read failure (err 19)
ERR[AUL]f(l_aml_fastboot.cpp)L168:Fail in bulk IN, ret=19
MSG[TLS][9059c06d8460230d00000000]737LErr[usbFlw]Fail in bulk IN transfer, err 19
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]stack traceback:
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] [string "usb_flow_dnl"]:976: in upvalue 'prERR'
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] [string "aml_mod_fastboot_dev"]:737: in local 'p1'
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] [string "aml_mod_util"]:467: in function <[string "aml_mod_util"]:461>
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] (...tail calls...)
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] [string "aml_mod_fastboot_dev"]:67: in function <[string "aml_mod_fastboot_dev"]:62>
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] (...tail calls...)
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] [string "aml_mod_fastboot_dev"]:265: in upvalue 'usb_cmd_getvar_bytes'
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] [string "aml_mod_fastboot_dev"]:273: in method 'Identify'
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] [string "usb_flow_dnl"]:199: in upvalue 'bl2_boot'
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] [string "usb_flow_dnl"]:342: in function <[string "usb_flow_dnl"]:291>
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] [C]: in function 'xpcall'
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw] [string "usb_flow_dnl"]:1075: in main chunk
LMsg[UTIL]setErr mod, no USB 2
MSG[TLS][9059c06d8460230d00000000]69LErr[usbFlw]Fail in read cmd result
MSG[TLS][9059c06d8460230d00000000]266LErr[usbFlw]io err while getvar:identify
MSG[TLS][9059c06d8460230d00000000]201LErr[usbFlw]Fail in identifyHost
MSG[TLS][9059c06d8460230d00000000]348LErr[usbFlw]Fail in stage(spl)
MSG[TLS][9059c06d8460230d00000000]LMsg[usbFlw]FAILURE!! in [spl] flow(true, nil)
MSG[TLS]UI:[9059c06d8460230d00000000][flow]Fail in stage(spl)
LMsg[UTIL]_errno stage [spl,nil] mod [USB,2]
MSG[FLW][LUA]:[string "aml_mod_util"]:449: attempt to index a nil value (local 'blx')
ERR[FLW]f(Aml_Device_plugin)L366:Fail in call usb_flow_dnl.lua, ret -202
MSG[TLS][9059c06d8460230d00000000]burn FAIL!!Oh-Oh-Oh!!