mcs814x: use firmware partition splitter on dLAN USB Extender
authorJohn Crispin <john@openwrt.org>
Mon, 17 Aug 2015 06:16:19 +0000 (06:16 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 17 Aug 2015 06:16:19 +0000 (06:16 +0000)
to avoid editing the dts every time the kernel size changes.
uImage is now bigger than 1MB. Pad uImage to 64k erase block size.

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
SVN-Revision: 46648

target/linux/mcs814x/config-3.18
target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts
target/linux/mcs814x/image/Makefile

index e57f5ff013dcc1957ef0e7892f3e393f848451f3..427a7c92ce74a337997d9fde12a5feb887e09a68 100644 (file)
@@ -159,6 +159,10 @@ CONFIG_MODULES_USE_ELF_REL=y
 # CONFIG_MTD_IMPA7 is not set
 CONFIG_MTD_JEDECPROBE=y
 CONFIG_MTD_PHYSMAP=y
+# CONFIG_MTD_ROOTFS_SPLIT is not set
+CONFIG_MTD_SPLIT_FIRMWARE=y
+CONFIG_MTD_SPLIT_FIRMWARE_NAME="linux"
+CONFIG_MTD_SPLIT_UIMAGE_FW=y
 CONFIG_MULTI_IRQ_HANDLER=y
 CONFIG_NEED_DMA_MAP_STATE=y
 CONFIG_NEED_KUSER_HELPERS=y
index 0c85b94c0aa2bdfe7fb8dd4bf485ac3e1957fa34..59830e8843e221115be5c71c098217ebf4eae8d7 100644 (file)
                                                reg = <0x40000 0x10000>;
                                        };
                                        partition@50000 {
-                                               label = "kernel";
-                                               reg = <0x50000 0x100000>;
-                                       };
-                                       partition@150000 {
-                                               label = "rootfs";
-                                               reg = <0x150000 0x3C0000>;
-                                       };
-                                       partition@50001 {
                                                label = "linux";
                                                reg = <0x50000 0x4C0000>;
                                        };
index 017a564f099c45e8916ec5ceaec217ef02fa4dee..3afd660c14ffb875c124730cd8f5ceb21b3e2093 100644 (file)
@@ -31,7 +31,7 @@ define Image/Build/DTB
 endef
 
 define Image/Build/Profile/dLAN_USB_Extender
-       dd if=$(KDIR)/uImage-dlan-usb-extender bs=1M conv=sync of=$(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin
+       dd if=$(KDIR)/uImage-dlan-usb-extender bs=64k conv=sync of=$(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin
        cat $(KDIR)/root.$(1) >> $(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin
        cp $(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade-$(1).bin $(BIN_DIR)/
 endef