Im stubmeld accros armbian while search for a ARM distribution for my RockPi S.
I started successful with writing it to a SD Card and run it from there.
Now i want to write it to the internal storage and start it from there.
So far so got, everything "worked".
But it stucks in a boot loop.
I attached a Serial/TTL to USB converter and noticed the same output over and over again.
Willkommen zu minicom 2.7.1
Optionen: I18n
Übersetzt am Aug 13 2017, 15:25:34.
Port /dev/ttyUSB0, 15:37:49
Drücken Sie CTRL-A Z für Hilfe zu speziellen Tasten
DDR Version V2.06 20211109
CHIP ID = 0x00003308
REG2C: 0x00000033, 0x00000034
In
589MHz
DDR3
Col=10 Bank=3 Row=15 Size=512MB
OUT: sdram_init finish.
Boot1 Release Time: Mar 24 2022 08:28:57, version: 1.36
ROM VER:0x56323030, 19
chip_id:330800,0
ChipType = 0x13, 511
DPLL = 1300 MHz
...nandc_flash_init enter...
No.1 FLASH ID:ff ff ff ff ff ff
DPLL = 1300 MHz
sfc nor id: ff ff ff
DPLL = 1300 MHz
sfc_nand id: ff ff ff
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
mmc2:cmd5,20
DPLL = 1300 MHz
NeedKHz=24000KHz,clock=650000KHz
DPLL = 1300 MHz
NeedKHz=40000KHz,clock=650000KHz
SdmmcInit=2 0
BootCapSize=0
UserCapSize=3696MB
FwPartOffset=2000 , 0
SdmmcInit=0 NOT PRESENT
StorageInit ok = 19304
SecureMode = 0
Secure read PBA: 0x4
Secure read PBA: 0x404
Secure read PBA: 0x804
Secure read PBA: 0xc04
Secure read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT 0x3306530 signature is wrong
recovery gpt...
GPT 0x3306530 signature is wrong
recovery gpt fail!
LoadTrust Addr:0x4000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x600000, size=0x994c8
RunBL31 0x40000 @ 96576 us
INFO: Preloader serial: 0
NOTICE: BL31: v1.3(release):30f1405
NOTICE: BL31: Built : 17:08:28, Sep 23 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 b
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 2022.04-armbian (May 27 2023 - 19:27:05 +0000)
Model: Radxa ROCK Pi S
DRAM: 510 MiB
Core: 276 devices, 20 uclasses, devicetree: separate
MMC: dwmmc@ff480000: 1, dwmmc@ff490000: 0
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Model: Radxa ROCK Pi S
rockchip_dnl_key_pressed read board id failed
Net: eth0: ethernet@ff4e0000
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3045 bytes read in 5 ms (594.7 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
176 bytes read in 4 ms (43 KiB/s)
14086333 bytes read in 597 ms (22.5 MiB/s)
29331968 bytes read in 1238 ms (22.6 MiB/s)
54770 bytes read in 10 ms (5.2 MiB/s)
Failed to load '/boot/dtb/rockchip/overlay/rk3308-fixup.scr'
Moving Image from 0x680000 to 0x800000, end=2490000
## Loading init Ramdisk from Legacy Image at 04000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 14086269 Bytes = 13.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02800000
Booting using the fdt blob at 0x2800000
Loading Ramdisk to 1d1b7000, end 1df2607d ... OK
ERROR: reserving fdt memory region failed (addr=0 size=0 flags=0)
Loading Device Tree to 000000001d141000, end 000000001d1b6fff ... OK
Starting kernel ...
Loading, please wait...
Starting systemd-udevd version 252.6-1
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1
armbi_root: clean, 29764/73296 files, 263864/292864 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
Welcome to Armbian 23.05.1 bookworm!
[ OK ] Created slice system-modpr��…lice - Slice /system/modprobe.
[ OK ] Created slice system-seria��… - Slice /system/serial-getty.
[ OK ] Created slice user.slice - User and Session Slice.
[ OK ] Started systemd-ask-passwo��…quests to Console Directory Watch.
[ OK ] Started systemd-ask-passwo��… Requests to Wall Directory Watch.
[ OK ] Set up automount proc-sys-��…rmats File System Automount Point.
[ OK ] Reached target cryptsetup.��…get - Local Encrypted Volumes.
DDR Version V2.06 20211109
CHIP ID = 0x00003308
REG2C: 0x00000033, 0x00000034
In
589MHz
DDR3
Col=10 Bank=3 Row=15 Size=512MB
OUT: sdram_init finish.
Boot1 Release Time: Mar 24 2022 08:28:57, version: 1.36
ROM VER:0x56323030, 19
chip_id:330800,0
ChipType = 0x13, 512
DPLL = 1300 MHz
...nandc_flash_init enter...
No.1 FLASH ID:ff ff ff ff ff ff
DPLL = 1300 MHz
sfc nor id: ff ff ff
DPLL = 1300 MHz
sfc_nand id: ff ff ff
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
mmc2:cmd5,20
DPLL = 1300 MHz
NeedKHz=24000KHz,clock=650000KHz
DPLL = 1300 MHz
NeedKHz=40000KHz,clock=650000KHz
SdmmcInit=2 0
BootCapSize=0
UserCapSize=3696MB
FwPartOffset=2000 , 0
SdmmcInit=0 NOT PRESENT
StorageInit ok = 19297
SecureMode = 0
Secure read PBA: 0x4
Secure read PBA: 0x404
Secure read PBA: 0x804
Secure read PBA: 0xc04
Secure read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT 0x3306530 signature is wrong
recovery gpt...
GPT 0x3306530 signature is wrong
recovery gpt fail!
LoadTrust Addr:0x4000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x600000, size=0x994c8
RunBL31 0x40000 @ 96630 us
INFO: Preloader serial: 0
NOTICE: BL31: v1.3(release):30f1405
NOTICE: BL31: Built : 17:08:28, Sep 23 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 b
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 2022.04-armbian (May 27 2023 - 19:27:05 +0000)
Model: Radxa ROCK Pi S
DRAM: 510 MiB
Core: 276 devices, 20 uclasses, devicetree: separate
MMC: dwmmc@ff480000: 1, dwmmc@ff490000: 0
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Model: Radxa ROCK Pi S
rockchip_dnl_key_pressed read board id failed
Net: eth0: ethernet@ff4e0000
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3045 bytes read in 5 ms (594.7 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
176 bytes read in 5 ms (34.2 KiB/s)
14086333 bytes read in 597 ms (22.5 MiB/s)
29331968 bytes read in 1238 ms (22.6 MiB/s)
54770 bytes read in 10 ms (5.2 MiB/s)
Failed to load '/boot/dtb/rockchip/overlay/rk3308-fixup.scr'
Moving Image from 0x680000 to 0x800000, end=2490000
## Loading init Ramdisk from Legacy Image at 04000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 14086269 Bytes = 13.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02800000
Booting using the fdt blob at 0x2800000
Loading Ramdisk to 1d1b7000, end 1df2607d ... OK
ERROR: reserving fdt memory region failed (addr=0 size=0 flags=0)
Loading Device Tree to 000000001d141000, end 000000001d1b6fff ... OK
Starting kernel ...
Loading, please wait...
Starting systemd-udevd version 252.6-1
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1
armbi_root: clean, 29764/73296 files, 263864/292864 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
Welcome to Armbian 23.05.1 bookworm!
[ OK ] Created slice system-modpr��…lice - Slice /system/modprobe.
[ OK ] Created slice system-seria��… - Slice /system/serial-getty.
[ OK ] Created slice user.slice - User and Session Slice.
[ OK ] Started systemd-ask-passwo��…quests to Console Directory Watch.
[ OK ] Started systemd-ask-passwo��… Requests to Wall Directory Watch.
DDR Version V2.06 20211109
CHIP ID = 0x00003308
REG2C: 0x00000033, 0x00000034
In
589MHz
DDR3
Col=10 Bank=3 Row=15 Size=512MB
OUT: sdram_init finish.
Boot1 Release Time: Mar 24 2022 08:28:57, version: 1.36
ROM VER:0x56323030, 19
chip_id:330800,0
ChipType = 0x13, 511
DPLL = 1300 MHz
...nandc_flash_init enter...
No.1 FLASH ID:ff ff ff ff ff ff
DPLL = 1300 MHz
sfc nor id: ff ff ff
DPLL = 1300 MHz
sfc_nand id: ff ff ff
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
NeedKHz=200KHz,clock=12000KHz
mmc2:cmd5,20
DPLL = 1300 MHz
NeedKHz=24000KHz,clock=650000KHz
DPLL = 1300 MHz
NeedKHz=40000KHz,clock=650000KHz
SdmmcInit=2 0
BootCapSize=0
UserCapSize=3696MB
FwPartOffset=2000 , 0
SdmmcInit=0 NOT PRESENT
StorageInit ok = 19338
SecureMode = 0
Secure read PBA: 0x4
Secure read PBA: 0x404
Secure read PBA: 0x804
Secure read PBA: 0xc04
Secure read PBA: 0x1004
SecureInit ret = 0, SecureMode = 0
atags_set_bootdev: ret:(0)
GPT 0x3306530 signature is wrong
recovery gpt...
GPT 0x3306530 signature is wrong
recovery gpt fail!
LoadTrust Addr:0x4000
No find bl30.bin
No find bl32.bin
Load uboot, ReadLba = 2000
Load OK, addr=0x600000, size=0x994c8
RunBL31 0x40000 @ 96666 us
INFO: Preloader serial: 0
NOTICE: BL31: v1.3(release):30f1405
NOTICE: BL31: Built : 17:08:28, Sep 23 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 b
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 2022.04-armbian (May 27 2023 - 19:27:05 +0000)
Model: Radxa ROCK Pi S
DRAM: 510 MiB
Core: 276 devices, 20 uclasses, devicetree: separate
MMC: dwmmc@ff480000: 1, dwmmc@ff490000: 0
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Model: Radxa ROCK Pi S
rockchip_dnl_key_pressed read board id failed
Net: eth0: ethernet@ff4e0000
Hit any key to stop autoboot: 0
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
3045 bytes read in 5 ms (594.7 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 0
176 bytes read in 4 ms (43 KiB/s)
14086333 bytes read in 597 ms (22.5 MiB/s)
29331968 bytes read in 1238 ms (22.6 MiB/s)
54770 bytes read in 10 ms (5.2 MiB/s)
Failed to load '/boot/dtb/rockchip/overlay/rk3308-fixup.scr'
Moving Image from 0x680000 to 0x800000, end=2490000
## Loading init Ramdisk from Legacy Image at 04000000 ...
Image Name: uInitrd
Image Type: AArch64 Linux RAMDisk Image (gzip compressed)
Data Size: 14086269 Bytes = 13.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02800000
Booting using the fdt blob at 0x2800000
Loading Ramdisk to 1d1b7000, end 1df2607d ... OK
ERROR: reserving fdt memory region failed (addr=0 size=0 flags=0)
Loading Device Tree to 000000001d141000, end 000000001d1b6fff ... OK
Starting kernel ...
Loading, please wait...
Starting systemd-udevd version 252.6-1
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1
armbi_root: clean, 29764/73296 files, 263864/292864 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
Welcome to Armbian 23.05.1 bookworm!
I followed this tutorials:
- https://www.armbian.com/rockpi-s
- https://wiki.radxa.com/RockpiS/dev/sdnand-install
- https://wiki.radxa.com/RockpiS/dev/serial-console
Unfotunatly some of the links are broken and i need to find the file (rk3308_loader_uart0_m0_emmc_port_support_sd_20190717.bin) via google: https://forum.radxa.com/t/where-can-i-find-the-rk3308-loader-binary/2769
As i found it, i extracted the armbian image (Armbian_23.5.1_Rockpi-s_bookworm_current_6.1.30_minimal.img) and proceeded with the flasing progress.
It worked, but as said, its stucks in a boot loop.
Can any one help me and point out where to start debugging?
Im not very familiar with embedded linux/hardware.
Thanks in advance and for the awesome work!