Am 30.01.2015 um 18:48 schrieb Christian Mehlis:

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index f7b8381..ecaa126 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -687,10 +687,13 @@ Image/Build/MyLoader/initramfs=$(call 
PatchKernel/initramfs,$(2),$(3))
  define Image/Build/MyLoader
        $(eval fwsize=$(shell echo $$(($(4)-0x30000-4*64*1024))))
        $(eval fwimage=$(KDIR_TMP)/$(2)-$(5)-firmware.bin)
-       $(call 
CatFiles,$(KDIR_TMP)/vmlinux-$(2).bin.lzma,65536,$(KDIR)/root.$(1),$(fwsize),$(fwimage))
+       $(call 
CatFiles,$(KDIR_TMP)/vmlinux-$(2).uImage,65536,$(KDIR)/root.$(1),$(fwsize),$(fwimage))
        if [ -e "$(fwimage)" ]; then \
                $(STAGING_DIR_HOST)/bin/mkmylofw -B $(2) -s $(4) -v \
-                       -p0x00030000:0:al:0x80060000:firmware:$(fwimage) \
+                       
-p0x680000:0x160000:al:0x80060000:firmware:$(KDIR_TMP)/vmlinux-$(2).uImage \
+                       -p0x050000:0x630000:::rootfs:$(KDIR)/root.$(1) \
+                       -p0x7e0000:0x010000 \
+                       -p0x7f0000:0x010000 \
                        $(call imgname,$(1),$(2))-$(5)-factory.img; \
                echo -n "" > $(KDIR_TMP)/empty.bin; \
                sh $(TOPDIR)/scripts/combined-image.sh \

I think this breaks the other compex boards. This code is more a proof of concept for the wpj558.

I don't recommend to merge that now, until I found a way to make sysupgrade work and not interfere with other boards.

How does linux detect the partitions in the old code where linux and the rootfs are combined in one partition?

Best
Christian
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to