[Letux-kernel] [PATCH 00/20] A bunch of JZ4730 fixups for letux-kernel

H. Nikolaus Schaller hns at goldelico.com
Sun Dec 6 21:33:20 CET 2020


> Am 05.12.2020 um 16:58 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> I have successfully compiled and started your u-boot:
> 
> 	https://projects.goldelico.com/p/gta04-kernel/page/Boot/
> 
> I only had to work around some cross-compiler issues.
> 
> So I can now load your U-Boot as faked "uImage" through the old one in NAND.
> 
> Next, I have to learned how to make it automatically load the real kernel ("Image")
> from the same partition on the SD card.
> 
> The trick was to define a boot.scr. This is configured to load some kernel "Image"
> (not "uImage") and the device tree from the same mmc partition and call bootm.
> 
> With this setup I can boot from SD into the kernel.

Just for the records:

I am following an idea that U-Boot can load an "uncompressed" uImage without calling
the 8MB limited uncompress. If the payload is an vmlinuz/zImage the kernel should
extract itself.

So if we can manage to build the modern and big kernel als zImage (maybe it needs
CONFIG_SYS_SUPPORTS_ZBOOT=y), and then mkimage -C none into an uImage, it may be
possible to make the vendor u-boot load the already compressed but big kernel directly.
Hopefully without a size limit.

But it is just an idea - and it is no longer urgent since we have a working
and repeatable solution.

BR,
Nikolaus



More information about the Letux-kernel mailing list