Hi @nish,
Thanks again for maintaining this layer . I’m trying to generate and boot a FIT image for Rock Pi S via Yocto, and I’m not being able to boot it… I’ve moved my changes from my layer to the fitimage branch on my meta-radxa fork on github. Only the last commit (actually changing image type to fitImage) is not working (hanging after Starting kernel ...
.
On the first 2 commits I patch the device tree to enable uart0 without overlay and disable overlays, to prevent any overlay loading problems.
I’ve also tried to modify the load address and kernel entry point to some common addresses on the machine config by using the following resulting in an abort.
UBOOT_LOADADDRESS = "0x00080000"
UBOOT_ENTRYPOINT = "0x00080000"
Both bootm and booti fail, but with different outputs. Also I’ve tried to patch the kernel to panic as first statement, but it still hangs.
Logs (for try exactly as in repository):
DDR Version V1.26
REGFB: 0x00000031, 0x00000031
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-02383-g233a23e3ed-dirty (Nov 12 2020 - 05:21:59 +0000)
Model: Radxa ROCK Pi S
PreSerial: 0
DRAM: 510 MiB
Relocation Offset is: 1f91b000
vdd_core 1044000 uV
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
Bootdev(atags): mmc 1
PartType: EFI
## Error: Can't overwrite "serial#"
## Error inserting "serial#" variable, errno=1
get part misc fail -1
boot mode: None
CLK:
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: Net Initialization Skipped
No ethernet found.
Hit key to stop autoboot('CTRL+C'): 0
starting USB...
USB0: Core Release: 3.10a
USB1: USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Device 0: unknown device
Card did not respond to voltage select!
mmc_init: -95, time 9
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot.scr
reading /boot.scr
1152 bytes read in 7 ms (160.2 KiB/s)
## Executing script at 00500000
Boot script loaded from mmc 1
reading /uEnv.txt
152 bytes read in 5 ms (29.3 KiB/s)
reading /fitImage
5397456 bytes read in 280 ms (18.4 MiB/s)
## Loading kernel from FIT Image at 00280000 ...
Using 'conf@rockchip_rk3308-rock-pi-s.dtb' configuration
Trying 'kernel@1' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x00280104
Data Size: 5331929 Bytes = 5.1 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x01314c40
Entry Point: 0x01314c40
Hash algo: sha256
Hash value: 72ec01ea0e9378b94faf73bc0dd65b5f6e116053bb38144fd019baef5519ef3b
Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 00280000 ...
Using 'conf@rockchip_rk3308-rock-pi-s.dtb' configuration
Trying 'fdt@rockchip_rk3308-rock-pi-s.dtb' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x00795e00
Data Size: 63542 Bytes = 62.1 KiB
Architecture: AArch64
Hash algo: sha256
Hash value: 29a12c015771edcef94ec01822529e5b195162d2f096c1ca7624758d760d9c97
Verifying Hash Integrity ... sha256+ OK
Booting using the fdt blob at 0x795e00
Uncompressing Kernel Image ... OK
Loading Device Tree to 000000001f4f7000, end 000000001f509835 ... OK
Adding bank: 0x00200000 - 0x20000000 (size: 0x1fe00000)
Starting kernel ...
Do you have any idea on how to boot correctly the FIT Image?