dermoth has quit [Read error: Connection reset by peer]
CodingMarco has joined #openwrt-devel
<CodingMarco>
Hi, the u-boot on the device for which I'm porting OpenWrt needs an LZMA compressed ramdisk for the ramdisk image to boot successfully. Can this be configured persistently somehow outside of .config?
<PaulFertser>
CodingMarco: OpenWrt uses only linked in ramdisk only for "initramfs" images which run fully from RAM.
autkin has left #openwrt-devel [Error from remote client]
<CodingMarco>
PaulFertser: The ramdisk image is needed for my device to initially install OpenWrt via sysupgrade. However, with the default config (eg. on the build server), a non-bootable image is generated. Only if I set TARGET_INITRAMFS_COMPRESSION_LZMA=y in menuconfig, the image is bootable.
<PaulFertser>
CodingMarco: so that's compression for the whole kernel+initramfs
<PaulFertser>
Or are you really loading initramfs separately?
<PaulFertser>
Is it a FIT image?
<PaulFertser>
Do you really need it with CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE ?
CodingMarco has quit [Remote host closed the connection]
<CodingMarco>
PaulFertser: I have never used CONFIG_TARGET_ROOTFS_INITRAMFS_SEPARATE before. I tested it right now, but it also doesn't make a difference.
<PaulFertser>
CodingMarco: that's not my point. I do not understand how you're booting that initramfs image at all. With regular OpenWrt initramfs the bootloader doesn't see initramfs, it's linked inside the kernel image.
<CodingMarco>
As far as I can see in include/kernel-defaults.mk, CONFIG_TARGET_INITRAMFS_COMPRESSION_LZMA only affects initramfs, not the kernel.
<dwfreed>
okay, you're confusing terms here
<dwfreed>
there's two different "initramfs"
<dwfreed>
there's the actual kernel initramfs, and then there's the openwrt "initramfs" image
<CodingMarco>
PaulFertser: Yes, this is also what wonders me. The bootloader is a u-boot weirdly modified by huawei to support a kind of dual boot, a custom upgrade image etc.
<dwfreed>
it sounds like you need the openwrt image to be lzma
<CodingMarco>
dwfreed: Ahh ok...
<CodingMarco>
I don't understand it entirely, I can just see that enabling/disabling TARGET_INITRAMFS_COMPRESSION_LZMA in menuconfig seems to decide between a bootable and non-bootable image.
<CodingMarco>
Does this have anything to do with defining "KERNEL := kernel-bin | append-dtb | lzma | uImage lzma" differently somehow in the device makefile section?