RAM&FLASH Variables?

Hello all

after the upgrade to mt7628-squashfs-sysupgrade.bin, the OpenWRT sees 20 MB of RAM instead of 128MB as well as 4 mb flash instead of 32mb

chipset- mt7628

please advice

tnx

(Moved to the Installing and Using OpenWrt section.)
(Moved to the For Developers section.)

Memory sizes are built into the kernel based on definitions in the dts file in the source code. You need the proper build for your device.

Thank you for reply!

Proper version was http://archive.openwrt.org/barrier_breaker/14.07/ramips/, but there are problem with USB 4G usb dongles support, that was reason of upgrade.

With current version problem with 4G usb dongles was solved, but now we have problems with RAM and Flash sizes...

supplier/manufacturer is a Hi Link

device # RAM128m flash 32M Ethernet Router Module HLK-7628N

Umm, Barrier Breaker isn't a "proper version" for any current use.

https://openwrt.org/toh/start?dataflt[Model*~]=HLK-7628N suggests that your device is not supported by OpenWrt, though it the OEM may have based their firmware on OpenWrt.

Is your device a "clone" of a supported device?

Really don't know.. how i can check if device is a "clone" ?

tnx!

Do you have console access with the current firmware? If so, the boot log (dmesg) would provide some clues.

1 Like

here is!

root@OpenWrt:~# dmesg 
[    0.000000] Linux version 4.14.97 (buildbot@6167ddb9a6c5) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r9272-26fcc93)) #0 Wed Feb 6 05:39:39 2019
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Mediatek MT7628AN evaluation board
[    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, PIPT, no 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 804cd040, node_mem_map 81000040
[    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] random: get_random_bytes called from start_kernel+0x8c/0x47c with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    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=0000393b
[    0.000000] Readback ErrCtl register=0000393b
[    0.000000] Memory: 27060K/32768K available (3850K kernel code, 177K rwdata, 892K rodata, 192K init, 206K bss, 5708K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015381] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087590] pid_max: default: 32768 minimum: 301
[    0.096945] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.109907] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.129379] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.148755] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.160857] pinctrl core: initialized pinctrl subsystem
[    0.172413] NET: Registered protocol family 16
[    0.206371] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.217601] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.228749] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.244726] clocksource: Switched to clocksource MIPS
[    0.255854] NET: Registered protocol family 2
[    0.265409] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.279117] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.291629] TCP: Hash tables configured (established 1024 bind 1024)
[    0.304327] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.315790] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.328386] NET: Registered protocol family 1
[    0.336921] PCI: CLS 0 bytes, default 32
[    0.340379] Crashlog allocated RAM at address 0x1f00000
[    0.352308] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[    0.370854] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.382299] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.412517] io scheduler noop registered
[    0.420192] io scheduler deadline registered (default)
[    0.431171] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.446636] console [ttyS0] disabled
[    0.453604] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.471536] console [ttyS0] enabled
[    0.485222] bootconsole [early0] disabled
[    0.501648] cacheinfo: Failed to find cpu0 device node
[    0.511857] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.524664] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.553531] m25p80 spi0.0: w25q256 (32768 Kbytes)
[    0.562936] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.575523] Creating 4 MTD partitions on "spi0.0":
[    0.585023] 0x000000000000-0x000000030000 : "u-boot"
[    0.595814] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.607258] 0x000000040000-0x000000050000 : "factory"
[    0.618193] 0x000000050000-0x000000800000 : "firmware"
[    0.632280] 2 uimage-fw partitions found on MTD device firmware
[    0.644072] Creating 2 MTD partitions on "firmware":
[    0.653929] 0x000000000000-0x0000001932fb : "kernel"
[    0.664693] 0x0000001932fb-0x0000007b0000 : "rootfs"
[    0.675410] mtd: device 5 (rootfs) set to be root filesystem
[    0.688284] 1 squashfs-split partitions found on MTD device rootfs
[    0.700597] 0x000000400000-0x0000007b0000 : "rootfs_data"
[    0.712921] libphy: Fixed MDIO Bus: probed
[    0.732032] rt3050-esw 10110000.esw: link changed 0x00
[    0.743095] mtk_soc_eth 10100000.ethernet: generated random MAC address f2:29:12:ac:85:85
[    0.760068] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.778274] NET: Registered protocol family 10
[    0.791340] Segment Routing with IPv6
[    0.798775] NET: Registered protocol family 17
[    0.807638] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.833311] 8021q: 802.1Q VLAN Support v1.8
[    0.853386] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.868478] Freeing unused kernel memory: 192K
[    0.877303] This architecture does not have kernel memory protection.
[    2.287856] init: Console is alive
[    2.294918] init: - watchdog -
[    2.570229] random: fast init done
[    3.947993] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.172019] usbcore: registered new interface driver usbfs
[    4.183061] usbcore: registered new interface driver hub
[    4.193719] usbcore: registered new device driver usb
[    4.209649] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.224406] ehci-platform: EHCI generic platform driver
[    4.245126] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    4.258406] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    4.268772] ehci-platform 101c0000.ehci: EHCI Host Controller
[    4.280189] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    4.296009] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    4.334743] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    4.348185] hub 1-0:1.0: USB hub found
[    4.356084] hub 1-0:1.0: 1 port detected
[    4.367500] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.381555] ohci-platform: OHCI generic platform driver
[    4.392239] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    4.405755] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    4.421568] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    4.499707] hub 2-0:1.0: USB hub found
[    4.507655] hub 2-0:1.0: 1 port detected
[    4.518809] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.543674] init: - preinit -
[    5.783126] rt3050-esw 10110000.esw: link changed 0x00
[    9.240018] jffs2: notice: (370) jffs2_build_xattr_subsystem: complete building xattr subsystem, 7 of xdatum (2 unchecked, 5 orphan) and 20 of xref (5 dead, 0 orphan) found.
[    9.274159] mount_root: switching to jffs2 overlay
[    9.317566] overlayfs: upper fs does not support tmpfile.
[    9.336913] urandom-seed: Seeding with /etc/urandom.seed
[    9.481296] procd: - early -
[    9.487203] procd: - watchdog -
[   10.242518] procd: - watchdog -
[   10.249111] procd: - ubus -
[   10.604933] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.770435] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.783629] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.797285] procd: - init -
[   11.094531] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.113014] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.139266] usbcore: registered new interface driver cdc_wdm
[   11.152784] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0
[   11.167680] Backport generated by backports.git v4.19.7-1-0-g148b072d
[   11.184692] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.205741] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   11.278276] usbcore: registered new interface driver usbserial
[   11.290002] usbcore: registered new interface driver usbserial_generic
[   11.303042] usbserial: USB Serial support registered for generic
[   11.339558] xt_time: kernel timezone is -0000
[   11.350792] usbcore: registered new interface driver cdc_ether
[   11.366266] usbcore: registered new interface driver cdc_ncm
[   11.449373] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   12.486912] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   12.498708] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   12.524729] mt76_wmac 10300000.wmac: firmware init done
[   12.698489] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   12.720948] PPP generic driver version 2.4.2
[   12.739409] NET: Registered protocol family 24
[   12.839188] usbcore: registered new interface driver qmi_wwan
[   12.853693] usbcore: registered new interface driver rndis_host
[   12.870883] usbcore: registered new interface driver cdc_mbim
[   12.887330] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.715029] urandom_read: 5 callbacks suppressed
[   13.715039] random: jshn: uninitialized urandom read (4 bytes read)
[   13.750849] random: ubusd: uninitialized urandom read (4 bytes read)
[   23.862294] device eth0 entered promiscuous mode
[   23.881510] br-lan: port 1(eth0.1) entered blocking state
[   23.892463] br-lan: port 1(eth0.1) entered disabled state
[   23.903562] device eth0.1 entered promiscuous mode
[   23.972962] br-lan: port 1(eth0.1) entered blocking state
[   23.983731] br-lan: port 1(eth0.1) entered forwarding state
[   23.995021] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   24.865287] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   26.390364] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   29.557664] wlan0: authenticate with c8:3a:35:42:2d:d8
[   29.573211] wlan0: send auth to c8:3a:35:42:2d:d8 (try 1/3)
[   29.585874] wlan0: authenticated
[   29.594957] wlan0: associate with c8:3a:35:42:2d:d8 (try 1/3)
[   29.611636] wlan0: RX AssocResp from c8:3a:35:42:2d:d8 (capab=0x411 status=0 aid=3)
[   29.627086] wlan0: associated
[   29.661920] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  116.703643] random: crng init done