on PB44 type board with 16MB flash, I'm trying to use lzma compressed kernel but the redboot knows only gzip so I made a kernel using the lzma-loader but it fails with
OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Looking for OpenWrt image... not found!
System halted!
the flash layout is like this
RedBoot> fis list
Name FLASH addr Mem addr Length Entry point
RedBoot 0xBF000000 0xBF000000 0x00040000 0x00000000
BootConfig 0xBF040000 0x80500000 0x00040000 0x00000000
BootConfigSave 0xBF080000 0x80500000 0x00040000 0x00000000
KernelA 0xBF0C0000 0x80060000 0x00200000 0x80060000
RootFsA 0xBF2C0000 0x80500000 0x004C0000 0x00000000
KernelB 0xBF780000 0x80060000 0x00180000 0x80070000
RootFsB 0xBF900000 0x80500000 0x00300000 0x00000000
rootfs_data 0xBFC00000 0x80500000 0x00340000 0x00000000
Test 0xBFF40000 0x80500000 0x00040000 0x00000000
FIS directory 0xBFF80000 0xBFF80000 0x0003F000 0x00000000
RedBoot config 0xBFFBF000 0xBFFBF000 0x00001000 0x00000000
Board data 0xBFFC0000 0xBFFC0000 0x00040000 0x00000000
in loader.c there is
#define AR71XX_FLASH_START 0x1f000000
#define AR71XX_FLASH_END 0x1fe00000
#define KSEG0 0x80000000
#define KSEG1 0xa0000000
the image creation
define Device/u4ea-fusion70
ATH_SOC := ar7161
DEVICE_TITLE := U4EA FUSION 70
LOADER_FLASH_OFFS := 0x22000
LOADER_TYPE := gz
COMPILE := loader-$(1).gz
COMPILE/loader-$(1).gz := loader-okli-compile
# KERNEL := kernel-bin | append-dtb | gzip
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | loader-okli $(1) 15288
KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip
# IMAGES := sysupgrade.bin
# IMAGE/sysupgrade.bin := append-rootfs | append-metadata
DEVICE_PACKAGES := vsc7385-ucode-pb44 vsc7395-ucode-pb44
SUPPORTED_DEVICES += u4ea,fusion70
endef
TARGET_DEVICES += u4ea-fusion70
should it help if I change the AR71XX_FLASH_START and AR71XX_FLASH_END to BF000000 and BFC00000 ? I'm using the KernelB region. I could resize the partition and use the gzipped kernel but I would like to use the lzma one if possible