使用官方烧录工具PhoenixSuit烧录t113镜像到sd卡没成功过,一直是烧录固件失败,打印内容如下
-
2222222222[20]HELLO! BOOT0 is starting! [23]BOOT0 commit : adaf1174cc [26]set pll start [32]periph0 has been enabled [35]set pll end [37][pmu]: bus read error [39]board init ok [41]key press : 2 [43]detected_f user input 2 [30622]fes begin commit:adaf1174cc [30625]set pll start [30631]periph0 has been enabled [30634]set pll end [30636][pmu]: bus read error [30638]board init ok [30640]beign to init dram [30643]ZQ value = 0x2e [30645]get_pmu_exist() = -1 [30648]ddr_efuse_type: 0xa [30650]trefi:7.8ms [30653][AUTO DEBUG] single rank and full DQ! [30657]ddr_efuse_type: 0xa [30659]trefi:7.8ms [30662][AUTO DEBUG] rank 0 row = 13 [30665][AUTO DEBUG] rank 0 bank = 8 [30668][AUTO DEBUG] rank 0 page size = 2 KB [30673]DRAM BOOT DRIVE INFO: V0.33 [30676]DRAM CLK = 936 MHz [30678]DRAM Type = 3 (2:DDR2,3:DDR3) [30681]DRAMC read ODT off. [30684]DRAM ODT value: 0x42. [30687]ddr_efuse_type: 0xa [30690]DRAM SIZE =128 M [30692]dram_tpr4:0x0 [30694]PLL_DDR_CTRL_REG:0xf8004d00 [30697]DRAM_CLK_REG:0xc0000000 [30700][TIMING DEBUG] MR2= 0x20 [30704]DRAM simple test OK. [30707]rtc standby flag is 0x0, super standby flag is 0x0 [30712]init dram ok U-Boot 2018.05-g2a1965a (Jul 10 2022 - 02:50:57 +0000) Allwinner Technology [32.287]CPU: Allwinner Family [32.290]Model: sun8iw20 [32.292]DRAM: 128 MiB [32.295]Relocation Offset is: 04ebc000 [32.321]secure enable bit: 0 [32.324]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [32.330]gic: normal mode [32.332]flash init start [32.335]workmode = 16,storage type = 0 try card 2 set card number 2 get card number 2 [32.342][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00 [32.349][mmc]: Is not Boot mode! [32.352][mmc]: SUNXI SDMMC Controller Version:0x50310 [32.363][mmc]: ************Try SD card 2************ [32.368][mmc]: mmc 2 cmd timeout 100 status 100 [32.373][mmc]: smc 2 err, cmd 8, RTO [32.376][mmc]: mmc 2 close bus gating and reset [32.381][mmc]: mmc 2 cmd timeout 100 status 100 [32.385][mmc]: smc 2 err, cmd 55, RTO [32.389][mmc]: mmc 2 close bus gating and reset [32.393][mmc]: ************Try MMC card 2************ [32.402][mmc]: mmc 2 cmd timeout 100 status 100 [32.406][mmc]: smc 2 err, cmd 1, RTO [32.409][mmc]: mmc 2 close bus gating and reset [32.413][mmc]: Card did not respond to voltage select! [32.418][mmc]: ************SD/MMC 2 init error!************ [32.424][mmc]: mmc init product failed MMC init failed try emmc fail [32.430]sunxi-spinand: AW SPINand MTD Layer Version: 1.8 20220106 [32.436]sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.11 20211217 [32.444]sunxi-spinand-phy: request spi0 gpio ok [32.448]sunxi-spinand-phy: request general tx dma channel ok! [32.453]sunxi-spinand-phy: request general rx dma channel ok! [32.459]sunxi-spinand-phy: set spic0 clk to 20 Mhz [32.463]sunxi-spinand-phy: init spic0 clk ok [33.467]sunxi-spinand-phy: read id failed : -110 try nand fail [33.474]unrecognized JEDEC id bytes: ff, ff, ff data abort pc : [<47efd66c>] lr : [<47efd64f>] reloc pc : [<4304166c>] lr : [<4304164f>] sp : 43e59c28 ip : 0000000d fp : 43000508 r10: 43012be9 r9 : 43e9be70 r8 : 00000102 r7 : 47f72648 r6 : ffffffed r5 : 47f41cec r4 : 43edc680 r3 : 00003000 r2 : 00000001 r1 : c0000000 r0 : 00000030 Flags: Nzcv IRQs on FIQs off Mode SVC_32
-
他还是用的 SDC2
Try SD card 2
[32.368][mmc]: mmc 2 cmd timeout 100 status 100
[32.373][mmc]: smc 2 err, cmd 8, RTO
[32.376][mmc]: mmc 2 close bus gating and reset
[32.381][mmc]: mmc 2 cmd timeout 100 status 100
[32.385][mmc]: smc 2 err, cmd 55, RTO
[32.389][mmc]: mmc 2 close bus gating and reset
[32.393][mmc]: Try MMC card 2首先,修改一下系统,参考 https://bbs.aw-ol.com/topic/1002/
打开 lichee/brandy-2.0/u-boot-2018/drivers/sunxi_flash/mmc/sdmmc.c 文件,把 return sdmmc_init_for_sprite(0, 2) 改为 return sdmmc_init_for_sprite(0, 0)
int sunxi_sprite_mmc_probe(void) { #ifndef CONFIG_MACH_SUN50IW11 - return sdmmc_init_for_sprite(0, 2); + return sdmmc_init_for_sprite(0, 0); #else int workmode = uboot_spare_head.boot_data.work_mode; if (workmode == WORK_MODE_CARD_PRODUCT) return -1; else return sdmmc_init_for_sprite(0, 0); #endif }
-
@whycanservice 好的感谢
-
@whycanservice 有个问题SD card 0是sd卡,SD card 1是emmc,SD card 2是spi flash,这个顺序对么
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号