Jump to content

Orange Pi RK3399 does not start with Armbian images


WZab

Recommended Posts

I'm trying to run Armbian on Orange Pi RK3399 board.

I have TP50265 permanently shorted to the ground to enable SD card booting.

 

The board starts without any problems with Debian and Ubuntu images downloaded from the manufacturer website, e.g. https://drive.google.com/drive/folders/1wAdkC25BmjMwapWahEEQGTvi-yuwo8Gx

Quote

DDR Version 1.08 20170320
In
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel 1: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
ch 1 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x32817281, stride = 0x9
OUT
Boot1: 2017-04-07, version: 1.06
CPUId = 0x0
ChipType = 0x10, 1824
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
SdmmcInit=2 1
SdmmcInit=0 0
BootCapSize=0
UserCapSize=7420MB
FwPartOffset=2000 , 0
StorageInit ok = 57188
LoadTrustBL
No find bl30.bin
No find bl32.bin
RunBL31 0x10000
NOTICE:  BL31: v1.3(debug):55aa0b4
NOTICE:  BL31: Built : 16:55:03, Mar 31 2017
INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO:    boot cpu mask: 0
INFO:    plat_rockchip_pmu_init(1089): pd status 3e
INFO:    BL31: Initializing runtime services
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-g0f7b3ff-dirty (Oct 10 2018 - 10:02:23 +0800)

Model: OrangePi RK3399 Board
DRAM:  2 GiB
MMC:   dwmmc@fe320000: 1, sdhci@fe330000: 0
Card did not respond to voltage select!
mmc_init: -95, time 20
*** Warning - No block device, using default environment

In:    serial
Out:   serial
Err:   serial
Model: OrangePi RK3399 Board
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
mmc_init: -95, time 19
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:6...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
184 bytes read in 4 ms (44.9 KiB/s)
1:      kernel-4.4
Retrieving file: /Image
reading /Image
19568648 bytes read in 1249 ms (14.9 MiB/s)
append: earlyprintk console=ttyFIQ0,1500000n8 rw root=PARTUUID=b921b045-1d rootfstype=ext4 init=/sbin/init rootwait
Retrieving file: /rk3399-orangepi.dtb
reading /rk3399-orangepi.dtb
78885 bytes read in 9 ms (8.4 MiB/s)
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Device Tree to 000000007dee9000, end 000000007deff424 ... OK

Starting kernel ...

<hit enter to activate fiq debugger>
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu

after the above, kernel boots and the system starts perfectly.

 

However, when I try the images downloaded from Armbian website (both, based on the old kernel, like

https://dl.armbian.com/orangepi-rk3399/archive/Armbian_20.02.1_Orangepi-rk3399_bionic_legacy_4.4.213_desktop.7z and the new ones, like

https://dl.armbian.com/orangepi-rk3399/archive/Armbian_20.02.1_Orangepi-rk3399_buster_current_5.4.20_desktop.7z I get the similar output:

 

Quote

DDR Version 1.24 20191016
In
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel 1: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
ch 1 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x32817281, stride = 0x9
OUT
Boot1: 2019-03-14, version: 1.19
CPUId = 0x0
ChipType = 0x10, 242
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
SdmmcInit=2 1
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=14760MB
FwPartOffset=2000 , 0
StorageInit ok = 44157
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT 0x3380ec0 signature is wrong
recovery gpt...
GPT part:  0, name:            uboot, start:0x6000, size:0x2000
GPT part:  1, name:            trust, start:0x8000, size:0x2000
GPT part:  2, name:             boot, start:0xc000, size:0x10000
GPT part:  3, name:           rootfs, start:0x5c000, size:0x1c77fdf
recovery gpt success!
find part:uboot OK. first_lba:0x6000.
find part:trust OK. first_lba:0x8000.
LoadTrust Addr:0x8000
LoadTrust Addr:0x8400
LoadTrust Addr:0x8800
LoadTrust Addr:0x8c00
LoadTrust Addr:0x9000
LoadTrust Addr:0x9400
LoadTrust Addr:0x9800
LoadTrust Addr:0x9c00
Addr:0x8000 No find trust.img!
LoadTrustBL error:-3
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04
SecureInit ret = -2, SecureMode = 0

After that the system remains frozen...

 

What am I doing incorrectly?

 

Thank you very much in advance,

With best regards,

Wojtek

Edited by WZab
Corrected link to the working manufacturer's image
Link to comment
Share on other sites

The version Armbian_20.05.0-trunk.111_Orangepi-rk3399_focal_dev_5.6.5_minimal.img starts, and displays the following:

Quote

DDR Version 1.24 20191016
In
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel 1: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
ch 1 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x32817281, stride = 0x9
OUT
Boot1: 2019-03-14, version: 1.19
CPUId = 0x0
ChipType = 0x10, 242
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x18000
mmc: ERROR: Card did not respond to voltage select!
SdmmcInit=2 1
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=14760MB
FwPartOffset=2000 , 0
StorageInit ok = 44011
SecureMode = 0
SecureInit read PBA: 0x4
SecureInit read PBA: 0x404
SecureInit read PBA: 0x804
SecureInit read PBA: 0xc04
SecureInit read PBA: 0x1004
SecureInit read PBA: 0x1404
SecureInit read PBA: 0x1804
SecureInit read PBA: 0x1c04
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT 0x3380ec0 signature is wrong
recovery gpt...
GPT part:  0, name:          loader1, start:0x40, size:0x1f40
GPT part:  1, name:        reserved1, start:0x1f80, size:0x80
GPT part:  2, name:        reserved2, start:0x2000, size:0x2000
GPT part:  3, name:          loader2, start:0x4000, size:0x2000
GPT part:  4, name:              atf, start:0x6000, size:0x2000
GPT part:  5, name:             boot, start:0x8000, size:0x38000
GPT part:  6, name:                 , start:0x40000, size:0x1c93fdf
recovery gpt success!
no find partition:uboot.
LoadTrust Addr:0x4000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
hdr 0000000003380880 + 0x0:0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,

Load OK, addr=0x200000, size=0xa6740
RunBL31 0x40000
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:    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 wi
ll 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.04-armbian (Apr 20 2020 - 08:39:15 +0200)

SoC: Rockchip rk3399
Reset cause: POR
Model: Orange Pi RK3399 Board
DRAM:  2 GiB
PMIC:  RK808
MMC:   dwmmc@fe310000: 2, dwmmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from MMC... Card did not respond to voltage select!
*** Warning - No block device, using default environment

In:    serial@ff1a0000
Out:   serial@ff1a0000
Err:   serial@ff1a0000
Model: Orange Pi RK3399 Board
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
2940 bytes read in 6 ms (478.5 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 1
102 bytes read in 5 ms (19.5 KiB/s)
9862241 bytes read in 423 ms (22.2 MiB/s)
22151680 bytes read in 940 ms (22.5 MiB/s)
74330 bytes read in 12 ms (5.9 MiB/s)
2698 bytes read in 10 ms (262.7 KiB/s)
Applying kernel provided DT fixup script (rockchip-fixup.scr)
## Executing script at 39000000
## Loading init Ramdisk from Legacy Image at 06000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    9862177 Bytes = 9.4 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 7d5ba000, end 7df21c21 ... OK
   Loading Device Tree to 000000007d53f000, end 000000007d5b9fff ... OK

Starting kernel ...

[    7.111047] OF: graph: no port node found in /i2c@ff3d0000/fusb302@22
[    7.289623] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4356-sdio for chip BCM4356/2
[   10.385057] brcmfmac: brcmf_sdio_readshared: invalid sdpcm_shared address 0xFE8B0174
[   10.385759] brcmfmac: brcmf_sdio_readshared: unable to obtain sdpcm_shared info: rv=-22 (addr=0xfe8b0174)

Armbian 20.05.0-trunk.111 Focal ttyS2

orangepi-rk3399 login:

So it works, but unfortunately I don't see the messages from booting kernel. As I'm mainly working at low level applications and kernel drivers, it is not the most comfortable situation...

 

With best regards,

Wojtek

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines