Re: [OpenWrt-Devel] [PATCH 1/3] ar71xx/image: fix imagesize of template tplink-8mlzma

2015-04-14 Thread John Crispin


On 14/04/2015 21:29, Alexander Couzens wrote:
> I've found the issue. It was already present on the previous tplink images.
> The new Build/mktplinkfw step duplicated the rootfs.
> Once within kernel image and once when using mktplinkfw initramfs.
> I'll send another patch to this list, but it doesn't touch this patch serie.
> After taking another though about the initramfs image creation, I noticed
> that we are limiting the initramfs image to the same size as the origin 
> flashlayout.
> tftpboot a bigger image is impossible. Do we want this or do we would like to 
> flash initramfs images
>  to flash?
> 


initramfs images are only for ramboot during testing in general and wont
be flashed. they do not need to follow the size constraints of the flash
images.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] ar71xx/image: fix imagesize of template tplink-8mlzma

2015-04-14 Thread Alexander Couzens
I've found the issue. It was already present on the previous tplink images.
The new Build/mktplinkfw step duplicated the rootfs.
Once within kernel image and once when using mktplinkfw initramfs.
I'll send another patch to this list, but it doesn't touch this patch serie.
After taking another though about the initramfs image creation, I noticed
that we are limiting the initramfs image to the same size as the origin 
flashlayout.
tftpboot a bigger image is impossible. Do we want this or do we would like to 
flash initramfs images
 to flash?

Best
lynxis

On Tue, 14 Apr 2015 21:00:28 +0200
John Crispin  wrote:

> > i'm looking into it. I haven't build these with initramfs.
> 
> thanks

-- 
Alexander Couzens

mail: lyn...@fe80.eu
jabber: lyn...@jabber.ccc.de
mobile: +4915123277221


pgpNlCdE_Ggue.pgp
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] ar71xx/image: fix imagesize of template tplink-8mlzma

2015-04-14 Thread John Crispin


On 14/04/2015 20:48, Alexander Couzens wrote:
> Hi John,
> 
> i'm looking into it. I haven't build these with initramfs.
> 
> Best,
> lynxis

thanks
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] ar71xx/image: fix imagesize of template tplink-8mlzma

2015-04-14 Thread Alexander Couzens
Hi John,

i'm looking into it. I haven't build these with initramfs.

Best,
lynxis

On Tue, 14 Apr 2015 20:17:09 +0200
John Crispin  wrote:

> with these patches applied none of the 4MB image build ?!
> 
> /openwrt/trunk/staging_dir/host/bin/mktplinkfw -H 0x00100101 -W 0x1 -F
> 4Mlzma -N OpenWrt -V r45435 -k
> /openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/vmlinux-initramfs
> -r
> /openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openwrt-ar71xx-generic-tl-mr10u-v1-initramfs-kernel.bin
> -o
> /openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openwrt-ar71xx-generic-tl-mr10u-v1-initramfs-kernel.bin.new
> -a 0x4   -s -c
> [mktplinkfw] *** error: kernel image is too big
-- 
Alexander Couzens

mail: lyn...@fe80.eu
jabber: lyn...@jabber.ccc.de
mobile: +4915123277221


pgpLnNdswrZKh.pgp
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 1/3] ar71xx/image: fix imagesize of template tplink-8mlzma

2015-04-14 Thread John Crispin
with these patches applied none of the 4MB image build ?!

/openwrt/trunk/staging_dir/host/bin/mktplinkfw -H 0x00100101 -W 0x1 -F
4Mlzma -N OpenWrt -V r45435 -k
/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/vmlinux-initramfs
-r
/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openwrt-ar71xx-generic-tl-mr10u-v1-initramfs-kernel.bin
-o
/openwrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/openwrt-ar71xx-generic-tl-mr10u-v1-initramfs-kernel.bin.new
-a 0x4   -s -c
[mktplinkfw] *** error: kernel image is too big


On 14/04/2015 00:00, Alexander Couzens wrote:
> The new image size is verified by a running tplink device and checked
> against mktplinkfw source code.
> 
> Signed-off-by: Alexander Couzens 
> ---
>  target/linux/ar71xx/image/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/linux/ar71xx/image/Makefile 
> b/target/linux/ar71xx/image/Makefile
> index 8766756..a4ebccb 100644
> --- a/target/linux/ar71xx/image/Makefile
> +++ b/target/linux/ar71xx/image/Makefile
> @@ -153,7 +153,7 @@ endef
>  define Device/tplink-8mlzma
>  $(Device/tplink)
>TPLINK_FLASHLAYOUT := 8Mlzma
> -  IMAGE_SIZE := 8000k
> +  IMAGE_SIZE := 7936k
>  endef
>  
>  define Device/tl-wdr4300-v1
> 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 1/3] ar71xx/image: fix imagesize of template tplink-8mlzma

2015-04-13 Thread Alexander Couzens
The new image size is verified by a running tplink device and checked
against mktplinkfw source code.

Signed-off-by: Alexander Couzens 
---
 target/linux/ar71xx/image/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ar71xx/image/Makefile 
b/target/linux/ar71xx/image/Makefile
index 8766756..a4ebccb 100644
--- a/target/linux/ar71xx/image/Makefile
+++ b/target/linux/ar71xx/image/Makefile
@@ -153,7 +153,7 @@ endef
 define Device/tplink-8mlzma
 $(Device/tplink)
   TPLINK_FLASHLAYOUT := 8Mlzma
-  IMAGE_SIZE := 8000k
+  IMAGE_SIZE := 7936k
 endef
 
 define Device/tl-wdr4300-v1
-- 
2.3.5
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel