@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