Mainline U-Boot with SPI, NVMe and SATA boot support
#80
(04-23-2021, 12:32 PM)LMM Wrote:
(04-23-2021, 09:35 AM)Maxpako Wrote: 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?
Hi,





In the wiki it says "Ayufan images contain (at the moment) only one script for the SPI and the RP64, it's "rockpro64_reset_spi_flash". Other SPI scripts are dedicated to the R64 (as it is written on the name) and it will mess-up your RP64 SPI if you use them"

So "rock64_erase_spi_flash.sh"  would no work. To erase you may use the erase image. I usually have both images in two sd cards



You have to flash the u-boot image again from the sd card containing the image and strictly follow the intructions of the operations.

sigmaris : https://github.com/sigmaris/u-boot/wiki/...oot-to-SPI

ayufan : same procedure with ayufan mainline u-boot image - wait until it blinks once per second



The error you see may be due to a bad or not appropriate boot/kernel image on the emmc.



Good luck. Do not hesitate to post more questions/details.



LMM

Hi LMM,

Thanks for the info.

As far as I know I've used the proper images for RP64 that can be downloaded from their git repos (sigmaris and ayufan).

Unfortunately, I get the error commented (output of the serial console).

Fortunately, the ayufan scripts for RP64 doesn't work on my RP64 (and I did not tried to force them somehow). Seems I can reset the spi, but I cannot flash it with the SD image for rockpro64.

Will try again later this weekend.

Enviado desde mi NX659J mediante Tapatalk
  Reply


Messages In This Thread
RE: Mainline U-Boot with SPI, NVMe and SATA boot support - by Maxpako - 04-23-2021, 01:03 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)