Mainline U-Boot with SPI, NVMe and SATA boot support
#78
Hi all,

I'm trying to install the bootloader to my RockPro64, but I'm facing an issue trying to flash it.

Code:
U-Boot TPL 2021.01-09768-gc762ab29b8 (Mar 20 2021 - 13:35:30)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Colpddr4_set_rate: change freq to lpddr4_set_rate: change freq to Trying to boot from BOOTROM
Ret
U-Boot SPL 2021.01-09768-gc762ab29b8 (Mar 20 2021 - 13:35:30 +0000)
Trying to boot from MMC1
NOTICE:  BL31: v2.4(release):v2.4
NOTICE:  BL31: Built : 13:33:26, Mar 20 2021


U-Boot 2021.01-09768-gc762ab29b8 (Mar 20 2021 - 13:35:30 +0000)


SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 Roc3.9 GiB
PMIC:  RK808
MMC:  mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from SPIFlash... jedec_spi_nor flash@0: unrecognized JEDEC id bytes: ff, ff, ff
*** Warning - spi_flash_probe_buIn:    serial
Out:  serial
Err:  serial
Model: Pine64 RockPro64 v2.1
Net:  eth0: ethernet@fe300000
Hit any key to stop autoboot:  0
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:3...
Found U-Boot script /boot.scr
967 bytes read in 4 ms (235.4 KiB/s)
## Executing script at 00500000
jedec_spi_nor flash@0: unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash at 1:0 (error -2)
Error: No SPI <<<<<<Pressed Ctrl+c>>>>>>sleep - delay execution for some time

Usage:
sleep N
    - delay execution for N seconds (NSCRIPT FAILED: continuing...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Card did not respond to voltage select! : -110
Scanning disk mmc@fe310000.blk...
Disk mmc@fe310000.blk not ready
Scanning disNo valid Btrfs found
** UnrecogNo valid Btrfs found
** Unrecognized filesystem type **
Card did not respond to voltage select! : -110
Scanning disk sdhci@fe330000.blk...
Disk sdhci@fe330000.blk not ready
Found 4 ition
Device nor0 not found!
BootOrder not defined
EFI boot manager: Cannot load any image
=> sf probe
jedec_spi_nor flash@0: unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash (error -2)
=>

First I left the board at this point for some time:
Code:
## Executing script at 00500000
jedec_spi_nor flash@0: unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash at 1:0 (error -2)
Error: No SPI

There, the white and red leds were flashing alternating (white, then red, then white, then red and so on).

Then on the serial console I press Ctrl+c, and the message continued as shown above



No matter if I try @sigmaris or @ayufan, the error is the same on both.



For example, using ayufan's Buster minimal, if I try to reset the SPI, it says success:
Code:
root@rockpro64:/usr/local/sbin# /usr/local/sbin/rockpro64_reset_spi_flash.sh
Unbinding...
Binding...
Finished
root@rockpro64:/usr/local/sbin# /usr/local/sbin/rock64_erase_spi_flash.sh
Doing this will overwrite data stored on SPI Flash and it will require that you use eMMC or SD as your boot device.

loader partition on MTD is not found
/usr/local/sbin/rock64_erase_spi_flash.sh: line 14: return: can only `return' from a function or sourced script
root@rockpro64:/usr/local/sbin# ls -lah /dev/mt*
ls: cannot access '/dev/mt*': No such file or directory
root@rockpro64:/usr/local/sbin#
But I still can't see anything about SPI if I remove the emmc and the SD card. So I doubt it loads anything from SPI.


Any help?
  Reply


Messages In This Thread
RE: Mainline U-Boot with SPI, NVMe and SATA boot support - by Maxpako - 04-23-2021, 09:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  enble boot after power loss/restore dkebler 18 9,292 12-04-2023, 12:14 PM
Last Post: ok38
Bug Broken boot: What am I missing? mkosarek 1 655 09-08-2023, 08:14 AM
Last Post: wdt
  Unable to boot Armbian on new RockPro64 mooseball 5 4,204 07-14-2023, 08:59 AM
Last Post: rockjonn
  no boot white led flashing moserwi 7 4,268 05-18-2023, 10:46 AM
Last Post: wdt
  u-boot locked on pine64pro ljones 1 1,530 09-06-2022, 10:32 AM
Last Post: ljones
  Cannot get my board to boot deutschlmao 11 8,096 09-05-2022, 04:23 PM
Last Post: ljones
  U-BOOT Tutorial hazz 0 1,140 07-19-2022, 10:48 PM
Last Post: hazz
  Installation Debian on emmc: which U-Boot and where? vongillus 3 2,760 07-02-2022, 09:24 AM
Last Post: dkebler
  ROCKPRO64 PCI SSD SD-boot Install pspgarret 0 1,153 06-09-2022, 10:56 AM
Last Post: pspgarret
  Support says "regulator" on the SBC burned out; how to fix? dmos 0 898 06-02-2022, 02:20 AM
Last Post: dmos

Forum Jump:


Users browsing this thread: 3 Guest(s)