EDGE-V Boot Sequence & U-Boot

What version of LE ? Support for launching from USB is only available in my versions. Official versions do not support launching from USB.

Start LE from SD

U-Boot 2020.01 (Mar 19 2020 - 13:39:01 +0300)

Model: FriendlyElec NanoPC-T4
DRAM: 3.9 GiB
MMC: dwmmc@fe310000: 2, dwmmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from MMCā€¦ *** Warning - bad CRC, using default environment

In: serial@ff1a0000
Out: serial@ff1a0000
Err: serial@ff1a0000
Model: FriendlyElec NanoPC-T4
rockchip_dnl_key_pressed: adc_channel_single_shot fail!
Net:
Error: ethernet@fe300000 address not set.
No ethernet found.

Hit any key to stop autoboot: 0
starting USBā€¦
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3c0000: USB EHCI 1.00
Bus dwc3: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus dwc3: 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@fe3c0000 for devicesā€¦ 1 USB Device(s) found
scanning bus dwc3 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

Device 0: unknown device
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1ā€¦
Found U-Boot script /boot.scr
896 bytes read in 10 ms (86.9 KiB/s)
Executing script at 00500000
start mainline u-boot
163 bytes read in 9 ms (17.6 KiB/s)
Error: ā€œmacā€ not defined
Error: ā€œeth_macā€ not defined
Error: ā€œethaddrā€ not defined
27303944 bytes read in 1743 ms (14.9 MiB/s)
55837 bytes read in 23 ms (2.3 MiB/s)
Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Host not halted after 16000 microseconds.
Loading Device Tree to 00000000f5f13000, end 00000000f5f23a1c ā€¦ OK

Starting kernel ā€¦

Start LE from USB

U-Boot 2019.10 (Jan 16 2020 - 17:13:16 +0300)

Model: Khadas Edge-V
DRAM: 3.9 GiB
Cannot find regulator pwm init_voltage
MMC: dwmmc@fe310000: 2, dwmmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from MMCā€¦ *** Warning - bad CRC, using default environment

In: serial@ff1a0000
Out: serial@ff1a0000
Err: serial@ff1a0000
Model: Khadas Edge-V
rockchip_dnl_key_pressed: adc_channel_single_shot fail!
Net:
Warning: ethernet@fe300000 (eth0) using random MAC address - 66:88:90:ed:5b:a2
eth0: ethernet@fe300000
Hit any key to stop autoboot: 0
starting USBā€¦
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3c0000: USB EHCI 1.00
Bus dwc3: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus dwc3: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@fe380000 for devicesā€¦ 5 USB Device(s) found
scanning bus usb@fe3c0000 for devicesā€¦ 1 USB Device(s) found
scanning bus dwc3 for devicesā€¦ 1 USB Device(s) found
scanning bus dwc3 for devicesā€¦ 1 USB Device(s) found
scanning usb for storage devicesā€¦ 1 Storage Device(s) found

Device 0: Vendor: UFD 2.0 Rev: PMAP Prod: Silicon-Power4G
Type: Removable Hard Disk
Capacity: 3784.0 MB = 3.6 GB (7749632 x 512)
ā€¦ is now current device
Scanning usb 0:1ā€¦
Found U-Boot script /boot.scr
896 bytes read in 27 ms (32.2 KiB/s)
Executing script at 00500000
start mainline u-boot
163 bytes read in 23 ms (6.8 KiB/s)
Error: ā€œmacā€ not defined
Error: ā€œeth_macā€ not defined
Error: ā€œethaddrā€ not defined
26386440 bytes read in 1444 ms (17.4 MiB/s)
55837 bytes read in 62 ms (878.9 KiB/s)
Flattened Device Tree blob at 01f00000
Booting using the fdt blob at 0x1f00000
Host not halted after 16000 microseconds.
Loading Device Tree to 00000000f5f16000, end 00000000f5f26a1c ā€¦ OK

Starting kernel ā€¦

2 Likes

I have LE from their officialy link which is for EDGE and not EDGE-V

The version difference is only in the DTB used .

@balbes150
Flashed Armbian img to SD Card
Logs

DDR Version 1.22 20190506
In
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
CS = 1
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 1
CS = 0
MR0=0x9
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x62
MR14=0x62
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xEF
CS = 1
MR0=0x9
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x62
MR14=0x62
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xEF
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
W FF != R
Cap error!
no stride
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
CS = 1
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 0 training pass!
channel 0, cs 0, advanced training done
channel 0, cs 1, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x1000EAA1, stride = 0x17
OUT
Boot1: 2019-03-14, version: 1.19
CPUId = 0x0
ChipType = 0x10, 255
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=29820MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=15193MB
FwPartOffset=2000 , 0
StorageInit ok = 193334
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 0x3380ec0 signature is wrong
recovery gpt fail!
LoadTrust Addr:0x4000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xa6ee8
RunBL31 0x10000
NOTICE:  BL31: v1.3(debug):370ab80
NOTICE:  BL31: Built : 09:23:41, Mar  4 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(1181): pd status 3e
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initializatK
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 2019.10-armbian (Nov 28 2019 - 12:47:20 +0300)

Model: Khadas Edge-V
DRAM:  "Synchronous Abort" handler, esr 0x96000000
elr: 0000000000219814 lr : 00000000002663c8
x0 : 00000000002b05d8 x1 : 00000000002b0ab0
x2 : 00000000fffffffe x3 : 0000000000000020
x4 : 0000000000000000 x5 : 0000000000000030
x6 : 0000000000272e4b x7 : 000000000000000f
x8 : 00000000ffffffd0 x9 : 0000000000000000
x10: 0000000000000010 x11: 0000000000000008
x12: 0000000000000001 x13: 000000000002001d
x14: 0000000000000000 x15: 0000000000000008
x16: 0000000000000001 x17: 0000000000000012
x18: fffffffdfffffeff x19: 00000000002b05d8
x20: 0000000096000000 x21: 0000000000000000
x22: 0000000000000000 x23: 0000000000000000
x24: 0000000000000000 x25: 0000000000000000
x26: 0000000000000000 x27: 0000000000000000
x28: 0000000000000000 x29: 00000000002b0550

Resetting CPU ...

Tried Libreelec from their official link for Khadas Edge
Log here


DDR Version 1.22 20190506
In
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
CS = 1
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 1
CS = 0
MR0=0x9
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x62
MR14=0x62
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xEF
CS = 1
MR0=0x9
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x62
MR14=0x62
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xEF
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
W FF != R
Cap error!
no stride
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
CS = 1
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 0 training pass!
channel 0, cs 0, advanced training done
channel 0, cs 1, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x1000EAA1, stride = 0x17
OUT
Boot1: 2019-03-14, version: 1.19
CPUId = 0x0
ChipType = 0x10, 256
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=29820MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=15193MB
FwPartOffset=2000 , 0
StorageInit ok = 195599
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 0x3380ec0 signature is wrong
recovery gpt fail!
LoadTrust Addr:0x4000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xaa178
RunBL31 0x10000
NOTICE:  BL31: v1.3(debug):cd61876
NOTICE:  BL31: Built : 16:25:54, Jan 23 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(1181): pd status 3e
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initializatK
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 2017.09 (Mar 03 2020 - 23:04:13 +0100), Build: jenkins-RK3399-175

Model: Rockchip RK3399 Evaluation Board
DRAM:  2 GiB
Relocation Offset is: 7fd14000
rk8xx_read: read reg 0x17 failed, ret=-121
MMC:   dwmmc@fe320000: 1, sdhci@fe330000: 0
Using default environment

In:    serial@ff1a0000
Out:   serial@ff1a0000
Err:   serial@ff1a0000
Model: Rockchip RK3399 Evaluation Board
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 /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
reading /extlinux/extlinux.conf
192 bytes read in 3 ms (62.5 KiB/s)
1:      LibreELEC
Retrieving file: /KERNEL
reading /KERNEL
19140616 bytes read in 802 ms (22.8 MiB/s)
append: boot=UUID=0303-5756 disk=UUID=a5291c06-d1b2-4569-9132-de48c4445fb9 quiet consol0
Retrieving file: /rk3399-khadas-edge.dtb
reading /rk3399-khadas-edge.dtb
93444 bytes read in 7 ms (12.7 MiB/s)
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
   Loading Device Tree to 000000007dee1000, end 000000007defad03 ... OK
Adding bank: start=0x00200000, size=0x7fe00000

Starting kernel ...


[    0.359083] iep: failed to find iep power down clock source.
[    0.361006] rk-vcodec ff650000.vpu_service: could not find power_model node
[    0.362143] rk-vcodec ff660000.rkvdec: could not find power_model node
[    0.386923] rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed
[    0.525514] rockchip-dwc3 usb0: failed to get drvdata dwc3
[    0.530743] rockchip-dwc3 usb1: fail to get drvdata hcd
[    0.647700] rk_tsadcv2_temp_to_code: Invalid conversion table: code=1023, temperatur7
[    0.681918] vccio_sd: unsupportable voltage range: 3300000-3000000uV
[    0.747768] rockchip-dmc dmc: unable to get devfreq-event device : dfi
[    0.761266] i2c i2c-9: of_i2c: modalias failure on /hdmi@ff940000/ports
[    0.765630] i2c i2c-10: of_i2c: modalias failure on /dp@fec00000/ports

This is loading as 2GB RAM. I am confused now. Will look for Android logs now.

Android Logs here

DR Version 1.22 20190506
In
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
CS = 1
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 1
CS = 0
MR0=0x9
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x62
MR14=0x62
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xEF
CS = 1
MR0=0x9
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x62
MR14=0x62
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xEF
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
W FF != R
Cap error!
no stride
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
CS = 1
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 0 training pass!
channel 0, cs 0, advanced training done
channel 0, cs 1, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x1000EAA1, stride = 0x17
OUT
Boot1: 2019-03-14, version: 1.19
CPUId = 0x0
ChipType = 0x10, 255
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=29820MB
FwPartOffset=2000 , 100000
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
SdmmcInit=0 1
StorageInit ok = 67741
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 part:  0, name:            uboot, start:0x4000, size:0x2000
GPT part:  1, name:            trust, start:0x6000, size:0x2000
GPT part:  2, name:             misc, start:0x8000, size:0x2000
GPT part:  3, name:              dtb, start:0x22000, size:0x2000
GPT part:  4, name:             dtbo, start:0x24000, size:0x2000
GPT part:  5, name:           vbmeta, start:0x26000, size:0x800
GPT part:  6, name:             boot, start:0x26800, size:0x10000
GPT part:  7, name:         recovery, start:0x36800, size:0x20000
GPT part:  8, name:           backup, start:0x56800, size:0x38000
GPT part:  9, name:         security, start:0x8e800, size:0x2000
GPT part: 10, name:            cache, start:0x90800, size:0x100000
GPT part: 11, name:           system, start:0x190800, size:0x500000
GPT part: 12, name:         metadata, start:0x690800, size:0x8000
GPT part: 13, name:           vendor, start:0x698800, size:0x100000
GPT part: 14, name:              oem, start:0x798800, size:0x100000
GPT part: 15, name:              frp, start:0x898800, size:0x400
GPT part: 16, name:         userdata, start:0x898c00, size:0x31a53df
find part:uboot OK. first_lba:0x4000.
find part:trust OK. first_lba:0x6000.
LoadTrust Addr:0x6000
No find bl30.bin
Load uboot, ReadLba = 4000
Load OK, addr=0x200000, size=0xe83d8
RunBL31 0x10000
NOTICE:  BL31: v1.3(debug):51f2096
NOTICE:  BL31: Built : 16:24:31, May  6 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(1181): pd status 3e
INFO:    BL31: Initializing runtime services
INFO:    BL31: Initializing BL32
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-195-g8f090d20 #6 Fri De)

INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.2

INF [0x0] TEE-CORE:init_teecore:83: teecore inits done
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-g0bfc064 (Dec 05 2019 - 01:59:10 +0800)

Model: Khadas-RK3399 khadas Board
PreSerial: 2
DRAM:  2 GiB
Sysmem: init
Relocation Offset is: 7dbdd000
Using default environment

dwmmc@fe320000: 1, sdhci@fe330000: 0
Bootdev(atags): mmc 0
PartType: EFI
boot mode: None
Load FDT from boot part
DTB: rk-kernel.dtb
ANDROID: fdt overlay OK
I2c speed: 400000Hz
PMIC:  RK808 
vdd_center 900000 uV
vdd_cpu_l 900000 uV
vdd_log 980000 uV
Model: Khadas Board
Rockchip UBOOT DRM driver version: v1.0.1
Using display timing dts
Detailed mode clock 120000 kHz, flags[a]
    H: 1088 1192 1196 1323
    V: 1920 1924 1926 1929
bus_format: 100e
final DSI-Link bandwidth: 996 Mbps x 4
CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
CLK: (uboot. armb: enter 24000 KHz, init 24000 KHz, kernel 0N/A)
  aplll 816000 KHz
  apllb 24000 KHz
  dpll 856000 KHz
  cpll 120000 KHz
  gpll 800000 KHz
  npll 600000 KHz
  vpll 24000 KHz
  aclk_perihp 133333 KHz
  hclk_perihp 66666 KHz
  pclk_perihp 33333 KHz
  aclk_perilp0 266666 KHz
  hclk_perilp0 88888 KHz
  pclk_perilp0 44444 KHz
  hclk_perilp1 100000 KHz
  pclk_perilp1 50000 KHz
Net:   eth0: ethernet@fe300000
Setting bus to 8
I2c speed: 100000Hz
normal power on
boot wol: disable
detect_board val=203 
board type = Edge-V (2)(val=203)
mac address: c8:63:14:70:55:d3
Hit any key to stop autoboot:  0 
ANDROID: reboot reason: "(none)"
SecureBoot enabled, AVB verify
read_is_device_unlocked() ops returned that device is UNLOCKED
avb_slot_verify.c:637: ERROR: vbmeta: Error verifying vbmeta image: OK_NOT_SIGNED
FDT load addr 0x10f00000 size 152 KiB
Booting IMAGE kernel at 0x00280000 with fdt at 0x8300000...


## Booting Android Image at 0x0027f800 ...
Kernel load addr 0x00280000 size 19151 KiB
RAM disk load addr 0x01534000 size 338 KiB
## Flattened Device Tree blob at 08300000
   Booting using the fdt blob at 0x8300000
   XIP Kernel Image ... OK
   Loading Ramdisk to 71d7a000, end 71dce794 ... OK
   Loading Device Tree to 0000000071d5c000, end 0000000071d79c05 ... OK
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x0a200000 - 0x80000000 (size: 0x75e00000)
Total: 2319.115 ms

Starting kernel ...


[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Initializing cgroup subsys schedtune
[    0.000000] Linux version 4.4.167 (hlm@Server) (gcc version 6.3.1 20170404 (Linaro G9
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] earlycon: Early serial console at MMIO32 0xff1a0000 (options '')
[    0.000000] bootconsole [uart0] enabled
[    0.000000] Reserved memory: failed to reserve memory for node 'stb-devinfo@00000000B
[    0.000000] cma: Reserved 16 MiB at 0x000000007f000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] PERCPU: Embedded 21 pages/cpu @ffffffc07eee5000 s45528 r8192 d32296 u8606
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 5072
[    0.000000] Kernel command line: storagemedia=emmc androidboot.mode=normal androidbom
[    0.000000] realtek init mac-addr: c8:63:14:70:55:d3
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] software IO TLB [mem 0x7ee9d000-0x7eedd000] (0MB) mapped at [ffffffc07ee]
[    0.000000] Memory: 1987200K/2064384K available (11198K kernel code, 1742K rwdata, 5)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000   (   246 GB)
[    0.000000]       .init : 0xffffff80090c0000 - 0xffffff8009180000   (   768 KB)
[    0.000000]       .text : 0xffffff8008080000 - 0xffffff8008b70000   ( 11200 KB)
[    0.000000]     .rodata : 0xffffff8008b70000 - 0xffffff80090c0000   (  5440 KB)
[    0.000000]       .data : 0xffffff8009180000 - 0xffffff8009333808   (  1743 KB)
[    0.000000]     vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000   (     8 GB maxim)
[    0.000000]               0xffffffbdc0008000 - 0xffffffbdc2000000   (    31 MB actua)
[    0.000000]     fixed   : 0xffffffbffe7fb000 - 0xffffffbffec00000   (  4116 KB)
[    0.000000]     PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000   (    16 MB)
[    0.000000]     memory  : 0xffffffc000200000 - 0xffffffc080000000   (  2046 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=6.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=6
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] ITS: /interrupt-controller@fee00000/interrupt-controller@fee20000
[    0.000000] ITS: allocated 65536 Devices @a200000 (psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GIC: using LPI property table @0x000000000a280000
[    0.000000] ITS: Allocated 1792 chunks for LPIs
[    0.000000] CPU0: found redistributor 0 region 0:0x00000000fef00000
[    0.000000] CPU0: using LPI pending table @0x000000000a290000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1}
[    0.000000] GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu}
[    0.000000] rockchip_clk_register_frac_branch: could not find dclk_vop0_frac as parek
[    0.000000] rockchip_clk_register_frac_branch: could not find dclk_vop1_frac as parek
[    0.000000] rockchip_cpuclk_pre_rate_change: limiting alt-divider 33 to 31
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fs
[    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 439804651109s
[    0.002096] Calibrating delay loop (skipped), value calculated using timer frequency)
[    0.003075] pid_max: default: 32768 minimum: 301
[    0.003600] Security Framework initialized
[    0.003995] SELinux:  Initializing.
[    0.004411] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.005049] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.006441] Initializing cgroup subsys memory
[    0.006881] Initializing cgroup subsys freezer
[    0.008256] sched-energy: Sched-energy-costs installed from DT
[    0.008814] CPU0: update cpu_capacity 401
[    0.009271] ASID allocator initialised with 32768 entries
[    0.026101] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 dod
[    0.027456] Platform MSI: /interrupt-controller@fee00000/interrupt-controller@fee200d
[    0.039508] Detected VIPT I-cache on CPU1
[    0.039540] CPU1: found redistributor 1 region 0:0x00000000fef20000
[    0.039570] CPU1: using LPI pending table @0x000000000a3f0000
[    0.039612] CPU1: update cpu_capacity 401
[    0.039616] CPU1: Booted secondary processor [410fd034]
[    0.049492] Detected VIPT I-cache on CPU2
[    0.049511] CPU2: found redistributor 2 region 0:0x00000000fef40000
[    0.049538] CPU2: using LPI pending table @0x000000007bc20000
[    0.049564] CPU2: update cpu_capacity 401
[    0.049567] CPU2: Booted secondary processor [410fd034]
[    0.059523] Detected VIPT I-cache on CPU3
[    0.059541] CPU3: found redistributor 3 region 0:0x00000000fef60000
[    0.059569] CPU3: using LPI pending table @0x000000007bc60000
[    0.059594] CPU3: update cpu_capacity 401
[    0.059597] CPU3: Booted secondary processor [410fd034]
[    0.069574] Detected PIPT I-cache on CPU4
[    0.069600] CPU4: found redistributor 100 region 0:0x00000000fef80000
[    0.069642] CPU4: using LPI pending table @0x000000007bcb0000
[    0.069679] CPU4: update cpu_capacity 1024
[    0.069682] CPU4: Booted secondary processor [410fd082]
[    0.079599] Detected PIPT I-cache on CPU5
[    0.079616] CPU5: found redistributor 101 region 0:0x00000000fefa0000
[    0.079654] CPU5: using LPI pending table @0x000000007bcd0000
[    0.079680] CPU5: update cpu_capacity 1024
[    0.079683] CPU5: Booted secondary processor [410fd082]
[    0.079765] Brought up 6 CPUs
[    0.092056] SMP: Total of 6 processors activated.
[    0.092506] CPU features: detected feature: GIC system register CPU interface
[    0.093184] CPU features: detected feature: 32-bit EL0 Support
[    0.093750] CPU: All CPU(s) started at EL2
[    0.094176] alternatives: patching kernel code
[    0.096558] devtmpfs: initialized
[    0.119753] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_s
[    0.120664] futex hash table entries: 2048 (order: 5, 131072 bytes)
[    0.121915] pinctrl core: initialized pinctrl subsystem
[    0.124145] Failed to find legacy iommu devices
[    0.124961] NET: Registered protocol family 16
[    0.126055] schedtune: init normalization constants...
[    0.126533] schedtune: CLUSTER[0-3]      min_pwr:    56 max_pwr:   222
[    0.127134] schedtune: CPU[0]            min_pwr:     0 max_pwr:   222
[    0.127745] schedtune: CPU[1]            min_pwr:     0 max_pwr:   222
[    0.128344] schedtune: CPU[2]            min_pwr:     0 max_pwr:   222
[    0.128945] schedtune: CPU[3]            min_pwr:     0 max_pwr:   222
[    0.129545] schedtune: CLUSTER[4-5]      min_pwr:    65 max_pwr:  1108
[    0.130147] schedtune: CPU[4]            min_pwr:     0 max_pwr:  1108
[    0.130745] schedtune: CPU[5]            min_pwr:     0 max_pwr:  1108
[    0.131349] schedtune: SYSTEM            min_pwr:   121 max_pwr:  4434
[    0.131948] schedtune: using normalization constants mul: 3862781856 sh1: 1 sh2: 12
[    0.132651] schedtune: verify normalization constants...
[    0.133141] schedtune: max_pwr/2^0: 4313 => norm_pwr:  1024
[    0.133655] schedtune: max_pwr/2^1: 2156 => norm_pwr:   511
[    0.134166] schedtune: max_pwr/2^2: 1078 => norm_pwr:   255
[    0.134678] schedtune: max_pwr/2^3:  539 => norm_pwr:   127
[    0.135194] schedtune: max_pwr/2^4:  269 => norm_pwr:    63
[    0.135704] schedtune: max_pwr/2^5:  134 => norm_pwr:    31
[    0.136216] schedtune: configured to support 5 boost groups
[    0.144722] cpuidle: using governor ladder
[    0.154725] cpuidle: using governor menu
[    0.155109] Registered FIQ tty driver
[    0.156084] vdso: 2 pages (1 code @ ffffff8008b76000, 1 data @ ffffff8009184000)
[    0.156783] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.158463] DMA: preallocated 1024 KiB pool for atomic allocations
[    0.180850] console [pstore-1] enabled
[    0.181429] pstore: Registered ramoops as persistent store backend
[    0.182013] ramoops: attached 0xf0000@0x110000, ecc: 0/0
[    0.185065] fiq debugger fiq mode enabled
[ [    0.185715] console [ttyFIQ0] enabled
   0.185715] console [ttyFIQ0] enabled
[    0.186379] bootconsole [uart0] disabled
[    0.186379] bootconsole [uart0] disabled
[    0.186970] Registered fiq debugger ttyFIQ0
[    0.219401] iommu: Adding device ff650000.vpu_service to group 0
[    0.219489] iommu: Adding device ff660000.rkvdec to group 1
[    0.219568] iommu: Adding device ff670000.iep to group 2
[    0.219681] iommu: Adding device ff8f0000.vop to group 3
[    0.219770] iommu: Adding device ff900000.vop to group 4
[    0.219858] iommu: Adding device ff910000.rkisp1 to group 5
[    0.219947] iommu: Adding device ff920000.rkisp1 to group 6
[    0.220430] rk_iommu ff650800.iommu: can't get sclk
[    0.220667] rk_iommu ff660480.iommu: can't get sclk
[    0.220758] rk_iommu ff670800.iommu: can't get aclk
[    0.220776] rk_iommu ff670800.iommu: can't get hclk
[    0.220786] rk_iommu ff670800.iommu: can't get sclk
[    0.220956] rk_iommu ff8f3f00.iommu: can't get sclk
[    0.221112] rk_iommu ff903f00.iommu: can't get sclk
[    0.221262] rk_iommu ff914000.iommu: can't get sclk
[    0.221412] rk_iommu ff924000.iommu: can't get sclk
[    0.221740] SCSI subsystem initialized
[    0.221914] usbcore: registered new interface driver usbfs
[    0.221956] usbcore: registered new interface driver hub
[    0.222024] usbcore: registered new device driver usb
[    0.222462] media: Linux media interface: v0.10
[    0.222499] Linux video capture interface: v2.00
[    0.222693] pps_core: LinuxPPS API ver. 1 registered
[    0.222702] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <gi>
[    0.222723] PTP clock support registered
[    0.224632] Advanced Linux Sound Architecture Driver Initialized.
[    0.225185] Bluetooth: Core ver 2.21
[    0.225217] NET: Registered protocol family 31
[    0.225227] Bluetooth: HCI device and connection manager initialized
[    0.225241] Bluetooth: HCI socket layer initialized
[    0.225252] Bluetooth: L2CAP socket layer initialized
[    0.225277] Bluetooth: SCO socket layer initialized
[    0.226065] rockchip-cpuinfo cpuinfo: Serial         : 5801ca60f9d1773f
[    0.226886] clocksource: Switched to clocksource arch_sys_counter
[    0.273166] thermal thermal_zone1: power_allocator: sustainable_power will be estimad
[    0.273424] NET: Registered protocol family 2
[    0.273923] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.274067] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.274353] TCP: Hash tables configured (established 16384 bind 16384)
[    0.274456] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.274520] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.274697] NET: Registered protocol family 1
[    0.275668] Trying to unpack rootfs image as initramfs...
[    0.276648] Freeing initrd memory: 336K
[    0.277558] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters avaie
[    0.277647] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters avaie
[    0.280630] audit: initializing netlink subsys (disabled)
[    0.280704] audit: type=2000 audit(0.276:1): initialized
[    0.286138] VFS: Disk quotas dquot_6.6.0
[    0.286271] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.287195] Registering sdcardfs 0.1
[    0.287779] fuse init (API version 7.23)
[    0.288989] 
[    0.288989] TEE Core Framework initialization (ver 1:0.1)
[    0.289018] TEE armv7 Driver initialization
[    0.289459] tz_tee_probe: name="armv7sec", id=0, pdev_name="armv7sec.0"
[    0.289478] TEE core: Alloc the misc device "opteearmtz00" (id=0)
[    0.289650] TEE Core: Register the misc device "opteearmtz00" (id=0,minor=62)
[    0.294032] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.294059] io scheduler noop registered
[    0.294219] io scheduler cfq registered (default)
[    0.295795] phy phy-ff770000.syscon:usb2-phy@e460.1: Failed to get VBUS supply regulr
[    0.297570] rockchip-mipi-dphy-rx ff770000.syscon:mipi-dphy-rx0: invalid resource
[    0.301712] rockchip-pcie f8000000.pcie: no vpcie3v3 regulator found
[    0.301741] rockchip-pcie f8000000.pcie: no vpcie1v8 regulator found
[    0.301756] rockchip-pcie f8000000.pcie: no vpcie0v9 regulator found
[    0.301767] rockchip-pcie f8000000.pcie: missing "memory-region" property
[    0.301782] PCI host bridge /pcie@f8000000 ranges:
[    0.301815]   MEM 0xfa000000..0xfbdfffff -> 0xfa000000
[    0.301826]    IO 0xfbe00000..0xfbefffff -> 0xfbe00000

And I think wrong board is sent @Kingsley

You have a version with 2GB of RAM. It needs a different u-boot. I donā€™t have such models , so I don 't check their work.

1 Like

Yes looks like it was sent by mistake. I will check with khadas team

@numbqq which uboot to be used for 2gb model.

@balbes150 thanks for replying.

You can check on your instance of these versions of the LE and any version Armbian ? Perhaps there is an old u-boot that can run on 2GB.

1 Like

We use the same u-boot for all the Edge models.

Can you please help me with the uboot binaries? I am a bit confused now.

Please share the pre built binaries so I can test it with my board.

These are different versions of u-boot, they used an additional patch (I don 't remember its contents), perhaps if you add it, the 2GB model can work.

2 Likes

Here is the pre-build u-boot blobs (U-Boot 2020.01-rc5) for Edge. https://dl.khadas.com/Firmware/test/Edge_uboot/

Just simple dd them to SD card and insert the SD card to Edge and reboot. Then will boot from SD card with new u-boot.

Here is the test results on my side

DDR Version 1.24 20191016
In
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 1
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
Channel 1: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
256B stride
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 1
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 0 training pass!
channel 1 training pass!
channel 0, cs 0, advanced training done
channel 1, cs 0, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x20
ch 1 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x3281F281, stride = 0x9
ddr_set_rate to 328MHZ
ddr_set_rate to 666MHZ
ddr_set_rate to 416MHZ, ctl_index 0
ddr_set_rate to 856MHZ, ctl_index 1
support 416 856 328 666 MHz, current 856MHz
OUT
Boot1 Release Time: Dec 24 2019 18:00:26, version: 1.24
CPUId = 0x0
ChipType = 0x10, 339
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=30436MB
FwPartOffset=2000 , 0
StorageInit ok = 194876
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 0x3380ea0 signature is wrong
recovery gpt...
GPT 0x3380ea0 signature is wrong
recovery gpt fail!
LoadTrust Addr:0x4000
No find bl30.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xa7b70
RunBL31 0x40000 @ 330070 us
NOTICE:  BL31: v1.3(debug):734d84297
NOTICE:  BL31: Built : 15:30:40, Dec 12 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
INFO:    BL31: Initializing BL32
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-230-g6c76e8a9 #191 Mon Nov 18 07:00:24 UTC 2019 aarch64)

INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.2

INF [0x0] TEE-CORE:init_teecore:83: teecore inits done
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2020.01-rc5 (Mar 20 2020 - 16:46:40 +0800)

Model: Khadas Edge-Captain
DRAM:  1.8 GiB
PMIC:  RK808 
MMC:   dwmmc@fe310000: 2, dwmmc@fe320000: 1, sdhci@fe330000: 0
In:    serial@ff1a0000
Out:   serial@ff1a0000
Err:   serial@ff1a0000
Model: Khadas Edge-Captain
rockchip_dnl_key_pressed: adc_channel_single_shot fail!
Net:   
Warning: ethernet@fe300000 (eth0) using random MAC address - 0e:5a:16:2c:5a:1f
eth0: ethernet@fe300000
Hit any key to stop autoboot:  0 

@numbqq If you read the android uboot it can read ram on channel 0 and 1 but channel 1 data cannot be read by the uboot.

do you think is this any concern?

Here.

Can you check with the latest Android image ? https://dl.khadas.com/Firmware/Edge/Android/Edge_Pie_V191227.7z

tried it just now

n
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
CS = 1
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 1
CS = 0
MR0=0x9
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x62
MR14=0x62
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xEF
CS = 1
MR0=0x9
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x62
MR14=0x62
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xEF
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
W FF != R
Cap error!
no stride
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
CS = 1
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 0 training pass!
channel 0, cs 0, advanced training done
channel 0, cs 1, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x1000EAA1, stride = 0x17
OUT
Boot1: 2019-03-14, version: 1.19
CPUId = 0x0
ChipType = 0x10, 255
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=29820MB
FwPartOffset=2000 , 100000
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
mmc0:cmd8,20
mmc0:cmd5,20
mmc0:cmd55,20
mmc0:cmd1,20
SdmmcInit=0 1
StorageInit ok = 67773
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 part:  0, name:            uboot, start:0x4000, size:0x2000
GPT part:  1, name:            trust, start:0x6000, size:0x2000
GPT part:  2, name:             misc, start:0x8000, size:0x2000
GPT part:  3, name:              dtb, start:0x22000, size:0x2000
GPT part:  4, name:             dtbo, start:0x24000, size:0x2000
GPT part:  5, name:           vbmeta, start:0x26000, size:0x800
GPT part:  6, name:             boot, start:0x26800, size:0x10000
GPT part:  7, name:         recovery, start:0x36800, size:0x20000
GPT part:  8, name:           backup, start:0x56800, size:0x38000
GPT part:  9, name:         security, start:0x8e800, size:0x2000
GPT part: 10, name:            cache, start:0x90800, size:0x100000
GPT part: 11, name:           system, start:0x190800, size:0x500000
GPT part: 12, name:         metadata, start:0x690800, size:0x8000
GPT part: 13, name:           vendor, start:0x698800, size:0x100000
GPT part: 14, name:              oem, start:0x798800, size:0x100000
GPT part: 15, name:              frp, start:0x898800, size:0x400
GPT part: 16, name:         userdata, start:0x898c00, size:0x31a53df
find part:uboot OK. first_lba:0x4000.
find part:trust OK. first_lba:0x6000.
LoadTrust Addr:0x6000
No find bl30.bin
Load uboot, ReadLba = 4000
Load OK, addr=0x200000, size=0xe83d8
RunBL31 0x10000
NOTICE:  BL31: v1.3(debug):51f2096
NOTICE:  BL31: Built : 16:24:31, May  6 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(1181): pd status 3e
INFO:    BL31: Initializing runtime services
INFO:    BL31: Initializing BL32
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-195-g8f090d20 #6 Fri De)

INF [0x0] TEE-CORE:init_primary_helper:338: Release version: 1.2

INF [0x0] TEE-CORE:init_teecore:83: teecore inits done
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9


U-Boot 2017.09-g0bfc064 (Dec 27 2019 - 11:33:07 +0800)

Model: Khadas-RK3399 khadas Board
PreSerial: 2
DRAM:  2 GiB
Sysmem: init
Relocation Offset is: 7dbdd000
Using default environment

dwmmc@fe320000: 1, sdhci@fe330000: 0
Bootdev(atags): mmc 0
PartType: EFI
boot mode: None
Load FDT from boot part
DTB: rk-kernel.dtb
ANDROID: fdt overlay OK
I2c speed: 400000Hz
PMIC:  RK808 
vdd_center 900000 uV
vdd_cpu_l 900000 uV
vdd_log 980000 uV
Model: Khadas Board
Rockchip UBOOT DRM driver version: v1.0.1
xfer: num: 2, addr: 0x50
[dw_hdmi_i2c_read] i2c read reg[0x01] no interrupt
xfer: num: 2, addr: 0x50
[dw_hdmi_i2c_read] i2c read reg[0x01] no interrupt
xfer: num: 2, addr: 0x50
[dw_hdmi_i2c_read] i2c read reg[0x01] no interrupt
xfer: num: 2, addr: 0x50
[dw_hdmi_i2c_read] i2c read reg[0x01] no interrupt
xfer: num: 2, addr: 0x50
[dw_hdmi_i2c_read] i2c read reg[0x01] no interrupt
can't get edid block:0
failed to get edid
Could not find baseparameter partition
mode:1920x1080
CEA mode used vic=16
final pixclk = 148500000 tmdsclk = 148500000
PHY powered down in 0 iterations
PHY PLL locked 1 iterations
PHY powered down in 0 iterations
PHY PLL locked 1 iterations
sink has audio support
hdmi_set_clk_regenerator: fs=48000Hz ftdms=148.500MHz N=6144 cts=148500
Using display timing dts
Detailed mode clock 120000 kHz, flags[a]
    H: 1088 1192 1196 1323
    V: 1920 1924 1926 1929
bus_format: 100e
final DSI-Link bandwidth: 996 Mbps x 4
CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
CLK: (uboot. armb: enter 24000 KHz, init 24000 KHz, kernel 0N/A)
  aplll 816000 KHz
  apllb 24000 KHz
  dpll 856000 KHz
  cpll 120000 KHz
  gpll 800000 KHz
  npll 600000 KHz
  vpll 148000 KHz
  aclk_perihp 133333 KHz
  hclk_perihp 66666 KHz
  pclk_perihp 33333 KHz
  aclk_perilp0 266666 KHz
  hclk_perilp0 88888 KHz
  pclk_perilp0 44444 KHz
  hclk_perilp1 100000 KHz
  pclk_perilp1 50000 KHz
Net:   eth0: ethernet@fe300000
Setting bus to 8
I2c speed: 100000Hz
normal power off
boot wol: disable
detect_board val=203 
board type = Edge-V (2)(val=203)
mac address: c8:63:14:70:55:d3
Hit any key to stop autoboot:  0 
ANDROID: reboot reason: "(none)"
SecureBoot enabled, AVB verify
read_is_device_unlocked() ops returned that device is UNLOCKED
avb_slot_verify.c:637: ERROR: vbmeta: Error verifying vbmeta image: OK_NOT_SIGNED
FDT load addr 0x10f00000 size 153 KiB
Booting IMAGE kernel at 0x00280000 with fdt at 0x8300000...


## Booting Android Image at 0x0027f800 ...
Kernel load addr 0x00280000 size 19151 KiB
RAM disk load addr 0x01534000 size 338 KiB
## Flattened Device Tree blob at 08300000
   Booting using the fdt blob at 0x8300000
   XIP Kernel Image ... OK
   Loading Ramdisk to 71d7a000, end 71dce794 ... OK
   Loading Device Tree to 0000000071d5c000, end 0000000071d79c57 ... OK
Adding bank: 0x00200000 - 0x08400000 (size: 0x08200000)
Adding bank: 0x0a200000 - 0x80000000 (size: 0x75e00000)
Total: 2447.571 ms

Starting kernel ...


[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Initializing cgroup subsys schedtune
[    0.000000] Linux version 4.4.167 (hlm@Server) (gcc version 6.3.1 20170404 (Linaro G9
[    0.000000] Boot CPU: AArch64 Processor [410fd034]
[    0.000000] earlycon: Early serial console at MMIO32 0xff1a0000 (options '')
[    0.000000] bootconsole [uart0] enabled
[    0.000000] Reserved memory: failed to reserve memory for node 'stb-devinfo@00000000B
[    0.000000] cma: Reserved 16 MiB at 0x000000007f000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] PERCPU: Embedded 21 pages/cpu @ffffffc07eee5000 s45528 r8192 d32296 u8606
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for ARM erratum 845719
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 5072
[    0.000000] Kernel command line: storagemedia=emmc androidboot.mode=normal androidbom
[    0.000000] realtek init mac-addr: c8:63:14:70:55:d3
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] software IO TLB [mem 0x7ee9d000-0x7eedd000] (0MB) mapped at [ffffffc07ee]
[    0.000000] Memory: 1987200K/2064384K available (11198K kernel code, 1742K rwdata, 5)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     modules : 0xffffff8000000000 - 0xffffff8008000000   (   128 MB)
[    0.000000]     vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000   (   246 GB)
[    0.000000]       .init : 0xffffff80090c0000 - 0xffffff8009180000   (   768 KB)
[    0.000000]       .text : 0xffffff8008080000 - 0xffffff8008b70000   ( 11200 KB)
[    0.000000]     .rodata : 0xffffff8008b70000 - 0xffffff80090c0000   (  5440 KB)
[    0.000000]       .data : 0xffffff8009180000 - 0xffffff8009333808   (  1743 KB)
[    0.000000]     vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000   (     8 GB maxim)
[    0.000000]               0xffffffbdc0008000 - 0xffffffbdc2000000   (    31 MB actua)
[    0.000000]     fixed   : 0xffffffbffe7fb000 - 0xffffffbffec00000   (  4116 KB)
[    0.000000]     PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000   (    16 MB)
[    0.000000]     memory  : 0xffffffc000200000 - 0xffffffc080000000   (  2046 MB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 64.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=6.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=6
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] ITS: /interrupt-controller@fee00000/interrupt-controller@fee20000
[    0.000000] ITS: allocated 65536 Devices @a200000 (psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GIC: using LPI property table @0x000000000a280000
[    0.000000] ITS: Allocated 1792 chunks for LPIs
[    0.000000] CPU0: found redistributor 0 region 0:0x00000000fef00000
[    0.000000] CPU0: using LPI pending table @0x000000000a290000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1}
[    0.000000] GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu}
[    0.000000] rockchip_clk_register_frac_branch: could not find dclk_vop0_frac as parek
[    0.000000] rockchip_clk_register_frac_branch: could not find dclk_vop1_frac as parek
[    0.000000] rockchip_cpuclk_pre_rate_change: limiting alt-divider 33 to 31
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fs
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 439804651109s
[    0.002040] Calibrating delay loop (skipped), value calculated using timer frequency)
[    0.003020] pid_max: default: 32768 minimum: 301
[    0.003544] Security Framework initialized
[    0.003939] SELinux:  Initializing.
[    0.004354] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.004993] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.006377] Initializing cgroup subsys memory
[    0.006817] Initializing cgroup subsys freezer
[    0.008191] sched-energy: Sched-energy-costs installed from DT
[    0.008750] CPU0: update cpu_capacity 401
[    0.009213] ASID allocator initialised with 32768 entries
[    0.026049] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 dod
[    0.027380] Platform MSI: /interrupt-controller@fee00000/interrupt-controller@fee200d
[    0.039448] Detected VIPT I-cache on CPU1
[    0.039481] CPU1: found redistributor 1 region 0:0x00000000fef20000
[    0.039512] CPU1: using LPI pending table @0x000000000a3f0000
[    0.039555] CPU1: update cpu_capacity 401
[    0.039559] CPU1: Booted secondary processor [410fd034]
[    0.049432] Detected VIPT I-cache on CPU2
[    0.049452] CPU2: found redistributor 2 region 0:0x00000000fef40000
[    0.049480] CPU2: using LPI pending table @0x000000007bc20000
[    0.049506] CPU2: update cpu_capacity 401
[    0.049509] CPU2: Booted secondary processor [410fd034]
[    0.059463] Detected VIPT I-cache on CPU3
[    0.059482] CPU3: found redistributor 3 region 0:0x00000000fef60000
[    0.059509] CPU3: using LPI pending table @0x000000007bc60000
[    0.059534] CPU3: update cpu_capacity 401
[    0.059538] CPU3: Booted secondary processor [410fd034]
[    0.069514] Detected PIPT I-cache on CPU4
[    0.069542] CPU4: found redistributor 100 region 0:0x00000000fef80000
[    0.069583] CPU4: using LPI pending table @0x000000007bcb0000
[    0.069620] CPU4: update cpu_capacity 1024
[    0.069623] CPU4: Booted secondary processor [410fd082]
[    0.079538] Detected PIPT I-cache on CPU5
[    0.079555] CPU5: found redistributor 101 region 0:0x00000000fefa0000
[    0.079594] CPU5: using LPI pending table @0x000000007bcd0000
[    0.079620] CPU5: update cpu_capacity 1024
[    0.079623] CPU5: Booted secondary processor [410fd082]
[    0.079705] Brought up 6 CPUs
[    0.092000] SMP: Total of 6 processors activated.
[    0.092450] CPU features: detected feature: GIC system register CPU interface
[    0.093128] CPU features: detected feature: 32-bit EL0 Support
[    0.093694] CPU: All CPU(s) started at EL2
[    0.094121] alternatives: patching kernel code
[    0.096517] devtmpfs: initialized
[    0.119700] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_s
[    0.120621] futex hash table entries: 2048 (order: 5, 131072 bytes)
[    0.121881] pinctrl core: initialized pinctrl subsystem
[    0.124049] Failed to find legacy iommu devices
[    0.124880] NET: Registered protocol family 16
[    0.125979] schedtune: init normalization constants...
[    0.126462] schedtune: CLUSTER[0-3]      min_pwr:    56 max_pwr:   222
[    0.127067] schedtune: CPU[0]            min_pwr:     0 max_pwr:   222
[    0.127682] schedtune: CPU[1]            min_pwr:     0 max_pwr:   222
[    0.128287] schedtune: CPU[2]            min_pwr:     0 max_pwr:   222
[    0.128895] schedtune: CPU[3]            min_pwr:     0 max_pwr:   222
[    0.129501] schedtune: CLUSTER[4-5]      min_pwr:    65 max_pwr:  1108
[    0.130107] schedtune: CPU[4]            min_pwr:     0 max_pwr:  1108
[    0.130713] schedtune: CPU[5]            min_pwr:     0 max_pwr:  1108
[    0.131323] schedtune: SYSTEM            min_pwr:   121 max_pwr:  4434
[    0.131931] schedtune: using normalization constants mul: 3862781856 sh1: 1 sh2: 12
[    0.132639] schedtune: verify normalization constants...
[    0.133134] schedtune: max_pwr/2^0: 4313 => norm_pwr:  1024
[    0.133653] schedtune: max_pwr/2^1: 2156 => norm_pwr:   511
[    0.134171] schedtune: max_pwr/2^2: 1078 => norm_pwr:   255
[    0.134696] schedtune: max_pwr/2^3:  539 => norm_pwr:   127
[    0.135214] schedtune: max_pwr/2^4:  269 => norm_pwr:    63
[    0.135728] schedtune: max_pwr/2^5:  134 => norm_pwr:    31
[    0.136245] schedtune: configured to support 5 boost groups
[    0.144732] cpuidle: using governor ladder
[    0.154734] cpuidle: using governor menu
[    0.155118] Registered FIQ tty driver
[    0.156095] vdso: 2 pages (1 code @ ffffff8008b76000, 1 data @ ffffff8009184000)
[    0.156809] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.158502] DMA: preallocated 1024 KiB pool for atomic allocations
[    0.181066] console [pstore-1] enabled
[    0.181657] pstore: Registered ramoops as persistent store backend
[    0.182233] ramoops: attached 0xf0000@0x110000, ecc: 0/0
[    0.185306] fiq debugger fiq mode enabled
[ [    0.185949] console [ttyFIQ0] enabled
   0.185949] console [ttyFIQ0] enabled
[    0.186615] bootconsole [uart0] disabled
[    0.186615] bootconsole [uart0] disabled
[    0.187206] Registered fiq debugger ttyFIQ0
[    0.218751] iommu: Adding device ff650000.vpu_service to group 0
[    0.218838] iommu: Adding device ff660000.rkvdec to group 1
[    0.218917] iommu: Adding device ff670000.iep to group 2
[    0.219027] iommu: Adding device ff8f0000.vop to group 3
[    0.219113] iommu: Adding device ff900000.vop to group 4
[    0.219200] iommu: Adding device ff910000.rkisp1 to group 5
[    0.219291] iommu: Adding device ff920000.rkisp1 to group 6
[    0.219775] rk_iommu ff650800.iommu: can't get sclk
[    0.220021] rk_iommu ff660480.iommu: can't get sclk
[    0.220110] rk_iommu ff670800.iommu: can't get aclk
[    0.220121] rk_iommu ff670800.iommu: can't get hclk
[    0.220131] rk_iommu ff670800.iommu: can't get sclk
[    0.220302] rk_iommu ff8f3f00.iommu: can't get sclk
[    0.220455] rk_iommu ff903f00.iommu: can't get sclk
[    0.220609] rk_iommu ff914000.iommu: can't get sclk
[    0.220761] rk_iommu ff924000.iommu: can't get sclk
[    0.221090] SCSI subsystem initialized
[    0.221255] usbcore: registered new interface driver usbfs
[    0.221298] usbcore: registered new interface driver hub
[    0.221375] usbcore: registered new device driver usb
[    0.221814] media: Linux media interface: v0.10
[    0.221852] Linux video capture interface: v2.00
[    0.222035] pps_core: LinuxPPS API ver. 1 registered
[    0.222044] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <gi>
[    0.222066] PTP clock support registered
[    0.223868] Advanced Linux Sound Architecture Driver Initialized.
[    0.224342] Bluetooth: Core ver 2.21
[    0.224382] NET: Registered protocol family 31
[    0.224391] Bluetooth: HCI device and connection manager initialized
[    0.224405] Bluetooth: HCI socket layer initialized
[    0.224416] Bluetooth: L2CAP socket layer initialized
[    0.224446] Bluetooth: SCO socket layer initialized
[    0.225173] rockchip-cpuinfo cpuinfo: Serial         : 5801ca60f9d1773f
[    0.225973] clocksource: Switched to clocksource arch_sys_counter
[    0.272173] thermal thermal_zone1: power_allocator: sustainable_power will be estimad
[    0.272459] NET: Registered protocol family 2
[    0.272990] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.273137] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.273414] TCP: Hash tables configured (established 16384 bind 16384)
[    0.273515] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.273578] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.273760] NET: Registered protocol family 1
[    0.274768] Trying to unpack rootfs image as initramfs...
[    0.275781] Freeing initrd memory: 336K
[    0.276760] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters avaie
[    0.276851] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters avaie
[    0.279808] audit: initializing netlink subsys (disabled)
[    0.279878] audit: type=2000 audit(0.276:1): initialized
[    0.285312] VFS: Disk quotas dquot_6.6.0
[    0.285436] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.286350] Registering sdcardfs 0.1
[    0.286914] fuse init (API version 7.23)
[    0.288144] 
[    0.288144] TEE Core Framework initialization (ver 1:0.1)
[    0.288174] TEE armv7 Driver initialization
[    0.288591] tz_tee_probe: name="armv7sec", id=0, pdev_name="armv7sec.0"
[    0.288612] TEE core: Alloc the misc device "opteearmtz00" (id=0)
[    0.288790] TEE Core: Register the misc device "opteearmtz00" (id=0,minor=62)
[    0.293170] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.293200] io scheduler noop registered
[    0.293366] io scheduler cfq registered (default)
[    0.294858] phy phy-ff770000.syscon:usb2-phy@e460.1: Failed to get VBUS supply regulr
[    0.296599] rockchip-mipi-dphy-rx ff770000.syscon:mipi-dphy-rx0: invalid resource
[    0.300693] rockchip-pcie f8000000.pcie: no vpcie3v3 regulator found
[    0.300722] rockchip-pcie f8000000.pcie: no vpcie1v8 regulator found
[    0.300736] rockchip-pcie f8000000.pcie: no vpcie0v9 regulator found
[    0.300747] rockchip-pcie f8000000.pcie: missing "memory-region" property
[    0.300762] PCI host bridge /pcie@f8000000 ranges:
[    0.300794]   MEM 0xfa000000..0xfbdfffff -> 0xfa000000
[    0.300805]    IO 0xfbe00000..0xfbefffff -> 0xfbe00000

Looks like the channel 1 have some problem.

Hi Spikerguy,
I will let @Kingsley contact you for the return.

Sorry for the trouble!

@Spikerguy I made a small change to u-boot. Can you check the latest Armbian 20200320 image on your 2GB model ? I am interested in what u-boot will show (output from the UART console).

1 Like

@balbes150 thanks for doing a new img to test.
The device i have is a 4gb version but one of the channels have some problem.
But if you want I can try it for you.

I am not able to find your Armbian IMG. Please share the link here.

Hi @balbes150

This Ambian img worked.
Thanks.

In
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
CS = 1
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 1
CS = 0
MR0=0x9
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x62
MR14=0x62
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xEF
CS = 1
MR0=0x9
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x62
MR14=0x62
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xEF
channel 0 training pass!
channel 1 training pass!
change freq to 416MHz 0,1
Channel 0: LPDDR4,416MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: LPDDR4,416MHz
W FF != R
Cap error!
no stride
channel 0
CS = 0
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
CS = 1
MR0=0x19
MR4=0x3
MR5=0x6
MR8=0x8
MR12=0x72
MR14=0x72
MR18=0x0
MR19=0x0
MR24=0x8
MR25=0xFF
channel 0 training pass!
channel 0, cs 0, advanced training done
channel 0, cs 1, advanced training done
change freq to 856MHz 1,0
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x1000EAA1, stride = 0x17
OUT
Boot1: 2019-03-14, version: 1.19
CPUId = 0x0
ChipType = 0x10, 255
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=29820MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=15193MB
FwPartOffset=2000 , 0
StorageInit ok = 197813
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 0x3380ec0 signature is wrong
recovery gpt fail!
LoadTrust Addr:0x4000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xa5534
RunBL31 0x10000
NOTICE:  BL31: v1.3(debug):370ab80
NOTICE:  BL31: Built : 09:23:41, Mar  4 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(1181): pd status 3e
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initializatK
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.01-armbian (Mar 20 2020 - 12:28:24 +0300)

Model: FriendlyElec NanoPC-T4
DRAM:  2 GiB
MMC:   dwmmc@fe310000: 2, dwmmc@fe320000: 1, sdhci@fe330000: 0
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial@ff1a0000
Out:   serial@ff1a0000
Err:   serial@ff1a0000
Model: FriendlyElec NanoPC-T4
rockchip_dnl_key_pressed: adc_channel_single_shot fail!
Net:   
Error: ethernet@fe300000 address not set.
No ethernet found.

Hit any key to stop autoboot:  0 
starting USB...
Bus usb@fe380000: USB EHCI 1.00
Bus usb@fe3c0000: USB EHCI 1.00
Bus dwc3: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus dwc3: 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@fe3c0000 for devices... 1 USB Device(s) found
scanning bus dwc3 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

Device 0: unknown device
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
990 bytes read in 8 ms (120.1 KiB/s)
## Executing script at 00500000
start mainline u-boot
1300 bytes read in 7 ms (180.7 KiB/s)
## Error: "mac" not defined
## Error: "eth_mac" not defined
## Error: "ethaddr" not defined
27795968 bytes read in 1757 ms (15.1 MiB/s)
11078217 bytes read in 704 ms (15 MiB/s)
55829 bytes read in 13 ms (4.1 MiB/s)
## Loading init Ramdisk from Legacy Image at 06000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    11078153 Bytes = 10.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01f00000
   Booting using the fdt blob at 0x1f00000
Host not halted after 16000 microseconds.
   Loading Ramdisk to 7d492000, end 7df22a09 ... OK
   Loading Device Tree to 000000007d481000, end 000000007d491a14 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.6.0-rc4-arm-64 (root@vbox) (gcc version 8.3.0 (GNU Toolc0
[    0.000000] Machine model: Khadas Edge-V
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.

I am not sure how will I reuse the uboot. I will try the one from khadas on manjaro img