Re: [OpenWrt-Devel] [PATCH v2 3/3] mcs814x: use firmware partition splitter on dLAN USB Extender

2015-07-27 Thread Florian Fainelli
On Jul 27, 2015 3:55 AM, "Günther Kelleter" 
wrote:

Looks good to me, having a better commit message would be welcome.

>
> Signed-off-by: Günther Kelleter 
> ---
>  target/linux/mcs814x/config-3.18  | 4

>  .../mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts| 8

>  target/linux/mcs814x/image/Makefile   | 2 +-
>  3 files changed, 5 insertions(+), 9 deletions(-)
>
> diff --git a/target/linux/mcs814x/config-3.18
b/target/linux/mcs814x/config-3.18
> index e57f5ff..427a7c9 100644
> --- a/target/linux/mcs814x/config-3.18
> +++ b/target/linux/mcs814x/config-3.18
> @@ -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
> diff --git
a/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts
b/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts
> index 0c85b94..59830e8 100644
> ---
a/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts
> +++
b/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts
> @@ -48,14 +48,6 @@
> reg = <0x4 0x1>;
> };
> partition@5 {
> -   label = "kernel";
> -   reg = <0x5 0x10>;
> -   };
> -   partition@15 {
> -   label = "rootfs";
> -   reg = <0x15 0x3C>;
> -   };
> -   partition@50001 {
> label = "linux";
> reg = <0x5 0x4C>;
> };
> diff --git a/target/linux/mcs814x/image/Makefile
b/target/linux/mcs814x/image/Makefile
> index 4c8af97..74f8ad4 100644
> --- a/target/linux/mcs814x/image/Makefile
> +++ b/target/linux/mcs814x/image/Makefile
> @@ -30,7 +30,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
> --
> 2.4.6.89.g851dcf4
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2 3/3] mcs814x: use firmware partition splitter on dLAN USB Extender

2015-07-27 Thread Günther Kelleter
Signed-off-by: Günther Kelleter 
---
 target/linux/mcs814x/config-3.18  | 4 
 .../mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts| 8 
 target/linux/mcs814x/image/Makefile   | 2 +-
 3 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/target/linux/mcs814x/config-3.18 b/target/linux/mcs814x/config-3.18
index e57f5ff..427a7c9 100644
--- a/target/linux/mcs814x/config-3.18
+++ b/target/linux/mcs814x/config-3.18
@@ -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
diff --git 
a/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts 
b/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts
index 0c85b94..59830e8 100644
--- a/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts
+++ b/target/linux/mcs814x/files-3.18/arch/arm/boot/dts/dlan-usb-extender.dts
@@ -48,14 +48,6 @@
reg = <0x4 0x1>;
};
partition@5 {
-   label = "kernel";
-   reg = <0x5 0x10>;
-   };
-   partition@15 {
-   label = "rootfs";
-   reg = <0x15 0x3C>;
-   };
-   partition@50001 {
label = "linux";
reg = <0x5 0x4C>;
};
diff --git a/target/linux/mcs814x/image/Makefile 
b/target/linux/mcs814x/image/Makefile
index 4c8af97..74f8ad4 100644
--- a/target/linux/mcs814x/image/Makefile
+++ b/target/linux/mcs814x/image/Makefile
@@ -30,7 +30,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
-- 
2.4.6.89.g851dcf4
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel