Sysupgrade.bin too big for router

I have just created a custom build for my Netgear R6220 router.

I tried to upload the sysupgrade.bin to my router but luci says it's too big. Looking at the file size, it's 34mb which does seem a bit big.

How can I determine which packages are using all the space? I'm sure I can remove some.
Here's a list of everything that I have selected to be compiled. I do use a usb hard drive and wireguard which is why you'll see those configured in.

I had to pastebin since it was too long to post.

Appreciate any advice. Thanks.

Using the Build System (buildroot)?

No doubt! Considering the base Release Build is only 6.5mb

First, if you want to use that many packages, consider using Extroot. https://openwrt.org/docs/guide-user/additional-software/extroot_configuration

IF you are using the build system, just build a default build for your target and add packages to ExtRoot.

2 Likes

Interesting. I'll take a look at that. The previous build I did was 19.x (unfortunately I lost the .config) and had no problems with that, so I'm just wondering what is causing the bloat. I'm sure if this was a general problem with the latest release, there's be more posts on it.

I guess I could start with a default build and then start adding to see what bloats it so much.

So how did you generate your .config? Did you start with a default .config for your target that should just mimic the base release (~6.5mb).

Frankly, I’d just make/install a default build, configure extroot, and just start adding my packages to extroot. Done.

You can always check space consumed by the additional packages with df -hT /rom/overlay

An 8gb usb partioned in half would give your more than you need for both uses.

1 Like

Exactly, sort of. I picked the target and then started adding the packages that I wanted like wireshark, 6in4, tor, i2pd, various linux based tools.

I'll go ahead and build a default target and then start adding to it.

if you are compiling your own you could change the DTS
to include the unused memory
this will break it's package comparability with release openwrt tho
i'll track down the DTS if your interested

That’s what I feared.

		WHAT TO DO IF YOU DON'T HAVE A .config

make nconfig   # enter your Target
			# and SubTarget
			# and Target Profile
			# escape out of nconfig and select <save>
# create configdiff from created .config
./scripts/diffconfig.sh > configdiff
cp configdiff .config	# and copy to .config
make defconfig

This will produce a default .config for your target device.

Just for giggles, I ran a Snapshot build based on the resulting default .config from the above with LuCI added. As you see, it produces an ~6.5M working default build for your 6220.
-rw-r--r-- 1 rural rural 6.5M Dec 21 15:56 openwrt-ramips-mt7621-netgear_r6220-squashfs-sysupgrade.bin

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.