Author: blogic
Date: 2015-08-17 08:16:19 +0200 (Mon, 17 Aug 2015)
New Revision: 46648

Modified:
   trunk/target/linux/mcs814x/config-3.18
   trunk/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts
   trunk/target/linux/mcs814x/image/Makefile
Log:
mcs814x: use firmware partition splitter on dLAN USB Extender

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?\195?\188nther Kelleter <[email protected]>

Modified: trunk/target/linux/mcs814x/config-3.18
===================================================================
--- trunk/target/linux/mcs814x/config-3.18      2015-08-17 06:16:08 UTC (rev 
46647)
+++ trunk/target/linux/mcs814x/config-3.18      2015-08-17 06:16:19 UTC (rev 
46648)
@@ -159,6 +159,10 @@
 # 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

Modified: 
trunk/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts
===================================================================
--- 
trunk/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts   
    2015-08-17 06:16:08 UTC (rev 46647)
+++ 
trunk/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts   
    2015-08-17 06:16:19 UTC (rev 46648)
@@ -48,14 +48,6 @@
                                                reg = <0x40000 0x10000>;
                                        };
                                        partition@50000 {
-                                               label = "kernel";
-                                               reg = <0x50000 0x100000>;
-                                       };
-                                       partition@150000 {
-                                               label = "rootfs";
-                                               reg = <0x150000 0x3C0000>;
-                                       };
-                                       partition@50001 {
                                                label = "linux";
                                                reg = <0x50000 0x4C0000>;
                                        };

Modified: trunk/target/linux/mcs814x/image/Makefile
===================================================================
--- trunk/target/linux/mcs814x/image/Makefile   2015-08-17 06:16:08 UTC (rev 
46647)
+++ trunk/target/linux/mcs814x/image/Makefile   2015-08-17 06:16:19 UTC (rev 
46648)
@@ -31,7 +31,7 @@
 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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to