26 (edytowany przez lexmark3200 2021-11-20 07:38:33)

Odp: Meraki MR12 i 16

Długo wczoraj siedziałem i szukałem i formacji, wszędzie są poradniki ale na starsze wersje openWRT, gdy tak jak mówisz było kilka plików.

Właśnie nie wiem co wyrzuca na terminal jak startuje, bo musiałbym podpiąć się uartem pod niego, będę miał później. Na chwilę obecną mam tylko tftp po rj i jak już złapie to po rj mogę odpalić putty po SSH, ale to już po starcie, więc nic nie podglądne....
Co ciekawe w wersji mr 12 na stronie openWRT jest odsyłacz do nr 16 i tam jest kilka zdań jak migrować z niższego na właśnie 21 openWRT. https://openwrt.org/toh/meraki/mr16

Są dwa podpunkty, gdy masz wersję poniżej 19 i drugi pkt gdy masz poniżej 19.07.05 ja wrzucałem na najwyższą 19. I to chyba właśnie jest ten właśnie problem.
Tylko pytanie, czy da radę po uart coś więcej wygrzebać, czy nie, czy może będzie trzeba zrobić downgrade do właśnie 18 i wtedy spróbować na 21 przejść. Ale downgrade pewnie tylko z uart j wg tutoriale który jest do mr12 na stronie openWRT, czyli te kilka plików plus to co zamieściłem wczoraj.

27

Odp: Meraki MR12 i 16

Ale ty nie migrujesz. Wgrywasz na czysto.

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

28 (edytowany przez lexmark3200 2021-11-20 07:44:16)

Odp: Meraki MR12 i 16

Szkoda,że coś nie chce zagrać ten soft na nim, bo faktycznie pojawia się opcja switcha i pewnie da radę skonfigurować drugi port rj, co by mi właśnie pasowało, na czym mi zależy.

Obecnie bez uart nic raczej nie wskuram.

Wczoraj próbowałem jeszcze raz przez luci wgrać cały plik sysupgrade.bin dla tego modelu, ten sam objaw. Później od nowa po terminalu wg tutka z openWRT to samo, dałem -F -n nic samo -v nic.
Po każdym resecie, czy to przyciskiem, czy zasilaniem, czy programowi z GUI zaczyna startować i wypluwa cały czas błąd tego pliku co podałem kilka postów wyżej. Dograł go przez rj i rusza i cyrk na nowo....

29

Odp: Meraki MR12 i 16

Ktoś postawił na nim 21
https://eko.one.pl/forum/viewtopic.php? … 39#p257139
Ale ciekawe jak.

30

Odp: Meraki MR12 i 16

Wgraj 19.07 i zobacz czy będzie działać.

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

31

Odp: Meraki MR12 i 16

Tak właśnie chce zrobić. Muszę poczekać, później będę miał uart, bo mój jest na 5V, a pewnie tutaj na 3,3V i jak na złość nie mam żadnej zenerki żeby się poratować.

32

Odp: Meraki MR12 i 16

Znalazłem w sieci taki oto wpis:
https://git.openwrt.org/?p=openwrt/open … 57c4643f6d
co o tym sądzisz??

33

Odp: Meraki MR12 i 16

Wykonaj te polecenia od bootloadera i sprawdź czy adres masz dobry,

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

34

Odp: Meraki MR12 i 16

Mówisz o tych:

       setenv bootcmd bootm 0xbf0a0000; saveenv;
       tftpboot 0c00000 <filename-of-initramfs-kernel>.bin;
       bootm 0c00000;
to jedynie przez UART (chyba) musi lecieć.

35

Odp: Meraki MR12 i 16

NIe, mówię o tym co jest w Migrating directly from ar71xx... To możesz wykonać z poziomu initramfs.

To co ty napisałeś już sam robisz, bo przecież ładujesz i startuje Ci initramfs.

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

36

Odp: Meraki MR12 i 16

OK. Czyli to co poniżej, ale nie mam w ogóle pliku w /etc/fw_env.config, musiałbym go stworzyć od nowa.

1) Install kmod-mtd-rw and uboot-envtools

2) Run insmod mtd-rw.ko i_want_a_brick=1

3) Modify /etc/fw_env.config to point to the u-boot-env partition. See the uboot.config for more details. The file /etc/fw_env.config should contain:

       # MTD device   env offset  env size    sector size
       /dev/mtd1      0x00000     0x10000     0x10000
4) Run fw_printenv to verify that you can read the U-Boot environment correctly, as per the link above.

5) Run fw_setenv bootcmd bootm 0xbf0a0000 to set a new boot address.

6) Manually modify /lib/upgrade/common.sh's get_image function, from …

       cat "$from" 2>/dev/null | $cmd
… to …

       (
         dd if=/dev/zero bs=1 count=$((0x66)) ; # Pad the first 102 bytes
         echo -ne '\x00\x18\x0a\x12\x34\x56'  ; # Add in MAC address
         dd if=/dev/zero bs=1 count=$((0x20000-0x66-0x6)) ; # Pad the rest
         cat "$from" 2>/dev/null
       ) | $cmd
During the upgrade process, this will pad the image by 128K of zeroes-plus-MAC-address, in order for the ar71xx's firmware partition – which starts at 0xbf080000 – to be instead aligned with the ath79 firmware partition, which starts 128K later at 0xbf0a0000.

7) Copy the sysupgrade image into /tmp, as above

8) Run sysupgrade -F /tmp/<sysupgrade>.bin, then wait

37

Odp: Meraki MR12 i 16

Tak, rób  kolejno.

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

38 (edytowany przez lexmark3200 2021-11-20 16:00:57)

Odp: Meraki MR12 i 16

OK.
zawiesiłem się nad edycją pliku:
moja fukcja w pliku:
get_image() { # <source> [ <command> ]
                local from ="$1"
                local cmd="$2"

                if [ -z "$cmd" ]; then
                          local magic="$(dd if="$from" bs=2 count=1 2>/dev/null | hexdump -n 2-e '1/1 "%02x" ')"
                          case "$magic" in
                                1f8b) cmd="zcat";
                                 425a) cmd="bzcat";;
                                  *) cmd="cat";;
                          esac
                fi
                $cmd <"$from"


Możesz mi poprawnie go wyedytować??
Manually modify /lib/upgrade/common.sh's get_image function, from …

       cat "$from" 2>/dev/null | $cmd
… to …

       (
         dd if=/dev/zero bs=1 count=$((0x66)) ; # Pad the first 102 bytes
         echo -ne '\x00\x18\x0a\x12\x34\x56'  ; # Add in MAC address
         dd if=/dev/zero bs=1 count=$((0x20000-0x66-0x6)) ; # Pad the rest
         cat "$from" 2>/dev/null
       ) | $cmd

39

Odp: Meraki MR12 i 16

Zamiast tego: $cmd <"$from"

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

40 (edytowany przez lexmark3200 2021-11-20 18:59:00)

Odp: Meraki MR12 i 16

Czyli ma wyglądać tak, dobrze Cię zrozumiałem:
get_image() { # <source> [ <command> ]
                local from ="$1"
                local cmd="$2"

                if [ -z "$cmd" ]; then
                          local magic="$(dd if="(
         dd if=/dev/zero bs=1 count=$((0x66)) ; # Pad the first 102 bytes
         echo -ne '\x00\x18\x0a\x12\x34\x56'  ; # Add in MAC address
         dd if=/dev/zero bs=1 count=$((0x20000-0x66-0x6)) ; # Pad the rest
         cat "$from" 2>/dev/null
       ) | $cmd"

41

Odp: Meraki MR12 i 16

Nie. Linię $cmd <"$from" masz zamienić na       
(
         dd if=/dev/zero bs=1 count=$((0x66)) ; # Pad the first 102 bytes
         echo -ne '\x00\x18\x0a\x12\x34\x56'  ; # Add in MAC address
         dd if=/dev/zero bs=1 count=$((0x20000-0x66-0x6)) ; # Pad the rest
         cat "$from" 2>/dev/null
       ) | $cmd

A nie wycinasz coś tam ze środka skryptu. Zapytałeś, dostałeś odpowiedź a i tak chcesz zrobić inaczej.

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

42

Odp: Meraki MR12 i 16

Cezary, dziękuje, cały czas się uczę ;-)

43

Odp: Meraki MR12 i 16

Zrobiłem tak jak wyżej i d*pa....
Teraz cały czas się pali dioda zasilania na pomarańczowy, nic się nie dzieje...

44

Odp: Meraki MR12 i 16

Wgraj jeszcze raz 19.07

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

45 (edytowany przez lexmark3200 2021-11-20 19:46:30)

Odp: Meraki MR12 i 16

Udało się odpalić recovery, ale teraz inaczej, najpierw reset wciśnięty i dopiero zasilanie podane, wszedł w recovery, zasysa znowu initrams. Ale coś mega długo go targa....

Ale 19.07 musi pójść przez uart. Na chwilę obecną nie mam.

Ruszył, po restarcie, ponownie to samo.

46

Odp: Meraki MR12 i 16

Coś pomoże Log??
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.000000] Linux version 5.4.154 (builder@buildhost) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16325-88151b8303)) #0 Sun Oct 24 09:01:35 2021
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] printk: bootconsole [early0] enabled
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] MIPS: machine is Meraki MR12
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] SoC: Atheros AR7242 rev 1
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Initrd not found or empty - disabling initrd
Sun Oct 24 09:01:45 2021 kern.warn kernel: [    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Sun Oct 24 09:01:45 2021 kern.warn kernel: [    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Zone ranges:
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Movable zone start for each node
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Early memory node ranges
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
Sun Oct 24 09:01:45 2021 kern.debug kernel: [    0.000000] On node 0 totalpages: 16384
Sun Oct 24 09:01:45 2021 kern.debug kernel: [    0.000000]   Normal zone: 144 pages used for memmap
Sun Oct 24 09:01:45 2021 kern.debug kernel: [    0.000000]   Normal zone: 0 pages reserved
Sun Oct 24 09:01:45 2021 kern.debug kernel: [    0.000000]   Normal zone: 16384 pages, LIFO batch:3
Sun Oct 24 09:01:45 2021 kern.debug kernel: [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
Sun Oct 24 09:01:45 2021 kern.debug kernel: [    0.000000] pcpu-alloc: [0] 0
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Writing ErrCtl register=00000000
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Readback ErrCtl register=00000000
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] Memory: 48252K/65536K available (5252K kernel code, 191K rwdata, 688K rodata, 10244K init, 205K bss, 17284K reserved, 0K cma-reserved)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] NR_IRQS: 51
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.000000] random: get_random_bytes called from 0x8065fa28 with crng_init=0
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] CPU clock: 400.000 MHz
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.000012] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.007926] Calibrating delay loop... 265.98 BogoMIPS (lpj=531968)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.050055] pid_max: default: 32768 minimum: 301
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.054917] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.062224] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.076586] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.086367] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.093326] pinctrl core: initialized pinctrl subsystem
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.102345] NET: Registered protocol family 16
Sun Oct 24 09:01:45 2021 kern.warn kernel: [    0.142184] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.157438] clocksource: Switched to clocksource MIPS
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.164041] thermal_sys: Registered thermal governor 'step_wise'
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.164559] NET: Registered protocol family 2
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.175223] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.183607] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.192047] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.199721] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.206779] TCP: Hash tables configured (established 1024 bind 1024)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.213340] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.219937] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.227350] NET: Registered protocol family 1
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.231786] PCI: CLS 0 bytes, default 32
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.513565] workingset: timestamp_bits=14 max_order=14 bucket_order=0
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.531584] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.537472] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.568014] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.579059] pinctrl-single 18040028.pinmux: 64 pins, size 8
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.586125] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.596268] printk: console [ttyS0] disabled
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.600677] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 12500000) is a 16550A
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.609391] printk: console [ttyS0] enabled
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.617810] printk: bootconsole [early0] disabled
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.642433] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.647738] 5 fixed-partitions partitions found on MTD device spi0.0
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.654146] Creating 5 MTD partitions on "spi0.0":
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.658992] 0x000000000000-0x000000040000 : "u-boot"
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.665520] 0x000000040000-0x000000080000 : "u-boot-env"
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.672250] 0x000000080000-0x0000000a0000 : "config"
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.678760] 0x0000000a0000-0x000000fe0000 : "firmware"
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.713702] 2 uimage-fw partitions found on MTD device firmware
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.719694] Creating 2 MTD partitions on "firmware":
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.724707] 0x000000000000-0x000000d20000 : "rootfs"
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.731019] mtd: device 4 (rootfs) set to be root filesystem
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.738302] 1 squashfs-split partitions found on MTD device rootfs
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.744621] 0x000000260000-0x000000d20000 : "rootfs_data"
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.751483] 0x000000d20000-0x000000ea4dbf : "kernel"
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    0.758004] 0x000000fe0000-0x000001000000 : "art"
Sun Oct 24 09:01:45 2021 kern.info kernel: [    0.767263] libphy: Fixed MDIO Bus: probed
Sun Oct 24 09:01:45 2021 kern.err kernel: [    0.801545] ag71xx 19000000.eth: invalid MAC address, using random address
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    1.129430] random: fast init done
Sun Oct 24 09:01:45 2021 kern.info kernel: [    1.437939] libphy: ag71xx_mdio: probed
Sun Oct 24 09:01:45 2021 kern.info kernel: [    1.470504] ag71xx 19000000.eth: connected to PHY at mdio.0:04 [uid=004dd04e, driver=Generic PHY]
Sun Oct 24 09:01:45 2021 kern.info kernel: [    1.480435] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii-id
Sun Oct 24 09:01:45 2021 kern.err kernel: [    1.489062] ag71xx 1a000000.eth: invalid MAC address, using random address
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.125918] libphy: ag71xx_mdio: probed
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.295058] libphy: ar8xxx-mdio: probed
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.298979] switch0: Atheros AR724X/AR933X built-in rev. 2 switch registered on mdio.1
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.366407] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.376437] eth1: Atheros AG71xx at 0xba000000, irq 5, mode: gmii
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.383117] i2c /dev entries driver
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.390743] NET: Registered protocol family 10
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.404659] Segment Routing with IPv6
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.408606] NET: Registered protocol family 17
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.413192] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.426232] 8021q: 802.1Q VLAN Support v1.8
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.431887] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges:
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.438489]  MEM 0x0000000010000000..0x0000000013ffffff
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.443772]   IO 0x0000000000000000..0x0000000000000000
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.449320] PCI host bridge to bus 0000:00
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.453498] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.460428] pci_bus 0000:00: root bus resource [io  0x0000]
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.466053] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.472894] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.480920] pci 0000:00:00.0: [168c:002a] type 00 class 0x028000
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.487046] pci 0000:00:00.0: reg 0x10: [mem 0x10000000-0x1000ffff 64bit]
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.494064] pci 0000:00:00.0: supports D1
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.498117] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.505601] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.512303] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.521059] hctosys: unable to open rtc device (rtc0)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.610363] Freeing unused kernel memory: 10244K
Sun Oct 24 09:01:45 2021 kern.warn kernel: [    2.615048] This architecture does not have kernel memory protection.
Sun Oct 24 09:01:45 2021 kern.info kernel: [    2.621528] Run /init as init process
Sun Oct 24 09:01:45 2021 user.info kernel: [    3.401754] init: Console is alive
Sun Oct 24 09:01:45 2021 user.info kernel: [    3.405632] init: - watchdog -
Sun Oct 24 09:01:45 2021 user.info kernel: [    3.436878] kmodloader: loading kernel modules from /etc/modules-boot.d/*
Sun Oct 24 09:01:45 2021 user.info kernel: [    3.447653] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
Sun Oct 24 09:01:45 2021 user.info kernel: [    3.465701] init: - preinit -
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    4.000939] random: jshn: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    4.207926] random: jshn: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    4.464191] random: jshn: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:01:45 2021 kern.warn kernel: [    5.209965] urandom_read: 4 callbacks suppressed
Sun Oct 24 09:01:45 2021 kern.notice kernel: [    5.209976] random: procd: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    9.290706] eth0: link up (1000Mbps/Full duplex)
Sun Oct 24 09:01:45 2021 kern.info kernel: [    9.295419] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sun Oct 24 09:01:45 2021 kern.info kernel: [    9.428866] eth0: link down
Sun Oct 24 09:01:45 2021 user.info kernel: [    9.449227] procd: - early -
Sun Oct 24 09:01:45 2021 user.info kernel: [    9.452364] procd: - watchdog -
Sun Oct 24 09:01:45 2021 user.info kernel: [   10.073060] procd: - watchdog -
Sun Oct 24 09:01:45 2021 user.info kernel: [   10.076816] procd: - ubus -
Sun Oct 24 09:01:45 2021 kern.notice kernel: [   10.092424] random: ubusd: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:01:45 2021 kern.notice kernel: [   10.130466] random: ubusd: uninitialized urandom read (4 bytes read)
Sun Oct 24 09:01:45 2021 user.info kernel: [   10.141949] procd: - init -
Sun Oct 24 09:01:45 2021 user.info kernel: [   11.088942] kmodloader: loading kernel modules from /etc/modules.d/*
Sun Oct 24 09:01:45 2021 kern.info kernel: [   11.141894] Loading modules backported from Linux version v5.10.68-0-g4d8524048a35
Sun Oct 24 09:01:45 2021 kern.info kernel: [   11.149583] Backport generated by backports.git v5.10.68-1-0-ga4f9ba32
Sun Oct 24 09:01:45 2021 kern.info kernel: [   11.224455] xt_time: kernel timezone is -0000
Sun Oct 24 09:01:45 2021 kern.info kernel: [   11.424879] PPP generic driver version 2.4.2
Sun Oct 24 09:01:45 2021 kern.info kernel: [   11.442495] NET: Registered protocol family 24
Sun Oct 24 09:01:45 2021 kern.warn kernel: [   11.571576] ath9k 0000:00:00.0: Direct firmware load for ath9k-eeprom-pci-0000:00:00.0.bin failed with error -2
Sun Oct 24 09:01:45 2021 kern.warn kernel: [   11.581810] ath9k 0000:00:00.0: Falling back to sysfs fallback for: ath9k-eeprom-pci-0000:00:00.0.bin
Sun Oct 24 09:01:45 2021 user.info kernel: [   11.833073] urngd: v1.0.2 started.
Sun Oct 24 09:01:45 2021 kern.info kernel: [   11.916818] ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
Sun Oct 24 09:01:45 2021 kern.debug kernel: [   11.925478] ath: EEPROM regdomain sanitized
Sun Oct 24 09:01:45 2021 kern.debug kernel: [   11.925486] ath: EEPROM regdomain: 0x64
Sun Oct 24 09:01:45 2021 kern.debug kernel: [   11.925491] ath: EEPROM indicates we should expect a direct regpair map
Sun Oct 24 09:01:45 2021 kern.debug kernel: [   11.925518] ath: Country alpha2 being used: 00
Sun Oct 24 09:01:45 2021 kern.debug kernel: [   11.925523] ath: Regpair used: 0x64
Sun Oct 24 09:01:45 2021 kern.debug kernel: [   11.942635] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Sun Oct 24 09:01:45 2021 kern.info kernel: [   11.946019] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=13
Sun Oct 24 09:01:45 2021 user.info kernel: [   12.035571] kmodloader: done loading kernel modules from /etc/modules.d/*
Sun Oct 24 09:01:45 2021 kern.notice kernel: [   12.516469] random: crng init done
Sun Oct 24 09:01:47 2021 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Sun Oct 24 09:01:47 2021 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: Connected to system UBus
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: started, version 2.85 cachesize 150
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: DNS service limited to local subnets
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: UBus support enabled: connected to system bus
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: using only locally-known addresses for domain test
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: using only locally-known addresses for domain onion
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: using only locally-known addresses for domain localhost
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: using only locally-known addresses for domain local
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: using only locally-known addresses for domain invalid
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: using only locally-known addresses for domain bind
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: using only locally-known addresses for domain lan
Sun Oct 24 09:01:47 2021 daemon.warn dnsmasq[1422]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: read /etc/hosts - 4 addresses
Sun Oct 24 09:01:47 2021 daemon.info dnsmasq[1422]: read /tmp/hosts/dhcp.cfg01411c - 0 addresses
Sun Oct 24 09:02:00 2021 authpriv.info dropbear[1488]: Not backgrounding
Sun Oct 24 09:02:02 2021 daemon.notice wpa_supplicant[1587]: Successfully initialized wpa_supplicant
Sun Oct 24 09:02:02 2021 user.notice : Added device handler type: 8021ad
Sun Oct 24 09:02:03 2021 user.notice : Added device handler type: 8021q
Sun Oct 24 09:02:03 2021 user.notice : Added device handler type: macvlan
Sun Oct 24 09:02:03 2021 user.notice : Added device handler type: veth
Sun Oct 24 09:02:03 2021 user.notice : Added device handler type: bridge
Sun Oct 24 09:02:03 2021 user.notice : Added device handler type: Network device
Sun Oct 24 09:02:03 2021 user.notice : Added device handler type: tunnel
Sun Oct 24 09:02:06 2021 user.notice ucitrack: Setting up /etc/config/network reload dependency on /etc/config/dhcp
Sun Oct 24 09:02:06 2021 user.notice ucitrack: Setting up /etc/config/wireless reload dependency on /etc/config/network
Sun Oct 24 09:02:07 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/luci-splash
Sun Oct 24 09:02:07 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/qos
Sun Oct 24 09:02:07 2021 user.notice ucitrack: Setting up /etc/config/firewall reload dependency on /etc/config/miniupnpd
Sun Oct 24 09:02:08 2021 user.notice ucitrack: Setting up /etc/config/dhcp reload dependency on /etc/config/odhcpd
Sun Oct 24 09:02:08 2021 user.notice ucitrack: Setting up non-init /etc/config/fstab reload handler: /sbin/block mount
Sun Oct 24 09:02:09 2021 user.notice ucitrack: Setting up /etc/config/system reload trigger for non-procd /etc/init.d/led
Sun Oct 24 09:02:09 2021 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/luci_statistics
Sun Oct 24 09:02:09 2021 user.notice ucitrack: Setting up /etc/config/system reload dependency on /etc/config/dhcp
Sun Oct 24 09:02:11 2021 daemon.notice procd: /etc/rc.d/S96led: setting up led LAN
Sun Oct 24 09:02:11 2021 kern.info kernel: [   47.249902] br-lan: port 1(eth0) entered blocking state
Sun Oct 24 09:02:11 2021 kern.info kernel: [   47.255237] br-lan: port 1(eth0) entered disabled state
Sun Oct 24 09:02:11 2021 kern.info kernel: [   47.261000] device eth0 entered promiscuous mode
Sun Oct 24 09:02:12 2021 daemon.notice netifd: Interface 'lan' is enabled
Sun Oct 24 09:02:12 2021 daemon.notice netifd: Interface 'lan' is setting up now
Sun Oct 24 09:02:12 2021 daemon.notice netifd: Interface 'lan' is now up
Sun Oct 24 09:02:12 2021 kern.info kernel: [   47.608796] eth1: link up (1000Mbps/Full duplex)
Sun Oct 24 09:02:12 2021 kern.info kernel: [   47.628177] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
Sun Oct 24 09:02:12 2021 kern.info kernel: [   47.638764] br-lan: port 2(eth1.1) entered blocking state
Sun Oct 24 09:02:12 2021 kern.info kernel: [   47.644287] br-lan: port 2(eth1.1) entered disabled state
Sun Oct 24 09:02:12 2021 kern.info kernel: [   47.650424] device eth1.1 entered promiscuous mode
Sun Oct 24 09:02:12 2021 kern.info kernel: [   47.655315] device eth1 entered promiscuous mode
Sun Oct 24 09:02:12 2021 kern.info kernel: [   47.660308] br-lan: port 2(eth1.1) entered blocking state
Sun Oct 24 09:02:12 2021 kern.info kernel: [   47.665797] br-lan: port 2(eth1.1) entered forwarding state
Sun Oct 24 09:02:12 2021 kern.info kernel: [   47.689692] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Sun Oct 24 09:02:12 2021 daemon.notice netifd: bridge 'br-lan' link is up
Sun Oct 24 09:02:12 2021 daemon.notice netifd: Interface 'lan' has link connectivity
Sun Oct 24 09:02:12 2021 daemon.notice netifd: Interface 'loopback' is enabled
Sun Oct 24 09:02:12 2021 daemon.notice netifd: Interface 'loopback' is setting up now
Sun Oct 24 09:02:12 2021 daemon.notice netifd: Interface 'loopback' is now up
Sun Oct 24 09:02:12 2021 daemon.notice netifd: Network device 'eth1' link is up
Sun Oct 24 09:02:12 2021 daemon.notice netifd: VLAN 'eth1.1' link is up
Sun Oct 24 09:02:12 2021 daemon.notice netifd: Network device 'lo' link is up
Sun Oct 24 09:02:12 2021 daemon.notice netifd: Interface 'loopback' has link connectivity
Sun Oct 24 09:02:12 2021 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Sun Oct 24 09:02:13 2021 daemon.err odhcpd[1706]: Failed to send to ff02::1%lan@br-lan (Address not available)
Sun Oct 24 09:02:14 2021 daemon.info procd: - init complete -
Sun Oct 24 09:02:14 2021 daemon.info urandom_seed[2318]: Seed saved (/etc/urandom.seed)
Sun Oct 24 09:02:16 2021 kern.info kernel: [   51.338731] eth0: link up (1000Mbps/Full duplex)
Sun Oct 24 09:02:16 2021 kern.info kernel: [   51.343701] br-lan: port 1(eth0) entered blocking state
Sun Oct 24 09:02:16 2021 kern.info kernel: [   51.348999] br-lan: port 1(eth0) entered forwarding state
Sun Oct 24 09:02:16 2021 daemon.notice netifd: Network device 'eth0' link is up
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[1422]: exiting on receipt of SIGTERM
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: Connected to system UBus
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: started, version 2.85 cachesize 150
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: DNS service limited to local subnets
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: UBus support enabled: connected to system bus
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq-dhcp[2490]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: using only locally-known addresses for domain test
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: using only locally-known addresses for domain onion
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: using only locally-known addresses for domain localhost
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: using only locally-known addresses for domain local
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: using only locally-known addresses for domain invalid
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: using only locally-known addresses for domain bind
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: using only locally-known addresses for domain lan
Sun Oct 24 09:02:19 2021 daemon.warn dnsmasq[2490]: no servers found in /tmp/resolv.conf.d/resolv.conf.auto, will retry
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: read /etc/hosts - 4 addresses
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq-dhcp[2490]: read /etc/ethers - 0 addresses
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: read /etc/hosts - 4 addresses
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq[2490]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Sun Oct 24 09:02:19 2021 daemon.info dnsmasq-dhcp[2490]: read /etc/ethers - 0 addresses
Sun Oct 24 09:02:23 2021 daemon.err uhttpd[936]: luci: accepted login on / for root from 192.168.1.101

47

Odp: Meraki MR12 i 16

Zwykły log z uruchomienia.

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

48

Odp: Meraki MR12 i 16

lexmark3200 napisał/a:

Ktoś postawił na nim 21
https://eko.one.pl/forum/viewtopic.php? … 39#p257139
Ale ciekawe jak.

To byłem ja. Spróbowałem i więcej nie chciałem. Może obecna wersja jest poprawiona, ja co najmniej przez kolejny rok nie będę sprawdzał bo sie na 21.02 na mr12 sparzyłem wink
Nie polecam 21.02 na MR12 - wgrałem ale działało to fatalnie, ciągłe przywieszki, lagi, zacinki nawet na konsoli. Wróciłem do 19.07 i jestem bardziej niż szczęśliwy. Ale jeśli chcesz spróbować to musisz to zrobić z konsoli szeregowej po UART. instrukcje masz tutaj: https://git.laboratoryb.org/hurricos/op … 57c4643f6d

49 (edytowany przez lexmark3200 2021-11-22 18:02:11)

Odp: Meraki MR12 i 16

No więc tak.
Zanim dojechał do mnie uart, nie dałem za wygraną,nie poszła migracja wg tutka wyżej.
Stwierdziłem, że bardziej popsuć nie mogę już.
Więc wrzuciłem przez GUI ( jak załadowałem już initramfs VIA tftp w trybie recovery), obraz z 19.07.8, z konsoli dałem sysupgrade -F -n, zainstalował, ale się wysypał. Znowu szuka initramfs. Więc znowu podałem mu, ale teraz po uruchomieniu, wrzuciłem mu w GUI obraz z openWRT 21, zrobił upgrade i........

..... Działa

Resetuje via GUI, wstaje, wyłączyłem zasilanie, wstaje, zapisałem ustawienia, wstaje i jest ok.
Wstaje na openWRT 21.02.1
Pozdrawiam

50 (edytowany przez lexmark3200 2021-11-22 18:45:15)

Odp: Meraki MR12 i 16

W międzyczasie dostałem odpowiedź, dlaczego urzadzenie się posypało:
Org wiadomość od Martin Kennedy:
"I changed partitioning when I ported the board from ar71xx to ath79 because I found that Meraki was storing the MAC address in a partition that the original maintainer chose to overwrite. Since the partitions are consistent now, a user can instal OpenWrt without copying the MAC address by hand.

The reason your device is bricked is because it is looking in the wrong place for the Linux kernel: it must boot directly the NOR flash from offset 0xbf0a0000.

The simplest way to change this is to connect to the serial terminal, interrupt u-boot and set the `bootcmd` variable to `bootm 0xbf0a0000`:

> set bootcmd 0xbf0a0000;
> saveenv;

Once you have done that, boot the initramfs and then sysupgrade, and u-boot will be looking in the right place for autoboot.

The other problem is that you must put the MAC address in binary format back where it belongs: at offset 0x66 = 102 of the "config" partition: that way, it can be loaded properly by the bootloader.

Does this terminal output make sense?:

root@mr16_4:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00040000 00010000 "u-boot-env"
mtd2: 00020000 00010000 "config"
mtd3: 00f40000 00010000 "firmware"
mtd4: 00200000 00010000 "kernel"
mtd5: 00d40000 00010000 "rootfs"
mtd6: 00a40000 00010000 "rootfs_data"
mtd7: 00020000 00010000 "art"
root@mr16_4:~# head -c 112 /dev/mtd2 | hexdump -C
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000060  00 00 00 00 00 00 00 18  0a 35 a1 74 00 00 00 00  |.........5.t....|
00000070
"

Spamsol,
mam teraz 21.02.1, nie czuję aby lagował jakoś strasznie, w sumie długi się nie bawiłem 19.07.8 więc nie czuję porównania.
UART dzisiaj do mnie dojedzie, ale na razie tak jak pisałem wyżej urządzenie działa, więc nie zamierzam nic ingerować.
Najbardziej w 21.02.1 podoba mi się, to że drugi port można wykorzystać i podpiąć kolejne urządzenie w sieci ( akurat docelowo pójdzie terminal z Daphile, więc wiecej jak 100Mb nie potrzeba).
Potestuję jak będzie się spisywać radio na tym soft.
Na 19.07.8 mam Meraki 16, sieje fajnie w domu (12 idzie w inne miejsce).