Report Devices Here With 18.06.0 Provided Image too big to save overlay

zyxel keenetic v1 has this trouble too on 18.06.1

same problem for TA WA850re v2 repeater, and it isn't supported on 17.01.6!!!

http://downloads.openwrt.org/releases/17.01.6/targets/ar71xx/generic/ (no tiny for 17.01.6, only generic)

same here, any workaround?

See @per post, just above

Also, the WA850 is on the "tiny" target for 18.06 -- see http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/tiny/

doesn't help! reduced 200k but still config loss on reboot

that is what I'm using. I've built a custom image and saved ~200k (from du report), but still df -h reports 0 free disk, I can't mount on rw mode, no /overlay is mounted, and config is lost on reboot!

I've used

make image PROFILE=tl-wa850re-v2 PACKAGES="uhttpd uhttpd-mod-ubus libiwinfo-lua luci-base luci-app-firewall luci-mod-admin-full luci-theme-bootstrap zram-swap -ppp -ppp-mod-pppoe -iptables -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd -opkg"

On http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/tiny/openwrt-imagebuilder-18.06.1-ar71xx-tiny.Linux-x86_64.tar.xz

Then flashed the sysupgrade file.

Maybe the problem lies elsewhere. I think you should have gotten an overlay mount anyway, but on RAM disk. Have you checked the logs?

@Per tp-wl850re-v2
mtab

root@OpenWrt:~# cat /etc/mtab
/dev/root /rom squashfs ro,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,noatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,noatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
tmpfs /tmp/root tmpfs rw,noatime,mode=755 0 0
overlayfs:/tmp/root / overlay rw,noatime,lowerdir=/,upperdir=/tmp/root/upper,workdir=/tmp/root/work 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,size=512k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0
debugfs /sys/kernel/debug debugfs rw,noatime 0 0

dmesg

[    0.000000] Linux version 4.9.120 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7101-a63e38b) ) #0 Wed Aug 15 20:42:39 2018
[    0.000000] MyLoader: sysp=141f3907, boardp=07330d73, parts=0fcd8f5f
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 804386d4, node_mem_map 81000020
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-WA850RE-V2 mtdparts=spi0.0:128k(u-boot)ro,1344k(kernel),2304k(rootfs),256k(config)ro,64k(art)ro,3648k@0x20000(firmware) console=ttyS0,115200 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 27660K/32768K available (3359K kernel code, 156K rwdata, 424K rodata, 212K init, 219K bss, 5108K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:550.000MHz, DDR:394.091MHz, AHB:197.045MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6950037990 ns
[    0.000010] sched_clock: 32 bits at 275MHz, resolution 3ns, wraps every 7809031678ns
[    0.008271] Calibrating delay loop... 366.18 BogoMIPS (lpj=1830912)
[    0.071078] pid_max: default: 32768 minimum: 301
[    0.076077] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.083064] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.093832] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.104256] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.112188] NET: Registered protocol family 16
[    0.118681] MIPS: machine is TP-LINK TL-WA850RE v2
[    0.359670] Can't analyze schedule() prologue at 803a4484
[    0.380599] clocksource: Switched to clocksource MIPS
[    0.387152] NET: Registered protocol family 2
[    0.392920] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.400287] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.407066] TCP: Hash tables configured (established 1024 bind 1024)
[    0.413905] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.420083] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.427058] NET: Registered protocol family 1
[    0.431739] PCI: CLS 0 bytes, default 32
[    0.435903] Crashlog allocated RAM at address 0x1f00000
[    0.442800] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.457864] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.464066] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.485247] io scheduler noop registered
[    0.489386] io scheduler deadline registered (default)
[    0.495352] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.505119] console [ttyS0] disabled
[    0.529067] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.538183] console [ttyS0] enabled
[    0.545737] bootconsole [early0] disabled
[    0.561472] m25p80 spi0.0: found gd25q32, expected m25p80
[    0.569404] m25p80 spi0.0: gd25q32 (4096 Kbytes)
[    0.574284] 6 cmdlinepart partitions found on MTD device spi0.0
[    0.580393] Creating 6 MTD partitions on "spi0.0":
[    0.585369] 0x000000000000-0x000000020000 : "u-boot"
[    0.592821] 0x000000020000-0x000000170000 : "kernel"
[    0.600344] 0x000000170000-0x0000003b0000 : "rootfs"
[    0.607383] mtd: device 2 (rootfs) set to be root filesystem
[    0.613372] 1 squashfs-split partitions found on MTD device rootfs
[    0.619775] 0x0000003a0000-0x0000003b0000 : "rootfs_data"
[    0.627873] 0x0000003b0000-0x0000003f0000 : "config"
[    0.635509] 0x0000003f0000-0x000000400000 : "art"
[    0.642866] 0x000000020000-0x0000003b0000 : "firmware"
[    0.651793] libphy: Fixed MDIO Bus: probed
[    0.681932] libphy: ag71xx_mdio: probed
[    1.313568] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
[    1.323850] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.332466] NET: Registered protocol family 10
[    1.342016] NET: Registered protocol family 17
[    1.346674] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.360243] 8021q: 802.1Q VLAN Support v1.8
[    1.366673] hctosys: unable to open rtc device (rtc0)
[    1.377334] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.386155] Freeing unused kernel memory: 212K
[    1.390785] This architecture does not have kernel memory protection.
[    2.093797] init: Console is alive
[    2.097604] init: - watchdog -
[    2.488598] random: fast init done
[    2.962092] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.060324] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.078783] init: - preinit -
[    3.918905] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    3.951915] random: procd: uninitialized urandom read (4 bytes read)
[    6.014200] eth0: link up (100Mbps/Full duplex)
[    6.018993] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    7.267636] mount_root: loading kmods from internal overlay
[    7.301439] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    7.309386] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[    8.069987] jffs2: Too few erase blocks (1)
[    8.075939] jffs2: Too few erase blocks (1)
[    8.080457] mount_root: failed to mount -t jffs2 /dev/mtdblock3 /tmp/overlay: Invalid argument
[    8.430681] jffs2: Too few erase blocks (1)
[    8.436201] mount_root: unable to set filesystem state
[    8.441841] mount_root: switching to jffs2 overlay
[    8.446930] mount_root: switching to jffs2 failed - fallback to ramoverlay
[    8.481090] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.596452] eth0: link down
[    8.613747] procd: - early -
[    8.616859] procd: - watchdog -
[    9.246558] procd: - watchdog -
[    9.250138] procd: - ubus -
[    9.392997] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.401186] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.408308] random: ubusd: uninitialized urandom read (4 bytes read)
[    9.416096] procd: - init -
[    9.828289] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.842008] zram: Added device: zram0
[    9.863410] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[    9.871773] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[    9.900832] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[    9.985003] xt_time: kernel timezone is -0000
[   10.017943] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.162578] ath: EEPROM regdomain: 0x0
[   10.162590] ath: EEPROM indicates default country code should be used
[   10.162594] ath: doing EEPROM country->regdmn map search
[   10.162613] ath: country maps to regdmn code: 0x3a
[   10.162619] ath: Country alpha2 being used: US
[   10.162623] ath: Regpair used: 0x3a
[   10.174224] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   10.179230] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47
[   10.218132] kmodloader: done loading kernel modules from /etc/modules.d/*
[   11.716103] urandom_read: 5 callbacks suppressed
[   11.716113] random: jshn: uninitialized urandom read (4 bytes read)
[   15.688116] zram0: detected capacity change from 0 to 13631488
[   15.726702] Adding 13308k swap on /dev/zram0.  Priority:-1 extents:1 across:13308k SS
[   23.762942] br-lan: port 1(eth0) entered blocking state
[   23.768365] br-lan: port 1(eth0) entered disabled state
[   23.774285] device eth0 entered promiscuous mode
[   23.842538] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   25.854332] eth0: link up (100Mbps/Full duplex)
[   25.859094] br-lan: port 1(eth0) entered blocking state
[   25.864547] br-lan: port 1(eth0) entered forwarding state
[   25.950719] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   75.521819] br-lan: port 1(eth0) entered disabled state
[   75.553441] device eth0 left promiscuous mode
[   75.558072] br-lan: port 1(eth0) entered disabled state
[   75.581190] eth0: link down
[   75.593203] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   75.637446] eth0: link up (100Mbps/Full duplex)
[   75.652041] br-lan: port 1(eth0) entered blocking state
[   75.657461] br-lan: port 1(eth0) entered disabled state
[   75.663369] device eth0 entered promiscuous mode
[   75.702424] br-lan: port 1(eth0) entered blocking state
[   75.707847] br-lan: port 1(eth0) entered forwarding state
[  115.610733] random: crng init done
[  139.208117] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  140.001422] br-lan: port 2(wlan0) entered blocking state
[  140.006929] br-lan: port 2(wlan0) entered disabled state
[  140.013181] device wlan0 entered promiscuous mode
[  140.862438] wlan0: authenticate with 64:66:b3:be:b5:b7
[  140.880872] wlan0: send auth to 64:66:b3:be:b5:b7 (try 1/3)
[  140.894875] wlan0: authenticated
[  140.898730] ath9k qca953x_wmac wlan0: disabling HT as WMM/QoS is not supported by the AP
[  140.907200] ath9k qca953x_wmac wlan0: disabling VHT as WMM/QoS is not supported by the AP
[  140.920705] wlan0: associate with 64:66:b3:be:b5:b7 (try 1/3)
[  140.934216] wlan0: RX AssocResp from 64:66:b3:be:b5:b7 (capab=0x431 status=0 aid=2)
[  140.942676] wlan0: associated
[  141.067835] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  141.074732] br-lan: port 2(wlan0) entered blocking state
[  141.080231] br-lan: port 2(wlan0) entered forwarding state
[  461.930198] ath: EEPROM regdomain: 0x804c
[  461.930210] ath: EEPROM indicates we should expect a country code
[  461.930216] ath: doing EEPROM country->regdmn map search
[  461.930221] ath: country maps to regdmn code: 0x3b
[  461.930227] ath: Country alpha2 being used: BR
[  461.930231] ath: Regpair used: 0x3b
[  461.930239] ath: regdomain 0x804c dynamically updated by user
[  467.049971] wlan0: deauthenticating from 64:66:b3:be:b5:b7 by local choice (Reason: 3=DEAUTH_LEAVING)
[  467.478004] br-lan: port 2(wlan0) entered disabled state
[  467.518753] br-lan: port 2(wlan0) entered disabled state
[  467.534590] device wlan0 left promiscuous mode
[  467.539230] br-lan: port 2(wlan0) entered disabled state
[  468.556674] IPv6: ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
[  468.615262] br-lan: port 2(wlan0-1) entered blocking state
[  468.621029] br-lan: port 2(wlan0-1) entered disabled state
[  468.627159] device wlan0-1 entered promiscuous mode
[  477.181531] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  477.994628] br-lan: port 3(wlan0) entered blocking state
[  478.000409] br-lan: port 3(wlan0) entered disabled state
[  478.006563] device wlan0 entered promiscuous mode
[  478.948524] wlan0: authenticate with 64:66:b3:be:b5:b7
[  478.967025] wlan0: send auth to 64:66:b3:be:b5:b7 (try 1/3)
[  478.976575] wlan0: authenticated
[  478.981057] ath9k qca953x_wmac wlan0: disabling HT as WMM/QoS is not supported by the AP
[  478.989494] ath9k qca953x_wmac wlan0: disabling VHT as WMM/QoS is not supported by the AP
[  479.000696] wlan0: associate with 64:66:b3:be:b5:b7 (try 1/3)
[  479.019581] wlan0: RX AssocResp from 64:66:b3:be:b5:b7 (capab=0x431 status=0 aid=2)
[  479.028088] wlan0: associated
[  479.166409] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  479.173396] br-lan: port 3(wlan0) entered blocking state
[  479.178896] br-lan: port 3(wlan0) entered forwarding state
[  479.831592] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[  479.838665] br-lan: port 2(wlan0-1) entered blocking state
[  479.844445] br-lan: port 2(wlan0-1) entered forwarding state
[ 1884.252874] eth0: link down
[ 1884.257681] br-lan: port 1(eth0) entered disabled state

You probably have to use make menuconfig til remove more stuff. 17.01.6 is smaller by default, so if you use it and remove as much as possible you have a greater chance of success.

I'm afraid it wouldn't help, otherwise wouldn't I see 200kb free when I saved by removing packages above?

Because of the block structure there is a threshold you need to get below before it helps. Suddenly you will have enough, and then it will mount.

Dlink dir 300 b1
Tested 15.05.1 and 17.01.5 - no issues. But with 18.06.1 config lost after reboot

[ 8.704201] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 41.069630] jffs2: Too few erase blocks (4)

It's really sad to see so many broken images (technically somehow working but if you can't even save your password or any settings it's just broken - for professionals and noobs) on the official download site (https://downloads.openwrt.org/releases/18.06.1/targets) :disappointed:

I wonder what it would take to to a automatic testing of the images if they are working. For me (personally) OpenWRT 18.06 was the worst release ever. I had so much troubles and pain with this (for me unnecessary) debugging...

I stopped counting but probably all of my ramips/rt305x with 4MB flash like a5-v11 or dir-615-h1 are not usable with the 18.06.1 images provided from the official source downloads.openwrt.org :weary:

So, now that WNR2000v4 has been reported, could the WIKI for that device be changed? I just installed the recommended firmware from there (18.06) and it has the overlay problem. Also, has anyone compiled a new firmware for that device without the PPP and IP6 packages? I tried using chef.libremesh.org, but it just says "building firmware" and spins forever.

Yes, I have noticed too, that my DIR-615 Rev.D3 wasn't storing any configuration after the update. I just reverted back to chaos calmer 15.05.1. I tried using the imagebuilder to remove some stuff (ipv6, LUCI) but the profile isn't there for 18.06 and I don't think that router has much left to offer anyways so I didn't bother.

Best advice: convert all your 4MB flash devices into AP like the wiki says, or use them as unmanaged switches.

For 18.06.x you need the ar71xx-tiny imagebuilder, not the normal ar71xx variant (stripped down kernel and other space saving efforts to make it hopefully fit); but 4/32 MB devices are on their last leg (and 15.05.x really is horribly insecure and shouldn't be used anymore).

3 Likes

I didn't even know that there was a stripped down builder. That router on 15.05.1 was used exclusively as a dumb access point after another router without WiFi and were both replaced by a C7 about an year ago. Right now it's in my drawer and I was fiddling last week with my vpn setup/config and got it out as a test subject.
Fun fact: with 15.05.1 I can get openvpn as a client installed (ram), but the throughput is so bad, you are going to toss the router :sweat_smile: Otherwise, I'd use it as a Client-Bridge for my sat receiver which sadly has no WiFi but ethernet.

and

in both cases mean being vulnerable to KRACK (among other known security flaws), particularly the client-bridge.

Running it as VPN appliance would be even worse.