Seems like newer LZMA contains some advanced methods redboot (including cobra 
redboot circulating around) doesn't understand, and consequently can't program 
lzma image to flash (and cannot decode it if you force data to the flash with 
'fis write' and 'fis create -n'.
Patch makes it to be encoded with method the redboot understands.

Also, ap51 board works OK with kernel 2.6.30 (gcc 4.3.3, panics with 4.4.0 
trying to run preinit - seems to be problem with uClibc)

Also, i have updated ar231x driver which is like 2 times faster and uses NAPI 
and hardware checksumming capability of ar231x, but it's not a ready patch and 
I can't quite understand the patch system related to that driver - so people 
who do, _please_ contact me and get it from me and integrate to the main code - 
i'm a bit tired of reintegrating it with every code update :)

Signed-off-by: Alexey Kouzmenko <d...@narod.ru>

Index: target/linux/atheros/image/Makefile
===================================================================
--- target/linux/atheros/image/Makefile (revision 16482)
+++ target/linux/atheros/image/Makefile (working copy)
@@ -10,7 +10,7 @@
 define Image/BuildKernel
        cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf
        gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz
-       $(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.bin.l7
+       $(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.bin.l7 
-lc1 -lp2 -pb2
        dd if=$(KDIR)/vmlinux.bin.l7 
of=$(BIN_DIR)/openwrt-$(BOARD)-vmlinux.lzma bs=65536 conv=sync
        dd if=$(KDIR)/vmlinux.bin.gz of=$(BIN_DIR)/openwrt-$(BOARD)-vmlinux.gz 
bs=65536 conv=sync
 endef
Index: target/linux/atheros/config-2.6.30
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to