Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os-image partition too big #1

Open
0free opened this issue Sep 23, 2018 · 7 comments
Open

os-image partition too big #1

0free opened this issue Sep 23, 2018 · 7 comments

Comments

@0free
Copy link

0free commented Sep 23, 2018

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
Copy link

akatrevorjay commented Sep 30, 2018

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
Copy link

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

@0free
Copy link
Author

0free commented Sep 30, 2018

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
Copy link

akatrevorjay commented Sep 30, 2018

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
Copy link
Author

0free commented Jan 4, 2019

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
Copy link

dsteinmetzer commented Jan 7, 2019

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
Copy link
Author

0free commented Mar 9, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants