TL-WR1043ND V2 compile wrong files?

I compiled lede for my wrt1200ac, wrt1900acs, wrt3200acm
as well as E3000, E2000, E2500 and E4000
and it all works. At least what I need to get working works.

but the ar71xx I select generic and then the tl-wr1043NDv2

same settings in make menuconfig as all the other routers.

make runs just fine, no errors..

But no usable firmwares compiled, only following:
lede-ar71xx-generic-device-tl-wr1043nd-v2.manifest (obvious the manjifest)
lede-ar71xx-generic-root.squashfs (this is not a bin nor factory upgrade )
lede-ar71xx-generic-uImage-lzma.bin
lede-ar71xx-generic-vmlinux-lzma.elf
lede-ar71xx-generic-vmlinux.bin
lede-ar71xx-generic-vmlinux.elf
lede-ar71xx-generic-vmlinux.lzma

So how to get the firmware to get from stock to lede?

https://forum.openwrt.org/viewtopic.php?id=69362

I think you are likely in the same boat, building an image that would be too large to flash yields no flash-able images.

2 Likes

Seems that router only has 8MB flash. The WRT routers for example have 128-256 (big difference in what you can enable/disable)

1 Like

But I have only few packages enabled. Much less then DD-WRT and they managed to compile a version for this router.
So in LEDE it must be possible.

Build with -j1 and V=s, log the build (e.g. with tee redirecting output), and see if you can spot any errors.

1 Like

Well yes, errors but I don't get what they mean:
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 7007.44 Kbytes (6.84 Mbytes)
32.20% of uncompressed filesystem size (21763.81 Kbytes)
Inode table size 15182 bytes (14.83 Kbytes)
22.24% of uncompressed inode table size (68271 bytes)
Directory table size 20872 bytes (20.38 Kbytes)
46.46% of uncompressed directory table size (44923 bytes)
Number of duplicate files found 15
Number of inodes 2058
Number of files 1610
Number of fragments 65
Number of symbolic links 279
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 168
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
[ -f /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tl-wr1043nd-v2-kernel.bin -a -f /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/root.squashfs ]
dd if=/home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/root.squashfs >> /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin
14014+1 records in
14014+1 records out
7175618 bytes (7.2 MB, 6.8 MiB) copied, 0.0226471 s, 317 MB/s
/home/vincent/lede/source/staging_dir/host/bin/mktplinkfw -H 0x10430002 -W 0x1 -F 8Mlzma -N OpenWrt -V r2914-1ad30be -m 1 -k /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tl-wr1043nd-v2-kernel.bin -r /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin -o /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin.new -j -X 0x40000 -a 0x4 -s && mv /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin.new /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin || rm -f /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin
[mktplinkfw] kernel length aligned to 1316876
[mktplinkfw] *** error: images are too big by 628686 bytes
cp /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin /home/vincent/lede/source/bin/targets/ar71xx/generic/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin
cp: cannot stat '/home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin': No such file or directory
Makefile:110: recipe for target '/home/vincent/lede/source/bin/targets/ar71xx/generic/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin' failed
make[5]: [/home/vincent/lede/source/bin/targets/ar71xx/generic/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin] Error 1 (ignored)
[ -f /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tl-wr1043nd-v2-kernel.bin -a -f /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/root.squashfs ]
dd if=/home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/root.squashfs >> /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin
14014+1 records in
14014+1 records out
7175618 bytes (7.2 MB, 6.8 MiB) copied, 0.0162542 s, 441 MB/s
/home/vincent/lede/source/staging_dir/host/bin/mktplinkfw -H 0x10430002 -W 0x1 -F 8Mlzma -N OpenWrt -V r2914-1ad30be -m 1 -k /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tl-wr1043nd-v2-kernel.bin -r /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin -o /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin.new -j -X 0x40000 -a 0x4 && mv /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin.new /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin || rm -f /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin
[mktplinkfw] kernel length aligned to 1316876
[mktplinkfw] *** error: images are too big by 628686 bytes
cp /home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin /home/vincent/lede/source/bin/targets/ar71xx/generic/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin
cp: cannot stat '/home/vincent/lede/source/build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/tmp/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin': No such file or directory
Makefile:110: recipe for target '/home/vincent/lede/source/bin/targets/ar71xx/generic/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin' failed
make[5]: [/home/vincent/lede/source/bin/targets/ar71xx/generic/lede-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin] Error 1 (ignored)

It says image size too big: 0,6MB

How can 0,6MB be too big?

Ah.. 0,6MB TOO MUCH..

just reduced the packages by 0,8MB and compiled successfully.

Thank you all! As always LEDE community is a great help!

Given that you haven't actually detailed your package selection (diffconfig) so far, this is a mostly rhetorical question - but, while 8 MB is still sufficient for something I'd consider a generic router + one or two more specialized features (e.g. VPN), the limit is right about there, it definately doesn't lend itself to enable multiple different features. You might be able to save a little space by carefully checking your config for duplications (e.g. VPN needs a tls library, selected carefully you might be able to use just a single implementation for this, but if you don't care, you might easily end up with openssl, mbedtls and cyassl at once, while a single one would be sufficient, same with uclient-fetch vs full wget and/ or curl, axel, etc.).

Very wise comment slh! That's exactly my first mistake. I added only 20 packages or so, not so much in my opinion. But I only really need 6. The others I had "just in case I ever going to need them"

So on low-flash devices one should really stick to the minimum and think about what you really need. Keep it simple and keep it clean. Still in the learning curve to this. Please post every constructive critic and comment to me, both positive and negative as I'm eager to learn the best implementations for my hardware.

Also keep in mind that you really want a keep some free space (technically a few erase blocks worth of free space), so you can actually store your configuration (the buildsystem safeguards slightly more than the bare minimum, but depending on which packages you install, you might need a little more).

Very personally, I get slightly nervous with less than 1 MB free space (less because of a need for that much for configuration, but more to leave some headroom for future growths, as software only gets larger over time, never smaller) and start to get seriously worried somewhere between 500 KB and 300 KB free space for the overlay. Yes, for me, that means that I wouldn't really consider a device with 'only' 8 MB flash to be a viable option for buying it new (even though my current router has 8 MB flash). But when shelling out money for new devices, I'm looking at the longer term and considering what I might need/ want it to do over the curse of the next ~5 years (additional features, software growths, etc.).

1 Like

another wise comment. I was already happy with my 270Kb free space. But I better cut it down some more, because indeed, that's not much left. No chance I can attach a small USB and install packages on the USB is there?

I didn't buy this device. It's for my grandma and she got it from the ISP a while ago. Basically I need Ipv4/IPv6 and ebtables/iptables and openVPN as well as ddns. GUI would be nice to have.. so those I have all right now.

her internet is connected to our network so she can watch all the private home movies and photos on her TV which I host using mezzmo. It works great! Just need her router to latest standard and I found out(previously had DD-wrt) that LEDE gives me a 10-15% increase on VPN compared to DD-wrt. As well as the latest GCM is another 10-20% performance increase over the old CBC. GCM wasn't supported in 2.3. So I need this router on the latest standard to have more VPN performance. Because with my wrt3200acm everything rocks in her house. and this one actually works as well, but JUST NOT enough.. it sometimes hangs a few seconds.. so with a 20-30% total performance increase with LEDE instead of DD-wrt and openVPN2.4 using GCM instead of CBC encryption I hope to get just enough to get those 2-3 seconds "hanging" once every 120 seconds out of the equation.

All new routers I test on TLS-ECDHE-RSA-WITH-256-GCM-SHA384 and tls-crypt , server verification, ceritificates, etc.. the minimum performance I request is 100Mbps over VPN. If I can't get that, Router goes back. Thus far only the WRT3200ACM qualifies for me. The WRT1900ACS gets at 90Mbps so that's another option, but only 60USD cheaper.. rather spend a bit more.. the WRT1200AC however is half the price and still gets 75-80Mbps.. so for someone like my grandma I might consider buying her that as for her it'll be enough to stream everything fluent. But I first wanna see what I can cast out of this old router :slight_smile:

extroot is an option for these problems.

1 Like

very interesting and specially written for this router model! Thank you again. WIll play with it this weekend.