seemoo-lab / lede-ad7200

LEDE environment ported to support TP-Link TALON AD7200 devices.
https://seemoo.de/talon-tools/
GNU General Public License v2.0
28 stars 16 forks source link

os-image partition too big #1

Open 0free opened 5 years ago

0free commented 5 years ago

Hi,

I tried to build for ad7200 and generated "lede-ipq806x-vmlinux.elf".

It stops @

os-image partition too big (more than 2097152 bytes): Success echo '{ "supported_devices":["ad7200"], "version": { "dist": "LEDE", "version": "17.01-SNAPSHOT", "revision": "r3946-b58ea02580", "board": "ipq806x" } }' | fwtool -I - /home/ubuntu/ad7200/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.16_eabi/linux-ipq806x/tmp/lede-ipq806x-AD7200-squashfs-sysupgrade.bin Failed to open firmware file

akatrevorjay commented 5 years ago

I ran into this a bunch too. I'm surprised you found the error because it used to be freaking silent.

IIRC the config provided is not usable with the flash size of the ad7200, so you have to tweak it a bit to get it to fit. (I'm guessing the author may pivot root to USB.)

There are a few standard options for saving big on openwrt builds, for instance to use squashfs + jffs2 instead of pure jffs2, but that's likely default here.

Let me do a rebuild of my env (it's been a year now) to make sure I'm giving you a good copy as I'm unsure where I left off, but when it's done I'll upload my config (should be within an hour or so); compare it to yours and adjust.

akatrevorjay commented 5 years ago

Here you go: https://skywww.net/t/ad7200.config

0free commented 5 years ago

Thanks for the config file. I will try it later by end of the day.

Should increase kernel partition size by expanding os-image partition to 4 MB because the default image doesn't fit 2 MB for kernel.

This should be done on "qcom-ipq8064-ad7200.dts" & "tplink-safeloader.c".

This could be solve by increasing os-image partition size and reduce file-system partition size.

akatrevorjay commented 5 years ago

Yeah, but then you're stuck with less of an already minimal file system size ;)

The kernel fits using the config above, but it only fits because I disabled compiling in symbols and stripping away [semi] useful things.

That said, the times I've needed symbols on an already ported openwrt router are next to none, so I doubt it would be worth the decrease in filesystem size by default, as that's something I hit much more often. I'm not the maintainer, so my words bear little salt, but it does seem like it could easily be configurable so the user can decide according to need, yeah?

0free commented 5 years ago

Hi, I switched to openwrt snapshot and have added ad7200 support. I flashed the build from stock firmware.

It is working well. Just missing LUCI support for 3 wifi leds.

image

image

image

I think 60G wireless doesn't load correctly or LUCI got confused.

image

dsteinmetzer commented 5 years ago

Hi,

can you check if the 60 GHz WiFi is working properly? I created a version based on the latest openwrt master branch as well. Unfortunately, the 11ad connection appears quite unstable and often runs into silent issues when setting the interface up. The system itself runs quite smooth and supports software reboots which do not work with the LEDE kernel. What is the issue with the LEDs? I never used LUCI on the Talon Routers.

0free commented 4 years ago

check this: https://github.com/SaifAlSubhi/openwrt-ad7200/commits/master