Jump to content

RockPro64 only booting legacy kernel


Leco

Recommended Posts

Hello everyone,

 

First of all, thank you all for making ARM accessible!

 

I have a RockPro64 that only boot legacy kernels... I couldn't find anything specific about it online.

Is this something to do with the SPI chip? Do I have to update it with the procedure listed here? https://github.com/ayufan-rock64/linux-build/blob/master/recipes/flash-spi.md

Any tip would be really welcome, I tried most of the ROCKPRO64 images and nothing... only kernel 4.x boot, SD or emmc, no difference.

 

Bellow is one of the error messages I get... the screen flashes different colors and the system halts.

Different images, different behaviors... usually it just flash colors.

(Warning... Bad CRC) is this CRC about the SPI firmware?  It's not the emmc or SD. I tried different ones and it just doesn't work for mainline kernels.

 

No HDMI output and I won't see an new IP on my network.

I tried it without the HDMI cable too.. nothing.

 

Thank you for any assistance!

 

image.thumb.png.3ab77ff7eaa0774aa9acc2902ceb3b71.png

 

 

 

Board: Rock64
Link to comment
Share on other sites

Hi Werner,

 

I was able to figure out how to get the log and attached it bellow.

Thank you so much for assisting me.

 

Leco

 

 

U-Boot TPL 2020.10-armbian (Aug 08 2021 - 18:07:39)
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 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
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.10-armbian (Aug 08 2021 - 18:07:39 +0200)
Trying to boot from MMC1
NOTICE:  BL31: v1.3(debug):42583b6
NOTICE:  BL31: Built : 07:55:13, Oct 15 2019
NOTICE:  BL31: Rockchip release version: v1.1
INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    If lpddr4 need support multi frequency,
INFO:    please update loader!
INFO:    Current ctl index[0] freq=400MHz
INFO:    Current ctl index[1] freq=800MHz
INFO:    plat_rockchip_pmu_init(1190): pd status 3e
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2020.10-armbian (Aug 08 2021 - 18:07:39 +0200)

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 RockPro64 v2.1
DRAM:  3.9 GiB
PMIC:  RK808 
MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from SPIFlash... SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Pine64 RockPro64 v2.1
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
3185 bytes read in 11 ms (282.2 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 1
117 bytes read in 10 ms (10.7 KiB/s)
13109970 bytes read in 567 ms (22 MiB/s)
28580352 bytes read in 1226 ms (22.2 MiB/s)
75885 bytes read in 28 ms (2.6 MiB/s)
2698 bytes read in 21 ms (125 KiB/s)
Applying kernel provided DT fixup script (rockchip-fixup.scr)
## Executing script at 09000000
Moving Image from 0x2080000 to 0x2200000, end=3de0000
## Loading init Ramdisk from Legacy Image at 06000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    13109906 Bytes = 12.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Ramdisk to f128f000, end f1f0fa92 ... OK
   Loading Device Tree to 00000000f1214000, end 00000000f128efff ... OK

Starting kernel ...

 

Link to comment
Share on other sites

Hi Werner,

 

I tried both verbosity= 1 and 7 but there was no difference on the output.

I attached the Armbian legacy log all the way to the kernel boot too. Legacy is working fine, in case it helps with anything.

 

Any idea is welcome!legacy_boot.txt

 

Thank you

Leco

 

 

verbosity=7
bootlogo=false
overlay_prefix=rockchip
rootdev=UUID=24739fab-7e52-48c9-aa0e-e75ecc1a5fa1
rootfstype=ext4

 

 

picocom v3.1

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 1500000
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : yes
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

Type [C-a] [C-h] to see available commands
Terminal ready
                        €  €        
U-Boot TPL 2020.10-armbian (Aug 08 2021 - 18:07:39)
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 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
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.10-armbian (Aug 08 2021 - 18:07:39 +0200)
Trying to boot from MMC1
NOTICE:  BL31: v1.3(debug):42583b6
NOTICE:  BL31: Built : 07:55:13, Oct 15 2019
NOTICE:  BL31: Rockchip release version: v1.1
INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    If lpddr4 need support multi frequency,
INFO:    please update loader!
INFO:    Current ctl index[0] freq=400MHz
INFO:    Current ctl index[1] freq=800MHz
INFO:    plat_rockchip_pmu_init(1190): pd status 3e
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2020.10-armbian (Aug 08 2021 - 18:07:39 +0200)

SoC: Rockchip rk3399
Reset cause: POR
Model: Pine64 RockPro64 v2.1
DRAM:  3.9 GiB
PMIC:  RK808 
MMC:   mmc@fe310000: 2, mmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from SPIFlash... SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Pine64 RockPro64 v2.1
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
3185 bytes read in 9 ms (344.7 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 1
117 bytes read in 7 ms (15.6 KiB/s)
13109970 bytes read in 566 ms (22.1 MiB/s)
28580352 bytes read in 1223 ms (22.3 MiB/s)
75885 bytes read in 25 ms (2.9 MiB/s)
2698 bytes read in 18 ms (145.5 KiB/s)
Applying kernel provided DT fixup script (rockchip-fixup.scr)
## Executing script at 09000000
Moving Image from 0x2080000 to 0x2200000, end=3de0000
## Loading init Ramdisk from Legacy Image at 06000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    13109906 Bytes = 12.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Ramdisk to f128f000, end f1f0fa92 ... OK
   Loading Device Tree to 00000000f1214000, end 00000000f128efff ... OK

Starting kernel ...

 

Link to comment
Share on other sites

7 hours ago, tparys said:

Kernel output is going to VGA instead of Serial (or vice/versa)

Interesting thought.

Maybe try adding console=serial or console=both  to armbianEnv.txt

 

Btw does this board use extlinux? Check by looking at /boot if there is a directory called extlinux.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines