Modify

Opened 5 years ago

Closed 4 years ago

#13406 closed defect (fixed)

Can’t build image for mzk-w04nu: Warning: kernel-mzk-w04nu.bin is too big

Reported by: Anders Kaseorg <andersk@…> Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: kernel Version: Trunk
Keywords: Cc:

Description

I’m using OpenWRT 12.09 on my MZK-W04NU, and I wanted to try a trunk build. But there are no mzk-w04nu images in http://downloads.openwrt.org/snapshots/trunk/ar71xx/. So I downloaded http://downloads.openwrt.org/snapshots/trunk/ar71xx/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64.tar.bz2 and ran make image PROFILE=MZKW04NU. It failed to generate any image files, apparently due to this:

Warning: /home/anders/openwrt/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64/build_dir/target-mips_r2_uClibc-0.9.33.2/linux-ar71xx_generic/tmp/kernel-mzk-w04nu.bin is too big

Indeed, kernel-mzk-w04nu.bin is 1056089 bytes, which is greater than the 1048576 it’s testing against.

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by Anders Kaseorg <andersk@…>

I am suspicious of r35309:

-planex_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,960k(kernel),6784k(rootfs),128k(art)ro,7744k@0x50000(firmware)
+planex_mtdlayout=mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,1024k(kernel),6656k(rootfs),128k(art)ro,7744k@0x50000(firmware)

This increased kernel by 64k but decreased rootfs by 128k. Which is also inconsistent with these numbers:

 define Image/Build/Planex
…
-       $(call Sysupgrade/KR,$(1),$(KDIR_TMP)/kernel-$(2).bin,983040,6815744,$(2))
+       $(call Sysupgrade/KR,$(1),$(KDIR_TMP)/kernel-$(2).bin,1048576,6750208,$(2))

(983040 + 64k = 1048576, 6815744 - 64k = 6750208.)

I assume these numbers just need further adjustment for the bigger kernel; someone should check the math again while doing that.

comment:2 Changed 4 years ago by dsvensson

Seems like this issue can be resolved, looking at http://downloads.openwrt.org/snapshots/trunk/ar71xx/ today, snapshot builds can yet again be found:

openwrt-ar71xx-generic-mzk-w04nu-squashfs-facto..> 28-Sep-2013 05:34             7864320
openwrt-ar71xx-generic-mzk-w04nu-squashfs-sysup..> 28-Sep-2013 05:34             2883588

comment:3 Changed 4 years ago by andersk

From looking at commits to that Makefile, this was probably fixed by r38139.

comment:4 Changed 4 years ago by tripolar

  • Resolution set to fixed
  • Status changed from new to closed

fixed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.