I wanted to update the software but Disk Space only shows 512 KiB in Luci. That means I can not even update LuCi as the router quickly runs out of space.
I’m surprised since the router has a 8MB Flash. Why this 512 KiB limit?
I’ve checked extroot but there is not way to install the required software.
Do you know of any way to tweak something and be able to update existing packages or install new ones?
How big was the OpenWRT image and where do you think it's stored ?
You should never update packages.
Upgrading packages (via the CLI opkg upgrade command or the LuCI Upgrade... button) can result in major problems. It is generally highly discouraged, unless you know what you are doing or if there is specific instruction to do so.
The image is 6.7MB, then there are some additional "mandatory" partitions on the flash (cat /proc/mtd).
Where is the flash space you're missing supposed to come from ?
I have one of these devices and I use extroot in order to fit the packages I need. My recipe is to create a custom image that omits LuCI and adds block-mount kmod-usb-storage kmod-fs-ext4. This image gets flashed to the router, I use ssh to connect to the router and run the extroot process. After the router reboots with extroot active, I install LuCI and the other packages that I need.
This works out as the following package list (which can be built on the firmware selector):
Just for background, the device has 8MB flash, but that is shared by various uses. The boot loader needs to live somewhere, the kernel itself needs a chunk, there's usually a bunch of tables with WiFi calibration data for the radios and on and on...
Look at the mtd tables and you can get a feel for how it's all apportioned (this from an Archer C7, since I don't have a TL-WR902, but you get the idea).