Closed ekawahyu closed 1 year ago
Allwinner V3s has only 64 MB DRAM. I suspect there's some overwrite going on when U-Boot loads the kernel and/or initrd.
More specifically the boot script (https://github.com/johang/sd-card-images/blob/master/2nd-stage-files/pre-2nd-stage-files-armhf/etc/initramfs/post-update.d/zz-update-uimg#L16) load the kernel and initrd (in that order) to the addresses specified by U-Boot (https://github.com/u-boot/u-boot/blob/master/include/configs/sunxi-common.h#L317). You can see the kernel read (4264448 bytes) and initrd read (19744959 bytes) in your log.
Wow, that's a lot for uncompressed kernel at 16MB (25% of the entire DRAM). How can I debug this? From u-boot?
Yes, this is an U-Boot issue. I'd try to tweak the load addresses in the boot script to see if it's possible to get the kernel and initrd to load without errors. But to be fair, I think 64 MB is too small of Debian. Debian's kernel and initrd is large because it's generic.
Hi Johang,
if Debian can't boot on the Lichee Zero why is it STILL listed as a supported board?
I have seen reference here to Debian running successfully on a Lichee Nano (Allwinner F1C100s which only has 32MB RAM). Once booted, the RAM overhead is only 7MB.
Is there any way your image can be tweaked to work? I am assuming you have the hardware
Please note for the Bullseye image booting hangs completely at "Starting Kernel"
However for the Bookworm image booting get stuck in a loop resetting at the following point:
Booting using the fdt blob at 0x41800000 Loading Ramdisk to 4170c000, end 42dff871 ... OK ERROR: image is not a fdt - must RESET the board to recover. FDT creation failed! resetting ...
U-Boot SPL 2022.04 (Jan 01 2023 - 00:24:15 +0000)
The Sid image as as per the Bookworm image: ERROR: image is not a fdt - must RESET the board to recover. FDT creation failed! resetting ...
Seems to be different issues affecting Bullseye and Bookworm/Sid, if that helps
This repo would be the most fantastic resource if a bit more work was done to make these images work, which I'm confident that they can. Unfortunately I don't personally have the skills to make the adjustments necessary, I can only test.
I don't think this board will ever support the vanilla Debian kernel. Not enough memory.
Dropped support for this board. Not enough memory.
@johang Recently I got Lichee Pi Zero, trying to boot it up, but no success. Any hint of what and where I need to look to solve this issue?