Temat: Mikrotik RB450G

Cześć,
zdobyłem z drugiej ręki RB450G, sprawdzony przez kilka dni na router OS, zrzuciłem kopie licencji.
Próba wystartowania: gargoyle-1.13.0.0pre11-ar71xx-mikrotik-vmlinux-initramfs-lzma.elf wywaliła błąd file structure error, poszło na pliku z openwrt.org, wystartowałem i wgrałem:
gargoyle-1.13.0.0pre11-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin
na drugi dzień router przestał przydzielać IP - sprawdzone na dwóch różnych kompach z W7 i Mint. Jak dałem statica to się połączyłem. Gargoyle jest problematyczny, wrzuciłem Luci:
luci-19.07-snapshot-r11379-123d12eada-ar71xx-mikrotik-nand-large-squashfs-sysupgrade.bin
pierwszy start i to samo:

RouterBOOT booter 6.42.1
RouterBoard 450G
CPU frequency: 680 MHz
  Memory size: 256 MiB
    NAND size: 512 MiB
Press any key within 2 seconds to enter setup..
loading kernel... OK
setting up elf image... OK
jumping to kernel code
OpenWrt kernel loader for AR7XXX/AR9XXX
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80060000...
[    0.000000] Linux version 4.14.245 (cezary@eko.one.pl) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11261-3f5fecfd33)) #0 Wed Sep 22 21:23:57 2021
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7161 rev 2
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 10000000 @ 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-0x000000000fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] random: get_random_bytes called from 0x80539740 with crng_init=0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: parts=1 boot_part_size=4194304 gpio=1983 HZ=340000000 mem=256M kmac=D4:CA:6D:7E:32:7E board=450G board=450G ver=6.42.1 hw_opt=00020000 boot=1 mlc=11 console=ttyS0,115200 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 254052K/262144K available (4252K kernel code, 174K rwdata, 528K rodata, 220K init, 213K bss, 8092K 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:680.000MHz, DDR:340.000MHz, AHB:170.000MHz, Ref:40.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5621354254 ns
[    0.000008] sched_clock: 32 bits at 340MHz, resolution 2ns, wraps every 6316128254ns
[    0.007821] Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
[    0.074075] pid_max: default: 32768 minimum: 301
[    0.078891] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085496] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.094752] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.104623] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.111800] NET: Registered protocol family 16
[    0.117691] MIPS: machine is MikroTik RouterBOARD 450G
[    0.607067] rb4xx-spi rb4xx-spi: controller is unqueued, this is deprecated
[    0.618423] clocksource: Switched to clocksource MIPS
[    0.624400] NET: Registered protocol family 2
[    0.629033] IP idents hash table entries: 4096 (order: 3, 32768 bytes)
[    0.636343] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.643380] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.649762] TCP: Hash tables configured (established 2048 bind 2048)
[    0.656249] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.662142] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.668640] NET: Registered protocol family 1
[    0.675750] Crashlog allocated RAM at address 0x3f00000
[    0.682251] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.693367] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.699241] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.718277] io scheduler noop registered
[    0.722254] io scheduler deadline registered (default)
[    0.727746] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.736037] console [ttyS0] disabled
[    0.759702] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 10625000) is a 16550A
[    0.768403] console [ttyS0] enabled
[    0.768403] console [ttyS0] enabled
[    0.775365] bootconsole [early0] disabled
[    0.775365] bootconsole [early0] disabled
[    0.784427] m25p80 spi0.0: pm25lv512 (64 Kbytes)
[    0.794446] Creating 4 MTD partitions on "spi0.0":
[    0.799295] 0x000000000000-0x00000000b000 : "routerboot"
[    0.806217] 0x00000000b000-0x00000000c000 : "hard_config"
[    0.812926] 0x00000000d000-0x00000000f000 : "bios"
[    0.819650] 0x00000000f000-0x000000010000 : "soft_config"
[    0.826454] NAND flash driver for RouterBoard 4xx series version 0.2.0
[    0.833283] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xdc
[    0.839644] nand: Samsung NAND 512MiB 3,3V 8-bit
[    0.844250] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.851834] Scanning device for bad blocks
[    0.958456] Bad eraseblock 328 at 0x000002900000
[    0.982720] Bad eraseblock 392 at 0x000003100000
[    1.023369] Bad eraseblock 509 at 0x000003fa0000
[    1.289476] Bad eraseblock 1355 at 0x00000a960000
[    1.372876] Bad eraseblock 1610 at 0x00000c940000
[    1.712360] Bad eraseblock 2693 at 0x0000150a0000
[    1.988756] Bad eraseblock 3572 at 0x00001be80000
[    2.017110] Bad eraseblock 3649 at 0x00001c820000
[    2.160236] Creating 3 MTD partitions on "NAND 512MiB 3,3V 8-bit":
[    2.166425] 0x000000000000-0x000000040000 : "booter"
[    2.172990] 0x000000040000-0x000000400000 : "kernel"
[    2.179342] 0x000000400000-0x000020000000 : "ubi"
[    2.192790] libphy: Fixed MDIO Bus: probed
[    2.201042] switch0: Atheros AR8316 rev. 1 switch registered on ag71xx-mdio.0
[    2.211462] libphy: ag71xx_mdio: probed
[    2.549780] ar8316: Using port 4 as PHY
[    2.578412] random: fast init done
[    3.650548] ag71xx ag71xx.1: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Atheros AR8216/AR8236/AR8316]
[    3.661712] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: rgmii
[    3.999779] ar8316: Using port 4 as PHY
[    4.007241] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd041, driver=Atheros AR8216/AR8236/AR8316]
[    4.018411] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[    4.030457] MikroTik RouterBOARD hardware configuration sysfs driver v0.03
[    4.038215] NET: Registered protocol family 10
[    4.047453] Segment Routing with IPv6
[    4.051268] NET: Registered protocol family 17
[    4.055752] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.068704] 8021q: 802.1Q VLAN Support v1.8
[    4.076494] UBI: auto-attach mtd6
[    4.079899] ubi0: attaching mtd6
[    7.532252] ubi0: scanning is finished
[    7.599659] ubi0: attached mtd6 (name "ubi", size 508 MiB)
[    7.605147] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    7.612059] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    7.618840] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    7.625787] ubi0: good PEBs: 4056, bad PEBs: 8, corrupted PEBs: 0
[    7.631879] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[    7.639094] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 742060770
[    7.648118] ubi0: available PEBs: 0, total reserved PEBs: 4056, PEBs reserved for bad PEB handling: 72
[    7.657535] ubi0: background thread "ubi_bgt0d" started, PID 351
[    7.665168] block ubiblock0_1: created from ubi0:1(rootfs)
[    7.670713] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[    7.677661] hctosys: unable to open rtc device (rtc0)
[    7.696725] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    7.704846] Freeing unused kernel memory: 220K
[    7.709318] This architecture does not have kernel memory protection.
[    8.868871] init: Console is alive
[    8.872514] init: - watchdog -
[   11.976011] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[   12.159543] usbcore: registered new interface driver usbfs
[   12.165115] usbcore: registered new interface driver hub
[   12.170540] usbcore: registered new device driver usb
[   12.203035] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.217228] SCSI subsystem initialized
[   12.225644] ehci-platform: EHCI generic platform driver
[   12.233785] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   12.241220] ohci-platform: OHCI generic platform driver
[   12.250568] usbcore: registered new interface driver usb-storage
[   12.258800] usbcore: registered new interface driver uas
[   12.264799] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[   12.282536] init: - preinit -
[   13.345005] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   13.370345] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   14.408829] eth1: link up (1000Mbps/Full duplex)
[   14.413495] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   16.597389] mount_root: loading kmods from internal overlay
[   16.660484] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   16.668709] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   17.709784] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 454
[   18.028068] UBIFS (ubi0:2): recovery needed
[   18.629038] UBIFS (ubi0:2): recovery completed
[   18.633571] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[   18.641411] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   18.651333] UBIFS (ubi0:2): FS size: 495841280 bytes (472 MiB, 3905 LEBs), journal size 24887296 bytes (23 MiB, 196 LEBs)
[   18.662279] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[   18.668898] UBIFS (ubi0:2): media format: w4/r0 (latest is w5/r0), UUID 3046DA72-F44C-4152-8884-4FC34A84558F, small LPT model
[   18.683518] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   18.699456] block: extroot: not configured
[   18.703797] UBIFS (ubi0:2): un-mount UBI device 0
[   18.708600] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" stops
[   18.726058] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 456
[   19.373128] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[   19.381013] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   19.390919] UBIFS (ubi0:2): FS size: 495841280 bytes (472 MiB, 3905 LEBs), journal size 24887296 bytes (23 MiB, 196 LEBs)
[   19.401872] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[   19.408493] UBIFS (ubi0:2): media format: w4/r0 (latest is w5/r0), UUID 3046DA72-F44C-4152-8884-4FC34A84558F, small LPT model
[   20.153434] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   20.169900] block: extroot: not configured
[   20.177564] mount_root: switching to ubifs overlay
[   20.247854] urandom-seed: Seeding with /etc/urandom.seed
[   20.361270] eth1: link down
[   20.375277] procd: - early -
[   20.378262] procd: - watchdog -
[   21.065464] procd: - watchdog -
[   21.078829] procd: - ubus -
[   21.467691] random: ubusd: uninitialized urandom read (4 bytes read)
[   21.476695] random: ubusd: uninitialized urandom read (4 bytes read)
[   21.483375] random: ubusd: uninitialized urandom read (4 bytes read)
[   21.491183] procd: - init -
Please press Enter to activate this console.
[   23.478482] kmodloader: loading kernel modules from /etc/modules.d/*
[   23.642158] tun: Universal TUN/TAP device driver, 1.6
[   23.684298] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   23.721234] Netfilter messages via NETLINK v0.30.
[   23.760756] ip_set: protocol 6
[   23.848649] fuse init (API version 7.26)
[   23.885046] usbcore: registered new interface driver cdc_acm
[   23.890772] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[   23.939972] usbcore: registered new interface driver cdc_wdm
[   23.969906] Loading modules backported from Linux version v4.19.207-0-g2950c9c5e0df
[   23.977559] Backport generated by backports.git v4.19.207-1-0-gb4d7efee
[   24.013137] ip_tables: (C) 2000-2006 Netfilter Core Team
[   24.059218] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   24.147948] urngd: v1.0.2 started.
[   24.486902] usbcore: registered new interface driver usblp
[   24.519333] usbcore: registered new interface driver usbserial
[   24.525233] usbcore: registered new interface driver usbserial_generic
[   24.531892] usbserial: USB Serial support registered for generic
[   24.573264] wireguard: WireGuard 1.0.20200611 loaded. See www.wireguard.com for information.
[   24.581757] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   24.605329] random: crng init done
[   24.608791] random: 6 urandom warning(s) missed due to ratelimiting
[   24.644707] xt_time: kernel timezone is -0000
[   24.660669] usbcore: registered new interface driver cdc_ether
[   24.670814] usbcore: registered new interface driver cdc_ncm
[   24.780233] usbcore: registered new interface driver huawei_cdc_ncm
[   24.878525] PPP generic driver version 2.4.2
[   24.899625] NET: Registered protocol family 24
[   24.906887] usbcore: registered new interface driver qmi_wwan
[   24.920942] usbcore: registered new interface driver rndis_host
[   24.940692] usbcore: registered new interface driver sierra
[   24.946324] usbserial: USB Serial support registered for Sierra USB modem
[   24.970324] usbcore: registered new interface driver sierra_net
[   25.050505] usbcore: registered new interface driver cdc_mbim
[   25.058890] usbcore: registered new interface driver option
[   25.064526] usbserial: USB Serial support registered for GSM modem (1-port)
[   25.099756] usbcore: registered new interface driver qcserial
[   25.105572] usbserial: USB Serial support registered for Qualcomm USB modem
[   25.148951] kmodloader: done loading kernel modules from /etc/modules.d/*
[   42.464636] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   42.512451] br-lan: port 1(eth1.1) entered blocking state
[   42.517855] br-lan: port 1(eth1.1) entered disabled state
[   42.523645] device eth1.1 entered promiscuous mode
[   42.528482] device eth1 entered promiscuous mode
[   42.625947] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   42.745040] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   44.009044] eth1: link up (1000Mbps/Full duplex)
[   44.013880] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   44.052466] br-lan: port 1(eth1.1) entered blocking state
[   44.057871] br-lan: port 1(eth1.1) entered forwarding state
[   44.104465] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   46.089055] eth0: link up (1000Mbps/Full duplex)
[   46.093769] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
BusyBox v1.30.1 () built-in shell (ash)
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------------------------------
 |                                                                           |
 | OpenWrt 19.07-SNAPSHOT, r11379-123d12eada                                 |
 |                                                                           |
 | Build time: 2021-09-24 19:48 CEST                                         |
 | Cezary Jackiewicz, https://eko.one.pl                                     |
 |                                                                           |
 -----------------------------------------------------------------------------
 | Machine: MikroTik RouterBOARD 450G                                        |
 | Uptime: 0d, 00:02:09                                                      |
 | Load: 0.54 0.36 0.14                                                      |
 | Flash: total: 436.7MB, free: 431.9MB, used: 0%                            |
 | Memory: total: 248.3MB, free: 231.1MB, used: 6%                           |
 | Leases: 0                                                                 |
 | lan: static, 192.168.1.1                                                  |
 | wan: dhcp, 192.168.20.118                                                 |
 | wan6: dhcpv6, ?                                                           |
 -----------------------------------------------------------------------------

Na pierwszym porcie bez problemu pobiera IP od providera, ale na pozostałych DHCP nie przydzieli. Te same maszyny z NBG6716 z Gargoyle 1.13 IP dostają. Te 8 BadBlocków nie jest chyba problemem. Widziałem też że miał zmieniane dwa kondzioły w środku - ślady kalafonii na nóżkach. Da się coś z tym zrobić czy wracać do RouterOS?

2 (edytowany przez Cezary 2022-01-07 12:58:14)

Odp: Mikrotik RB450G

Programowo, jeżeli nie zmieniałeś przypisania porów do bridge to nie, nie masz co tu zmienić.

Propo braku przydzielania i działania na staticu - jesteś pewien że nie uruchomiłeś sobie kolejnego serwera dhcp i wyłączył się ten w openwrt?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Mikrotik RB450G

Nie, nic dodatkowo nie uruchamiałem. Czysta instalacja, dodatkowo przywrócenie domyślnej konfiguracji i bez podłączonego WAN - nie dostałem adresu. Gargoyle po przywróceniu domyślnej konfiguracji przydzielał adresy. Gdy zmieniłem adresację i przypisałem kilka statycznych następnego dnia dla nowych urządzeń nie przydzielił IP. Jako ostatni wrzuciłem obraz z openwrt.org. Tu nie było problemów ale końcem końców wróciłem do routerOS - za dużo niepewności, jak fizycznie coś mu nie domaga to żaden system nie pomoże.
Dzięki. Kawa poszła.