Tp-link cpe 510 v3.20 slimmed down image

Hello everyone,

I need to make some space on current version firmware for this router.
I would like to install aircrack-ng package but there is no space to install it.
I don't know how to reduce around 2mb of to get it done,because there is no usb port.
I'm using current version rom 22.03.5 .

Answer is the same as in your last thread.

Depends on use case, and remove ppp* if you don't need PPPoE.

I removed ppp and and installed all dependencies for aircrack-ng and still need 990 kb space to install openssl 1.1 to finish installation.
Here is the log:

Installing aircrack-ng (1.6-3) to root... Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mips_24kc/packages/aircrack-ng_1.6-3_mips_24kc.ipk Installing libpcap1 (1.10.1-3) to root... Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mips_24kc/base/libpcap1_1.10.1-3_mips_24kc.ipk Installing libpcre (8.45-3) to root... Downloading https://downloads.openwrt.org/releases/22.03.5/packages/mips_24kc/base/libpcre_8.45-3_mips_24kc.ipk Installing libstdcpp6 (11.2.0-4) to root... Downloading https://downloads.openwrt.org/releases/22.03.5/targets/ath79/generic/packages/libstdcpp6_11.2.0-4_mips_24kc.ipk Installing libopenssl1.1 (1.1.1u-1) to root... Configuring libpcre. Configuring libpcap1. Configuring libstdcpp6.

Errors

Collected errors: * verify_pkg_installable: Only have 904kb available on filesystem /overlay, pkg libopenssl1.1 needs 988 * opkg_install_cmd: Cannot install package aircrack-ng.

The opkg install command failed with code 255.

Using opkg remove at run-time to remove a package that is built into the ROM does not free up any flash space. Use the firmware selector to build a custom ROM with packages like luci and ppp left out, and aircrack-ng added in. Adding a package to the ROM compresses it more efficiently thus using less flash space than installing it later.

Another approach is to install attendedsysupgrade (auc), remove or install packages at run time, then run auc -f to generate and install a new ROM with your changes crammed in. Additional packages can be installed and crammed down to ROM as flash space becomes available.

1 Like

I'm really Nooby at this point,if some can connect with teamviewer to help me out with that,I would be very thankful.

Go to https://firmware-selector.openwrt.org/, select your device and release, remove the packages you don't need, and add the one(s) you want, request an image, and keep your fingers crossed.

Btw, the same thing applies to your other thread/device.

ok will try and let you know.
Please tell me should I install Kernel or Factory or sysupgrade to do the job

If you're already on OpenWRT, use the sysupgrade image.

yes I'm on openwrt already.
Thanks,will do that

Damn it,I installed those packages but Luci web interface is gone,I made snapshot sysupgrade and i kept config. but cannot see anything after adding 192.168.1.1 and internet is still working.

Snapshots don't come with the webUI, do another one via ssh.

Ok, what I made is like this : on installed packages I put those packages:
base-files busybox ca-bundle dnsmasq dropbear firewall fstools kmod-ath9k kmod-gpio-button-hotplug kmod-ipt-offload libc libgcc libustream-wolfssl mtd netifd opkg procd rssileds swconfig uboot-envtools uci uclient-fetch urandom-seed urngd wpad-basic-wolfssl libpcap1 libpcre libstdcpp6 libopenssl1.1 libnl-core200 libnl-genl200 zlib
Then I click on request build and the was successful. Should I click on sysupgrade after clicking request build or? I forgot to mention that I build the image for 23.05.0. rc1

That would be the logical choice...

I made all of this and flash it,but still without luci interface.

Luci isn't in your list of packages.

Ok here are packages:
base-files busybox ca-bundle dnsmasq dropbear firewall4 fstools kmod-ath9k kmod-gpio-button-hotplug kmod-nft-offload libc libgcc libustream-wolfssl logd mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail rssileds swconfig uboot-envtools urandom-seed urngd wpad-basic-wolfssl libpcap1 libpcre libstdcpp6 libopenssl1.1 libnl-core200 libnl-genl200 zlib libpthread libgcc1 luci luci-app-opkg luci-base luci-lib-base luci-lib-ip luci-lib-jsonc luci-lib-nixio luci-mod-admin-full luci-mod-network luci-mod-status luci-mod-system luci-ssl luci-theme-bootstrap liblucihttp-lua liblucihttp0 rpcd-mod-luci

and after i click request build and it pass,then click on sysupgrade download,then flashed this image and it pass but after still no Luci web interface.But weird thing is after all these packeges the size of sysupgrade is always the same 7,44 mb

uhttpd or other web server is missing. uhttpd is not a dependency of LuCi since some people may want nginx etc instead. (Those are larger though so use uhttpd.)

Also you've missed the whole point to install aircrack and remove stuff like ppp.

Please be more specific of what to put in packages?

just use the packages from stable or RC1 release, remove ppp* and what not, then add aircrack ?

Can someone explain it to me please this log:
Error: No JSON file found

STDERR

STDOUT

Building images for ath79 - TP-Link CPE510 v3
Packages: aircrack-ng base-files busybox ca-bundle dnsmasq dropbear firewall4 fstools kmod-ath9k kmod-gpio-button-hotplug kmod-nft-offload libustream-mbedtls logd luci luci-ssl mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail rssileds swconfig uboot-envtools uci uclient-fetch uhttpd urandom-seed urngd wpad-basic-mbedtls base-files busybox ca-bundle dnsmasq dropbear firewall4 fstools kernel kmod-ath9k kmod-gpio-button-hotplug kmod-nft-offload libustream-mbedtls logd mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd procd-seccomp procd-ujail rssileds swconfig uboot-envtools uci uclient-fetch urandom-seed urngd wpad-basic-mbedtls

Package base-files (1533-r23069-e2701e0f33) installed in root is up to date.
Package busybox (1.36.1-1) installed in root is up to date.
Package ca-bundle (20230311-1) installed in root is up to date.
Package dnsmasq (2.89-4) installed in root is up to date.
Package dropbear (2022.82-5) installed in root is up to date.
Package firewall4 (2023-03-23-04a06bd7-1) installed in root is up to date.
Package fstools (2023-02-28-bfe882d5-1) installed in root is up to date.
Package kernel (5.15.114-1-6efd0b1fda4483b198f8450242cae272) installed in root is up to date.
Package kmod-ath9k (5.15.114+6.1.24-3) installed in root is up to date.
Package kmod-gpio-button-hotplug (5.15.114-3) installed in root is up to date.
Package kmod-nft-offload (5.15.114-1) installed in root is up to date.
Package libustream-mbedtls20201210 (2023-02-25-498f6e26-1) installed in root is up to date.
Package logd (2022-08-13-4c7b720b-2) installed in root is up to date.
Package mtd (26) installed in root is up to date.
Package netifd (2023-06-04-ec9dba72-1) installed in root is up to date.
Package nftables-json (1.0.7-1) installed in root is up to date.
Package odhcp6c (2023-05-12-bcd28363-20) installed in root is up to date.
Package odhcpd-ipv6only (2023-04-05-40ab806b-1) installed in root is up to date.
Package opkg (2022-02-24-d038e5b6-2) installed in root is up to date.
Package ppp (2.4.9.git-2021-01-04-4) installed in root is up to date.
Package ppp-mod-pppoe (2.4.9.git-2021-01-04-4) installed in root is up to date.
Package procd (2023-01-16-190f13a7-1) installed in root is up to date.
Package procd-seccomp (2023-01-16-190f13a7-1) installed in root is up to date.
Package procd-ujail (2023-01-16-190f13a7-1) installed in root is up to date.
Package rssileds (4) installed in root is up to date.
Package swconfig (12) installed in root is up to date.
Package uboot-envtools (2023.04-1) installed in root is up to date.
Package uci (2023-03-05-04d0c46c-1) installed in root is up to date.
Package uclient-fetch (2023-04-13-007d9454-1) installed in root is up to date.
Package urandom-seed (3) installed in root is up to date.
Package urngd (2020-01-21-c7f7b6b6-1) installed in root is up to date.
Package wpad-basic-mbedtls (2023-03-29-bb945b98-1.2) installed in root is up to date.
Configuring libnl-tiny2023-04-02.
Configuring libubox20220927.
Configuring libuci20130104.
Configuring libubus20220615.
Configuring libiwinfo-data.
Configuring libiwinfo20230121.
Configuring iwinfo.
Configuring libatomic1.
Configuring libopenssl3.
Configuring liblucihttp0.
Configuring cgi-io.
Configuring kmod-crypto-gf128.
Configuring libuclient20201210.
Configuring uclient-fetch.
Configuring libpthread.
Configuring opkg.
Configuring hostapd-common.
Configuring libmbedtls12.
Configuring wpad-basic-mbedtls.
Configuring luci-app-opkg.
Configuring libjson-c5.
Configuring libblobmsg-json20220927.
Configuring ubusd.
Configuring ubus.
Configuring iw.
Configuring kmod-crypto-hash.
Configuring kmod-crypto-null.
Configuring kmod-crypto-aead.
Configuring kmod-crypto-manager.
Configuring rpcd.
Configuring busybox.
Configuring kmod-crypto-hmac.
Configuring kmod-crypto-sha512.
Configuring kmod-crypto-rng.
Configuring kmod-crypto-seqiv.
Configuring kmod-crypto-ctr.
Configuring kmod-nfnetlink.
Configuring kmod-nf-reject.
Configuring kmod-nf-reject6.
Configuring kmod-nf-conntrack.
Configuring kmod-nf-conntrack6.
Configuring kmod-nf-nat.
Configuring kmod-nf-log.
Configuring kmod-nf-log6.
Configuring kmod-crypto-crc32c.
Configuring kmod-lib-crc32c.
Configuring kmod-nft-core.
Configuring kmod-nft-fib.
Configuring swconfig.
Configuring rpcd-mod-file.
Configuring rpcd-mod-luci.
Configuring libucode20220812.
Configuring rpcd-mod-ucode.
Configuring ucode.
Configuring ucode-mod-fs.
Configuring ucode-mod-uci.
Configuring ucode-mod-ubus.
Configuring ucode-mod-math.
Configuring ucode-mod-html.
Configuring liblucihttp-ucode.
Configuring luci-base.
Configuring luci-mod-system.
Configuring kmod-nf-flow.
Configuring kmod-lib-crc-ccitt.
Configuring px5g-mbedtls.
Configuring getrandom.
Configuring luci-theme-bootstrap.
Configuring kmod-slhc.
Configuring kmod-ppp.
Configuring kmod-pppox.
Configuring kmod-pppoe.
Configuring procd-ujail.
Configuring jshn.
Configuring netifd.
Configuring jsonfilter.
Configuring usign.
Configuring openwrt-keyring.
Configuring ubox.
Configuring fstools.
Configuring fwtool.
Configuring base-files.
Configuring libpcre.
Configuring libpcap1.
Configuring libstdcpp6.
Configuring libnl-core200.
Configuring libnl-genl200.
Configuring zlib.
Configuring aircrack-ng.
Configuring libustream-mbedtls20201210.
Configuring kmod-nft-nat.
Configuring kmod-nft-offload.
Configuring libmnl0.
Configuring libnftnl11.
Configuring jansson4.
Configuring nftables-json.
Configuring firewall4.
Configuring uboot-envtools.
Configuring dnsmasq.
Configuring libjson-script20220927.
Configuring procd.
Configuring rpcd-mod-iwinfo.
Configuring luci-mod-status.
Configuring luci-app-firewall.
Configuring odhcp6c.
Configuring kmod-crypto-ghash.
Configuring wireless-regdb.
Configuring kmod-cfg80211.
Configuring kmod-crypto-cmac.
Configuring kmod-crypto-ccm.
Configuring kmod-crypto-gcm.
Configuring kmod-mac80211.
Configuring kmod-ath.
Configuring kmod-random-core.
Configuring kmod-ath9k-common.
Configuring kmod-ath9k.
Configuring uci.
Configuring luci-proto-ipv6.
Configuring luci-mod-network.
Configuring luci-mod-admin-full.
Configuring luci-proto-ppp.
Configuring rpcd-mod-rrdns.
Configuring uhttpd.
Configuring uhttpd-mod-ubus.
Configuring luci-light.
Configuring luci-ssl.
Configuring dropbear.
Configuring mtd.
Configuring odhcpd-ipv6only.
Configuring procd-seccomp.
Configuring rssileds.
Configuring urandom-seed.
Configuring ppp.
Configuring kmod-gpio-button-hotplug.
Configuring logd.
Configuring ca-bundle.
Configuring luci.
Configuring urngd.
Configuring ppp-mod-pppoe.

Finalizing root filesystem...
Enabling boot
Enabling bootcount
Enabling cron
Enabling dnsmasq
Enabling done
Enabling dropbear
Enabling firewall
Enabling gpio_switch
Enabling led
Enabling log
Enabling network
Enabling odhcpd
Enabling packet_steering
Enabling rpcd
Enabling rssileds
Enabling sysctl
Enabling sysfixtime
Enabling sysntpd
Enabling system
Enabling ucitrack
Enabling uhttpd
Enabling umount
Enabling urandom_seed
Enabling urngd
Enabling wpad

Building images...
Parallel mksquashfs: Using 4 processors
Creating 4.0 filesystem on /home/aparcar/asu/worker1/cache/23.05.0-rc1/ath79/generic/build_dir/target-mips_24kc_musl/linux-ath79_generic/root.squashfs, block size 262144.

[| ] 0/1064 0%
[=============================================================] 1064/1064 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
compressed data, compressed metadata, compressed fragments,
no xattrs, compressed ids
duplicates are removed
Filesystem size 5364.85 Kbytes (5.24 Mbytes)
24.73% of uncompressed filesystem size (21693.34 Kbytes)
Inode table size 9364 bytes (9.14 Kbytes)
20.62% of uncompressed inode table size (45420 bytes)
Directory table size 13212 bytes (12.90 Kbytes)
44.81% of uncompressed directory table size (29486 bytes)
Number of duplicate files found 158
Number of inodes 1370
Number of files 1040
Number of fragments 52
Number of symbolic links 215
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 114
Number of hard-links 0
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
qroot (0)
Skip JSON creation for non existing file /home/aparcar/asu/worker1/cache/23.05.0-rc1/ath79/generic/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-23.05.0-rc1-188c040f522a-ath79-generic-tplink_cpe510-v3-squashfs-sysupgrade.bin
Skip JSON creation for non existing file /home/aparcar/asu/worker1/cache/23.05.0-rc1/ath79/generic/build_dir/target-mips_24kc_musl/linux-ath79_generic/tmp/openwrt-23.05.0-rc1-188c040f522a-ath79-generic-tplink_cpe510-v3-squashfs-factory.bin
JSON info file script could not find any JSON files for target