Power & Source of Big Ideas

Bug report: Can't boot from any latest SD rk3399-eflasher

Moderators: chensy, FATechsupport

Hello.

I have a problem with provided rk3399-eflasher images downloaded from wiki link (google drive) for NanoPI NEO4.

Problem: Any of tried by me latest rk3399-eflasher images(see below) begin to fail to boot from sd card slot second time, after first succesfull boot and automatic flash to emmc.
In other words, this means with these images I was able to flash only 1 time and then locked out (due to my lack of knowledge of how to reflash other ways)
I had older image rk3399-eflasher-buildroot-4.19-20211231.img.zip, and it boots from sd.
Also rk3399-sd versions boots from sd.

Reproduce: I have reproduced this on two NEO4 devices. Boot with rk3399-eflasher sd, it will automatically flash to emmc, reboot, no longer boots from any rk3399-eflasher sd.

Expected: Able to boot with rk3399-eflasher sd and flash emmc, again or to other system.


Also tried to use older image rk3399-eflasher-buildroot-4.19-20211231.img.zip, it boots from SD and flash to emmc. Emmc boot OK.
But even after that latest rk3399-eflasher images do not boot from SD.


I have tried these:

    rk3399-eflasher-buildroot-20230314.img.gz
    rk3399-eflasher-debian-bullseye-core-4.19-arm64-20230314.img.gz
    rk3399-eflasher-friendlycore-lite-focal-4.19-arm64-20230314.img.gz
    rk3399-eflasher-friendlycore-lite-focal-5.15-arm64-20230314.img.gz
    rk3399-eflasher-friendlywrt-22.03-docker-20230314.img.gz

In attachment there is logs from serial port:

    Fail to boot device from SD flashed with rk3399-eflasher-buildroot-20230314.img.gz.txt
    Boots from SD older rk3399-eflasher-buildroot-4.19-20211231.img.zip.txt
    Boots from emmc flashed with SD rk3399-eflasher-buildroot-20230314.img.gz.txt
    Boots from SD with one of previos rk3399-sd images.txt
    Boots from SD with one of latest rk3399-sd image.txt
    Boots from emmc after flash with rk3399-eflasher-buildroot-4.19-20211231.img.zip.txt
    Boots older image from emmc copy.txt
    Boots from SD image with older image on emmc.txt

I also emailed techsupport@friendlyarm.com

Code: Select all


# Fail to boot device from SD flashed with rk3399-eflasher-buildroot-20230314.img.gz


In
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
no stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x10006281, stride = 0x17
OUT
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 337
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=61056MB
FwPartOffset=2000 , 0
run on sd0
StorageInit ok = 383382
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 0x3335db8 signature is wrong
recovery gpt...
GPT part:  0, name:         security, start:0x2000, size:0x2000
GPT part:  1, name:          uboot_a, start:0x4000, size:0x2000
GPT part:  2, name:          uboot_b, start:0x6000, size:0x2000
GPT part:  3, name:          trust_a, start:0x8000, size:0x2000
GPT part:  4, name:          trust_b, start:0xa000, size:0x2000
GPT part:  5, name:             misc, start:0xc000, size:0x2000
GPT part:  6, name:           dtbo_a, start:0xe000, size:0x2000
GPT part:  7, name:           dtbo_b, start:0x10000, size:0x2000
GPT part:  8, name:         vbmeta_a, start:0x12000, size:0x1000
GPT part:  9, name:         vbmeta_b, start:0x13000, size:0x1000
GPT part: 10, name:           boot_a, start:0x14000, size:0x20000
GPT part: 11, name:           boot_b, start:0x34000, size:0x20000
GPT part: 12, name:           backup, start:0x54000, size:0x40000
GPT part: 13, name:            cache, start:0x94000, size:0x40000
GPT part: 14, name:         metadata, start:0xd4000, size:0x8000
GPT part: 15, name:    baseparameter, start:0xdc000, size:0x2000
GPT part: 16, name:            super, start:0xde000, size:0x800000
GPT part: 17, name:         userdata, start:0x8de000, size:0x1430a6d
recovery gpt success!
find part:misc OK. first_lba:0xc000.
Magic is incorrect.
Error validating A/B metadata from disk.
find part:misc OK. first_lba:0xc000.
slot priority:15, tries_remaining:7, successful_boot:0
slot priority:14, tries_remaining:7, successful_boot:0
find part:trust_a OK. first_lba:0x8000.
find part:uboot_a OK. first_lba:0x4000.
Trust Addr:0x8000, 0x0
Addr:0x8000 No find trust.img!
LoadTrustBL error:-3
Error verifying slot _a.
find part:trust_b OK. first_lba:0xa000.
find part:uboot_b OK. first_lba:0x6000.
Trust Addr:0xa000, 0x45435352
Addr:0xa000 No find trust.img!
LoadTrustBL error:-3
Error verifying slot _b.
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:             dtbo, start:0xa000, size:0x2000
GPT part:  4, name:         resource, start:0xc000, size:0x8000
GPT part:  5, name:           kernel, start:0x14000, size:0x14000
GPT part:  6, name:             boot, start:0x28000, size:0x18000
GPT part:  7, name:           rootfs, start:0x40000, size:0x11e000
GPT part:  8, name:         userdata, start:0x15e000, size:0x1bc0fdf
find part:misc OK. first_lba:0x8000.
slot priority:15, tries_remaining:7, successful_boot:0
slot priority:14, tries_remaining:7, successful_boot:0
no find partition:trust_a.
No find Partition name:trust.
Error verifying slot _a.
no find partition:trust_b.
No find Partition name:trust.
Error verifying slot _b.






In
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
no stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x10006281, stride = 0x17
OUT
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 337
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=61056MB
FwPartOffset=2000 , 0
run on sd0
StorageInit ok = 383382
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 0x3335db8 signature is wrong
recovery gpt...
GPT part:  0, name:         security, start:0x2000, size:0x2000
GPT part:  1, name:          uboot_a, start:0x4000, size:0x2000
GPT part:  2, name:          uboot_b, start:0x6000, size:0x2000
GPT part:  3, name:          trust_a, start:0x8000, size:0x2000
GPT part:  4, name:          trust_b, start:0xa000, size:0x2000
GPT part:  5, name:             misc, start:0xc000, size:0x2000
GPT part:  6, name:           dtbo_a, start:0xe000, size:0x2000
GPT part:  7, name:           dtbo_b, start:0x10000, size:0x2000
GPT part:  8, name:         vbmeta_a, start:0x12000, size:0x1000
GPT part:  9, name:         vbmeta_b, start:0x13000, size:0x1000
GPT part: 10, name:           boot_a, start:0x14000, size:0x20000
GPT part: 11, name:           boot_b, start:0x34000, size:0x20000
GPT part: 12, name:           backup, start:0x54000, size:0x40000
GPT part: 13, name:            cache, start:0x94000, size:0x40000
GPT part: 14, name:         metadata, start:0xd4000, size:0x8000
GPT part: 15, name:    baseparameter, start:0xdc000, size:0x2000
GPT part: 16, name:            super, start:0xde000, size:0x800000
GPT part: 17, name:         userdata, start:0x8de000, size:0x1430a6d
recovery gpt success!
find part:misc OK. first_lba:0xc000.
Magic is incorrect.
Error validating A/B metadata from disk.
find part:misc OK. first_lba:0xc000.
slot priority:15, tries_remaining:7, successful_boot:0
slot priority:14, tries_remaining:7, successful_boot:0
find part:trust_a OK. first_lba:0x8000.
find part:uboot_a OK. first_lba:0x4000.
Trust Addr:0x8000, 0x0
Addr:0x8000 No find trust.img!
LoadTrustBL error:-3
Error verifying slot _a.
find part:trust_b OK. first_lba:0xa000.
find part:uboot_b OK. first_lba:0x6000.
Trust Addr:0xa000, 0x45435352
Addr:0xa000 No find trust.img!
LoadTrustBL error:-3
Error verifying slot _b.
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:             dtbo, start:0xa000, size:0x2000
GPT part:  4, name:         resource, start:0xc000, size:0x8000
GPT part:  5, name:           kernel, start:0x14000, size:0x14000
GPT part:  6, name:             boot, start:0x28000, size:0x18000
GPT part:  7, name:           rootfs, start:0x40000, size:0x11e000
GPT part:  8, name:         userdata, start:0x15e000, size:0x1bc0fdf
find part:misc OK. first_lba:0x8000.
slot priority:15, tries_remaining:7, successful_boot:0
slot priority:14, tries_remaining:7, successful_boot:0
no find partition:trust_a.
No find Partition name:trust.
Error verifying slot _a.
no find partition:trust_b.
No find Partition name:trust.
Error verifying slot _b.







In
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
no stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x10006281, stride = 0x17
OUT
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 338
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=61056MB
FwPartOffset=2000 , 0
run on sd0
StorageInit ok = 380415
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:         security, start:0x2000, size:0x2000
GPT part:  1, name:          uboot_a, start:0x4000, size:0x2000
GPT part:  2, name:          uboot_b, start:0x6000, size:0x2000
GPT part:  3, name:          trust_a, start:0x8000, size:0x2000
GPT part:  4, name:          trust_b, start:0xa000, size:0x2000
GPT part:  5, name:             misc, start:0xc000, size:0x2000
GPT part:  6, name:           dtbo_a, start:0xe000, size:0x2000
GPT part:  7, name:           dtbo_b, start:0x10000, size:0x2000
GPT part:  8, name:         vbmeta_a, start:0x12000, size:0x1000
GPT part:  9, name:         vbmeta_b, start:0x13000, size:0x1000
GPT part: 10, name:           boot_a, start:0x14000, size:0x20000
GPT part: 11, name:           boot_b, start:0x34000, size:0x20000
GPT part: 12, name:           backup, start:0x54000, size:0x40000
GPT part: 13, name:            cache, start:0x94000, size:0x40000
GPT part: 14, name:         metadata, start:0xd4000, size:0x8000
GPT part: 15, name:    baseparameter, start:0xdc000, size:0x2000
GPT part: 16, name:            super, start:0xde000, size:0x800000
GPT part: 17, name:         userdata, start:0x8de000, size:0x1430a6d
find part:misc OK. first_lba:0xc000.
slot priority:15, tries_remaining:7, successful_boot:0
slot priority:14, tries_remaining:7, successful_boot:0
find part:trust_a OK. first_lba:0x8000.
find part:uboot_a OK. first_lba:0x4000.
Trust Addr:0x8000, 0x0
Addr:0x8000 No find trust.img!
LoadTrustBL error:-3
Error verifying slot _a.
find part:trust_b OK. first_lba:0xa000.
find part:uboot_b OK. first_lba:0x6000.
Trust Addr:0xa000, 0x45435352
Addr:0xa000 No find trust.img!
LoadTrustBL error:-3
Error verifying slot _b.
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:             dtbo, start:0xa000, size:0x2000
GPT part:  4, name:         resource, start:0xc000, size:0x8000
GPT part:  5, name:           kernel, start:0x14000, size:0x14000
GPT part:  6, name:             boot, start:0x28000, size:0x18000
GPT part:  7, name:           rootfs, start:0x40000, size:0x118000
GPT part:  8, name:         userdata, start:0x158000, size:0x1bc6fdf
find part:misc OK. first_lba:0x8000.
Magic is incorrect.
Error validating A/B metadata from disk.
find part:misc OK. first_lba:0x8000.
slot priority:15, tries_remaining:7, successful_boot:0
slot priority:14, tries_remaining:7, successful_boot:0
no find partition:trust_a.
No find Partition name:trust.
Error verifying slot _a.
no find partition:trust_b.
No find Partition name:trust.
Error verifying slot _b.




# second NEO4, same problem

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
no stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x10006281, stride = 0x17
OUT
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 338
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
FwPartOffset=2000 , 100000
mmc0:cmd5,20
SdmmcInit=0 0
BootCapSize=0
UserCapSize=61056MB
FwPartOffset=2000 , 0
run on sd0
StorageInit ok = 379618
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:         security, start:0x2000, size:0x2000
GPT part:  1, name:          uboot_a, start:0x4000, size:0x2000
GPT part:  2, name:          uboot_b, start:0x6000, size:0x2000
GPT part:  3, name:          trust_a, start:0x8000, size:0x2000
GPT part:  4, name:          trust_b, start:0xa000, size:0x2000
GPT part:  5, name:             misc, start:0xc000, size:0x2000
GPT part:  6, name:           dtbo_a, start:0xe000, size:0x2000
GPT part:  7, name:           dtbo_b, start:0x10000, size:0x2000
GPT part:  8, name:         vbmeta_a, start:0x12000, size:0x1000
GPT part:  9, name:         vbmeta_b, start:0x13000, size:0x1000
GPT part: 10, name:           boot_a, start:0x14000, size:0x20000
GPT part: 11, name:           boot_b, start:0x34000, size:0x20000
GPT part: 12, name:           backup, start:0x54000, size:0x40000
GPT part: 13, name:            cache, start:0x94000, size:0x40000
GPT part: 14, name:         metadata, start:0xd4000, size:0x8000
GPT part: 15, name:    baseparameter, start:0xdc000, size:0x2000
GPT part: 16, name:            super, start:0xde000, size:0x800000
GPT part: 17, name:         userdata, start:0x8de000, size:0x1430a6d
find part:misc OK. first_lba:0xc000.
slot priority:15, tries_remaining:7, successful_boot:0
slot priority:14, tries_remaining:7, successful_boot:0
find part:trust_a OK. first_lba:0x8000.
find part:uboot_a OK. first_lba:0x4000.
Trust Addr:0x8000, 0x0
Addr:0x8000 No find trust.img!
LoadTrustBL error:-3
Error verifying slot _a.
find part:trust_b OK. first_lba:0xa000.
find part:uboot_b OK. first_lba:0x6000.
Trust Addr:0xa000, 0x45435352
Addr:0xa000 No find trust.img!
LoadTrustBL error:-3
Error verifying slot _b.
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:             dtbo, start:0xa000, size:0x2000
GPT part:  4, name:         resource, start:0xc000, size:0x8000
GPT part:  5, name:           kernel, start:0x14000, size:0x14000
GPT part:  6, name:             boot, start:0x28000, size:0x18000
GPT part:  7, name:           rootfs, start:0x40000, size:0x260000
GPT part:  8, name:         userdata, start:0x2a0000, size:0x1a7efdf
find part:misc OK. first_lba:0x8000.
slot priority:15, tries_remaining:7, successful_boot:0
slot priority:14, tries_remaining:7, successful_boot:0
no find partition:trust_a.
No find Partition name:trust.
Error verifying slot _a.
no find partition:trust_b.
No find Partition name:trust.
Error verifying slot _b.


Attachments

Upd: rk3399-eflasher-friendlywrt-22.03-docker-20230314.img.gz boots from SD after I reverted back to older system copied from another NEO4

Code: Select all

zstd --decompress --stdout /mnt/usb/2019.img.zstd | pv -s 15634268160 | dd of=/dev/mmcblk2 bs=8k


But after flashing and removing SD it fails to boot from emmc:

Code: Select all

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
no stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x10006281, stride = 0x17
OUT
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 338
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
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 = 68423
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:             dtbo, start:0xa000, size:0x2000
GPT part:  4, name:         resource, start:0xc000, size:0x8000
GPT part:  5, name:           kernel, start:0x14000, size:0x14000
GPT part:  6, name:             boot, start:0x28000, size:0x18000
GPT part:  7, name:           rootfs, start:0x40000, size:0x136000
GPT part:  8, name:         userdata, start:0x176000, size:0x1ba8fdf
find part:uboot OK. first_lba:0x4000.
find part:trust OK. first_lba:0x6000.
Trust Addr:0x6000, 0x58334c42
No find bl30.bin
Load uboot, ReadLba = 4000
Load OK, addr=0x200000, size=0xf6aa0
RunBL31 0x40000 @ 110095 us
NOTICE:  BL31: v1.3(release):845ee93
NOTICE:  BL31: Built : 15:51:11, Jul 22 2020
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(1196): pd status 3e
INFO:    BL31: Initializing runtime services
INFO:    BL31: Initializing BL32
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-256-gebb61ff5 #4 Wed Apr 22 01:34:02 UTC 2020 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 2017.09-g0f5205e029-dirty # (Mar 14 2023 - 21:30:03 +0800)

Board: FriendlyELEC RK3399 board
PreSerial: 2
DRAM:  992 MiB
Sysmem: init
Relocation Offset: 3dbcd000, fdt: 3bdc13f8
Using default environment

mmc@fe320000: 1, sdhci@fe330000: 0
Bootdev(atags): mmc 0
MMC0: HS400, 150Mhz
PartType: EFI
boot mode: None
Found DTB in resource part
Failed to load DTB
Failed to get kernel dtb, ret=-19
rockchip_set_serialno: could not find efuse device
CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
CLK: (uboot. armb: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  aplll 816000 KHz
  apllb 816000 KHz
  dpll 800000 KHz
  cpll 24000 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:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "(none)"
TEEC: Waring: Could not find security partition
Not AVB images, AVB skip
** Invalid Android Image header **
Android image load failed
Android boot failed, error -1.

## Booting Rockchip Format Image
Failed to load DTB
Failed to read fdt, ret=-19
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No working controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-rockchip
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No working controllers found
No ethernet found.
No ethernet found.
nanopi4# reboot
WAR�DDR Version 1.24 20191016
In
soft reset
SRX
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=1 Die Bus-Width=16 Size=1024MB
no stride
ch 0 ddrconfig = 0x101, ddrsize = 0x20
pmugrf_os_reg[2] = 0x10006281, stride = 0x17
OUT
Boot1 Release Time: May 29 2020 17:36:36, version: 1.26
CPUId = 0x0
ChipType = 0x10, 426
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=14910MB
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 = 69104
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:             dtbo, start:0xa000, size:0x2000
GPT part:  4, name:         resource, start:0xc000, size:0x8000
GPT part:  5, name:           kernel, start:0x14000, size:0x14000
GPT part:  6, name:             boot, start:0x28000, size:0x18000
GPT part:  7, name:           rootfs, start:0x40000, size:0x136000
GPT part:  8, name:         userdata, start:0x176000, size:0x1ba8fdf
find part:uboot OK. first_lba:0x4000.
find part:trust OK. first_lba:0x6000.
Trust Addr:0x6000, 0x58334c42
No find bl30.bin
Load uboot, ReadLba = 4000
Load OK, addr=0x200000, size=0xf6aa0
RunBL31 0x40000 @ 113374 us
NOTICE:  BL31: v1.3(release):845ee93
NOTICE:  BL31: Built : 15:51:11, Jul 22 2020
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(1196): pd status 3e
INFO:    BL31: Initializing runtime services
INFO:    BL31: Initializing BL32
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-256-gebb61ff5 #4 Wed Apr 22 01:34:02 UTC 2020 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 2017.09-g0f5205e029-dirty # (Mar 14 2023 - 21:30:03 +0800)

Board: FriendlyELEC RK3399 board
PreSerial: 2
DRAM:  992 MiB
Sysmem: init
Relocation Offset: 3dbcd000, fdt: 3bdc13f8
Using default environment

mmc@fe320000: 1, sdhci@fe330000: 0
Bootdev(atags): mmc 0
MMC0: HS400, 150Mhz
PartType: EFI
boot mode: None
Found DTB in resource part
Failed to load DTB
Failed to get kernel dtb, ret=-19
rockchip_set_serialno: could not find efuse device
CLK: (uboot. arml: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
CLK: (uboot. armb: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  aplll 816000 KHz
  apllb 816000 KHz
  dpll 800000 KHz
  cpll 24000 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:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0
ANDROID: reboot reason: "(none)"
TEEC: Waring: Could not find security partition
Not AVB images, AVB skip
** Invalid Android Image header **
Android image load failed
Android boot failed, error -1.

## Booting Rockchip Format Image
Failed to load DTB
Failed to read fdt, ret=-19
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No working controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-rockchip
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No working controllers found
No ethernet found.
No ethernet found.
nanopi4# version
U-Boot 2017.09-g0f5205e029-dirty # (Mar 14 2023 - 21:30:03 +0800)

aarch64-linux-gnu-gcc (ctng-1.25.0-119g-FA) 11.3.0
GNU ld (GNU Binutils) 2.38
nanopi4#
U-Boot 2017.09-g0f5205e029-dirty # (Mar 14 2023 - 21:30:03 +0800)

aarch64-linux-gnu-gcc (ctng-1.25.0-119g-FA) 11.3.0
GNU ld (GNU Binutils) 2.38
nanopi4#
I happily switched to Armbian. It is great ! https://docs.armbian.com/User-Guide_Getting-Started/

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 1 guest