armbian / build

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf
https://www.armbian.com
GNU General Public License v2.0
3.99k stars 2.24k forks source link

rockpi-s hang on at boot time with default option. (HEAD -> master, origin/master, origin/HEAD) #2581

Closed kylongmu closed 3 years ago

kylongmu commented 3 years ago

Describe the bug Image can be build with default option, but hang on at boot time.

DDR Version V1.26
REGFB: 0x00000033, 0x00000033
In
589MHz
DDR3
 Col=10 Bank=8 Row=15 Size=512MB
msch:1
Returning to boot ROM...
INFO:    Preloader serial: 0
NOTICE:  BL31: v1.3(release):3a579d3
NOTICE:  BL31: Built : 09:09:17, Jan 29 2019
INFO:    Lastlog: last=0x100000, realtime=0x102000, size=0x2000
INFO:    ARM GICv2 driver initialized
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 1
INFO:    plat_rockchip_pmu_init: pd status 0xe
INFO:    BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR:   Error initializing runtime service opteed_fast
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x600000
INFO:    SPSR = 0x3c9

U-Boot 2017.09-armbian (Jan 27 2021 - 21:26:12 +0800)

Model: Radxa ROCK Pi S
PreSerial: 0
DRAM:  510 MiB
Sysmem: init
Relocation Offset is: 1f918000
vdd-core init 1044000 uV
MMC:   dwmmc@ff480000: 0, dwmmc@ff490000: 1
Using default environment

In:    serial@ff0c0000
Out:   serial@ff0c0000
Err:   serial@ff0c0000
Model: Radxa ROCK Pi S
Card did not respond to voltage select!
mmc_init: -95, time 9
Card did not respond to voltage select!
mmc_init: -95, time 9
do_rkimg_test: dev_desc is NULL!
Bootdev(atags): mmc 0
MMC0: Legacy, 50Mhz
PartType: DOS
rockchip_get_boot_mode: Could not found misc partition
boot mode: None
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 1300000 KHz
  vpll0 1179647 KHz
  vpll1 903167 KHz
  aclk_bus 185714 KHz
  hclk_bus 100000 KHz
  pclk_bus 100000 KHz
  aclk_peri 185714 KHz
  hclk_peri 100000 KHz
  pclk_peri 100000 KHz
  hclk_audio 98303 KHz
  pclk_audio 98303 KHz
Net:   No ethernet found.
Hit key to stop autoboot('CTRL+C'):  0
Could not find misc partition
ANDROID: reboot reason: "(none)"
load_android_image: Can't find part: boot
Android image load failed
Android boot failed, error -1.
do_boot_rockchip: Could not find mmcsda1 part
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3045 bytes read in 24 ms (123 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
138 bytes read in 21 ms (5.9 KiB/s)
14265384 bytes read in 650 ms (20.9 MiB/s)
28516864 bytes read in 1261 ms (21.6 MiB/s)
51492 bytes read in 40 ms (1.2 MiB/s)
** File not found /boot/dtb/rockchip/overlay/rk3308-fixup.scr **
## Loading init Ramdisk from Legacy Image at 04000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    14265320 Bytes = 13.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
SCRIPT FAILED: continuing...

Device 0: unknown device
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
No ethernet found.
=>

To Reproduce

git checkout master
git log
commit 804c57dd5925e67383a3d82c85f18868a6173d4b (HEAD -> master, origin/master, origin/HEAD)
./compile.sh  BOARD=rockpi-s BRANCH=current RELEASE=focal BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img

Provide logs: compilation.log compiler.log debootstrap.log install.log output.log patching.log

igorpecovnik commented 3 years ago

Image can be build with default option

This issue tracker only covers build related problems which we diagnosed and solve. Thank you.

but hang on at boot time.

R&D on request is not covered with a support contract and even recording and managing firmware bugs represent expense we can't afford to pay for you. You can try here, but problem is known https://forum.radxa.com/t/armbian-for-rockpi-s/3007/10 and to my understanding nobody is working on it yet.