rockchip-linux / u-boot

U-Boot tree for pending commits
127 stars 86 forks source link

how to support nanopi neo4 #40

Closed ChiaYen-Kan closed 11 months ago

ChiaYen-Kan commented 5 years ago

Hi 1 create a new config base on rk3399_defconfig, change device tree to my custom dts file

2 run ./make.sh rk3399, build all image

3 run command for create idbloader.img

tools/mkimage -n rk3399 -T rksd -d ../rkbin/bin/rk33/rk3399_ddr_933MHz_v1.18.bin idbloader.img
cat ../rkbin/bin/rk33/rk3399_miniloader_v1.15.bin >> idbloader.img

4 write all image to sd card image

dd if=idbloader.img of=sd.img seek=64 conv=notrunc status=none
dd if=uboot.img of=sd.img seek=16384 conv=notrunc status=none
dd if=trust.img of=sd.img seek=24576 conv=notrunc status=none

5 but it can't boot to kernel, always hang on ### ERROR ### Please RESET the board ### how to fix my build setting for boot from sd card on nanopi neo4 ?

DDR Version 1.18 20190218
In
Channel 0: DDR3, 933MHz
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: 2018-08-06, version: 1.15
CPUId = 0x0
ChipType = 0x10, 210
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=29952MB
FwPartOffset=2000 , 0
StorageInit ok = 57427
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
GPT 0x3190d20 signature is wrong
LoadTrust Addr:0x4000
No find bl30.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x200000, size=0xb7fcc
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
INFO:    BL31: Initializing BL32
INF [0x0] TEE-CORE:init_primary_helper:337: Initializing (1.1.0-195-g8f090d20 #6 Fri Dec  7 06:11:20 UTC 2018 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
Can't find alias serial2
No serial driver found
WARN: PSCI sysreset is disabled
### ERROR ### Please RESET the board ###

thank you

keveryang commented 5 years ago

The key point is below log, make sure sure you have the correct dts. "Can't find alias serial2 No serial driver found" And the mainline U-Boot has support this board recently, could be a reference.