On Thu, 2020-12-31 at 19:24 +1100, Jonathan Gray wrote:
> https://trustedfirmware-a.readthedocs.io/en/latest/change-log.html#version-2-4
> 
> Tests welcome as I don't have rk3328/rk3399/sun50i_a64 hardware.

This update appears ok on rk3328 and rk3399, however my rockpro64
will not boot with u-boot 2020.10:

Rock64 Gen3 w/ v2020.10 u-boot and atf 2.4 works
Rockpro64 w/2020.10 u-boot and atf 2.4 and 2.3 fails
Rockpro64 w/2020.07 u-boot and atf 2.4 and 2.3 works

With 2020.10 u-boot the rockpro64 freezes just after attempting to
boot the kernel. Here's a diff of v2020.07 with atf 2.3 that works
against v2020.10 with atf 2.3 that freezes:

rocky$ diff -u v2020.07.boot v2020-10.boot       
--- v2020.07.boot       Thu Jan  7 16:20:58 2021
+++ v2020-10.boot       Thu Jan  7 16:10:27 2021
@@ -1,19 +1,18 @@
-U-Boot TPL 2020.07 (Jul 07 2020 - 19:02:53)
+U-Boot TPL 2020.10 (Jan 02 2021 - 11:16:03)
 Channel 0: LPDDR4, 50MHz
 BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB
 Channel 1: LPDDR4, 50MHz
 BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB
 256B stride
-256B stride
 lpddr4_set_rate: change freq to 400000000 mhz 0, 1
 lpddr4_set_rate: change freq to 800000000 mhz 1, 0
 Trying to boot from BOOTROM
 Returning to boot ROM...
 
-U-Boot SPL 2020.07 (Jul 07 2020 - 19:02:53 -0600)
+U-Boot SPL 2020.10 (Jan 02 2021 - 11:16:03 -0700)
 Trying to boot from MMC1
 NOTICE:  BL31: v2.3():2.3
-NOTICE:  BL31: Built : 18:41:43, Jul  7 2020
+NOTICE:  BL31: Built : 10:45:12, Jan  2 2021
 INFO:    GICv3 with legacy support detected.
 INFO:    ARM GICv3 driver initialized in EL3
 INFO:    plat_rockchip_pmu_init(1624): pd status 3e
@@ -24,7 +23,7 @@
 INFO:    SPSR = 0x3c9
 
 
-U-Boot 2020.07 (Jul 07 2020 - 19:02:53 -0600)
+U-Boot 2020.10 (Jan 02 2021 - 11:16:03 -0700)
 
 SoC: Rockchip rk3399
 Reset cause: RST
@@ -32,14 +31,29 @@
 DRAM:  3.9 GiB
 PMIC:  RK808 
 MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
-Loading Environment from SPI Flash... SF: Detected gd25q128 with page size 256 
Bytes, erase size 4 KiB, total 16 MiB
-*** Warning - bad CRC, using default environment
+Loading Environment from SPIFlash... Invalid bus 0 (err=-19)
+*** Warning - spi_flash_probe_bus_cs() failed, using default environment
 
 In:    serial
 Out:   serial
 Err:   serial
 Model: Pine64 RockPro64 v2.1
 Net:   eth0: ethernet@fe300000
+starting USB...
+Bus usb@fe380000: USB EHCI 1.00
+Bus usb@fe3a0000: USB OHCI 1.0
+Bus usb@fe3c0000: USB EHCI 1.00
+Bus usb@fe3e0000: USB OHCI 1.0
+Bus dwc3: usb maximum-speed not found
+Register 2000140 NbrPorts 2
+Starting the controller
+USB XHCI 1.10
+scanning bus usb@fe380000 for devices... 1 USB Device(s) found
+scanning bus usb@fe3a0000 for devices... 1 USB Device(s) found
+scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found
+scanning bus usb@fe3e0000 for devices... 1 USB Device(s) found
+scanning bus dwc3 for devices... 1 USB Device(s) found
+       scanning usb for storage devices... 0 Storage Device(s) found
 Hit any key to stop autoboot:  0 
 Card did not respond to voltage select!
 switch to partitions #0, OK
@@ -56,11 +70,14 @@
 Scanning disk sd...@fe330000.blk...
 Disk sd...@fe330000.blk not ready
 Found 3 disks
+No EFI system partition
 BootOrder not defined
 EFI boot manager: Cannot load any image
-168728 bytes read in 14 ms (11.5 MiB/s)
+168728 bytes read in 13 ms (12.4 MiB/s)
 libfdt fdt_check_header(): FDT_ERR_BADMAGIC
+Booting /efi\boot\bootaa64.efi
 disks: sd0*
 >> OpenBSD/arm64 BOOTAA64 1.3
 boot> 
-booting sd0a:/bsd: 8657572+1775464+561576+826224 
[629354+109+1059720+622048]=0xf87520
+booting sd0a:/bsd: 8663848+1773392+563520+828336 
[629656+109+1059720+621958]=0xf885c8

v2020.07 u-boot continues from here, v2020.10 u-boot freezes.

Ideas?

Reply via email to