Kedves Fórumozók!
Két-három éve vettem egy WNDR3700v4-et, amire OpenWRT-t tettem.
Ennek a modellnek annyi a különlegessége, hogy NAND flash-sel szerelték, mégpedig 128 MB-nyival.
Mostanság buildeltem magamnak egy 18.06.1, amire fel is upgrade-eltem, de egy probléma megmaradt (3 évvel ezelőttről): az írható overlay továbbra is kb. 14 MB.
root@OpenWrt:/# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 5.3M 5.3M 0 100% /rom
tmpfs 61.0M 664.0K 60.3M 1% /tmp
/dev/ubi0_1 11.2M 300.0K 10.3M 3% /overlay
overlayfs:/overlay 11.2M 300.0K 10.3M 3% /
tmpfs 512.0K 0 512.0K 0% /dev
A dmesg pedig így néz ki:
root@bielefeld:~# dmesg
[ 0.000000] Linux version 4.9.120 (janos@debian-build.lan) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7188-b0b5c64c22) ) #0 Thu Aug 16 07:51:15 2018
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] SoC: Atheros AR9344 rev 2
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 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-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 804aa964, node_mem_map 81000020
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 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: 32512
[ 0.000000] Kernel command line: board=WNDR3700_V4 console=ttyS0,115200 mtdparts=ar934x-nfc:256k(u-boot)ro,256k(u-boot-env)ro,256k(caldata)ro,512k(pot),2048k(language),512k(config),3072k(traffic_meter),2048k(kernel),23552k(ubi),25600k@0x6c0000(firmware),256k(caldata_backup),-(reserved) rootfstype=squashfs noinitrd
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 124684K/131072K available (3439K kernel code, 148K rwdata, 808K rodata, 204K init, 211K bss, 6388K 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:560.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[ 0.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[ 0.008319] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[ 0.081148] pid_max: default: 32768 minimum: 301
[ 0.086173] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.093220] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.103590] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.114092] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.121166] NET: Registered protocol family 16
[ 0.127411] MIPS: machine is NETGEAR WNDR3700v4
[ 0.132485] ar71xx: using random MAC address for eth0
[ 0.370546] registering PCI controller with io_map_base unset
[ 0.391473] PCI host bridge to bus 0000:00
[ 0.395844] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.403209] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.409140] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.416377] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.424836] pci 0000:00:00.0: [168c:0033] type 00 class 0x028000
[ 0.424847] pci 0000:00:00.0: invalid calibration data
[ 0.430356] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[ 0.430411] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.430486] pci 0000:00:00.0: supports D1
[ 0.430497] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.430727] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.430755] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.438551] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.446274] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.452276] clocksource: Switched to clocksource MIPS
[ 0.458815] NET: Registered protocol family 2
[ 0.464327] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.471755] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.478578] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.485445] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.491672] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.498638] NET: Registered protocol family 1
[ 0.503367] PCI: CLS 0 bytes, default 32
[ 0.508091] Crashlog allocated RAM at address 0x3f00000
[ 0.514807] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.528951] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.535205] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.555497] io scheduler noop registered
[ 0.559671] io scheduler deadline registered (default)
[ 0.565586] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.572822] console [ttyS0] disabled
[ 0.596707] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.605908] console [ttyS0] enabled
[ 0.613336] bootconsole [early0] disabled
[ 0.625413] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xf1
[ 0.631866] nand: Micron NAND 128MiB 3,3V 8-bit
[ 0.636503] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.644230] Scanning device for bad blocks
[ 0.652176] random: fast init done
[ 0.734393] 12 cmdlinepart partitions found on MTD device ar934x-nfc
[ 0.740834] Creating 12 MTD partitions on "ar934x-nfc":
[ 0.746168] 0x000000000000-0x000000040000 : "u-boot"
[ 0.753256] 0x000000040000-0x000000080000 : "u-boot-env"
[ 0.760769] 0x000000080000-0x0000000c0000 : "caldata"
[ 0.768028] 0x0000000c0000-0x000000140000 : "pot"
[ 0.774938] 0x000000140000-0x000000340000 : "language"
[ 0.782238] 0x000000340000-0x0000003c0000 : "config"
[ 0.789434] 0x0000003c0000-0x0000006c0000 : "traffic_meter"
[ 0.797247] 0x0000006c0000-0x0000008c0000 : "kernel"
[ 0.804428] 0x0000008c0000-0x000001fc0000 : "ubi"
[ 0.811413] 0x0000006c0000-0x000001fc0000 : "firmware"
[ 1.173605] 0x000001fc0000-0x000002000000 : "caldata_backup"
[ 1.181274] 0x000002000000-0x000008000000 : "reserved"
[ 1.189937] libphy: Fixed MDIO Bus: probed
[ 1.198848] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[ 1.864275] libphy: ag71xx_mdio: probed
[ 2.493623] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[ 2.505159] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 2.513786] NET: Registered protocol family 10
[ 2.522875] NET: Registered protocol family 17
[ 2.527542] 8021q: 802.1Q VLAN Support v1.8
[ 2.535658] UBI: auto-attach mtd8
[ 2.539059] ubi0: attaching mtd8
[ 2.813077] ubi0: scanning is finished
[ 2.833367] ubi0: attached mtd8 (name "ubi", size 23 MiB)
[ 2.838856] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 2.845880] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 2.852780] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 2.859841] ubi0: good PEBs: 184, bad PEBs: 0, corrupted PEBs: 0
[ 2.865944] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 2.873284] ubi0: max/mean erase counter: 5/3, WL threshold: 4096, image sequence number: 1124120555
[ 2.882558] ubi0: available PEBs: 0, total reserved PEBs: 184, PEBs reserved for bad PEB handling: 20
[ 2.891959] ubi0: background thread "ubi_bgt0d" started, PID 330
[ 2.899917] block ubiblock0_0: created from ubi0:0(rootfs)
[ 2.905552] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[ 2.919144] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 2.927450] Freeing unused kernel memory: 204K
[ 2.931963] This architecture does not have kernel memory protection.
[ 3.620565] init: Console is alive
[ 3.624328] init: - watchdog -
[ 4.921854] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.002105] usbcore: registered new interface driver usbfs
[ 5.007843] usbcore: registered new interface driver hub
[ 5.013359] usbcore: registered new device driver usb
[ 5.024285] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.040542] SCSI subsystem initialized
[ 5.049573] ehci-platform: EHCI generic platform driver
[ 5.055032] ehci-platform ehci-platform: EHCI Host Controller
[ 5.060891] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 5.071029] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 5.102330] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 5.109671] hub 1-0:1.0: USB hub found
[ 5.113867] hub 1-0:1.0: 1 port detected
[ 5.121028] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.128790] ohci-platform: OHCI generic platform driver
[ 5.136816] uhci_hcd: USB Universal Host Controller Interface driver
[ 5.147967] usbcore: registered new interface driver usb-storage
[ 5.154716] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.172559] init: - preinit -
[ 5.932879] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5.967682] random: procd: uninitialized urandom read (4 bytes read)
[ 6.993539] eth0: link up (1000Mbps/Full duplex)
[ 6.998317] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 9.259441] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 415
[ 9.325647] random: crng init done
[ 9.579630] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 9.587631] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 9.597703] UBIFS (ubi0:1): FS size: 13459456 bytes (12 MiB, 106 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
[ 9.608223] UBIFS (ubi0:1): reserved for root: 635722 bytes (620 KiB)
[ 9.614776] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 22FC68F0-B5FC-4E95-93A4-54AF75BB1DDF, small LPT model
[ 9.628420] mount_root: overlay filesystem has not been fully initialized yet
[ 9.636595] mount_root: switching to ubifs overlay
[ 9.781441] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 9.954528] eth0: link down
[ 9.969352] procd: - early -
[ 9.973144] procd: - watchdog -
[ 10.648326] procd: - watchdog -
[ 10.651798] procd: - ubus -
[ 10.743348] procd: - init -
[ 11.073836] kmodloader: loading kernel modules from /etc/modules.d/*
[ 11.087607] zram: Added device: zram0
[ 11.096292] tun: Universal TUN/TAP device driver, 1.6
[ 11.101427] tun: (C) 1999-2004 Max Krasnyansky
[ 11.116724] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 11.138440] usbcore: registered new interface driver cdc_acm
[ 11.144242] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 11.154862] usbcore: registered new interface driver cdc_wdm
[ 11.162704] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 11.170832] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 11.181005] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 11.199352] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 11.265534] usbcore: registered new interface driver usbserial
[ 11.271562] usbcore: registered new interface driver usbserial_generic
[ 11.278367] usbserial: USB Serial support registered for generic
[ 11.294170] wireguard: WireGuard 0.0.20180718 loaded. See www.wireguard.com for information.
[ 11.302790] wireguard: Copyright (C) 2015-2018 Jason A. Donenfeld . All Rights Reserved.
[ 11.330810] xt_time: kernel timezone is -0000
[ 11.337817] usbcore: registered new interface driver cdc_ether
[ 11.347644] usbcore: registered new interface driver cdc_ncm
[ 11.380124] usbcore: registered new interface driver huawei_cdc_ncm
[ 11.469094] PPP generic driver version 2.4.2
[ 11.476255] NET: Registered protocol family 24
[ 11.513732] usbcore: registered new interface driver cdc_mbim
[ 11.522618] usbcore: registered new interface driver option
[ 11.528376] usbserial: USB Serial support registered for GSM modem (1-port)
[ 11.553823] ath9k ar934x_wmac: Direct firmware load for soc_wmac.eeprom failed with error -2
[ 11.562441] ath9k ar934x_wmac: Falling back to user helper
[ 11.728849] ath: EEPROM regdomain: 0x0
[ 11.728858] ath: EEPROM indicates default country code should be used
[ 11.728862] ath: doing EEPROM country->regdmn map search
[ 11.728878] ath: country maps to regdmn code: 0x3a
[ 11.728883] ath: Country alpha2 being used: US
[ 11.728887] ath: Regpair used: 0x3a
[ 11.741324] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 11.745421] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47
[ 11.752389] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 11.759215] ath9k 0000:00:00.0: Direct firmware load for pci_wmac0.eeprom failed with error -2
[ 11.768014] ath9k 0000:00:00.0: Falling back to user helper
[ 12.351928] ath: EEPROM regdomain: 0x0
[ 12.351937] ath: EEPROM indicates default country code should be used
[ 12.351940] ath: doing EEPROM country->regdmn map search
[ 12.351956] ath: country maps to regdmn code: 0x3a
[ 12.351961] ath: Country alpha2 being used: US
[ 12.351965] ath: Regpair used: 0x3a
[ 12.361734] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 12.365846] ieee80211 phy1: Atheros AR9300 Rev:4 mem=0xb0000000, irq=40
[ 12.401468] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 27.038538] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 27.069739] br-lan: port 1(eth0.1) entered blocking state
[ 27.075284] br-lan: port 1(eth0.1) entered disabled state
[ 27.081184] device eth0.1 entered promiscuous mode
[ 27.086103] device eth0 entered promiscuous mode
[ 27.157378] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 27.252512] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[ 28.113822] eth0: link up (1000Mbps/Full duplex)
[ 28.118582] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 28.162416] br-lan: port 1(eth0.1) entered blocking state
[ 28.167908] br-lan: port 1(eth0.1) entered forwarding state
[ 28.173785] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[ 28.232517] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Tehát röviden: a flash végén van egy nagyobb szabad chunk/partíció, amit adott esetben lehetne használni írható overlay-nek, de sajnos a mostanit és a terület végén levőt nem lehet összevonni.
Vagy legalábbis nem tudom, hogyan kellene.
Üdv:
János