ubuntu20.04使用LiveSuit下载失败闪退问题
-
ubuntu20.04(ubuntu18.04也进行了测试)LiveSuitV3.06版本进行T113的烧录时,闪退。详情如下
使用SOC 为T113
使用存储为 EMMC
windows烧录正常,可以使用
上图选择格式化
上图开始下载,下载至96%时出现问题,闪退。LiveSuit log如下
IMAGEWTY ItemTableSize = 1048576 [TL_MSG]:Tools Open Img ---fun end--- --------------entry-fel2fes Called----------- felDevName /dev/aw_efex4 [TL_MSG]:Hi, I'm fel, dev=/dev/aw_efex4 [TL_MSG]:To down and Run fes1-1 [TL_MSG]:fes1 down addr = 0x28000, retAddr =0x28340 [TL_MSG]:tlFelDev.FelRun finish [TL_MSG]:hasRetLog finish [TL_MSG]:Tools_Buffer finish [TL_FEX]:fel UP addr=0x28340, len=136 [TL_MSG]:SYS_PARA_LOG read = 0x4d415244 [TL_MSG]:dram paras[0]: 0x39c [TL_MSG]:dram paras[1]: 0x3 [TL_MSG]:dram paras[2]: 0x7b7bfb [TL_MSG]:dram paras[3]: 0x0 [TL_MSG]:dram paras[4]: 0x10d2 [TL_MSG]:dram paras[5]: 0x800000 [TL_MSG]:dram paras[6]: 0x1e14 [TL_MSG]:dram paras[7]: 0x42 [TL_MSG]:dram paras[8]: 0x20 [TL_MSG]:dram paras[9]: 0x0 [TL_MSG]:dram paras[10]: 0x4899d7 [TL_MSG]:dram paras[11]: 0x1c239d0 [TL_MSG]:dram paras[12]: 0xa2071 [TL_MSG]:dram paras[13]: 0xb4787896 [TL_MSG]:dram paras[14]: 0x0 [TL_MSG]:dram paras[15]: 0x48484848 [TL_MSG]:dram paras[16]: 0x48 [TL_MSG]:dram paras[17]: 0x1620121e [TL_MSG]:dram paras[18]: 0x0 [TL_MSG]:dram paras[19]: 0x0 [TL_MSG]:dram paras[20]: 0x0 [TL_MSG]:dram paras[21]: 0x340000 [TL_MSG]:dram paras[22]: 0x46 [TL_MSG]:dram paras[23]: 0x34006103 [TL_MSG]:dram paras[24]: 0x0 [TL_MSG]:dram paras[25]: 0x0 [TL_MSG]:dram paras[26]: 0x0 [TL_MSG]:dram paras[27]: 0x0 [TL_MSG]:dram paras[28]: 0x0 [TL_MSG]:dram paras[29]: 0x0 [TL_MSG]:dram paras[30]: 0x0 [TL_MSG]:dram paras[31]: 0x0 [TL_MSG]:for tlFelDev.FelUpData finish [TL_MSG]:To down and Run uboot [TL_MSG]:u-boot down addr = 0x43000000 [TL_MSG]:workmode = 0x10 [TL_MSG]:dtb down addr = 0x43200000 [TL_MSG]:sysconfig down addr = 0x43300000 ---fun end--- Fel Thread Finished! Dev Plugout The Device Path is: /dev/aw_efex4 Dev Plugout The Device Path is: /dev/aw_efex4 Dev Plugin The Device Path is: /dev/aw_efex4 --------------entry fes_thread Called--------- portId 0 fesDevName /dev/aw_efex4 hubId 0 DeviceId 1 [TL_MSG]:enter FES--/dev/aw_efex4 [TL_MSG]:Verify: media crc = 0 [TL_MSG]:save item to mem :(12345678,1234567890___MBR) realLen(65536) ./buffer.cpp, pBuffer = 0x7fd6c4012084, nLen = 16380, crc32 = 4134314412[TL_MSG]:name = boot-resource, keydata = 0 [TL_MSG]:name = env, keydata = 0 [TL_MSG]:name = env-redund, keydata = 0 [TL_MSG]:name = boot, keydata = 0 [TL_MSG]:name = rootfs, keydata = 0 [TL_MSG]:name = private, keydata = 0 [TL_MSG]:name = rootfs_data, keydata = 0 [TL_MSG]:name = UDISK, keydata = 0 [TL_MSG]:name = , keydata = 0 [TL_MSG]:Verify: media crc = 0 [TL_MSG]:down mbr success!!! [TL_MSG]:storge type is 2 (0:nand 1-2:card 3:spinor) [TL_MSG]:dl file :save item to mem :(12345678,1234567890DLINFO) realLen(16384) ./buffer.cpp, pBuffer = 0x7fd6c461a974, nLen = 16380, crc32 = 2550867671[TL_MSG]:------------dlmap dump-------------- [TL_MSG]:crc32 = 0x980b26d7 [TL_MSG]:version = 0x200 [TL_MSG]:magic = softw411 [TL_MSG]:part_cnt = 5 [TL_MSG]:flash size is : 15269888 Sectors [TL_MSG]:name = boot-resource addrhi=0x0 addrlo = 0x8000 lenhi = 0x0 lenlo = 0x34e file = BOOT-RESOURCE_FE, en=0,vf=1 [TL_MSG]:sparseFlag:false [TL_MSG]:need verify:1,VBOOT-RESOURCE_F [TL_FEX]:8000, 14000 [TL_MSG]:Verify:start = 8000 ,size = 14000 ,pc_crc = e6f75b5c, media crc = e6f75b5c [TL_MSG]:name = env addrhi=0x0 addrlo = 0x834e lenhi = 0x0 lenlo = 0x1f8 file = ENV_FEX000000000, en=0,vf=1 [TL_MSG]:sparseFlag:false [TL_MSG]:need verify:1,VENV_FEX00000000 [TL_FEX]:834e, 20000 [TL_MSG]:Verify:start = 834e ,size = 20000 ,pc_crc = adc89266, media crc = adc89266 [TL_MSG]:name = env-redund addrhi=0x0 addrlo = 0x8546 lenhi = 0x0 lenlo = 0x1f8 file = ENV_FEX000000000, en=0,vf=1 [TL_MSG]:sparseFlag:false [TL_MSG]:need verify:1,VENV_FEX00000000 [TL_FEX]:8546, 20000 [TL_MSG]:Verify:start = 8546 ,size = 20000 ,pc_crc = adc89266, media crc = adc89266 [TL_MSG]:name = boot addrhi=0x0 addrlo = 0x873e lenhi = 0x0 lenlo = 0x2000 file = BOOT_FEX00000000, en=0,vf=1 [TL_MSG]:sparseFlag:false [TL_MSG]:need verify:1,VBOOT_FEX0000000 [TL_FEX]:873e, 3c2800 [TL_MSG]:Verify:start = 873e ,size = 3c2800 ,pc_crc = 3ebdcad9, media crc = 3ebdcad9 [TL_MSG]:name = rootfs addrhi=0x0 addrlo = 0xa73e lenhi = 0x0 lenlo = 0xf000 file = ROOTFS_FEX000000, en=0,vf=1 [TL_MSG]:sparseFlag:false [TL_MSG]:need verify:1,VROOTFS_FEX00000 free(): invalid pointer ./LiveSuit.sh:行 19: 9255 已放弃 (核心已转储) LD_LIBRARY_PATH=${TOP_DIR}/${BIN_DIR}/ ${BIN_DIR}/${APP}
至此时,T113的EMMC已经被格式化,但系统烧录失败
以下为T113烧录时串口输出的log
[4445]fes begin commit:88480af-dirty [4449]set pll start [4455]periph0 has been enabled [4458]set pll end [4459][pmu]: bus read error [4462]board init ok [4464]beign to init dram [4466]ZQ value = 0x2f [4468]get_pmu_exist() = -1 [4471]ddr_efuse_type: 0xa [4473]trefi:7.8ms [4476][AUTO DEBUG] single rank and full DQ! [4480]ddr_efuse_type: 0xa [4482]trefi:7.8ms [4485][AUTO DEBUG] rank 0 row = 13 [4488][AUTO DEBUG] rank 0 bank = 8 [4492][AUTO DEBUG] rank 0 page size = 2 KB [4496]DRAM BOOT DRIVE INFO: V0.33 [4499]DRAM CLK = 924 MHz [4501]DRAM Type = 3 (2:DDR2,3:DDR3) [4504]DRAMC read ODT off. [4507]DRAM ODT value: 0x42. [4510]ddr_efuse_type: 0xa [4513]DRAM SIZE =128 M [4515]dram_tpr4:0x0 [4517]PLL_DDR_CTRL_REG:0xf8004c00 [4520]DRAM_CLK_REG:0xc0000000 [4523][TIMING DEBUG] MR2= 0x20 [4527]DRAM simple test OK. [4529]rtc standby flag is 0x0, super standby flag is 0x0 [4535]init dram ok U-Boot 2018.07-ge987def5-dirty (May 25 2023 - 18:38:27 +0800) Allwinner Technoly [06.874]CPU: Allwinner Family [06.877]Model: sun8iw20 I2C: FDT ERROR:fdt_set_all_pin:[twi0]-->FDT_ERR_BADPATH FDT ERROR:fdt_set_all_pin:[twi1]-->FDT_ERR_BADPATH ready [06.898]DRAM: 128 MiB [06.901]Relocation Offset is: 04eba000 [06.927]secure enable bit: 0 [06.930]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [06.936]gic: normal mode sunxi flash map init [06.941]flash init start [06.943]workmode = 16,storage type = 0 try card 2 set card number 2 get card number 2 [06.951][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00 [06.957][mmc]: Is not Boot mode! [06.960][mmc]: SUNXI SDMMC Controller Version:0x50310 [06.971][mmc]: ************Try SD card 2************ [06.977][mmc]: mmc 2 cmd timeout 100 status 100 [06.981][mmc]: smc 2 err, cmd 8, RTO [06.984][mmc]: mmc 2 close bus gating and reset [06.989][mmc]: mmc 2 cmd timeout 100 status 100 [06.993][mmc]: smc 2 err, cmd 55, RTO [06.997][mmc]: mmc 2 close bus gating and reset [07.001][mmc]: ************Try MMC card 2************ [07.025][mmc]: mmc 2 cmd timeout 100 status 100 [07.029][mmc]: smc 2 err, cmd 8, RTO [07.032][mmc]: mmc 2 close bus gating and reset [07.037][mmc]: mmc 2 cmd timeout 100 status 100 [07.042][mmc]: smc 2 err, cmd 55, RTO [07.045][mmc]: mmc 2 close bus gating and reset [07.061][mmc]: gen_tuning_blk_bus8: total blk 10 [07.066][mmc]: gen_tuning_blk_bus4: total blk 6 [07.070][mmc]: Using 4 bit tuning now [07.074][mmc]: write_tuning_try_freq: write ok [07.078][mmc]: Pattern compare ok [07.081][mmc]: Write tuning pattern ok [07.085][mmc]: ================== HSSDR52_SDR25... [07.089][mmc]: skip freq 400000 [07.092][mmc]: skip freq 25000000 [07.095][mmc]: freq: 2-50000000-64-4 [07.377][mmc]: [0-63|64] [07.379][mmc]: ================== HSDDR52_DDR50... [07.383][mmc]: skip freq 400000 [07.386][mmc]: freq: 1-25000000-64-4 [07.616][mmc]: freq: 2-50000000-64-4 [07.781][mmc]: [0-50|51] [07.783][mmc]: [0-45|46] [07.786][mmc]: DS26/SDR12: 0xffffffff 0xffffffff [07.790][mmc]: HSSDR52/SDR25: 0xff20ffff 0xffffffff [07.794][mmc]: HSDDR52/DDR50: 0xff1719ff 0xffffffff [07.799][mmc]: HS200/SDR104: 0xffffffff 0xffffffff [07.803][mmc]: HS400: 0xffffffff 0xffffffff [07.807][mmc]: HS400: 0xffffffff 0xffffffff [07.811][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 4 [07.818]line:703 init_clocks [07.821]init_clocks:finish [07.823]Loading Environment from SUNXI_FLASH... OK [07.828]try to burn key [07.830]out of usb burn from boot: not need burn key Hit any key to stop autoboot: 0 sunxi work mode=0x10 run usb efex buf queue page size = 65536 delay time 2500 weak:otg_phy_config usb init ok set address 0xd set address 0xd ok SUNXI_EFEX_ERASE_TAG erase_flag = 0x1 origin_erase_flag = 0x1 FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 the 0 mbr table is ok the 1 mbr table is ok the 2 mbr table is ok the 3 mbr table is ok *************MBR DUMP*************** total mbr part 8 part[0] name :boot-resource part[0] classname :DISK part[0] addrlo :0x8000 part[0] lenlo :0x34e part[0] user_type :32768 part[0] keydata :0 part[0] ro :0 part[1] name :env part[1] classname :DISK part[1] addrlo :0x834e part[1] lenlo :0x1f8 part[1] user_type :32768 part[1] keydata :0 part[1] ro :0 part[2] name :env-redund part[2] classname :DISK part[2] addrlo :0x8546 part[2] lenlo :0x1f8 part[2] user_type :32768 part[2] keydata :0 part[2] ro :0 part[3] name :boot part[3] classname :DISK part[3] addrlo :0x873e part[3] lenlo :0x2000 part[3] user_type :32768 part[3] keydata :0 part[3] ro :0 part[4] name :rootfs part[4] classname :DISK part[4] addrlo :0xa73e part[4] lenlo :0xf000 part[4] user_type :32768 part[4] keydata :0 part[4] ro :0 part[5] name :private part[5] classname :DISK part[5] addrlo :0x1973e part[5] lenlo :0x2800 part[5] user_type :32768 part[5] keydata :0 part[5] ro :0 part[6] name :rootfs_data part[6] classname :DISK part[6] addrlo :0x1bf3e part[6] lenlo :0x200000 part[6] user_type :32768 part[6] keydata :0 part[6] ro :0 part[7] name :UDISK part[7] classname :DISK part[7] addrlo :0x21bf3e part[7] lenlo :0x0 part[7] user_type :32768 part[7] keydata :0 part[7] ro :0 total part: 9 mbr 0, 8000, 8000 boot-resource 1, 34e, 8000 env 2, 1f8, 8000 env-redund 3, 1f8, 8000 boot 4, 2000, 8000 rootfs 5, f000, 8000 private 6, 2800, 8000 rootfs_data 7, 200000, 8000 UDISK 8, 0, 8000 [11.296]erase all part start need erase flash: 1 [11.301]read item0 copy0 [11.314]Item0 (Map) magic is bad [11.317]the secure storage item0 copy0 magic is bad [11.333]Item0 (Map) magic is bad [11.336]the secure storage item0 copy1 magic is bad [11.340]Item0 (Map) magic is bad [11.343]the secure storage map is empty [11.347]no item name set-active-boot-slot in the map erase secure storage failed [11.354]sunxi_secure_storage_exit err: secure storage has not been inited private part exist GPT:boot-resource: 12000 1234d GPT:env : 1234e 12545 GPT:env-redund : 12546 1273d GPT:boot : 1273e 1473d GPT:rootfs : 1473e 2373d GPT:private : 2373e 25f3d GPT:rootfs_data : 25f3e 225f3d GPT:UDISK : 225f3e e8ffde begin to store data part 0 name boot-resource keydata = 0x0 part 1 name env keydata = 0x0 part 2 name env-redund keydata = 0x0 part 3 name boot keydata = 0x0 part 4 name rootfs keydata = 0x0 part 5 name private keydata = 0x0 find keypart private keypart read start: 0x1973e, sectors 0x2800 keypart part private read 0x1973e, sectors 0x2800 part 6 name rootfs_data keydata = 0x0 part 7 name UDISK keydata = 0x0 begin to erase [11.557]erase all part start card2 erase boot0 erase env part [11.567][mmc]: after adjust nr, no more space need to erase!! [11.573][mmc]: after align erase group, no space need to erase, erase failed [11.580][mmc]: mmc_mmc_erase: erase emmc fail! [11.584][mmc]: mmc_mmc_erase: some sectors in emmc are ignored! [11.589][mmc]: --0: from74574 nr504 erase env-redund part [11.604][mmc]: after adjust start addr, no more space need to erase!! [11.610][mmc]: Erase addr is not erase group alignment! [11.615][mmc]: erase failed, range 75776 - 76280 [11.619][mmc]: mmc_mmc_erase: erase emmc fail! [11.623][mmc]: mmc_mmc_erase: some sectors in emmc are ignored! [11.629][mmc]: --0: from75078 nr504 erase boot part [11.643][mmc]: erase from: 75776, to: 82943, cnt: 7168, erase_group: 1024 [11.652][mmc]: sunxi_mmc_do_send_cmd_common: cmd 38 wait rsp busy 0x3 ms [11.658][mmc]: mmc_mmc_erase: some sectors in emmc are ignored! [11.664][mmc]: --0: from75582 nr194 [11.667][mmc]: --1: from82944 nr830 erase rootfs part [11.689][mmc]: erase from: 83968, to: 144383, cnt: 60416, erase_group: 1024 [11.700][mmc]: sunxi_mmc_do_send_cmd_common: cmd 38 wait rsp busy 0x4 ms [11.706][mmc]: mmc_mmc_erase: some sectors in emmc are ignored! [11.712][mmc]: --0: from83774 nr194 [11.715][mmc]: --1: from144384 nr830 erase private part [11.737][mmc]: erase from: 145408, to: 154623, cnt: 9216, erase_group: 1024 [11.746][mmc]: sunxi_mmc_do_send_cmd_common: cmd 38 wait rsp busy 0x2 ms [11.753][mmc]: mmc_mmc_erase: some sectors in emmc are ignored! [11.758][mmc]: --0: from145214 nr194 [11.762][mmc]: --1: from154624 nr830 erase rootfs_data part [11.784][mmc]: erase from: 155648, to: 2251775, cnt: 2096128, erase_group: 1024 [11.795][mmc]: sunxi_mmc_do_send_cmd_common: cmd 38 wait rsp busy 0x4 ms [11.801][mmc]: mmc_mmc_erase: some sectors in emmc are ignored! [11.807][mmc]: --0: from155454 nr194 [11.810][mmc]: --1: from2251776 nr830 erase UDISK part sunxi_sprite_mmc_phyerase: @nr is 0, erase from @from to end [11.838][mmc]: erase from: 2252800, to: 15268863, cnt: 13016064, erase_group: 14 [11.862][mmc]: sunxi_mmc_do_send_cmd_common: cmd 38 wait rsp busy 0x11 ms [11.868][mmc]: mmc_mmc_erase: some sectors in emmc are ignored! [11.874][mmc]: --0: from2252606 nr194 [11.877][mmc]: --1: from15268864 nr1023 card erase all finish erase rewrite write primary GPT success write Backup GPT success [11.914]update partition map keypart write start: 0x1973e, sectors 0x2800 flash exit SUNXI_EFEX_MBR_TAG mbr size = 0x10000 write primary GPT success write Backup GPT success [12.084]update partition map FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 ******Has init flash sectors: 0xe90000 FEX_CMD_fes_verify_value, start 0x8000, size high 0x0:low 0x14000 FEX_CMD_fes_verify_value 0xe6f75b5c FEX_CMD_fes_verify_value, start 0x834e, size high 0x0:low 0x20000 FEX_CMD_fes_verify_value 0xadc89266 FEX_CMD_fes_verify_value, start 0x8546, size high 0x0:low 0x20000 FEX_CMD_fes_verify_value 0xadc89266 FEX_CMD_fes_verify_value, start 0x873e, size high 0x0:low 0x3c2800 FEX_CMD_fes_verify_value 0x3ebdcad9
-
哪位大哥指点指点吧,不要看一眼就走啊……帮帮忙吧
-
建议用windows烧录 <- (建议你不要建议
-
@whycan 在 ubuntu20.04使用LiveSuit下载失败闪退问题 中说:
能看出来我这个是烧录工具问题还是 T113的问题吗?
-
-
@whycan 真的是很头疼啊,曾经好用过,重新做了系统,无论如何都不行了,不知道是抽了什么风啊……
-
@damifan110
18.04也不行? -
@whycan 最开始用的18.04,当时是可以用的,后来某些原因做了系统,然后又做回18.04就不行了,然后我安装了20.04也不行了。
在这次不行之前在windows上也出现过下载失败,无论如何也下载不上,后来用量产工具下载成功以后才又可以下载
就是这个工具了
当时报的错误好像是分配内存错误 好像是给private分配SRAM错误
-
@damifan110 在 ubuntu20.04使用LiveSuit下载失败闪退问题 中说:
free(): invalid pointer
这个:
free(): invalid pointer
估计就是问题了。
-
@copper 我我现在还没搞懂是T113的问题还是软件的问题,你说T113的问题吧,在windows上可与烧录,你说软件的问题吧,群用用我这个包安装之后也可以烧录……我自己也换了几个版本的系统了,都是同样的问题
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号