OpenWrt Forum Archive

Topic: Doesn't compile TP-Link MR3020 images anymore?

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

So I've been working on a project for a while where we use a TP-Link MR3020. To keep our images similar we picked a fixed git revision we use.
Now trying the latest version suddenly the MR3020 images don't get produced, without warnings.

Steps:

hdiutil create -size 10g -fs "Case-sensitive HFS+" -volname OpenWRT-audio ~/OpenWRT-audio.sparsebundle
cd /Volumes/OpenWRT-audio
git clone git://git.openwrt.org/openwrt.git trunk
cd trunk
(Normally I would do: git checkout 8213a50ce5354230b47341a00f6fd30049c992d0)
scripts/feeds update -a
scripts/feeds install -a
make prereq;
make menuconfig (selecting the TP-Link MR3020)
make

The files that are produced:

md5sums
openwrt-ar71xx-generic-nbg460n_550n_550nh-u-boot.bin
openwrt-ar71xx-generic-root.squashfs
openwrt-ar71xx-generic-root.squashfs-64k
openwrt-ar71xx-generic-uImage-gzip.bin
openwrt-ar71xx-generic-uImage-lzma.bin
openwrt-ar71xx-generic-vmlinux-lzma.elf
openwrt-ar71xx-generic-vmlinux.bin
openwrt-ar71xx-generic-vmlinux.elf
openwrt-ar71xx-generic-vmlinux.gz
openwrt-ar71xx-generic-vmlinux.lzma
packages
uboot-ar71xx-nbg460n_550n_550nh

Retrying this fresh, checking out the specific commit it does produce images.

I'm working on OS X Maverick.

All the help is appreciated, I mostly need a lead.

check file size of root.squashfs, maybe it has become too big for 4MB flash

The root.squashfs is only 3.4MB, but I think you're right. Running make V=s and searching for "error" I come across:

3538944 bytes transferred in 0.002636 secs (1342444332 bytes/sec)
/Volumes/OpenWRT-audio/trunk/staging_dir/host/bin/mktplinkfw -H 0x30200001 -W 1 -F 4Mlzma -N OpenWrt -V r40540  -X 0x40000 -k /Volumes/OpenWRT-audio/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/tmp/vmlinux-tl-mr3020-v1.bin.lzma -r /Volumes/OpenWRT-audio/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/root.squashfs-raw -a 0x4 -j -o /Volumes/OpenWRT-audio/trunk/bin/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
[mktplinkfw] kernel length aligned to 1034532
[mktplinkfw] *** error: images are too big
make[5]: [install] Error 255 (ignored)
/Volumes/OpenWRT-audio/trunk/staging_dir/host/bin/mktplinkfw -H 0x30200001 -W 1 -F 4Mlzma -N OpenWrt -V r40540  -s -X 0x40000 -k /Volumes/OpenWRT-audio/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/tmp/vmlinux-tl-mr3020-v1.bin.lzma -r /Volumes/OpenWRT-audio/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/root.squashfs-raw -a 0x4 -j -o /Volumes/OpenWRT-audio/trunk/bin/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-sysupgrade.bin
[mktplinkfw] kernel length aligned to 1034532
[mktplinkfw] *** error: images are too big
make[5]: [install] Error 255 (ignored)

I'll disable some packages and try again.

The discussion might have continued from here.