Cannot boot firefly-rk3399: mmc block read error

Hi,
I get an error in SPL. Any ideas?
ellesmere:~/u$ dd if=/tmp/b/firefly-rk3399/idbloader.img of=/dev/sdb seek=64 265+1 records in 265+1 records out 135987 bytes (136 kB, 133 KiB) copied, 0.0233712 s, 5.8 MB/s ellesmere:~/u$ dd if=/tmp/b/firefly-rk3399/u-boot.itb of=/dev/sdb seek=16384 ...
U-Boot TPL 2020.07-rc3-00009-ge80a17f6909 (May 28 2020 - 08:45:27) Channel 0: DDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: DDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride 256B stride Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2020.07-rc3-00009-ge80a17f6909 (May 28 2020 - 08:45:27 -0600) Trying to boot from MMC2 mmc_load_image_raw_sector: mmc block read error Trying to boot from MMC1 mmc_load_image_raw_sector: mmc block read error SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ###
Regards, Simon

From: Simon Glass sjg@chromium.org Date: Thu, 28 May 2020 08:58:16 -0600
Hi,
I get an error in SPL. Any ideas?
ellesmere:~/u$ dd if=/tmp/b/firefly-rk3399/idbloader.img of=/dev/sdb seek=64 265+1 records in 265+1 records out 135987 bytes (136 kB, 133 KiB) copied, 0.0233712 s, 5.8 MB/s ellesmere:~/u$ dd if=/tmp/b/firefly-rk3399/u-boot.itb of=/dev/sdb seek=16384 ...
U-Boot TPL 2020.07-rc3-00009-ge80a17f6909 (May 28 2020 - 08:45:27) Channel 0: DDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: DDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride 256B stride Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2020.07-rc3-00009-ge80a17f6909 (May 28 2020 - 08:45:27 -0600) Trying to boot from MMC2 mmc_load_image_raw_sector: mmc block read error Trying to boot from MMC1 mmc_load_image_raw_sector: mmc block read error SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ###
What version of ATF are you using? Mine boots fine with upstream ATF 2.3.
Cheers,
Mark

On Thu, May 28, 2020 at 8:28 PM Simon Glass sjg@chromium.org wrote:
Hi,
I get an error in SPL. Any ideas?
ellesmere:~/u$ dd if=/tmp/b/firefly-rk3399/idbloader.img of=/dev/sdb seek=64 265+1 records in 265+1 records out 135987 bytes (136 kB, 133 KiB) copied, 0.0233712 s, 5.8 MB/s ellesmere:~/u$ dd if=/tmp/b/firefly-rk3399/u-boot.itb of=/dev/sdb seek=16384 ...
U-Boot TPL 2020.07-rc3-00009-ge80a17f6909 (May 28 2020 - 08:45:27) Channel 0: DDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: DDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride 256B stride Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2020.07-rc3-00009-ge80a17f6909 (May 28 2020 - 08:45:27 -0600) Trying to boot from MMC2 mmc_load_image_raw_sector: mmc block read error Trying to boot from MMC1 mmc_load_image_raw_sector: mmc block read error SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ###
The fix is in the Mailing list [1], I think Kever is queuing for the next PR?
[1] https://patchwork.ozlabs.org/project/uboot/patch/20200524145618.78951-1-jaga...
Jagan.

Hi,
OK thank you. I got it booting once but I'm actually not sure how.
It looks like that patch is in rk/master, but this is what I am getting:
U-Boot TPL 2020.07-rc3-00062-gfb14231483 (May 29 2020 - 08:27:15) Channel 0: DDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: DDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride 256B stride Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2020.07-rc3-00062-gfb14231483 (May 29 2020 - 08:27:15 -0600) Trying to boot from MMC1 mmc_load_image_raw_sector: mmc block read error Trying to boot from MMC2 mmc_load_image_raw_sector: mmc block read error Trying to boot from MMC1 mmc_load_image_raw_sector: mmc block read error SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ###
Regards, Simon
On Thu, 28 May 2020 at 11:00, Jagan Teki jagan@amarulasolutions.com wrote:
On Thu, May 28, 2020 at 8:28 PM Simon Glass sjg@chromium.org wrote:
Hi,
I get an error in SPL. Any ideas?
ellesmere:~/u$ dd if=/tmp/b/firefly-rk3399/idbloader.img of=/dev/sdb
seek=64
265+1 records in 265+1 records out 135987 bytes (136 kB, 133 KiB) copied, 0.0233712 s, 5.8 MB/s ellesmere:~/u$ dd if=/tmp/b/firefly-rk3399/u-boot.itb of=/dev/sdb
seek=16384
...
U-Boot TPL 2020.07-rc3-00009-ge80a17f6909 (May 28 2020 - 08:45:27) Channel 0: DDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: DDR3, 800MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride 256B stride Trying to boot from BOOTROM Returning to boot ROM...
U-Boot SPL 2020.07-rc3-00009-ge80a17f6909 (May 28 2020 - 08:45:27 -0600) Trying to boot from MMC2 mmc_load_image_raw_sector: mmc block read error Trying to boot from MMC1 mmc_load_image_raw_sector: mmc block read error SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ###
The fix is in the Mailing list [1], I think Kever is queuing for the next PR?
[1] https://patchwork.ozlabs.org/project/uboot/patch/20200524145618.78951-1-jaga...
Jagan.
participants (3)
-
Jagan Teki
-
Mark Kettenis
-
Simon Glass