(That output is directly after firstboot -y && reboot running on 23.05.2)
/rom says size=4MB, /overlay only has 2MB. I don't know if this is expected, the hardware description here says flash memory = 8MB, but I'm not sure if the full 8MB is supposed to show up above.
The Luci interface under Status -> Storage -> Disk space says 2.06MB
root@OpenWrt:~# dmesg | egrep "jffs|overlay"
[ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[ 0.261858] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 9.728600] jffs2: notice: (437) jffs2_build_xattr_subsystem: complete building xattr subsystem, 13 of xdatum (0 unchecked, 4 orphan) and 17 of xref $
[ 9.746103] mount_root: switching to jffs2 overlay
[ 9.756891] overlayfs: upper fs does not support tmpfile.
I can't install the package I want:
Installing openssl-util (3.0.13-1) to root...
Collected errors:
* verify_pkg_installable: Only have 1344kb available on filesystem /overlay, pkg libopenssl3 needs 1411
* opkg_install_cmd: Cannot install package openssl-util.
Is there hope for installing that package or is it time to buy a new device?
Hi, thanks for the link, the extroot suggestion seems to require 8MB flash. Do you know how I can check whether the device is functioning correctly, i.e. what command should show the documented 8MB instead of the 2&4 that I see in df ?
You should be able to install the required extroot packages within the 8MB total footprint. I've done it many times. Alternatively, you can use the image builder to pre-install them, saving some space in the process.
Nothing is wrong with your device -- the above is from another 8M device (Linksys E3000)
There is one very simple -approximate- way to check this, take a look at the size of the provided sysupgrade image.
In this case, the archer c7-v1 sysupgrade image for 23.05.2 weighs 5888.3 KB, keep in mind that bootloader+bootloader_env and ART weigh another 196 KB (or more on other devices), now how much free space can you expect after installing OpenWrt on a 8 MB flash device?
--
Yes, some vendors come with a rather wasteful flash partitioning and/ or dual-firmware setups, but a) neither is the case here, b) it still gives you an upper ceiling to refine your calculations.
I'm not sure about the interpretation of the /rom mount mentioned in df -h, as corresponding to mtd3 minus mtd4, is that the way I should read it? 3612 KiB = 3698688 bytes = 3.7M. That doesn't exactly match the 3.8M that df -h displays, but seems to be the best guess for now. Is that how the /rom mount of /dev/root should be seen as part of flash memory?