使用emmc 作为启动卡(SD2) 能烧录,但是无法启动
-
目前修改的有
1:sys_config.fex:
storage_type =2
2:board.dts
sdc2=okay -
[46]BOOT0 commit : 88480af-dirty [49]set pll start [51]periph0 has been enabled [54]set pll end [55][pmu]: bus read error [58]board init ok [59]get_pmu_exist() = -1 [62]DRAM BOOT DRIVE INFO: V0.33 [65]DRAM CLK = 792 MHz [67]DRAM Type = 3 (2:DDR2,3:DDR3) [70]DRAMC ZQ value: 0x7b7bfb [73]DRAM ODT value: 0x42. [75]ddr_efuse_type: 0x0 [78]DRAM SIZE =512 M [80]dram_tpr4:0x0 [82]PLL_DDR_CTRL_REG:0xf8004100 [85]DRAM_CLK_REG:0xc0000000 [87][TIMING DEBUG] MR2= 0x18 [91]DRAM simple test OK. [94]dram size =512 [95]card no is 2 [97]sdcard 2 line count 8 [99][mmc]: mmc driver ver1 2021-04-2 16:45 [103][mmc]: n8 [110][mmc]: Wrong media type 0x0, but host sdc2, try mmc first [116][mmc]: ***Try MMC card 2*** [123][mmc]: mmc 2 cmd 1 timeout, err 100 [126][mmc]: mmc 2 cmd 1 err 100 [129][mmc]: mmc 2 send op cond failed [133][mmc]: MMC card 2 Card did not respond to voltage select! [139][mmc]: ***SD/MMC 2 init error!!!*** [146][mmc]: ***Try SD card 2*** [149][mmc]: mmc 2 cmd 8 timeout, err 100 [153][mmc]: mmc 2 cmd 8 err 100 [156][mmc]: mmc 2 send if cond failed [160][mmc]: mmc 2 cmd 55 timeout, err 100 [164][mmc]: mmc 2 cmd 55 err 100 [167][mmc]: mmc 2 send app cmd failed [170][mmc]: SD card 2 Card did not respond to voltage select! [176][mmc]: ***SD/MMC 2 init error!!!*** [180][mmc]: mmc 2 register failed [183]Loading boot-pkg fail(error=2)
刷入后打印 此信息
-
请问是什么芯片 呢?
-
@whycan D1H
-
@liangjian
你的是 sdc2 接 8bit eMMC 吗?建议先从 TF卡/SPI FLASH启动,进入Linux后看能否正常访问 eMMC。
-
@whycan 你好,我的是 是 sdc2 接 8bit eMMC ,请问我用TF 启动后,怎么使用linux 测试访问 emmc?
-
@liangjian
board.dts 开启 sdc2 8bit 即可。 -
@whycan 我已经打开了,只是SD 卡 开机后不知道该问题如何下手查
-
@whycan 看代码,uboot -> boot0 启动,过程中。uboot 的mmc 驱动代码和 boot0 是不一样,uboot 也没有给boot0 代码传递配置方面的参数。目前不知道怎么继续查看了,请问,是否有客户在d1-h 上使用SD2 给 emmc 驱动?如果有的话,能否给一下相关的patch
-
@liangjian
有一个要先确认一下,从TF卡或者spi nand启动是否能识别 eMMC,这个非常重要,用于判断你的硬件是否正常。 -
@whycan 晕哥,你好,我上面的信息有点问题,目前我用sdc2 4bit emmc 作为启动卡,从日志上看,代码确实已经下载进去,UBOOT 运行都是正常的,boot0 就会出问题,请问boot0 的 dts 应该修改什么地方。另外您说的SD 启动后 看下能否识别emmc,这个我不知道怎么去识别,有没有什么可以参考的文章。菜鸟一枚,请多见谅!!
-
@whycan 我将当前的日志传一下
U-Boot 2018.05-g24521d6-dirty (May 06 2022 - 22:09:39 +0800) Allwinner Technology [05.368]DRAM: 512 MiB [05.372]Relocation Offset is: 1dee7000 [05.392]secure enable bit: 0 [05.397]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [05.404]flash init start [05.406]workmode = 16,storage type = 0 try card 2 set card number 2 get card number 2 [05.414][mmc]: mmc driver ver_uboot1 uboot2018:2021-11-19 15:38:00 [05.423][mmc]: get sdc_type fail and use default host:tm4. [05.447][mmc]: Is not Boot mode! [05.450][mmc]: SUNXI SDMMC Controller Version:0x50310 [05.458][mmc]: sunxi_mmc_set_speed_mode 0 [05.461][mmc]: sunxi_mmc_set_speed_mode 0 [05.469][mmc]: ************Try SD card 2************ [05.474][mmc]: mmc 2 cmd timeout 100 status 100 [05.478][mmc]: smc 2 err, cmd 8, RTO [05.482][mmc]: mmc 2 close bus gating and reset [05.487][mmc]: mmc 2 cmd timeout 100 status 100 [05.491][mmc]: smc 2 err, cmd 55, RTO [05.494][mmc]: mmc 2 close bus gating and reset [05.498][mmc]: ************Try MMC card 2************ [05.513][mmc]: sunxi_mmc_set_speed_mode 0 [05.521][mmc]: sunxi_mmc_set_speed_mode 0 [05.525][mmc]: sunxi_mmc_set_speed_mode 0 [05.533][mmc]: mmc 2 cmd timeout 100 status 100 [05.537][mmc]: smc 2 err, cmd 8, RTO [05.540][mmc]: mmc 2 close bus gating and reset [05.545][mmc]: mmc 2 cmd timeout 100 status 100 [05.550][mmc]: smc 2 err, cmd 55, RTO [05.553][mmc]: mmc 2 close bus gating and reset [05.568][mmc]: sunxi_mmc_set_speed_mode 0 [05.575][mmc]: sunxi_mmc_set_speed_mode 1 [05.578][mmc]: sunxi_mmc_set_speed_mode 1 [05.582][mmc]: gen_tuning_blk_bus8: total blk 10 [05.587][mmc]: gen_tuning_blk_bus4: total blk 6 [05.591][mmc]: Using 4 bit tuning now [05.594][mmc]: sunxi_mmc_set_speed_mode 1 [05.599][mmc]: write_tuning_try_freq: write ok [05.604][mmc]: Pattern compare ok [05.607][mmc]: Write tuning pattern ok [05.610][mmc]: sunxi_mmc_set_speed_mode 1 [05.614][mmc]: ================== HSSDR52_SDR25... [05.619][mmc]: sunxi_mmc_set_speed_mode 1 [05.623][mmc]: skip freq 400000 [05.625][mmc]: skip freq 25000000 [05.628][mmc]: freq: 2-50000000-64-4 [05.632][mmc]: sunxi_mmc_set_speed_mode 1 [05.647][mmc]: sunxi_mmc_set_speed_mode 1 [05.662][mmc]: sunxi_mmc_set_speed_mode 1 [05.677][mmc]: sunxi_mmc_set_speed_mode 1 [05.692][mmc]: sunxi_mmc_set_speed_mode 1 [05.707][mmc]: sunxi_mmc_set_speed_mode 1 [05.722][mmc]: sunxi_mmc_set_speed_mode 1 [05.737][mmc]: sunxi_mmc_set_speed_mode 1 [05.752][mmc]: sunxi_mmc_set_speed_mode 1 [05.767][mmc]: sunxi_mmc_set_speed_mode 1 [05.782][mmc]: sunxi_mmc_set_speed_mode 1 [05.796][mmc]: sunxi_mmc_set_speed_mode 1 [05.811][mmc]: sunxi_mmc_set_speed_mode 1 [05.826][mmc]: sunxi_mmc_set_speed_mode 1 [05.841][mmc]: sunxi_mmc_set_speed_mode 1 [05.856][mmc]: sunxi_mmc_set_speed_mode 1 [05.871][mmc]: sunxi_mmc_set_speed_mode 1 [05.886][mmc]: sunxi_mmc_set_speed_mode 1 [05.901][mmc]: sunxi_mmc_set_speed_mode 1 [05.916][mmc]: sunxi_mmc_set_speed_mode 1 [05.931][mmc]: sunxi_mmc_set_speed_mode 1 [05.946][mmc]: sunxi_mmc_set_speed_mode 1 [05.961][mmc]: sunxi_mmc_set_speed_mode 1 [05.976][mmc]: sunxi_mmc_set_speed_mode 1 [05.991][mmc]: sunxi_mmc_set_speed_mode 1 [06.006][mmc]: sunxi_mmc_set_speed_mode 1 [06.021][mmc]: sunxi_mmc_set_speed_mode 1 [06.036][mmc]: sunxi_mmc_set_speed_mode 1 [06.051][mmc]: sunxi_mmc_set_speed_mode 1 [06.066][mmc]: sunxi_mmc_set_speed_mode 1 [06.081][mmc]: sunxi_mmc_set_speed_mode 1 [06.096][mmc]: sunxi_mmc_set_speed_mode 1 [06.111][mmc]: sunxi_mmc_set_speed_mode 1 [06.125][mmc]: sunxi_mmc_set_speed_mode 1 [06.140][mmc]: sunxi_mmc_set_speed_mode 1 [06.155][mmc]: sunxi_mmc_set_speed_mode 1 [06.170][mmc]: sunxi_mmc_set_speed_mode 1 [06.185][mmc]: sunxi_mmc_set_speed_mode 1 [06.200][mmc]: sunxi_mmc_set_speed_mode 1 [06.215][mmc]: sunxi_mmc_set_speed_mode 1 [06.230][mmc]: sunxi_mmc_set_speed_mode 1 [06.245][mmc]: sunxi_mmc_set_speed_mode 1 [06.260][mmc]: sunxi_mmc_set_speed_mode 1 [06.275][mmc]: sunxi_mmc_set_speed_mode 1 [06.290][mmc]: sunxi_mmc_set_speed_mode 1 [06.305][mmc]: sunxi_mmc_set_speed_mode 1 [06.320][mmc]: sunxi_mmc_set_speed_mode 1 [06.335][mmc]: sunxi_mmc_set_speed_mode 1 [06.350][mmc]: sunxi_mmc_set_speed_mode 1 [06.365][mmc]: sunxi_mmc_set_speed_mode 1 [06.380][mmc]: sunxi_mmc_set_speed_mode 1 [06.395][mmc]: sunxi_mmc_set_speed_mode 1 [06.410][mmc]: sunxi_mmc_set_speed_m [07.708][mmc]: sunxi_mmc_set_speed_mode 2 [07.722][mmc]: sunxi_mmc_set_speed_mode 2 [07.735][mmc]: sunxi_mmc_set_speed_mode 2 [07.749][mmc]: sunxi_mmc_set_speed_mode 2 [07.763][mmc]: sunxi_mmc_set_speed_mode 2 [07.777][mmc]: sunxi_mmc_set_speed_mode 2 [07.790][mmc]: sunxi_mmc_set_speed_mode 2 [07.804][mmc]: sunxi_mmc_set_speed_mode 2 [07.818][mmc]: sunxi_mmc_set_speed_mode 2 [07.831][mmc]: sunxi_mmc_set_speed_mode 2 [07.845][mmc]: sunxi_mmc_set_speed_mode 2 [07.859][mmc]: sunxi_mmc_set_speed_mode 2 [07.873][mmc]: sunxi_mmc_set_speed_mode 2 [07.886][mmc]: sunxi_mmc_set_speed_mode 2 [07.900][mmc]: sunxi_mmc_set_speed_mode 2 [07.914][mmc]: sunxi_mmc_set_speed_mode 2 [07.927][mmc]: sunxi_mmc_set_speed_mode 2 [07.941][mmc]: sunxi_mmc_set_speed_mode 2 [07.955][mmc]: sunxi_mmc_set_speed_mode 2 [07.968][mmc]: sunxi_mmc_set_speed_mode 2 [07.982][mmc]: sunxi_mmc_set_speed_mode 2 [07.996][mmc]: sunxi_mmc_set_speed_mode 2 [08.010][mmc]: sunxi_mmc_set_speed_mode 2 [08.023][mmc]: sunxi_mmc_set_speed_mode 2 [08.037][mmc]: sunxi_mmc_set_speed_mode 2 [08.051][mmc]: sunxi_mmc_set_speed_mode 2 [08.064][mmc]: sunxi_mmc_set_speed_mode 2 [08.068][mmc]: sunxi_mmc_set_speed_mode 2 [08.072][mmc]: sunxi_mmc_set_speed_mode 2 [08.076][mmc]: sunxi_mmc_set_speed_mode 2 [08.080][mmc]: sunxi_mmc_set_speed_mode 2 [08.084][mmc]: sunxi_mmc_set_speed_mode 2 [08.088][mmc]: sunxi_mmc_set_speed_mode 2 [08.092][mmc]: sunxi_mmc_set_speed_mode 2 [08.095][mmc]: sunxi_mmc_set_speed_mode 2 [08.099][mmc]: sunxi_mmc_set_speed_mode 2 [08.104][mmc]: sunxi_mmc_set_speed_mode 2 [08.118][mmc]: sunxi_mmc_set_speed_mode 2 [08.132][mmc]: sunxi_mmc_set_speed_mode 2 [08.146][mmc]: sunxi_mmc_set_speed_mode 2 [08.159][mmc]: sunxi_mmc_set_speed_mode 2 [08.173][mmc]: sunxi_mmc_set_speed_mode 2 [08.187][mmc]: sunxi_mmc_set_speed_mode 2 [08.200][mmc]: sunxi_mmc_set_speed_mode 2 [08.214][mmc]: sunxi_mmc_set_speed_mode 2 [08.228][mmc]: [0-44|45] [55-63|9] [08.231][mmc]: [0-44|45] [55-63|9] [08.234][mmc]: sunxi_mmc_set_speed_mode 2 [08.239][mmc]: sunxi_mmc_set_speed_mode 1 [08.242][mmc]: DS26/SDR12: 0xffffffff 0xffffffff [08.247][mmc]: HSSDR52/SDR25: 0xff20ffff 0xffffffff [08.251][mmc]: HSDDR52/DDR50: 0xff1616ff 0xffffffff [08.256][mmc]: HS200/SDR104: 0xffffffff 0xffffffff [08.260][mmc]: HS400: 0xffffffff 0xffffffff [08.264][mmc]: HS400: 0xffffffff 0xffffffff [08.268][mmc]: sunxi_mmc_set_speed_mode 2 [08.272][mmc]: sunxi_mmc_set_speed_mode 2 [08.276][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 4 [08.287]Loading Environment from SUNXI_FLASH... OK [08.298]try to burn key [08.301]out of usb burn from boot: not need burn key [08.305]Net: [08.307]No ethernet found. 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 0x1e set address 0x1e ok SUNXI_EFEX_ERASE_TAG erase_flag = 0x0 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 :0x1f8 part[0] lenlo :0x1f80 part[0] user_type :32768 part[0] keydata :0 part[0] ro :0 part[1] name :env part[1] classname :DISK part[1] addrlo :0x2178 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 :0x2370 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 :0x2568 part[3] lenlo :0x50b8 part[3] user_type :32768 part[3] keydata :0 part[3] ro :0 part[4] name :rootfs part[4] classname :DISK part[4] addrlo :0x7620 part[4] lenlo :0x9f78 part[4] user_type :32768 part[4] keydata :0 part[4] ro :0 part[5] name :dsp0 part[5] classname :DISK part[5] addrlo :0x11598 part[5] lenlo :0x3f0 part[5] user_type :32768 part[5] keydata :0 part[5] ro :0 part[6] name :recovery part[6] classname :DISK part[6] addrlo :0x11988 part[6] lenlo :0x6e40 part[6] user_type :32768 part[6] keydata :0 part[6] ro :0 part[7] name :UDISK part[7] classname :DISK part[7] addrlo :0x187c8 part[7] lenlo :0x0 part[7] user_type :0 part[7] keydata :0 part[7] ro :0 common1(partition3) need it, here is a weak func total part: 9 mbr 0, 1f8, 8000 boot-resource 1, 1f80, 8000 env 2, 1f8, 8000 env-redund 3, 1f8, 8000 boot 4, 50b8, 8000 rootfs 5, 9f78, 8000 dsp0 6, 3f0, 8000 recovery 7, 6e40, 8000 UDISK 8, 0, 0 [11.361]erase all part start need erase flash: 0 no part need to protect user data [11.369]erase all part start SUNXI_EFEX_MBR_TAG mbr size = 0x10000 write primary GPT success write Backup GPT success [11.385]update partition map FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 ******Has init FEX_CMD_fes_verify_value, start 0x1f8, size high 0x0:low 0x2f8c00 FEX_CMD_fes_verify_value 0x3481d9f0 FEX_CMD_fes_verify_value, start 0x2178, size high 0x0:low 0x20000 FEX_CMD_fes_verify_value 0x651f94ea FEX_CMD_fes_verify_value, start 0x2370, size high 0x0:low 0x20000 FEX_CMD_fes_verify_value 0x651f94ea FEX_CMD_fes_verify_value, start 0x2568, size high 0x0:low 0x4f4000 FEX_CMD_fes_verify_value 0x23f25dd3 FEX_CMD_fes_verify_value, start 0x7620, size high 0x0:low 0xfc0000 FEX_CMD_fes_verify_value 0x2000ec7c FEX_CMD_fes_verify_value, start 0x11598, size high 0x0:low 0x3e38c FEX_CMD_fes_verify_value 0xa3442046 bootfile_mode=4 SUNXI_EFEX_BOOT1_TAG boot1 size = 0x104000, max size = 0x200000 uboot size = 0x104000 storage type = 2 FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 bootfile_mode=4 SUNXI_EFEX_BOOT0_TAG boot0 size = 0x10000 [14.717][mmc]: write mmc 2 info ok dram para[0] = 318 dram para[1] = 3 dram para[2] = 7b7bfb dram para[3] = 1 dram para[4] = 10f2 dram para[5] = 2000000 dram para[6] = 1c70 dram para[7] = 42 dram para[8] = 18 dram para[9] = 0 dram para[10] = 4a2195 dram para[11] = 2423190 dram para[12] = 8b061 dram para[13] = b4787896 dram para[14] = 0 dram para[15] = 48484848 dram para[16] = 48 dram para[17] = 1620121e dram para[18] = 0 dram para[19] = 0 dram para[20] = 0 dram para[21] = 760000 dram para[22] = 35 dram para[23] = b4056103 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 [44]HELLO! BOOT0 is starting!OT [47]BOOT0 commit : 88480af-dirty [50]set pll start [52]periph0 has been enabled [55]set pll end [56][pmu]: bus read error [59]board init ok [61]get_pmu_exist() = -1 [63]DRAM BOOT DRIVE INFO: V0.33 [66]DRAM CLK = 792 MHz [68]DRAM Type = 3 (2:DDR2,3:DDR3) [71]DRAMC ZQ value: 0x7b7bfb [74]DRAM ODT value: 0x42. [76]ddr_efuse_type: 0x0 [79]DRAM SIZE =512 M [81]dram_tpr4:0x0 [83]PLL_DDR_CTRL_REG:0xf8004100 [86]DRAM_CLK_REG:0xc0000000 [88][TIMING DEBUG] MR2= 0x18 [92]DRAM simple test OK. [95]dram size =512 [96]card no is 2 [98]sdcard 2 line count 4 [100][mmc]: mmc driver ver3 2021-04-2 16:45 [104][mmc d]: init mmc 2 resource [109][mmc d]: mmc_core_init,1064 [112][mmc d]: mmc 2 ios: bus: 1, clock: 0 [116][mmc]: sunxi_mmc_set_speed_mode 0 [120][mmc d]: set 2 rgctrl 0x20000000 to disable ddr mode [125][mmc d]: set 2 dsbd 0x0 to disable hs400 mode [130][mmc d]: set 2 csdc 0x3 to enable hs400 mode [134][mmc d]: mmc 2 ios: bus: 1, clock: 400000 [138][mmc d]: mmc 2 mclkbase 0x0 [141][mmc d]: mmc_set_mclk: mod_clk 800000 [145][mmc d]: pll clk 24000000 [148][mmc d]: get round card clk 400000, mod_clk 800000 [153][mmc d]: mmc 2 mclkbase 0x8000010e [157][mmc d]: PRIVINFO NOT READ,USE DEF [160][mmc d]: mmc_get_timing_cfg_tm4: 0 0 0x0 0x0, odly 0 sdly 0 [166][mmc d]: mmc_config_delay,628 [170][mmc d]: mmc_config_delay: spd_md:0, freq:0, odly: 0; sdly: 0; dsdly: 0 [176][mmc]: sunxi_mmc_set_speed_mode 0 [180][mmc d]: set 2 rgctrl 0x20000000 to disable ddr mode [185][mmc d]: set 2 dsbd 0x0 to disable hs400 mode [190][mmc d]: set 2 csdc 0x3 to enable hs400 mode [196][mmc]: mmc_send_cmd 0 [198][mmc d]: mmc 2, cmd 0(0x80008000), arg 0x0 [203][mmc d]: mmc 2 resp 0x0 [208][mmc]: Wrong media type 0x0, but host sdc2, try mmc first [213][mmc]: ***Try MMC card 2*** [217][mmc]: mmc_send_cmd 0 [220][mmc d]: mmc 2, cmd 0(0x80008000), arg 0x0 [225][mmc d]: mmc 2 resp 0x0 [229][mmc]: mmc_send_cmd 1 [232][mmc d]: mmc 2, cmd 1(0x80000041), arg 0x0 [237][mmc]: mmc 2 cmd 1 timeout, err 100 [241][mmc]: mmc 2 cmd 1 err 100 [243][mmc]: mmc 2 send op cond failed1 [247][mmc]: MMC card 2 Card did not respond to voltage select! [253][mmc]: ***SD/MMC 2 init error!!!*** [258][mmc]: mmc_send_cmd 0 [260][mmc d]: mmc 2, cmd 0(0x80008000), arg 0x0 [265][mmc d]: mmc 2 resp 0x0 [269][mmc]: ***Try SD card 2*** [272][mmc]: mmc_send_cmd 8 [275][mmc d]: mmc 2, cmd 8(0x80000148), arg 0x1aa [280][mmc]: mmc 2 cmd 8 timeout, err 100 [284][mmc]: mmc 2 cmd 8 err 100 [287][mmc]: mmc 2 send if cond failed [290][mmc]: mmc_send_cmd 55 [293][mmc d]: mmc 2, cmd 55(0x80000177), arg 0x0 [298][mmc]: mmc 2 cmd 55 timeout, err 100 [302][mmc]: mmc 2 cmd 55 err 100 [305][mmc]: mmc 2 send app cmd failed [309][mmc]: SD card 2 Card did not respond to voltage select! [314][mmc]: ***SD/MMC 2 init error!!!*** [318][mmc]: mmc 2 register failed [321]Loading boot-pkg fail(error=2) [324][mmc d]: mmc2 unregister [327][mmc d]: sunxi mmc2 exit
-
@liangjian
boot0 没有 dts,代码在这个位置: lichee/brandy-2.0/spl/ -
@whycan
下载日志:[668]fes begin commit:88480af-dirty [671]set pll start [673]periph0 has been enabled [676]set pll end [678][pmu]: bus read error [680]board init ok [682]beign to init dram [684]get_pmu_exist() = -1 [687]ddr_efuse_type: 0x0 [689]trefi:7.8ms [691][AUTO DEBUG] single rank and full DQ! [695]ddr_efuse_type: 0x0 [697]trefi:7.8ms [700][AUTO DEBUG] rank 0 row = 15 [703][AUTO DEBUG] rank 0 bank = 8 [706][AUTO DEBUG] rank 0 page size = 2 KB [710]DRAM BOOT DRIVE INFO: V0.33 [713]DRAM CLK = 792 MHz [715]DRAM Type = 3 (2:DDR2,3:DDR3) [718]DRAMC ZQ value: 0x7b7bfb [721]DRAM ODT value: 0x42. [724]ddr_efuse_type: 0x0 [727]DRAM SIZE =512 M [729]dram_tpr4:0x0 [730]PLL_DDR_CTRL_REG:0xf8004100 [733]DRAM_CLK_REG:0xc0000000 [736][TIMING DEBUG] MR2= 0x18 [740]DRAM simple test OK. [743]init dram ok U-Boot 2018.05-g24521d6-dirty (May 06 2022 - 22:09:39 +0800) Allwinner Technology [04.066]DRAM: 512 MiB [04.070]Relocation Offset is: 1dee7000 [04.090]secure enable bit: 0 [04.095]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [04.102]flash init start [04.104]workmode = 16,storage type = 0 try card 2 set card number 2 get card number 2 [04.112][mmc]: mmc driver ver_uboot1 uboot2018:2021-11-19 15:38:00 [04.121][mmc]: get sdc_type fail and use default host:tm4. [04.145][mmc]: Is not Boot mode! [04.148][mmc]: SUNXI SDMMC Controller Version:0x50310 [04.156][mmc]: sunxi_mmc_set_speed_mode 0 [04.160][mmc]: sunxi_mmc_set_speed_mode 0 [04.167][mmc]: ************Try SD card 2************ [04.172][mmc]: mmc 2 cmd timeout 100 status 100 [04.176][mmc]: smc 2 err, cmd 8, RTO [04.180][mmc]: mmc 2 close bus gating and reset [04.185][mmc]: mmc 2 cmd timeout 100 status 100 [04.189][mmc]: smc 2 err, cmd 55, RTO [04.192][mmc]: mmc 2 close bus gating and reset [04.197][mmc]: ************Try MMC card 2************ [04.210][mmc]: sunxi_mmc_set_speed_mode 0 [04.219][mmc]: sunxi_mmc_set_speed_mode 0 [04.223][mmc]: sunxi_mmc_set_speed_mode 0 [04.231][mmc]: mmc 2 cmd timeout 100 status 100 [04.235][mmc]: smc 2 err, cmd 8, RTO [04.238][mmc]: mmc 2 close bus gating and reset [04.243][mmc]: mmc 2 cmd timeout 100 status 100 [04.247][mmc]: smc 2 err, cmd 55, RTO [04.251][mmc]: mmc 2 close bus gating and reset [04.266][mmc]: sunxi_mmc_set_speed_mode 0 [04.272][mmc]: sunxi_mmc_set_speed_mode 1 [04.276][mmc]: sunxi_mmc_set_speed_mode 1 [04.280][mmc]: gen_tuning_blk_bus8: total blk 10 [04.284][mmc]: gen_tuning_blk_bus4: total blk 6 [04.289][mmc]: Using 4 bit tuning now [04.292][mmc]: sunxi_mmc_set_speed_mode 1 [04.297][mmc]: write_tuning_try_freq: write ok [04.302][mmc]: Pattern compare ok [04.305][mmc]: Write tuning pattern ok [04.308][mmc]: sunxi_mmc_set_speed_mode 1 [04.312][mmc]: ================== HSSDR52_SDR25... [04.317][mmc]: sunxi_mmc_set_speed_mode 1 [04.320][mmc]: skip freq 400000 [04.323][mmc]: skip freq 25000000 [04.326][mmc]: freq: 2-50000000-64-4 [04.330][mmc]: sunxi_mmc_set_speed_mode 1 [04.345][mmc]: sunxi_mmc_set_speed_mode 1 [04.360][mmc]: sunxi_mmc_set_speed_mode 1 [04.375][mmc]: sunxi_mmc_set_speed_mode 1 [04.390][mmc]: sunxi_mmc_set_speed_mode 1 [04.405][mmc]: sunxi_mmc_set_speed_mode 1 [04.420][mmc]: sunxi_mmc_set_speed_mode 1 [04.435][mmc]: sunxi_mmc_set_speed_mode 1 [04.450][mmc]: sunxi_mmc_set_speed_mode 1 [04.465][mmc]: sunxi_mmc_set_speed_mode 1 [04.480][mmc]: sunxi_mmc_set_speed_mode 1 [04.495][mmc]: sunxi_mmc_set_speed_mode 1 [04.511][mmc]: sunxi_mmc_set_speed_mode 1 [04.526][mmc]: sunxi_mmc_set_speed_mode 1 [04.541][mmc]: sunxi_mmc_set_speed_mode 1 [04.556][mmc]: sunxi_mmc_set_speed_mode 1 [04.571][mmc]: sunxi_mmc_set_speed_mode 1 [04.586][mmc]: sunxi_mmc_set_speed_mode 1 [04.601][mmc]: sunxi_mmc_set_speed_mode 1 [04.616][mmc]: sunxi_mmc_set_speed_mode 1 [04.631][mmc]: sunxi_mmc_set_speed_mode 1 [04.646][mmc]: sunxi_mmc_set_speed_mode 1 [04.661][mmc]: sunxi_mmc_set_speed_mode 1 [04.676][mmc]: sunxi_mmc_set_speed_mode 1 [04.691][mmc]: sunxi_mmc_set_speed_mode 1 [04.706][mmc]: sunxi_mmc_set_speed_mode 1 [04.721][mmc]: sunxi_mmc_set_speed_mode 1 [04.736][mmc]: sunxi_mmc_set_speed_mode 1 [04.751][mmc]: sunxi_mmc_set_speed_mode 1 [04.766][mmc]: sunxi_mmc_set_speed_mode 1 [04.781][mmc]: sunxi_mmc_set_speed_mode 1 [04.797][mmc]: sunxi_mmc_set_speed_mode 1 [04.812][mmc]: sunxi_mmc_set_speed_mode 1 [04.827][mmc]: sunxi_mmc_set_speed_mode 1 [04.842][mmc]: sunxi_mmc_set_speed_mode 1 [04.857][mmc]: sunxi_mmc_set_speed_mode 1 [04.872][mmc]: sunxi_mmc_set_speed_mode 1 [04.887][mmc]: sunxi_mmc_set_speed_mode 1 [04.902][mmc]: sunxi_mmc_set_speed_mode 1 [04.917][mmc]: sunxi_mmc_set_speed_mode 1 [04.932][mmc]: sunxi_mmc_set_speed_mode 1 [04.947][mmc]: sunxi_mmc_set_speed_mode 1 [04.962][mmc]: sunxi_mmc_set_speed_mode 1 [04.977][mmc]: sunxi_mmc_set_speed_mode 1 [04.992][mmc]: sunxi_mmc_set_speed_mode 1 [05.007][mmc]: sunxi_mmc_set_speed_mode 1 [05.022][mmc]: sunxi_mmc_set_speed_mode 1 [05.037][mmc]: sunxi_mmc_set_speed_mode 1 [05.052][mmc]: sunxi_mmc_set_speed_mode 1 [05.067][mmc]: sunxi_mmc_set_speed_mode 1 [05.082][mmc]: sunxi_mmc_set_speed_mode 1 [05.097][mmc]: sunxi_mmc_set_speed_mode 1 [05.113][mmc]: sunxi_mmc_set_speed_mode 1 [05.128][mmc]: sunxi_mmc_set_speed_mode 1 [05.143][mmc]: sunxi_mmc_set_speed_mode 1 [05.158][mmc]: sunxi_mmc_set_speed_mode 1 [05.173][mmc]: sunxi_mmc_set_speed_mode 1 [05.188][mmc]: sunxi_mmc_set_speed_mode 1 [05.203][mmc]: sunxi_mmc_set_speed_mode 1 [05.218][mmc]: sunxi_mmc_set_speed_mode 1 [05.233][mmc]: sunxi_mmc_set_speed_mode 1 [05.248][mmc]: sunxi_mmc_set_speed_mode 1 [05.263][mmc]: sunxi_mmc_set_speed_mode 1 [05.278][mmc]: sunxi_mmc_set_speed_mode 1 [05.293][mmc]: [0-63|64] [05.295][mmc]: sunxi_mmc_set_speed_mode 1 [05.299][mmc]: ================== HSDDR52_DDR50... [05.304][mmc]: sunxi_mmc_set_speed_mode 2 [05.308][mmc]: skip freq 400000 [05.311][mmc]: freq: 1-25000000-64-4 [05.314][mmc]: sunxi_mmc_set_speed_mode 2 [05.329][mmc]: sunxi_mmc_set_speed_mode 2 [05.344][mmc]: sunxi_mmc_set_speed_mode 2 [05.359][mmc]: sunxi_mmc_set_speed_mode 2 [05.374][mmc]: sunxi_mmc_set_speed_mode 2 [05.388][mmc]: sunxi_mmc_set_speed_mode 2 [05.403][mmc]: sunxi_mmc_set_speed_mode 2 [05.418][mmc]: sunxi_mmc_set_speed_mode 2 [05.433][mmc]: sunxi_mmc_set_speed_mode 2 [05.448][mmc]: sunxi_mmc_set_speed_mode 2 [05.463][mmc]: sunxi_mmc_set_speed_mode 2 [05.477][mmc]: sunxi_mmc_set_speed_mode 2 [05.492][mmc]: sunxi_mmc_set_speed_mode 2 [05.507][mmc]: sunxi_mmc_set_speed_mode 2 [05.522][mmc]: sunxi_mmc_set_speed_mode 2 [05.537][mmc]: sunxi_mmc_set_speed_mode 2 [05.551][mmc]: sunxi_mmc_set_speed_mode 2 [05.566][mmc]: sunxi_mmc_set_speed_mode 2 [05.581][mmc]: sunxi_mmc_set_speed_mode 2 [05.596][mmc]: sunxi_mmc_set_speed_mode 2 [05.611][mmc]: sunxi_mmc_set_speed_mode 2 [05.626][mmc]: sunxi_mmc_set_speed_mode 2 [05.640][mmc]: sunxi_mmc_set_speed_mode 2 [05.655][mmc]: sunxi_mmc_set_speed_mode 2 [05.670][mmc]: sunxi_mmc_set_speed_mode 2 [05.685][mmc]: sunxi_mmc_set_speed_mode 2 [05.700][mmc]: sunxi_mmc_set_speed_mode 2 [05.714][mmc]: sunxi_mmc_set_speed_mode 2 [05.729][mmc]: sunxi_mmc_set_speed_mode 2 [05.744][mmc]: sunxi_mmc_set_speed_mode 2 [05.759][mmc]: sunxi_mmc_set_speed_mode 2 [05.774][mmc]: sunxi_mmc_set_speed_mode 2 [05.789][mmc]: sunxi_mmc_set_speed_mode 2 [05.803][mmc]: sunxi_mmc_set_speed_mode 2 [05.818][mmc]: sunxi_mmc_set_speed_mode 2 [05.833][mmc]: sunxi_mmc_set_speed_mode 2 [05.848][mmc]: sunxi_mmc_set_speed_mode 2 [05.863][mmc]: sunxi_mmc_set_speed_mode 2 [05.878][mmc]: sunxi_mmc_set_speed_mode 2 [05.892][mmc]: sunxi_mmc_set_speed_mode 2 [05.907][mmc]: sunxi_mmc_set_speed_mode 2 [05.922][mmc]: sunxi_mmc_set_speed_mode 2 [05.937][mmc]: sunxi_mmc_set_speed_mode 2 [05.952][mmc]: sunxi_mmc_set_speed_mode 2 [05.967][mmc]: sunxi_mmc_set_speed_mode 2 [05.981][mmc]: sunxi_mmc_set_speed_mode 2 [05.985][mmc]: sunxi_mmc_set_speed_mode 2 [05.989][mmc]: sunxi_mmc_set_speed_mode 2 [05.993][mmc]: sunxi_mmc_set_speed_mode 2 [05.997][mmc]: sunxi_mmc_set_speed_mode 2 [06.001][mmc]: sunxi_mmc_set_speed_mode 2 [06.005][mmc]: sunxi_mmc_set_speed_mode 2 [06.009][mmc]: sunxi_mmc_set_speed_mode 2 [06.013][mmc]: sunxi_mmc_set_speed_mode 2 [06.016][mmc]: sunxi_mmc_set_speed_mode 2 [06.025][mmc]: sunxi_mmc_set_speed_mode 2 [06.040][mmc]: sunxi_mmc_set_speed_mode 2 [06.055][mmc]: sunxi_mmc_set_speed_mode 2 [06.070][mmc]: sunxi_mmc_set_speed_mode 2 [06.085][mmc]: sunxi_mmc_set_speed_mode 2 [06.100][mmc]: sunxi_mmc_set_speed_mode 2 [06.114][mmc]: sunxi_mmc_set_speed_mode 2 [06.129][mmc]: sunxi_mmc_set_speed_mode 2 [06.144][mmc]: sunxi_mmc_set_speed_mode 2 [06.159][mmc]: freq: 2-50000000-64-4 [06.162][mmc]: sunxi_mmc_set_speed_mode 2 [06.176][mmc]: sunxi_mmc_set_speed_mode 2 [06.190][mmc]: sunxi_mmc_set_speed_mode 2 [06.204][mmc]: sunxi_mmc_set_speed_mode 2 [06.217][mmc]: sunxi_mmc_set_speed_mode 2 [06.231][mmc]: sunxi_mmc_set_speed_mode 2 [06.245][mmc]: sunxi_mmc_set_speed_mode 2 [06.259][mmc]: sunxi_mmc_set_speed_mode 2 [06.273][mmc]: sunxi_mmc_set_speed_mode 2 [06.286][mmc]: sunxi_mmc_set_speed_mode 2 [06.300][mmc]: sunxi_mmc_set_speed_mode 2 [06.314][mmc]: sunxi_mmc_set_speed_mode 2 [06.328][mmc]: sunxi_mmc_set_speed_mode 2 [06.342][mmc]: sunxi_mmc_set_speed_mode 2 [06.355][mmc]: sunxi_mmc_set_speed_mode 2 [06.369][mmc]: sunxi_mmc_set_speed_mode 2 [06.383][mmc]: sunxi_mmc_set_speed_mode 2 [06.397][mmc]: sunxi_mmc_set_speed_mode 2 [06.411][mmc]: sunxi_mmc_set_speed_mode 2 [06.424][mmc]: sunxi_mmc_set_speed_mode 2 [06.438][mmc]: sunxi_mmc_set_speed_mode 2 [06.452][mmc]: sunxi_mmc_set_speed_mode 2 [06.466][mmc]: sunxi_mmc_set_speed_mode 2 [06.480][mmc]: sunxi_mmc_set_speed_mode 2 [06.494][mmc]: sunxi_mmc_set_speed_mode 2 [06.507][mmc]: sunxi_mmc_set_speed_mode 2 [06.521][mmc]: sunxi_mmc_set_speed_mode 2 [06.535][mmc]: sunxi_mmc_set_speed_mode 2 [06.549][mmc]: sunxi_mmc_set_speed_mode 2 [06.563][mmc]: sunxi_mmc_set_speed_mode 2 [06.576][mmc]: sunxi_mmc_set_speed_mode 2 [06.590][mmc]: sunxi_mmc_set_speed_mode 2 [06.604][mmc]: sunxi_mmc_set_speed_mode 2 [06.618][mmc]: sunxi_mmc_set_speed_mode 2 [06.632][mmc]: sunxi_mmc_set_speed_mode 2 [06.645][mmc]: sunxi_mmc_set_speed_mode 2 [06.659][mmc]: sunxi_mmc_set_speed_mode 2 [06.673][mmc]: sunxi_mmc_set_speed_mode 2 [06.687][mmc]: sunxi_mmc_set_speed_mode 2 [06.701][mmc]: sunxi_mmc_set_speed_mode 2 [06.714][mmc]: sunxi_mmc_set_speed_mode 2 [06.728][mmc]: sunxi_mmc_set_speed_mode 2 [06.742][mmc]: sunxi_mmc_set_speed_mode 2 [06.756][mmc]: sunxi_mmc_set_speed_mode 2 [06.770][mmc]: sunxi_mmc_set_speed_mode 2 [06.784][mmc]: sunxi_mmc_set_speed_mode 2 [06.787][mmc]: sunxi_mmc_set_speed_mode 2 [06.791][mmc]: sunxi_mmc_set_speed_mode 2 [06.795][mmc]: sunxi_mmc_set_speed_mode 2 [06.799][mmc]: sunxi_mmc_set_speed_mode 2 [06.803][mmc]: sunxi_mmc_set_speed_mode 2 [06.807][mmc]: sunxi_mmc_set_speed_mode 2 [06.811][mmc]: sunxi_mmc_set_speed_mode 2 [06.814][mmc]: sunxi_mmc_set_speed_mode 2 [06.818][mmc]: sunxi_mmc_set_speed_mode 2 [06.832][mmc]: sunxi_mmc_set_speed_mode 2 [06.846][mmc]: sunxi_mmc_set_speed_mode 2 [06.860][mmc]: sunxi_mmc_set_speed_mode 2 [06.873][mmc]: sunxi_mmc_set_speed_mode 2 [06.887][mmc]: sunxi_mmc_set_speed_mode 2 [06.901][mmc]: sunxi_mmc_set_speed_mode 2 [06.915][mmc]: sunxi_mmc_set_speed_mode 2 [06.929][mmc]: sunxi_mmc_set_speed_mode 2 [06.942][mmc]: sunxi_mmc_set_speed_mode 2 [06.956][mmc]: [0-44|45] [55-63|9] [06.959][mmc]: [0-44|45] [54-63|10] [06.963][mmc]: sunxi_mmc_set_speed_mode 2 [06.967][mmc]: sunxi_mmc_set_speed_mode 1 [06.971][mmc]: DS26/SDR12: 0xffffffff 0xffffffff [06.975][mmc]: HSSDR52/SDR25: 0xff20ffff 0xffffffff [06.980][mmc]: HSDDR52/DDR50: 0xff1616ff 0xffffffff [06.984][mmc]: HS200/SDR104: 0xffffffff 0xffffffff [06.989][mmc]: HS400: 0xffffffff 0xffffffff [06.993][mmc]: HS400: 0xffffffff 0xffffffff [06.997][mmc]: sunxi_mmc_set_speed_mode 2 [07.001][mmc]: sunxi_mmc_set_speed_mode 2 [07.005][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 4 [07.015]Loading Environment from SUNXI_FLASH... OK [07.026]try to burn key [07.030]out of usb burn from boot: not need burn key [07.034]Net: [07.035]No ethernet found. 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 0x15 set address 0x15 ok SUNXI_EFEX_ERASE_TAG erase_flag = 0x0 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 :0x1f8 part[0] lenlo :0x1f80 part[0] user_type :32768 part[0] keydata :0 part[0] ro :0 part[1] name :env part[1] classname :DISK part[1] addrlo :0x2178 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 :0x2370 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 :0x2568 part[3] lenlo :0x50b8 part[3] user_type :32768 part[3] keydata :0 part[3] ro :0 part[4] name :rootfs part[4] classname :DISK part[4] addrlo :0x7620 part[4] lenlo :0x9f78 part[4] user_type :32768 part[4] keydata :0 part[4] ro :0 part[5] name :dsp0 part[5] classname :DISK part[5] addrlo :0x11598 part[5] lenlo :0x3f0 part[5] user_type :32768 part[5] keydata :0 part[5] ro :0 part[6] name :recovery part[6] classname :DISK part[6] addrlo :0x11988 part[6] lenlo :0x6e40 part[6] user_type :32768 part[6] keydata :0 part[6] ro :0 part[7] name :UDISK part[7] classname :DISK part[7] addrlo :0x187c8 part[7] lenlo :0x0 part[7] user_type :0 part[7] keydata :0 part[7] ro :0 common1(partition3) need it, here is a weak func total part: 9 mbr 0, 1f8, 8000 boot-resource 1, 1f80, 8000 env 2, 1f8, 8000 env-redund 3, 1f8, 8000 boot 4, 50b8, 8000 rootfs 5, 9f78, 8000 dsp0 6, 3f0, 8000 recovery 7, 6e40, 8000 UDISK 8, 0, 0 [10.102]erase all part start need erase flash: 0 no part need to protect user data [10.111]erase all part start SUNXI_EFEX_MBR_TAG mbr size = 0x10000 write primary GPT success write Backup GPT success [10.126]update partition map FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 ******Has init FEX_CMD_fes_verify_value, start 0x1f8, size high 0x0:low 0x2f8c00 FEX_CMD_fes_verify_value 0x3481d9f0 FEX_CMD_fes_verify_value, start 0x2178, size high 0x0:low 0x20000 FEX_CMD_fes_verify_value 0xd3dc042 FEX_CMD_fes_verify_value, start 0x2370, size high 0x0:low 0x20000 FEX_CMD_fes_verify_value 0xd3dc042 FEX_CMD_fes_verify_value, start 0x2568, size high 0x0:low 0x4f4000 FEX_CMD_fes_verify_value 0xec56d161 FEX_CMD_fes_verify_value, start 0x7620, size high 0x0:low 0xf80000 FEX_CMD_fes_verify_value 0xc16bbda7 FEX_CMD_fes_verify_value, start 0x11598, size high 0x0:low 0x3e38c FEX_CMD_fes_verify_value 0xa3442046 bootfile_mode=4 SUNXI_EFEX_BOOT1_TAG boot1 size = 0x104000, max size = 0x200000 uboot size = 0x104000 storage type = 2 FEX_CMD_fes_verify_status FEX_CMD_fes_verify last err=0 bootfile_mode=4 SUNXI_EFEX_BOOT0_TAG boot0 size = 0x10000 [13.299][mmc]: write mmc 2 info ok dram para[0] = 318 dram para[1] = 3 dram para[2] = 7b7bfb dram para[3] = 1 dram para[4] = 10f2 dram para[5] = 2000000 dram para[6] = 1c70 dram para[7] = 42 dram para[8] = 18 dram para[9] = 0 dram para[10] = 4a2195 dram para[11] = 2423190 dram para[12] = 8b061 dram para[13] = b4787896 dram para[14] = 0 dram para[15] = 48484848 dram para[16] = 48 dram para[17] = 1620121e dram para[18] = 0 dram para[19] = 0 dram para[20] = 0 dram para[21] = 760000 dram para[22] = 35 dram para[23] = b4056103 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
开机日志:
[44]HELLO! BOOT0 is starting!T [47]BOOT0 commit : 88480af-dirty [50]set pll start [52]periph0 has been enabled [55]set pll end [56][pmu]: bus read error [59]board init ok [61]get_pmu_exist() = -1 [63]DRAM BOOT DRIVE INFO: V0.33 [66]DRAM CLK = 792 MHz [68]DRAM Type = 3 (2:DDR2,3:DDR3) [71]DRAMC ZQ value: 0x7b7bfb [74]DRAM ODT value: 0x42. [76]ddr_efuse_type: 0x0 [79]DRAM SIZE =512 M [81]dram_tpr4:0x0 [83]PLL_DDR_CTRL_REG:0xf8004100 [86]DRAM_CLK_REG:0xc0000000 [88][TIMING DEBUG] MR2= 0x18 [92]DRAM simple test OK. [95]dram size =512 [96]card no is 2 [98]sdcard 2 line count 4 [100][mmc]: mmc driver ver 2021-04-2 16:45 [104][mmc d]: init mmc 2 resource [109][mmc d]: mmc_core_init,1063 [112][mmc]: mmc_1 2 ios: bus: 1, clock: 0 speed_mode:0 [117][mmc d]: set 2 rgctrl 0x20000000 to disable ddr mode [123][mmc d]: set 2 dsbd 0x0 to disable hs400 mode [127][mmc d]: set 2 csdc 0x3 to enable hs400 mode [132][mmc]: mmc_1 2 ios: bus: 1, clock: 400000 speed_mode:0 [137][mmc d]: mmc 2 mclkbase 0x0 [140][mmc d]: mmc_set_mclk: mod_clk 800000 [144][mmc d]: pll clk 24000000 [147][mmc d]: get round card clk 400000, mod_clk 800000 [152][mmc d]: mmc 2 mclkbase 0x8000010e [156][mmc d]: PRIVINFO NOT READ,USE DEF [159][mmc d]: mmc_get_timing_cfg_tm4: 0 0 0x0 0x0, odly 0 sdly 0 [165][mmc d]: mmc_config_delay,628 [168][mmc d]: mmc_config_delay: spd_md:0, freq:0, odly: 0; sdly: 0; dsdly: 0 [175][mmc d]: set 2 rgctrl 0x20000000 to disable ddr mode [180][mmc d]: set 2 dsbd 0x0 to disable hs400 mode [185][mmc d]: set 2 csdc 0x3 to enable hs400 mode [190][mmc d]: mmc 2, cmd 0(0x80008000), arg 0x0 [195][mmc d]: mmc 2 resp 0x0 [200][mmc]: Wrong media type 0x0, but host sdc2, try mmc first [205][mmc]: ***Try MMC card 2*** [209][mmc d]: mmc 2, cmd 0(0x80008000), arg 0x0 [214][mmc d]: mmc 2 resp 0x0 [219][mmc d]: mmc 2, cmd 1(0x80000041), arg 0x0 [224][mmc]: mmc 2 cmd 1 timeout, err 100 [227][mmc]: mmc 2 cmd 1 err 100 [230][mmc]: mmc 2 send op cond failed [234][mmc]: MMC card 2 Card did not respond to voltage select! [239][mmc]: ***SD/MMC 2 init error!!!*** [244][mmc d]: mmc 2, cmd 0(0x80008000), arg 0x0 [249][mmc d]: mmc 2 resp 0x0 [254][mmc]: ***Try SD card 2*** [257][mmc d]: mmc 2, cmd 8(0x80000148), arg 0x1aa [262][mmc]: mmc 2 cmd 8 timeout, err 100 [265][mmc]: mmc 2 cmd 8 err 100 [268][mmc]: mmc 2 send if cond failed [272][mmc d]: mmc 2, cmd 55(0x80000177), arg 0x0 [277][mmc]: mmc 2 cmd 55 timeout, err 100 [281][mmc]: mmc 2 cmd 55 err 100 [284][mmc]: mmc 2 send app cmd failed [287][mmc]: SD card 2 Card did not respond to voltage select! [293][mmc]: ***SD/MMC 2 init error!!!*** [297][mmc]: mmc 2 register failed [300]Loading boot-pkg fail(error=2) [303][mmc d]: mmc2 unregister [306][mmc d]: sunxi mmc2 exit
-
@whycan
如下是 SDC0 SD 启动日志9984 [42]HELLO! BOOT0 is starting! [44]BOOT0 commit : 88480af-dirty [48]set pll start [49]periph0 has been enabled [52]set pll end [54][pmu]: bus read error [56]board init ok [58]get_pmu_exist() = -1 [60]ddr_efuse_type: 0x0 [63]trefi:7.8ms [65][AUTO DEBUG] single rank and full DQ! [69]ddr_efuse_type: 0x0 [71]trefi:7.8ms [73][AUTO DEBUG] rank 0 row = 15 [76][AUTO DEBUG] rank 0 bank = 8 [79][AUTO DEBUG] rank 0 page size = 2 KB [83]DRAM BOOT DRIVE INFO: V0.33 [86]DRAM CLK = 792 MHz [88]DRAM Type = 3 (2:DDR2,3:DDR3) [91]DRAMC ZQ value: 0x7b7bfb [94]DRAM ODT value: 0x42. [97]ddr_efuse_type: 0x0 [100]DRAM SIZE =512 M [102]dram_tpr4:0x0 [103]PLL_DDR_CTRL_REG:0xf8004100 [106]DRAM_CLK_REG:0xc0000000 [109][TIMING DEBUG] MR2= 0x18 [113]DRAM simple test OK. [116]dram size =512 [117]card no is 0 [119]sdcard 0 line count 4 [122][mmc]: mmc driver ver 2021-04-2 16:45 [126][mmc d]: init mmc 0 resource [131][mmc d]: mmc_core_init,1052 [134][mmc]: mmc_2 0 ios: bus: 1, clock: 0 speed_mode:0 [139][mmc d]: set 0 rgctrl 0x20000000 to disable ddr mode [144][mmc]: mmc_2 0 ios: bus: 1, clock: 400000 speed_mode:0 [149][mmc d]: mmc 0 mclkbase 0x0 [152][mmc d]: mmc 0 rntsr 0x81710000 [156][mmc d]: mmc_set_mclk: mod_clk 800000 [160][mmc d]: pll clk 24000000 [162][mmc d]: get round card clk 400000, mod_clk 800000 [167][mmc d]: mmc 0 mclkbase 0x8000010e [171][mmc d]: mmc_config_delay: odly: 0 sldy: 0 [176][mmc d]: mmc_config_delay,580 [179][mmc d]: set 0 rgctrl 0x20000000 to disable ddr mode [185][mmc d]: mmc 0, cmd 0(0x80008000), arg 0x0 [190][mmc d]: mmc 0 resp 0x0 [194][mmc]: Wrong media type 0x0 [197][mmc]: ***Try SD card 0*** [200][mmc d]: mmc 0, cmd 8(0x80000148), arg 0x1aa [205][mmc d]: mmc 0 resp 0x1aa [208][mmc d]: mmc 0, cmd 55(0x80000177), arg 0x0 [212][mmc d]: mmc 0 resp 0x120 [215][mmc d]: mmc 0, cmd 41(0x80000069), arg 0x40fe0000 [220][mmc d]: mmc 0 resp 0x40ff8000 [225][mmc d]: mmc 0, cmd 55(0x80000177), arg 0x0 [229][mmc d]: mmc 0 resp 0x120 [232][mmc d]: mmc 0, cmd 41(0x80000069), arg 0x40fe0000 [237][mmc d]: mmc 0 resp 0xc0ff8000 [242][mmc d]: mmc 0, cmd 2(0x800001c2), arg 0x0 [246][mmc d]: mmc 0 resp 0x301569d 0x851a1ccf 0x44333247 0x3534453 [252][mmc d]: mmc 0, cmd 3(0x80000143), arg 0x0 [257][mmc d]: mmc 0 resp 0xaaaa0520 [260][mmc d]: mmc 0, cmd 9(0x800001c9), arg 0xaaaa0000 [266][mmc d]: mmc 0 resp 0xa4040c3 0xedc87f80 0x5b590000 0x400e0032 [272][mmc d]: mmc 0, cmd 13(0x8000014d), arg 0xaaaa0000 [277][mmc d]: mmc 0 resp 0x700 [280][mmc d]: mmc 0 cmd 7 check rsp busy [284][mmc d]: mmc 0, cmd 7(0x80000147), arg 0xaaaa0000 [289][mmc d]: mmc 0 resp 0x700 [292][mmc]: mmc_2 0 ios: bus: 1, clock: 25000000 speed_mode:0 [297][mmc d]: mmc 0 mclkbase 0x0 [300][mmc d]: mmc 0 rntsr 0x81710000 [304][mmc d]: mmc_set_mclk: mod_clk 50000000 [308][mmc d]: pll clk 1200000000 [311][mmc d]: get round card clk 25000000, mod_clk 50000000 [316][mmc d]: mmc 0 mclkbase 0x8200010b [320][mmc d]: mmc_config_delay: odly: 0 sldy: 0 [325][mmc d]: mmc_config_delay,580 [328][mmc d]: set 0 rgctrl 0x20000000 to disable ddr mode [333][mmc d]: mmc 0, cmd 55(0x80000177), arg 0xaaaa0000 [338][mmc d]: mmc 0 resp 0x920 [341][mmc d]: mmc 0, cmd 51(0x80002373), arg 0x0 [346][mmc d]: mmc 0 trans data 8 bytes [349][mmc d]: mmc 0 resp 0x920 [352][mmc d]: mmc 0, cmd 6(0x80002346), arg 0xfffff1 [357][mmc d]: mmc 0 trans data 64 bytes [362][mmc d]: mmc 0 resp 0x900 [365][mmc d]: mmc 0, cmd 6(0x80002346), arg 0x80fffff1 [370][mmc d]: mmc 0 trans data 64 bytes [375][mmc d]: mmc 0 resp 0x900 [378][mmc d]: mmc re-update_phase [381][mmc d]: mmc re-update_phase [384][mmc d]: mmc->card_caps 0x5, ddr caps:0x0 [388][mmc d]: mmc->card_caps 0x5, ddr caps:0x0 [393][mmc d]: mmc 0, cmd 55(0x80000177), arg 0xaaaa0000 [398][mmc d]: mmc 0 resp 0x920 [401][mmc d]: mmc 0, cmd 6(0x80000146), arg 0x2 [405][mmc d]: mmc 0 resp 0x920 [408][mmc]: mmc_2 0 ios: bus: 4, clock: 25000000 speed_mode:1 [413][mmc d]: mmc 0 mclkbase 0x0 [416][mmc d]: mmc 0 rntsr 0x81710000 [420][mmc d]: mmc_set_mclk: mod_clk 50000000 [423][mmc d]: pll clk 1200000000 [426][mmc d]: get round card clk 25000000, mod_clk 50000000 [432][mmc d]: mmc 0 mclkbase 0x8200010b [436][mmc d]: mmc_config_delay: odly: 0 sldy: 0 [440][mmc d]: mmc_config_delay,580 [443][mmc d]: set 0 rgctrl 0xa0000000 to disable ddr mode [449][mmc d]: mmc_startup: set clock 50000000 [453][mmc]: mmc_2 0 ios: bus: 4, clock: 50000000 speed_mode:1 [458][mmc d]: mmc 0 mclkbase 0x0 [461][mmc d]: mmc 0 rntsr 0x81710000 [465][mmc d]: mmc_set_mclk: mod_clk 100000000 [469][mmc d]: pll clk 1200000000 [472][mmc d]: get round card clk 50000000, mod_clk 100000000 [477][mmc d]: mmc 0 mclkbase 0x8200000b [481][mmc d]: mmc_config_delay: odly: 0 sldy: 0 [485][mmc d]: mmc_config_delay,580 [488][mmc d]: set 0 rgctrl 0xa0000000 to disable ddr mode [494][mmc]: HSSDR52/SDR25 4 bit [497][mmc]: 50000000 Hz [499][mmc]: 30436 MB [501][mmc]: ***SD/MMC 0 init OK!!!*** [504][mmc d]: mmc 0, cmd 16(0x80000150), arg 0x200 [509][mmc d]: mmc 0 resp 0x900 [512][mmc d]: mmc 0, cmd 18(0x80003352), arg 0x8020 [516][mmc d]: mmc 0 trans data 32768 bytes [522][mmc d]: mmc 0 cacl rd dma timeout 107f97f [526][mmc d]: idst *****0x2****** [529][mmc d]: mmc 0 resp 0x900 [532][mmc d]: mmc 0 cmd 12 check rsp busy [536][mmc d]: mmc 0, cmd 13(0x8000014d), arg 0xaaaa0000 [541][mmc d]: mmc 0 resp 0x900 [544][mmc d]: mmc 0, cmd 16(0x80000150), arg 0x200 [549][mmc d]: mmc 0 resp 0x900 [551][mmc d]: mmc 0, cmd 18(0x80003352), arg 0x8060 [556][mmc d]: mmc 0 trans data 1032192 bytes [603][mmc d]: mmc 0 cacl rd dma timeout 1093694 [608][mmc d]: idst *****0x2****** [611][mmc d]: mmc 0 resp 0x900 [614][mmc d]: mmc 0 cmd 12 check rsp busy [617][mmc d]: mmc 0, cmd 13(0x8000014d), arg 0xaaaa0000 [623][mmc d]: mmc 0 resp 0x900 [626]Loading boot-pkg Succeed(index=0). [630][mmc d]: mmc0 unregister [633][mmc d]: sunxi mmc0 exit [635]Entry_name = opensbi [638]Entry_name = u-boot [642]Entry_name = dtb [644]mmc not para [646]Jump to second Boot. OpenSBI auto-t113-linux-V0.8-2-g053d088 ____ _____ ____ _____ / __ \ / ____| _ \_ _| | | | |_ __ ___ _ __ | (___ | |_) || | | | | | '_ \ / _ \ '_ \ \___ \| _ < | | | |__| | |_) | __/ | | |____) | |_) || |_ \____/| .__/ \___|_| |_|_____/|____/_____| | | |_| Platform Name : T-HEAD Xuantie Platform Platform HART Features : RV64ACDFIMSUVX Platform Max HARTs : 1 Current Hart : 0 Firmware Base : 0x41fc0400 Firmware Size : 75 KB Runtime SBI Version : 0.2 MIDELEG : 0x0000000000000222 MEDELEG : 0x000000000000b1ff PMP0 : 0x0000000041fc0000-0x0000000041fdffff (A) PMP1 : 0x0000000040000000-0x000000007fffffff (A,R,W,X) PMP2 : 0x0000000080000000-0x00000000bfffffff (A,R,W,X) PMP3 : 0x0000000000020000-0x0000000000027fff (A,▒ U-Boot 2018.05-g24521d6-dirty (May 06 2022 - 22:09:39 +0800) Allwinner Technology [00.732]DRAM: 512 MiB [00.734]Relocation Offset is: 1dee7000 [00.738]secure enable bit: 0 [00.741]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [00.747]flash init start [00.749]workmode = 0,storage type = 1 [00.753][mmc]: mmc driver ver_uboot1 uboot2018:2021-11-19 15:38:00 [00.759][mmc]: get sdc_type fail and use default host:tm1. [00.765][mmc]: can't find node "mmc0",will add new node [00.770][mmc]: fdt err returned <no error> [00.774][mmc]: Using default timing para [00.777][mmc]: SUNXI SDMMC Controller Version:0x50310 [00.804][mmc]: card_caps:0x3000000a [00.807][mmc]: host_caps:0x3000003f [00.812]sunxi flash init ok [00.815]line:703 init_clocks [00.818]drv_disp_init request pwm success, pwm2:pwm2:0x2000c00. [00.835]drv_disp_init finish [00.837]boot_gui_init:start [00.840]set disp.dev2_output_type fail. using defval=0 [00.867]boot_gui_init:finish partno erro : can't find partition bootloader 54 bytes read in 1 ms (52.7 KiB/s) [01.048]bmp_name=bootlogo.bmp size 3072054 [01.100]LCD open finish 3072054 bytes read in 129 ms (22.7 MiB/s) [01.209]Loading Environment from SUNXI_FLASH... OK [01.229]out of usb burn from boot: not need burn key [01.234][mmc]: memalign dst_align is NULL! read first backup failed in fun sunxi_flash_mmc_secread line 358 [01.243][mmc]: memalign dst_align is NULL! read first backup failed in fun sunxi_flash_mmc_secread line 358 [01.253]unknown error happen in item 0 read [01.256]get secure storage map err partno erro : can't find partition private root_partition is rootfs set root to /dev/mmcblk0p5 [01.269]update part info [01.272]update bootcmd [01.275]change working_fdt 0x5eaa6da0 to 0x5ea86da0 disable nand error: FDT_ERR_BADPATH No reserved memory region found in source FDT [01.305]update dts noncached_alloc(): addr = 0x5eb12c00 noncached_alloc(): addr = 0x5eb12c40 noncached_alloc(): addr = 0x5eefb040 noncached_alloc(): addr = 0x5eefb880 phy_mode=rgmii, phy_interface=7 gmac: *** using ephy_clk *** eth0 Warning: eth0 (eth0) using random MAC address - de:fc:6d:35:a1:35
-
@whycan
我的sd2 启动配置是这么配置的
-
把上面 port:PC4x<2> 改成 3 试一试?
-
@whycan 在 使用emmc 作为启动卡(SD2) 能烧录,但是无法启动 中说:
按照您的需求:
[97]BOOT0 commit : 88480af-dirty [100]set pll start [102]fix vccio detect value:0xc0 [105]periph0 has been enabled [108]set pll end [110][pmu]: bus read error [112]board init ok [114]get_pmu_exist() = -1 [116]DRAM BOOT DRIVE INFO: V0.33 [119]DRAM CLK = 792 MHz [122]DRAM Type = 3 (2:DDR2,3:DDR3) [125]DRAMC ZQ value: 0x7b7bfb [128]DRAM ODT value: 0x42. [130]ddr_efuse_type: 0x0 [133]DRAM SIZE =512 M [135]dram_tpr4:0x0 [137]PLL_DDR_CTRL_REG:0xf8004100 [140]DRAM_CLK_REG:0xc0000000 [143][TIMING DEBUG] MR2= 0x18 [147]DRAM simple test OK. [149]dram size =512 [151]card no is 2 [153]sdcard 2 line count 4 [155][mmc]: mmc driver ver 2021-04-2 16:45 [159][mmc d]: init mmc 2 resource [164][mmc d]: mmc_core_init,1063 [167][mmc]: mmc_2 2 ios: bus: 1, clock: 0 speed_mode:0 [172][mmc d]: set 2 rgctrl 0x20000000 to disable ddr mode [177][mmc d]: set 2 dsbd 0x0 to disable hs400 mode [182][mmc d]: set 2 csdc 0x3 to enable hs400 mode [186][mmc]: mmc_2 2 ios: bus: 1, clock: 400000 speed_mode:0 [192][mmc d]: mmc 2 mclkbase 0x0 [195][mmc d]: mmc_set_mclk: mod_clk 800000 [199][mmc d]: pll clk 24000000 [202][mmc d]: get round card clk 400000, mod_clk 800000 [206][mmc d]: mmc 2 mclkbase 0x8000010e [210][mmc d]: PRIVINFO NOT READ,USE DEF [214][mmc d]: mmc_get_timing_cfg_tm4: 0 0 0x0 0x0, odly 0 sdly 0 [220][mmc d]: mmc_config_delay,628 [223][mmc d]: mmc_config_delay: spd_md:0, freq:0, odly: 0; sdly: 0; dsdly: 0 [230][mmc d]: set 2 rgctrl 0x20000000 to disable ddr mode [235][mmc d]: set 2 dsbd 0x0 to disable hs400 mode [240][mmc d]: set 2 csdc 0x3 to enable hs400 mode [246][mmc d]: mmc 2, cmd 0(0x80008000), arg 0x0 [250][mmc d]: mmc 2 resp 0x0 [255][mmc]: Wrong media type 0x0, but host sdc2, try mmc first [261][mmc]: ***Try MMC card 2*** [265][mmc d]: mmc 2, cmd 0(0x80008000), arg 0x0 [269][mmc d]: mmc 2 resp 0x0 [274][mmc d]: mmc 2, cmd 1(0x80000041), arg 0x0 [279][mmc]: mmc 2 cmd 1 timeout, err 100 [282][mmc]: mmc 2 cmd 1 err 100 [285][mmc]: mmc 2 send op cond failed [289][mmc]: MMC card 2 Card did not respond to voltage select! [294][mmc]: ***SD/MMC 2 init error!!!*** [299][mmc d]: mmc 2, cmd 0(0x80008000), arg 0x0 [303][mmc d]: mmc 2 resp 0x0 [308][mmc]: ***Try SD card 2*** [311][mmc d]: mmc 2, cmd 8(0x80000148), arg 0x1aa [316][mmc]: mmc 2 cmd 8 timeout, err 100 [320][mmc]: mmc 2 cmd 8 err 100 [323][mmc]: mmc 2 send if cond failed [326][mmc d]: mmc 2, cmd 55(0x80000177), arg 0x0 [331][mmc]: mmc 2 cmd 55 timeout, err 100 [335][mmc]: mmc 2 cmd 55 err 100 [338][mmc]: mmc 2 send app cmd failed [341][mmc]: SD card 2 Card did not respond to voltage select! [347][mmc]: ***SD/MMC 2 init error!!!*** [351][mmc]: mmc 2 register failed [354]Loading boot-pkg fail(error=2) [357][mmc d]: mmc2 unregister [360][mmc d]: sunxi mmc2 exit
-
-
@whycan 有个地方我很疑惑,我通过代码看,sys_partion.fex 上面从参数配置应该只是在uboot 上面生效,但是我修改了位宽,确实看到boot0 代码也生效了,没有看到参数传递,uboot->boot0 只是传递了一个开机方式的值
-
@liangjian 是功能选择,对应的是GPIO的功能复用号
-
@yuzukitsuru 您这边有没有用SDC2 作为启动卡的?
-
@yuzukitsuru @whycan 改为3 现在可以了,感谢各位
-
-
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号