RAM size for UniElec U7623-06 with 21.02.01

How can I check how many RAM is active on my router? free gives me this:

root@Router_VPN:~# free
              total        used        free      shared  buff/cache   available
Mem:         253720       33664      207504         372       12552      190728
Swap:             0           0           0

So I think I just use 256MB of the RAM? Should be 512MB, right?

I use the 21.02.1 OpenWrt (Full Image, not the legacy)

:confused: You showed us already.

You don't mention the device...also you don't explain why you believe the device has 512 - instead of 256 MBs of RAM.

Perhaps...you could clearly explain why you asked how much memory you have...proceeded to show us the memory...then told us you have 512 MB or RAM???

Is there some issue???

???

Does this mean x68_64???

(Please provide more information.)

EDIT (didn't see the model in the title): Yes, the data page says 512.

ok, good to know that I found out that i have not enough Memory activated. I know this router comes with a Vendors OpenWRT 14.07 what also dosen't give you the full 512MB RAM. But i also thought, flashing the full Image should fix this problem like explaned in the wiki:

Which full image exactly have you flashed?

  1. https://downloads.openwrt.org/releases/21.02.1/targets/mediatek/mt7623/openwrt-21.02.1-mediatek-mt7623-unielec_u7623-02-emmc-512m-legacy-squashfs-sysupgrade-emmc.bin.gz
  2. https://downloads.openwrt.org/releases/21.02.1/targets/mediatek/mt7623/openwrt-21.02.1-mediatek-mt7623-unielec_u7623-emmc-squashfs-img.gz

From the wiki:

https://downloads.openwrt.org/releases/21.02.1/targets/mediatek/mt7623/openwrt-21.02.1-mediatek-mt7623-unielec_u7623-emmc-squashfs-img.gz

If it's important; I flashed it with SP Flash Tool like explained in the wiki under debricking.

@dwmw2 has written the instructions in the wiki, maybe he can help?

Can you show the serial logs as it boots? In particular the bit where the preloader says...

[Dram_Buffer] dram size:1073741824 

And U-Boot says...

U-Boot 2021.10 (Jan 10 2022 - 13:45:41 +0000)

CPU:   MediaTek MT7623 E3
DRAM:  1 GiB

... and then Linux says:

[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x00000000afffffff]
[    0.000000]   HighMem  [mem 0x00000000b0000000-0x00000000bfffffff]

Just to make sure: I need to connect to the serial port during booting? Or is ther any log file i can read through ssh?

Well, we could start with the kernel messages from dmesg and the contents of the memory nodes from /proc/device-tree, but I suspect they won't tell us anything that we don't already know; that by the time the kernel boots, it is only aware of 256KiB of RAM.

The preloader actually does the detection, and passes that information to U-Boot, which then puts it in the DT for the kernel when it boots.

1 Like

Got it connected to the serial:

[MEM] complex R/W mem test pass
0:dram_rank_size:40000000
[Dram_Buffer] dram size:1073741824
[Dram_Buffer] structure size: 1725560
[Dram_Buffer] MAX_TEE_DRAM_SIZE: 0
[PLFM] Init Boot Device: OK(0)
CPU:   MediaTek MT7623 E3
DRAM:  1 GiB
WDT:   Started with servicing (60s timeout)
MMC:   mmc@11230000: 0
Loading Environment from FAT... OK
In:    serial
Out:   serial
Err:   serial

and linux say with dmesg

[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 262144
[    0.000000]   Normal zone: 1728 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15

I don't see any "Zone ranges:" in serial Log or Dmesg

OK, so you have 1GiB of RAM and Linux knows that (262144 * 4KiB pages).

So why isn't Linux using them all? Do you have a mem= argument on the command line? Can you show the rest of the dmesg too?

    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.154 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16325-88151b8303)) #0 SMP PREEMPT Sun Oct 24 09:01:35 2021
[    0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: UniElec U7623-02 eMMC (512M RAM)
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 262144
[    0.000000]   Normal zone: 1728 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:63
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15
[    0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440
[    0.000000] pcpu-alloc: s30348 r8192 d22900 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260416
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p3 rootfstype=squashfs,ext4 rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1027496K/1048576K available (7168K kernel code, 223K rwdata, 1008K rodata, 1024K init, 241K bss, 21080K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from 0xc0a00bc4 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000005] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000016] Switching to timer-based delay loop, resolution 76ns
[    0.000180] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000195] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000476] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000493] pid_max: default: 32768 minimum: 301
[    0.000666] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.000683] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001489] CPU: Testing write buffer coherency: ok
[    0.002440] Setting up static identity map for 0x80100000 - 0x80100060
[    0.002582] rcu: Hierarchical SRCU implementation.
[    0.002989] smp: Bringing up secondary CPUs ...
[    0.004886] smp: Brought up 1 node, 4 CPUs
[    0.004903] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.004910] CPU: All CPU(s) started in SVC mode.
[    0.011240] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.011603] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011627] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.011804] pinctrl core: initialized pinctrl subsystem
[    0.012741] NET: Registered protocol family 16
[    0.012997] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.013893] No ATAGs?
[    0.092491] usbcore: registered new interface driver usbfs
[    0.092554] usbcore: registered new interface driver hub
[    0.092609] usbcore: registered new device driver usb
[    0.093219] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.094200] clocksource: Switched to clocksource arch_sys_counter
[    0.095018] thermal_sys: Registered thermal governor 'step_wise'
[    0.095460] NET: Registered protocol family 2
[    0.095628] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.096695] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.096731] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.096802] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.096914] TCP: Hash tables configured (established 8192 bind 8192)
[    0.097035] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.097086] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.097336] NET: Registered protocol family 1
[    0.097373] PCI: CLS 0 bytes, default 64
[    0.098588] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.104151] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.104165] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.141065] bounce: pool size: 64 pages
[    0.141126] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.156947] mtk-scpsys 10006000.scpsys: Failed to power on domain mfg
[    1.156965] ------------[ cut here ]------------
[    1.156978] WARNING: CPU: 0 PID: 1 at drivers/soc/mediatek/mtk-scpsys.c:457 0xc04a2d28
[    1.156984] Modules linked in:
[    1.156999] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.154 #0
[    1.157005] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    1.157023] Function entered at [<c010e9bc>] from [<c010b040>]
[    1.157031] Function entered at [<c010b040>] from [<c074a088>]
[    1.157039] Function entered at [<c074a088>] from [<c011c708>]
[    1.157047] Function entered at [<c011c708>] from [<c011c774>]
[    1.157055] Function entered at [<c011c774>] from [<c04a2d28>]
[    1.157063] Function entered at [<c04a2d28>] from [<c04d34ac>]
[    1.157072] Function entered at [<c04d34ac>] from [<c04d17b0>]
[    1.157079] Function entered at [<c04d17b0>] from [<c04d1a98>]
[    1.157086] Function entered at [<c04d1a98>] from [<c04d1d40>]
[    1.157093] Function entered at [<c04d1d40>] from [<c04d1da0>]
[    1.157100] Function entered at [<c04d1da0>] from [<c04cfc38>]
[    1.157108] Function entered at [<c04cfc38>] from [<c04d0bbc>]
[    1.157115] Function entered at [<c04d0bbc>] from [<c04d25a4>]
[    1.157122] Function entered at [<c04d25a4>] from [<c0102720>]
[    1.157130] Function entered at [<c0102720>] from [<c0a00f3c>]
[    1.157138] Function entered at [<c0a00f3c>] from [<c075ff08>]
[    1.157146] Function entered at [<c075ff08>] from [<c01010e8>]
[    1.157154] Exception stack(0xef071fb0 to 0xef071ff8)
[    1.157164] 1fa0:                                     00000000 00000000 00000000 00000000
[    1.157175] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.157185] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.157200] ---[ end trace 27f6ce98712476e8 ]---
[    1.157777] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.160145] printk: console [ttyS0] disabled
[    1.180404] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 198, base_baud = 1625000) is a ST16650V2
[    1.801037] printk: console [ttyS0] enabled
[    1.805907] mtk_rng 1020f000.rng: registered RNG driver
[    1.806052] random: fast init done
[    1.814782] random: crng init done
[    1.815706] loop: module loaded
[    1.822259] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    1.837769] libphy: Fixed MDIO Bus: probed
[    1.865055] libphy: mdio: probed
[    1.868417] mt7530 mdio-bus:00: MT7530 adapts as multi-chip module
[    1.875041] mtk_soc_eth 1b100000.ethernet: generated random MAC address e2:71:0a:10:75:53
[    1.883668] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xf08e0000, irq 204
[    1.893375] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    1.898720] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 1
[    1.909232] xhci-mtk 1a1c0000.usb: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000290010
[    1.918438] xhci-mtk 1a1c0000.usb: irq 202, io mem 0x1a1c0000
[    1.924382] xhci-mtk 1a1c0000.usb: xHCI Host Controller
[    1.929617] xhci-mtk 1a1c0000.usb: new USB bus registered, assigned bus number 2
[    1.937046] xhci-mtk 1a1c0000.usb: Host supports USB 3.0 SuperSpeed
[    1.943935] hub 1-0:1.0: USB hub found
[    1.947763] hub 1-0:1.0: 1 port detected
[    1.952115] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.960728] hub 2-0:1.0: USB hub found
[    1.964535] hub 2-0:1.0: 1 port detected
[    1.969085] i2c /dev entries driver
[    1.973117] mtk-thermal 1100b000.thermal: Device not calibrated, using default calibration values
[    1.983052] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.991318] cpu cpu0: dummy supplies not allowed for exclusive requests
[    1.999877] sdhci: Secure Digital Host Controller Interface driver
[    2.006114] sdhci: Copyright(c) Pierre Ossman
[    2.012119] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 111 (MSDC0_DAT7) as part of deactivating group MSDC0_DAT7 - it is already used for some other setting
[    2.027444] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 112 (MSDC0_DAT6) as part of deactivating group MSDC0_DAT6 - it is already used for some other setting
[    2.042744] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 113 (MSDC0_DAT5) as part of deactivating group MSDC0_DAT5 - it is already used for some other setting
[    2.058042] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 114 (MSDC0_DAT4) as part of deactivating group MSDC0_DAT4 - it is already used for some other setting
[    2.073336] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 118 (MSDC0_DAT3) as part of deactivating group MSDC0_DAT3 - it is already used for some other setting
[    2.088676] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 119 (MSDC0_DAT2) as part of deactivating group MSDC0_DAT2 - it is already used for some other setting
[    2.103990] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 120 (MSDC0_DAT1) as part of deactivating group MSDC0_DAT1 - it is already used for some other setting
[    2.119291] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 121 (MSDC0_DAT0) as part of deactivating group MSDC0_DAT0 - it is already used for some other setting
[    2.134721] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 116 (MSDC0_CMD) as part of deactivating group MSDC0_CMD - it is already used for some other setting
[    2.149852] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 117 (MSDC0_CLK) as part of deactivating group MSDC0_CLK - it is already used for some other setting
[    2.164976] mediatek-mt2701-pinctrl 1000b000.pinctrl: not freeing pin 115 (MSDC0_RSTB) as part of deactivating group MSDC0_RSTB - it is already used for some other setting
[    2.205823] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.214369] NET: Registered protocol family 10
[    2.219827] Segment Routing with IPv6
[    2.223598] NET: Registered protocol family 17
[    2.228299] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.241530] 8021q: 802.1Q VLAN Support v1.8
[    2.245942] ThumbEE CPU extension supported.
[    2.250351] Registering SWP/SWPB emulation handler
[    2.280993] mtk-pcie 1a140000.pcie: host bridge /pcie@1a140000 ranges:
[    2.287620] mtk-pcie 1a140000.pcie:    IO 0x1a160000..0x1a16ffff -> 0x1a160000
[    2.294920] mtk-pcie 1a140000.pcie:   MEM 0x60000000..0x6fffffff -> 0x60000000
[    2.333183] mtk-pcie 1a140000.pcie: PCI host bridge to bus 0000:00
[    2.339534] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.345064] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    2.354584] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.361609] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400
[    2.367703] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    2.374070] pci 0000:00:01.0: supports D1
[    2.379428] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    2.386221] mmc0: new high speed MMC card at address 0001
[    2.392184] pci 0000:00:02.0: [14c3:0801] type 01 class 0x060400
[    2.398256] pci 0000:00:02.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    2.404559] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    2.411748] mmcblk0: mmc0:0001 008G70 7.28 GiB
[    2.416935] mmcblk0boot0: mmc0:0001 008G70 partition 1 4.00 MiB
[    2.423440] mmcblk0boot1: mmc0:0001 008G70 partition 2 4.00 MiB
[    2.429538] pci 0000:00:02.0: supports D1
[    2.433764] mmcblk0rpmb: mmc0:0001 008G70 partition 3 4.00 MiB, chardev (249:0)
[    2.441541] pci 0000:00:02.0: PME# supported from D0 D1 D3hot
[    2.449187] PCI: bus0: Fast back to back transfers disabled
[    2.454856]  mmcblk0: p1 p2 p3
[    2.459054] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.467114] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.475294] pci 0000:01:00.0: [14c3:7612] type 00 class 0x028000
[    2.481345] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    2.488202] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    2.495020] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    2.502839] PCI: bus1: Fast back to back transfers disabled
[    2.508535] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.515347] pci 0000:02:00.0: [14c3:7603] type 00 class 0x028000
[    2.521387] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    2.527823] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    2.535636] PCI: bus2: Fast back to back transfers disabled
[    2.541209] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.547868] pci 0000:00:01.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.554663] pci 0000:00:01.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.561878] pci 0000:00:02.0: BAR 8: assigned [mem 0x60200000-0x602fffff]
[    2.568671] pci 0000:00:01.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.575529] pci 0000:00:02.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.582349] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit]
[    2.589689] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.596919] pci 0000:00:01.0: PCI bridge to [bus 01]
[    2.601880] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.608711] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.616025] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff]
[    2.622848] pci 0000:00:02.0: PCI bridge to [bus 02]
[    2.627887] pci 0000:00:02.0:   bridge window [mem 0x60200000-0x602fffff]
[    2.634938] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    2.641309] pcieport 0000:00:01.0: PME: Signaling with IRQ 214
[    2.649010] pcieport 0000:00:01.0: AER: enabled with IRQ 214
[    2.655369] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    2.662600] pcieport 0000:00:02.0: PME: Signaling with IRQ 215
[    2.668748] pcieport 0000:00:02.0: AER: enabled with IRQ 215
[    2.674776] mt7530 mdio-bus:00: MT7530 adapts as multi-chip module
[    2.689739] libphy: dsa slave smi: probed
[    2.694016] mt7530 mdio-bus:00 lan0 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    2.703075] mt7530 mdio-bus:00 lan1 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    2.712080] mt7530 mdio-bus:00 lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    2.721056] mt7530 mdio-bus:00 lan3 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    2.730054] mt7530 mdio-bus:00 wan (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    2.739146] mt7530 mdio-bus:00: configuring for fixed/trgmii link mode
[    2.749750] mt7530 mdio-bus:00: Link is Up - 1Gbps/Full - flow control off
[    2.756740] DSA: tree 0 setup
[    2.760375] hctosys: unable to open rtc device (rtc0)
[    2.769053] VFS: Mounted root (squashfs filesystem) readonly on device 179:3.
[    2.777110] Freeing unused kernel memory: 1024K
[    2.824325] Run /sbin/init as init process
[    3.007824] init: Console is alive
[    3.011996] init: - watchdog -
[    3.213581] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.267143] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.276350] SCSI subsystem initialized
[    3.283035] libata version 3.00 loaded.
[    3.286726] ehci-fsl: Freescale EHCI Host controller driver
[    3.292956] ehci-platform: EHCI generic platform driver
[    3.303668] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.310427] ohci-platform: OHCI generic platform driver
[    3.317253] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.333385] init: - preinit -
[    3.654570] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/trgmii link mode
[    3.662635] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    4.020069] device eth0 entered promiscuous mode
[    4.025302] mt7530 mdio-bus:00 lan1: configuring for phy/gmii link mode
[    4.032519] 8021q: adding VLAN 0 to HW filter on device lan1
[    8.522993] F2FS-fs (loop0): Mounted with checkpoint version = 351ed708
[    8.532850] mount_root: switching to f2fs overlay
[    8.582603] insmod: module is already loaded - nls_cp437
[    8.590746] insmod: module is already loaded - nls_iso8859-1
[    8.599228] insmod: module is already loaded - fat
[    8.606829] insmod: module is already loaded - vfat
[    8.632315] urandom-seed: Seeding with /etc/urandom.seed
[    8.665079] device eth0 left promiscuous mode
[    8.682115] procd: - early -
[    8.685249] procd: - watchdog -
[    9.215181] procd: - watchdog -
[    9.220756] procd: - ubus -
[    9.277453] procd: - init -
[    9.565400] urngd: v1.0.2 started.
[    9.667698] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.682839] usbcore: registered new interface driver cdc_wdm
[    9.689001] Loading modules backported from Linux version v5.10.68-0-g4d8524048a35
[    9.696642] Backport generated by backports.git v5.10.68-1-0-ga4f9ba32
[    9.712346] xt_time: kernel timezone is -0000
[    9.717741] usbcore: registered new interface driver cdc_ncm
[    9.746743] mt7603e 0000:02:00.0: enabling device (0140 -> 0142)
[    9.752861] mt7603e 0000:02:00.0: ASIC revision: 76030010
[   10.777133] mt7603e 0000:02:00.0: Firmware Version: ap_pcie
[   10.782710] mt7603e 0000:02:00.0: Build Time: 20160107100755
[   10.809847] mt7603e 0000:02:00.0: firmware init done
[   10.996475] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.002441] mt76x2e 0000:01:00.0: enabling device (0140 -> 0142)
[   11.008742] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[   11.667498] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[   11.676917] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[   11.682405] mt76x2e 0000:01:00.0: Build: 1
[   11.686537] mt76x2e 0000:01:00.0: Build Time: 201507311614____
[   11.715804] mt76x2e 0000:01:00.0: Firmware running!
[   11.721323] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   11.731709] PPP generic driver version 2.4.2
[   11.736846] NET: Registered protocol family 24
[   11.743554] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
[   11.749785] qmi_wwan 1-1:1.4 wwan0: register 'qmi_wwan' at usb-1a1c0000.usb-1, WWAN/QMI device, 82:a4:35:a1:9a:4d
[   11.764302] usbcore: registered new interface driver qmi_wwan
[   11.774727] usbcore: registered new interface driver cdc_mbim
[   11.782970] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.586560] mtk_soc_eth 1b100000.ethernet eth0: Link is Down
[   14.601155] mtk_soc_eth 1b100000.ethernet eth0: configuring for fixed/trgmii link mode
[   14.609732] mtk_soc_eth 1b100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   14.611504] device eth0 entered promiscuous mode
[   14.623383] mt7530 mdio-bus:00 lan0: configuring for phy/gmii link mode
[   14.630559] 8021q: adding VLAN 0 to HW filter on device lan0
[   14.638989] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   14.645888] br-lan: port 1(lan0) entered blocking state
[   14.651136] br-lan: port 1(lan0) entered disabled state
[   14.657030] device lan0 entered promiscuous mode
[   14.697014] mt7530 mdio-bus:00 lan1: configuring for phy/gmii link mode
[   14.704350] 8021q: adding VLAN 0 to HW filter on device lan1
[   14.712867] br-lan: port 2(lan1) entered blocking state
[   14.718536] br-lan: port 2(lan1) entered disabled state
[   14.725218] device lan1 entered promiscuous mode
[   14.743656] mt7530 mdio-bus:00 lan2: configuring for phy/gmii link mode
[   14.750830] 8021q: adding VLAN 0 to HW filter on device lan2
[   14.759074] br-lan: port 3(lan2) entered blocking state
[   14.764410] br-lan: port 3(lan2) entered disabled state
[   14.771151] device lan2 entered promiscuous mode
[   14.788465] mt7530 mdio-bus:00 lan3: configuring for phy/gmii link mode
[   14.796270] 8021q: adding VLAN 0 to HW filter on device lan3
[   14.804569] br-lan: port 4(lan3) entered blocking state
[   14.809884] br-lan: port 4(lan3) entered disabled state
[   14.816303] device lan3 entered promiscuous mode
[   14.836079] mt7530 mdio-bus:00 wan: configuring for phy/gmii link mode
[   14.842982] 8021q: adding VLAN 0 to HW filter on device wan
[   15.948134] br-lan: port 5(wlan0) entered blocking state
[   15.953530] br-lan: port 5(wlan0) entered disabled state
[   15.959655] device wlan0 entered promiscuous mode
[   15.965826] br-lan: port 5(wlan0) entered blocking state
[   15.971165] br-lan: port 5(wlan0) entered forwarding state
[   15.977179] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   15.984877] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan.1: link becomes ready
[   15.992862] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan.2: link becomes ready
[   16.002262] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan.3: link becomes ready
[   16.057231] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   16.068667] br-lan: port 6(wlan0-1) entered blocking state
[   16.074189] br-lan: port 6(wlan0-1) entered disabled state
[   16.080195] device wlan0-1 entered promiscuous mode
[   16.086103] br-lan: port 6(wlan0-1) entered blocking state
[   16.091624] br-lan: port 6(wlan0-1) entered forwarding state
[   16.133630] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
[   16.482911] br-lan: port 7(wlan1) entered blocking state
[   16.489242] br-lan: port 7(wlan1) entered disabled state
[   16.495196] device wlan1 entered promiscuous mode
[   16.500111] br-lan: port 7(wlan1) entered blocking state
[   16.505474] br-lan: port 7(wlan1) entered forwarding state
[   16.516006] br-lan: port 8(wlan0-2) entered blocking state
[   16.521735] br-lan: port 8(wlan0-2) entered disabled state
[   16.527921] device wlan0-2 entered promiscuous mode
[   16.533631] br-lan: port 8(wlan0-2) entered blocking state
[   16.539282] br-lan: port 8(wlan0-2) entered forwarding state
[   16.582763] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0-2: link becomes ready
[   16.604375] br-lan: port 7(wlan1) entered disabled state
[   17.464557] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   17.471115] br-lan: port 7(wlan1) entered blocking state
[   17.476484] br-lan: port 7(wlan1) entered forwarding state
[   17.487150] br-lan: port 9(wlan1-1) entered blocking state
[   17.492837] br-lan: port 9(wlan1-1) entered disabled state
[   17.499123] device wlan1-1 entered promiscuous mode
[   17.505069] br-lan: port 9(wlan1-1) entered blocking state
[   17.510605] br-lan: port 9(wlan1-1) entered forwarding state
[   17.550124] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-1: link becomes ready
[   17.561614] br-lan: port 10(wlan1-2) entered blocking state
[   17.567605] br-lan: port 10(wlan1-2) entered disabled state
[   17.573875] device wlan1-2 entered promiscuous mode
[   17.580169] br-lan: port 10(wlan1-2) entered blocking state
[   17.585826] br-lan: port 10(wlan1-2) entered forwarding state
[   17.614414] br-lan: port 10(wlan1-2) entered disabled state
[   17.631770] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1-2: link becomes ready
[   17.638756] br-lan: port 10(wlan1-2) entered blocking state
[   17.644400] br-lan: port 10(wlan1-2) entered forwarding state
[   17.754660] mt7530 mdio-bus:00 lan0: Link is Up - 1Gbps/Full - flow control rx/tx
[   17.762210] br-lan: port 1(lan0) entered blocking state
[   17.767463] br-lan: port 1(lan0) entered forwarding state
[   33.113605] vusb: disabling
[   33.116551] vmc: disabling
[   33.119318] vmch: disabling
[   33.122155] vgp1: disabling
[   33.125224] vcamaf: disabling

Hm, that kernel definitely thinks it has 1GiB of RAM. Can you run free again?

1 Like
root@Router_LTE:~# free
              total        used        free      shared  buff/cache   available
Mem:        1028520       35428      953144          84       39948      937252
Swap:             0           0           0
root@Router_LTE:~#

Now i'm totaly confused... Why it changed from one minute to another??? The dmesg I sent you in the last post, I did't two minutes later than the free in my first post...

but anyway I'm more confused about the value "1GiB". Is it the same like 512MB???

WOW... I found my mistake... littel bit awkward for me...

I have two diffent routers in my Network... One (Xiaomi Mi Router 3G) only have 256Mb of RAM... I'm just made a typo in the IP-Adress by Signing in with putty...

Sorry for that and Thanks for spending your time for my stupidity.

Ummmm no, 1 GiB is 1 GiB and 512 MB is 512 MB...

Glad you sorted it out.

No, 1GiB is twice as much as 512MiB.

Remember, 'b' means bits, 'B' means bytes.
Until the 1990s there were only the SI decimal prefixes including 'k' which means 1000, 'M' for 1000000, 'G' for 1000000000 etc., and 'm' for 1/1000 (one thousandth).
In 1998 the IEC standardised the binary prefixes including 'Ki' for 1024 (2¹⁰), 'Mi' for 1048576 (2²⁰), Gi for 1073741824 (2³⁰) etc.

So...

1b is one bit, an eighth of a byte.
1B is 8 bits, one byte.
1kb is 1000 bits, 250 bytes.
1Kib is 1024 bits, 256 bytes.
1kB is 8000 bits, 1000 bytes.
1KiB is 8192 bits, 1024 bytes.
512MB is 512000000 bytes.
512MiB is 536870912 bytes, precisely half of one GiB.
512mb is 512 millibits, so a little over half a bit.
1Gib is 1073741824 bits, 134217728 bytes or 128KiB.
1GiB is 1073741824 bytes.

Your board, like mine, has 1GiB of memory rather than the 512KiB of memory that the documentation suggests.

1 Like

Thank you again for the detailed clarification. I hope this also helps other person to understand there System.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.