szemzoa / awboot

small linux bootloader for Allwinner T113-S3 and V851s
76 stars 34 forks source link

SD/MMC driver refactoring #10

Closed fpoussin closed 1 year ago

fpoussin commented 1 year ago

This is a large PR including the following:

Boot log from eMMC with log level @ info:

[I] AWBoot starting
[I] SMHC: sdhci0 controller initialized
[W] SMHC: timeout
[I] SHMC: MMC card detected
[I] SMHC: Read sun8i-t113-mangopi-dual.dtb addr=44000000
[I] SMHC: Read zImage addr=44800000
[I] booting linux...
[    0.000000] Booting Linux on physical CPU 0x0

The timeout is SD probing so this is normal.

A failed boot:

[I] AWBoot starting
[I] SMHC: sdhci0 controller initialized
[W] SMHC: timeout
[W] SMHC: timeout
[W] SMHC: init failed, trying SPI
[I] SPI-NAND: W25N01GV detected
[E] SPI-NAND: DTB verification failed
[F] SPI-NAND: loading failed