How to remove installed packages to save firmware space?

My router doesn't support usb :frowning:

And I can't figure out where to start by following those tutorial .
Like I don't know where to put all those command line :neutral_face:

Heres what I did . You can build your build of openwrt. I am on windows 10. I installed WSL2 then installed ubuntu.
Then when Ubuntu is up and running.
sudo apt install build-essential libncursesw5-dev python unzip
git clone https://git.openwrt.org/openwrt/openwrt.git

cd openwrt

./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig
The last command will open a menu.

More info here:
https://openwrt.org/docs/guide-developer/quickstart-build-images

Okay thanks i will try
But when i will use package removing command like this post : https://openwrt.org/docs/guide-user/additional-software/saving_space

That's part of the image builder: you do not delete packages from the router, you exclude them from the image.

getting this error :frowning:

From Luci, install packages and view the installed packages.

Have the packages installed so that it recognizes usb or directly you have no usb port? To recognize it you must install kmod-usb-core and there are many more to recognize: fat32, Ntfs, ext3, ext4.

You can try some of this. And it’s pretty cheap

So it will work on any router ?

I've TL-WR740N ROUTER

Do you know which 4 colored wire should be connected between RJ45 and usb female

I've rj45 and a usb female port and if i know which wire should be connected to each other i can make this adapter in home

I highly doubt that you can just wire a USB device into an ethernet port and make it work... Those are completely different protocols on all layers involved.

1 Like

getting this error make -r world failed
can some one help
I put these command line

sudo apt install subversion g++ zlib1g-dev build-essential git python python3 python3-distutils libncurses5-dev gawk gettext \ unzip file libssl-dev wget libelf-dev ecj fastjar java-propose-classpath

sudo apt install build-essential libncursesw5-dev python unzip  

umask 0022

git clone https://git.openwrt.org/openwrt/openwrt.git

cd openwrt

./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig

then to remove ipv6 i put this command

make image PROFILE=tl-wr941nd-v6 \ PACKAGES=“uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap \ -ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd-ipv6only”

then last command was make

plzzz help how to fix this issue

You are using the syntax for imagebuilder, but are actually trying to build from source.

make menuconfig
make

When i will put the package excluding command ?

Plzz help :pray::pray:

If you are building from source, use make manuconfig to select which packages you want.

You can build an image using two methods:

  • Build all the packages from source, and pack them into an image.
  • Download the already built packages, and pack them into an image.

If you just want to create a smaller image, go for the second option, you do not need to build the packages yourself. Follow the "Using the Image Builder" guide.

1 Like

Well, if you have the tools you need, you could make it home. If so, share the final result. please.

I've all the tools but don't know which 4 wire should i connect to each other

I'vw followed this guide (https://openwrt.org/docs/guide-developer/quickstart-build-images)
exactly what it says.
but getting this error again and again
I've excluded some packages from menu config and then commanded make nothing else.

plzz help

I advised you to follow a different approach and use a different guide, do you really need to compile all package? is there any reason not to use the image builder?

Now, if you insist on building all the packages, and the compilation fails and tells you to execute a specific command to obtain more info, please do it.