V853烧录固件的时候一直自动刷,停不下来
-
在第一次使用板子的时候,按照官网的在线文档生成的img是没有问题的,刷进去可以正常使用,但是我因为要用到RGB屏幕,所以修改了设备树,修改了以后再重新编译打包的img就很奇怪,我刷固件的时候会陷入死循环,一直刷一直刷,而且都是到百分之80多的时候就直接显示刷成功了,然后又开始自动刷
我试过等他显示刷成功的时候直接拔线,关闭刷机软件,但系统是进不去的,连接电脑打开刷机软件也识别不出来有设备
后面我以为是修改设备树那里自己弄错了,就又把设备树改过来,重新编译打包,结果也是一样,所以,应该跟修改设备树无关?
可是我就不太理解,为什么第一次编译的img就可以正常刷进去使用,但是后面再编译的img就都不行了,我也试过重新下载源码再编译了,也是一样的img有同样的问题
还是说,公钥私钥那些是否也要重新弄呢?
-
@ningle 这个是因为固件包下载emmc但是没启动成功的问题,可以尝试全盘擦除下载
-
@yuzukitsuru 尝试过全盘擦除烧写,还是不能解决
-
说这么多还不如贴上烧录过程的log以及启动的log,同时确认是不是安全的固件。如果是安全的固件,恭喜你,芯片烧录的key和你的安全固件不匹配,要不就找回之前烧录的key,要不就重新换芯片吧。
-
@ningle 贴出log
-
@ningle @chengwei_peng @YuzukiTsuru
我也遇到了相同的问题,使用自己编译出来的固件烧入后会不停的重启继续刷,烧写官方提供的出厂的固件就会有这个问题。
这是log:U-Boot 2018.05-g3a34d5f (Jul 08 2022 - 07:00:11 +0000) Allwinner Technology [03.715]CPU: Allwinner Family [03.718]Model: sun8iw21 I2C: ready [03.744]DRAM: 512 MiB [03.747]Relocation Offset is: 1ced0000 [03.772]secure enable bit: 0 [03.775]PMU: AXP21 [03.777]PMU: pmu_axp2101 found [03.779]BMU: AXP21 [03.781]BMU: bmu_axp2101 found FDT ERROR:fdt_get_regulator_name:get property handle twi-supply error:FDT_ERR_INTERNAL [03.792]gpio_bias, pc_bias: 1800, pc_supply: not set [03.797]gpio_bias, pl_bias: -1, pl_supply: not set [03.802]dcdc1_vol = 3300, onoff=1 [03.806]dcdc2_vol = 900, onoff=1 [03.809]dcdc5_vol = 0, onoff=0 [03.812]aldo1_vol = 1800, onoff=1 [03.816]aldo2_vol = 1800, onoff=1 [03.819]aldo3_vol = 3300, onoff=1 [03.823]aldo4_vol = 3300, onoff=1 [03.826]bldo1_vol = 1800, onoff=1 [03.830]bldo2_vol = 2800, onoff=1 [03.833]dldo1_vol = 3300, onoff=1 [03.837]dldo2_vol = 1200, onoff=1 bias_name:pc_bias bias_vol:1800 bias_name:pi_bias bias_vol:1800 [03.847]bat_vol=677, ratio=0 [03.849]safe_vol=3500, safe_ratio=1 [03.853]CPU=900 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=24Mhz MBus=300Mhz [03.859]gic: normal mode sunxi flash map init [03.863]flash init start [03.865]workmode = 16,storage type = 0 try card 2 set card number 2 get card number 2 [03.873][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00 [03.878][mmc]: get sdc_type fail and use default host:tm4. [03.885][mmc]: Is not Boot mode! [03.888][mmc]: SUNXI SDMMC Controller Version:0x50400 [03.899][mmc]: ************Try SD card 2************ [03.904][mmc]: mmc 2 cmd timeout 100 status 100 [03.908][mmc]: smc 2 err, cmd 8, RTO [03.912][mmc]: mmc 2 close bus gating and reset [03.917][mmc]: mmc 2 cmd timeout 100 status 100 [03.921][mmc]: smc 2 err, cmd 55, RTO [03.924][mmc]: mmc 2 close bus gating and reset [03.929][mmc]: ************Try MMC card 2************ [03.952][mmc]: mmc 2 cmd timeout 100 status 100 [03.956][mmc]: smc 2 err, cmd 8, RTO [03.959][mmc]: mmc 2 close bus gating and reset [03.964][mmc]: mmc 2 cmd timeout 100 status 100 [03.969][mmc]: smc 2 err, cmd 55, RTO [03.972][mmc]: mmc 2 close bus gating and reset [03.988][mmc]: gen_tuning_blk_bus8: total blk 10 [03.992][mmc]: gen_tuning_blk_bus4: total blk 6 [03.996][mmc]: Using 8 bit tuning now [04.000][mmc]: write_tuning_try_freq: write ok [04.005][mmc]: Pattern compare ok [04.008][mmc]: Write tuning pattern ok [04.011][mmc]: ================== HSSDR52_SDR25... [04.016][mmc]: skip freq 400000 [04.018][mmc]: skip freq 25000000 [04.022][mmc]: freq: 2-50000000-64-4 [04.184][mmc]: [0-61|62] [04.186][mmc]: ================== HSDDR52_DDR50... [04.191][mmc]: skip freq 400000 [04.193][mmc]: freq: 1-25000000-64-4 [04.343][mmc]: freq: 2-50000000-64-4 [04.426][mmc]: [0-55|56] [04.429][mmc]: [8-30|23] [32-55|24] [04.432][mmc]: DS26/SDR12: 0xffffffff 0xffffffff [04.436][mmc]: HSSDR52/SDR25: 0xff1fffff 0xffffffff [04.441][mmc]: HSDDR52/DDR50: 0xff2c1cff 0xffffffff [04.446][mmc]: HS200/SDR104: 0xffffffff 0xffffffff [04.450][mmc]: HS400: 0xffffffff 0xffffffff [04.454][mmc]: HS400: 0xffffffff 0xffffffff [04.458][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 8 [04.464]line:724 init_clocks [04.468]init_clocks:finish [04.470]Loading Environment from SUNXI_FLASH... OK [04.475]try to burn key [04.477]out of usb burn from boot: not need burn key Hit any key to stop autoboot: 0 sunxi work mode=0x10 run usb efex delay time 2500 weak:otg_phy_config usb init ok set address 0x11 set address 0x11 ok SUNXI_EFEX_ERASE_TAG erase_flag = 0x12 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 7 part[0] name :boot-resource part[0] classname :DISK part[0] addrlo :0x2000 part[0] lenlo :0x1780 part[0] user_type :32768 part[0] keydata :0 part[0] ro :0 part[1] name :env part[1] classname :DISK part[1] addrlo :0x3780 part[1] lenlo :0x3f0 part[1] user_type :32768 part[1] keydata :0 part[1] ro :0 part[2] name :boot part[2] classname :DISK part[2] addrlo :0x3b70 part[2] lenlo :0x6270 part[2] user_type :32768 part[2] keydata :0 part[2] ro :0 part[3] name :rootfs part[3] classname :DISK part[3] addrlo :0x9de0 part[3] lenlo :0x3a200 part[3] user_type :32768 part[3] keydata :0 part[3] ro :0 part[4] name :rootfs_data part[4] classname :DISK part[4] addrlo :0x43fe0 part[4] lenlo :0x2760 part[4] user_type :32768 part[4] keydata :0 part[4] ro :0 part[5] name :recovery part[5] classname :DISK part[5] addrlo :0x46740 part[5] lenlo :0x4ec0 part[5] user_type :32768 part[5] keydata :0 part[5] ro :0 part[6] name :UDISK part[6] classname :DISK part[6] addrlo :0x4b600 part[6] lenlo :0x0 part[6] user_type :33024 part[6] keydata :0 part[6] ro :0 total part: 8 mbr 0, 2000, 8000 boot-resource 1, 1780, 8000 env 2, 3f0, 8000 boot 3, 6270, 8000 rootfs 4, 3a200, 8000 rootfs_data 5, 2760, 8000 recovery 6, 4ec0, 8000 UDISK 7, 0, 8100 [07.519]erase all part start need erase flash: 18 [07.523][mmc]: erase from: 0, to: 15155199, cnt: 15155200, erase_group: 1024 [07.674][mmc]: sunxi_mmc_do_send_cmd_common: cmd 38 wait rsp busy 0x90 ms [07.680]read item0 copy0 [07.695]Item0 (Map) magic is bad [07.698]the secure storage item0 copy0 magic is bad [07.715]Item0 (Map) magic is bad [07.718]the secure storage item0 copy1 magic is bad [07.722]Item0 (Map) magic is bad [07.725]the secure storage map is empty [07.754]erase secure storage: 0 ok SUNXI_EFEX_MBR_TAG mbr size = 0x10000 write primary GPT success write Backup GPT success [07.768]update partition map FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 ******Has init FEX_CMD_fes_verify_value, start 0x2000, size high 0x0:low 0x14000 FEX_CMD_fes_verify_value 0xe6f75b5c FEX_CMD_fes_verify_value, start 0x3780, size high 0x0:low 0x20000 FEX_CMD_fes_verify_value 0x33cbba1 FEX_CMD_fes_verify_value, start 0x3b70, size high 0x0:low 0x7d7000 FEX_CMD_fes_verify_value 0xcc442320 FEX_CMD_fes_verify_value, start 0x9de0, size high 0x0:low 0x1560000 FEX_CMD_fes_verify_value 0xe2a7be99 bootfile_mode=4 SUNXI_EFEX_BOOT1_TAG boot1 size = 0x10c000, max size = 0x200000 uboot size = 0x10c000 storage type = 2 FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 bootfile_mode=4 SUNXI_EFEX_BOOT0_TAG boot0 size = 0x9000 [09.998][mmc]: write mmc 2 info ok dram para[0] = 3a8 dram para[1] = 3 dram para[2] = 7b7bfb dram para[3] = 1 dram para[4] = 10f2 dram para[5] = 2000000 dram para[6] = 1e14 dram para[7] = 42 dram para[8] = 20 dram para[9] = 0 dram para[10] = 4899d7 dram para[11] = 1c241d0 dram para[12] = a4073 dram para[13] = b4787896 dram para[14] = 0 dram para[15] = 48484848 dram para[16] = 48 dram para[17] = 1621121e dram para[18] = 0 dram para[19] = 0 dram para[20] = 0 dram para[21] = 420000 dram para[22] = 48 dram para[23] = b4016103 dram para[24] = 0 dram para[25] = 0 dram para[26] = 0 dram para[27] = 0 dram para[28] = 0 dram para[29] = 0 dram para[30] = 0 dram para[31] = 0 storage type = 2 FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 sunxi_efex_next_action=2 exit usb next work 2 [63]HELLO! BOOT0 is starting!OT [66]BOOT0 commit : 2a3ec52022 [68]set pll start [70]periph0 has been enabled [73]set pll end [76]PMU: AXP21 [78]board init ok [80]DRAM use external ZQ!! [83]bootinfo error1 [85]ic cant match axp, please check... [88]init dram fail CCC[2111]fes begin commit:2a3ec52022 [2114]set pll start [2116]periph0 has been enabled [2119]set pll end [2122]PMU: AXP21 [2125]board init ok [2126]beign to init dram [2129]DRAM use external ZQ!! [2131]chip id check OK [2134]DRAM_VCC set to 1500 mv [2137]trefi:7.8ms [2139][AUTO DEBUG] single rank and full DQ! [2144]trefi:7.8ms [2146][AUTO DEBUG] rank 0 row = 15 [2149][AUTO DEBUG] rank 0 bank = 8 [2153][AUTO DEBUG] rank 0 page size = 2 KB [2157]DRAM BOOT DRIVE INFO: V0.16 [2160]DRAM CLK = 936 MHz [2162]DRAM Type = 3 (2:DDR2,3:DDR3) [2165]DRAMC ZQ value: 0x7b7bfb [2168]DRAM ODT value: 0x42. [2172]DRAM SIZE =512 M [2174]dram_tpr4:0x0 [2177]DRAM simple test OK. [2180]rtc standby flag is 0x0, super standby flag is 0x0 [2185]init dram ok U-Boot 2018.05-g3a34d5f (Jul 08 2022 - 07:00:11 +0000) Allwinner Technology [03.871]CPU: Allwinner Family [03.874]Model: sun8iw21 I2C: ready [03.900]DRAM: 512 MiB [03.903]Relocation Offset is: 1ced0000 [03.928]secure enable bit: 0 [03.931]PMU: AXP21 [03.933]PMU: pmu_axp2101 found [03.935]BMU: AXP21 [03.937]BMU: bmu_axp2101 found FDT ERROR:fdt_get_regulator_name:get property handle twi-supply error:FDT_ERR_INTERNAL [03.948]gpio_bias, pc_bias: 1800, pc_supply: not set [03.953]gpio_bias, pl_bias: -1, pl_supply: not set [03.958]dcdc1_vol = 3300, onoff=1 [03.962]dcdc2_vol = 900, onoff=1 [03.965]dcdc5_vol = 0, onoff=0 [03.968]aldo1_vol = 1800, onoff=1 [03.972]aldo2_vol = 1800, onoff=1 [03.975]aldo3_vol = 3300, onoff=1 [03.979]aldo4_vol = 3300, onoff=1 [03.982]bldo1_vol = 1800, onoff=1 [03.986]bldo2_vol = 2800, onoff=1 [03.989]dldo1_vol = 3300, onoff=1 [03.993]dldo2_vol = 1200, onoff=1 bias_name:pc_bias bias_vol:1800 bias_name:pi_bias bias_vol:1800 [04.003]bat_vol=337, ratio=0 [04.005]safe_vol=3500, safe_ratio=1 [04.009]CPU=900 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=24Mhz MBus=300Mhz [04.015]gic: normal mode sunxi flash map init [04.019]flash init start [04.021]workmode = 16,storage type = 0 try card 2 set card number 2 get card number 2 [04.029][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00 [04.034][mmc]: get sdc_type fail and use default host:tm4. [04.041][mmc]: Is not Boot mode! [04.044][mmc]: SUNXI SDMMC Controller Version:0x50400 [04.055][mmc]: ************Try SD card 2************ [04.060][mmc]: mmc 2 cmd timeout 100 status 100 [04.064][mmc]: smc 2 err, cmd 8, RTO [04.068][mmc]: mmc 2 close bus gating and reset [04.073][mmc]: mmc 2 cmd timeout 100 status 100 [04.077][mmc]: smc 2 err, cmd 55, RTO [04.080][mmc]: mmc 2 close bus gating and reset [04.085][mmc]: ************Try MMC card 2************ [04.108][mmc]: mmc 2 cmd timeout 100 status 100 [04.112][mmc]: smc 2 err, cmd 8, RTO [04.115][mmc]: mmc 2 close bus gating and reset [04.120][mmc]: mmc 2 cmd timeout 100 status 100 [04.125][mmc]: smc 2 err, cmd 55, RTO [04.128][mmc]: mmc 2 close bus gating and reset [04.144][mmc]: gen_tuning_blk_bus8: total blk 10 [04.148][mmc]: gen_tuning_blk_bus4: total blk 6 [04.152][mmc]: Using 8 bit tuning now [04.156][mmc]: write_tuning_try_freq: write ok [04.161][mmc]: Pattern compare ok [04.164][mmc]: Write tuning pattern ok [04.167][mmc]: ================== HSSDR52_SDR25... [04.172][mmc]: skip freq 400000 [04.174][mmc]: skip freq 25000000 [04.177][mmc]: freq: 2-50000000-64-4 [04.337][mmc]: [0-60|61] [04.339][mmc]: ================== HSDDR52_DDR50... [04.344][mmc]: skip freq 400000 [04.347][mmc]: freq: 1-25000000-64-4 [04.496][mmc]: freq: 2-50000000-64-4 [04.579][mmc]: [0-55|56] [04.581][mmc]: [9-30|22] [32-55|24] [04.585][mmc]: DS26/SDR12: 0xffffffff 0xffffffff [04.589][mmc]: HSSDR52/SDR25: 0xff1effff 0xffffffff [04.594][mmc]: HSDDR52/DDR50: 0xff2c1cff 0xffffffff [04.598][mmc]: HS200/SDR104: 0xffffffff 0xffffffff [04.603][mmc]: HS400: 0xffffffff 0xffffffff [04.607][mmc]: HS400: 0xffffffff 0xffffffff [04.611][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 8 [04.617]line:724 init_clocks [04.620]init_clocks:finish [04.623]Loading Environment from SUNXI_FLASH... OK [04.627]try to burn key [04.630]out of usb burn from boot: not need burn key Hit any key to stop autoboot: 0 sunxi work mode=0x10 run usb efex delay time 2500 weak:otg_phy_config usb init ok set address 0x13 set address 0x13 ok SUNXI_EFEX_ERASE_TAG erase_flag = 0x12 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 7 part[0] name :boot-resource part[0] classname :DISK part[0] addrlo :0x2000 part[0] lenlo :0x1780 part[0] user_type :32768 part[0] keydata :0 part[0] ro :0 part[1] name :env part[1] classname :DISK part[1] addrlo :0x3780 part[1] lenlo :0x3f0 part[1] user_type :32768 part[1] keydata :0 part[1] ro :0 part[2] name :boot part[2] classname :DISK part[2] addrlo :0x3b70 part[2] lenlo :0x6270 part[2] user_type :32768 part[2] keydata :0 part[2] ro :0 part[3] name :rootfs part[3] classname :DISK part[3] addrlo :0x9de0 part[3] lenlo :0x3a200 part[3] user_type :32768 part[3] keydata :0 part[3] ro :0 part[4] name :rootfs_data part[4] classname :DISK part[4] addrlo :0x43fe0 part[4] lenlo :0x2760 part[4] user_type :32768 part[4] keydata :0 part[4] ro :0 part[5] name :recovery part[5] classname :DISK part[5] addrlo :0x46740 part[5] lenlo :0x4ec0 part[5] user_type :32768 part[5] keydata :0 part[5] ro :0 part[6] name :UDISK part[6] classname :DISK part[6] addrlo :0x4b600 part[6] lenlo :0x0 part[6] user_type :33024 part[6] keydata :0 part[6] ro :0 total part: 8 mbr 0, 2000, 8000 boot-resource 1, 1780, 8000 env 2, 3f0, 8000 boot 3, 6270, 8000 rootfs 4, 3a200, 8000 rootfs_data 5, 2760, 8000 recovery 6, 4ec0, 8000 UDISK 7, 0, 8100 [07.552]erase all part start need erase flash: 18 [07.556][mmc]: erase from: 0, to: 15155199, cnt: 15155200, erase_group: 1024 [07.702][mmc]: sunxi_mmc_do_send_cmd_common: cmd 38 wait rsp busy 0x8b ms [07.708]read item0 copy0 [07.723]Item0 (Map) magic is bad [07.726]the secure storage item0 copy0 magic is bad [07.743]Item0 (Map) magic is bad [07.745]the secure storage item0 copy1 magic is bad [07.750]Item0 (Map) magic is bad [07.753]the secure storage map is empty [07.782]erase secure storage: 0 ok SUNXI_EFEX_MBR_TAG mbr size = 0x10000 write primary GPT success write Backup GPT success [07.795]update partition map FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 ******Has init FEX_CMD_fes_verify_value, start 0x2000, size high 0x0:low 0x14000 FEX_CMD_fes_verify_value 0xe6f75b5c FEX_CMD_fes_verify_value, start 0x3780, size high 0x0:low 0x20000 FEX_CMD_fes_verify_value 0x33cbba1 FEX_CMD_fes_verify_value, start 0x3b70, size high 0x0:low 0x7d7000 FEX_CMD_fes_verify_value 0xcc442320 FEX_CMD_fes_verify_value, start 0x9de0, size high 0x0:low 0x1560000 FEX_CMD_fes_verify_value 0xe2a7be99 bootfile_mode=4 SUNXI_EFEX_BOOT1_TAG boot1 size = 0x10c000, max size = 0x200000 uboot size = 0x10c000 storage type = 2 FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 bootfile_mode=4 SUNXI_EFEX_BOOT0_TAG boot0 size = 0x9000 [10.068][mmc]: write mmc 2 info ok dram para[0] = 3a8 dram para[1] = 3 dram para[2] = 7b7bfb dram para[3] = 1 dram para[4] = 10f2 dram para[5] = 2000000 dram para[6] = 1e14 dram para[7] = 42 dram para[8] = 20 dram para[9] = 0 dram para[10] = 4899d7 dram para[11] = 1c241d0 dram para[12] = a4073 dram para[13] = b4787896 dram para[14] = 0 dram para[15] = 48484848 dram para[16] = 48 dram para[17] = 1621121e dram para[18] = 0 dram para[19] = 0 dram para[20] = 0 dram para[21] = 420000 dram para[22] = 48 dram para[23] = b4016103 dram para[24] = 0 dram para[25] = 0 dram para[26] = 0 dram para[27] = 0 dram para[28] = 0 dram para[29] = 0 dram para[30] = 0 dram para[31] = 0 storage type = 2 FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 sunxi_efex_next_action=2 exit usb next work 2 [47]HELLO! BOOT0 is starting!OT [50]BOOT0 commit : 2a3ec52022 [53]set pll start [55]periph0 has been enabled [58]set pll end [60]PMU: AXP21 [63]board init ok [65]DRAM use external ZQ!! [67]bootinfo error1 [69]ic cant match axp, please check... [73]init dram fail CCC
-
@icpachong 尝试使用全盘擦除
-
@yuzukitsuru 没有用
-
-
@uuuuid 我这几天重新编译了一下,好像又可以了,不过还是不清楚原因到底是什么,好累。。。哭了
-
尝试使用./buils.sh编译一个buildroot,刷新一下启动bin,另外尝试一下mboot重新编译boot0
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号