Temat: OoliteV8

Witajcie,
Mam dosyć ciekawy moduł: OoliteV8
Flash: W25Q256FV 32MB
RAM: 512MB (256Mx16) - part number:  PRN256M16V00HG8GNF-125
Dual Core
Moduł jest na devboard więc tylko podłączone 4x LAN i 1xWAN , USB2.0 i USB3.0, reszta wyprowadzona na złącze goldpin.
To czego poszukuję, to jakiegoś gotowego obrazu 19.07 (lub wyższa) , który może wejść na ten muduł - np. z jakiegoś bliźniaczego routera z takimi pamięciami j.w. Chcę trochę poeksperymentować z tym modułem:
https://drive.google.com/file/d/15yRKCQ … sp=sharing
Mam kilka pomysłów do zweryfikowania, jednak wcześniej muszę zaktualizować ponieważ w orygonale ma jakąch archaiczną wersję OpenWRT.

2

Odp: OoliteV8

Nie ma obrazów. Producent coś dawał, ale nigdy to nie weszło do openwrt.

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

3 (edytowany przez marcinwijata 2021-04-23 12:16:58)

Odp: OoliteV8

Natknąłem się na problem przy wgrywaniu zbudowanych obrazów openwrt na ten moduł ze źródeł Gainstrong.
Link do źródeł: https://github.com/GainStrongService/le … 1-oolite-8
Po dodaniu kmod-fs-ext4 pojawia się błąd przy starcie kernela i zawieszenie devboarda, odratować wtedy można go tylko programatorem. Wgrywałem za pomocą polecenia sysupgrade -n -F . Wykluczyłem możliwości błędu sysupgrade i samego budowania openwrt:

  • Ponowna próba wgrania tego samego obrazu który spowodował zawieszenie (wykluczenie błędu sysupgrade) -> nadal zawiesza

  • Ponowne zbudowanie make -j5 tego samego obrazu (wykluczenie błędu kompilacji)  i wgranie -> nadal zawiesza

  • Wycofanie się z dodania kmod-fs-ext4 i ponowna budowa obrazu (potwierdzenie że kmod-fs-ext4 powoduje błąd) -> brak zawieszenia, kernel przechodzi dalej

Mod jest potrzebny do podmontowania partycji ext4 z SD. Samo SD widzę w /dev, jestem w stanie tworzyć i usuwać na nim partycje poprzez fdisk, fstab też od razu wychaczył istniejące na nim partycje, nie mogę jedynie ich podmontować bez tego moda.
Wrzucam niżej jak wygląda błąd w konsoli powodujący zawieszenie:

Mon Mar 29 09:00:18 UTC 2021 upgrade: Commencing upgrade. Closing all shell sessions.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
Mon Mar 29 09:00:19 UTC 2021 upgrade: Sending TERM to remaining processes ... logd rpcd hostapd wpa_supplicant odhcpd ntpd netifd dnsmasq ubusd urngd uhttpd
Mon Mar 29 09:00:22 UTC 2021 upgrade: Sending KILL to remaining processes ...
[  406.248710] sh (3489): drop_caches: 3
Mon Mar 29 09:00:23 UTC 2021 upgrade: Switching to ramdisk...
Mon Mar 29 09:00:27 UTC 2021 upgrade: Performing system upgrade...
[  409.745467] sh (3489): drop_caches: 3
Unlocking firmware ...

Writing from <stdin> to firmware ...
Mon Mar 29 09:01:52 UTC 2021 upgrade: Upgrade completed
Mon Mar 29 09:01:53 UTC 2021 upgrade: Rebooting system...
umount: can't unmount /dev: Resource [  495.570304] reboot: Restarting system
busy
umount: can't unmount /tmp: Resource busy

===================================================================
                MT7621   stage1 code Mar 12 2015 14:43:30 (ASIC)
                CPU=500000000 HZ BUS=166666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x31100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-800Mhz ===
PLL3 FB_DL: 0x7, 1/0 = 613/411 1D000000
PLL4 FB_DL: 0x12, 1/0 = 534/490 49000000
PLL2 FB_DL: 0x18, 1/0 = 651/373 61000000
do DDR setting..[01F40000]
Apply DDR3 Setting...(use customer AC)
          0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000F:|    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1    1
0010:|    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1
0011:|    1    1    1    1    1    1    1    0    0    0    0    0    0    0    0    0
0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
DRAMC_DQSCTL1[0e0]=14000000
DRAMC_DQSGCTL[124]=80000000
rank 0 coarse = 16
rank 0 fine = 64
B:|    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0    0
opt_dle value:8
DRAMC_DDR2CTL[07c]=C287220D
DRAMC_PADCTL4[0e4]=000022B3
DRAMC_DQIDLY1[210]=0B0A0909
DRAMC_DQIDLY2[214]=05090709
DRAMC_DQIDLY3[218]=0A080808
DRAMC_DQIDLY4[21c]=09060B08
DRAMC_R0DELDLY[018]=00003030
==================================================================
                RX      DQS perbit delay software calibration
==================================================================
1.0-15 bit dq delay value
==================================================================
bit|     0  1  2  3  4  5  6  7  8  9
--------------------------------------
0 |    9 8 9 11 8 7 9 5 6 7
10 |    7 8 7 10 6 8
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =48 DQS1 = 48
==================================================================
bit     DQS0     bit      DQS1
0  (1~95)48  8  (1~92)46
1  (1~94)47  9  (1~94)47
2  (1~94)47  10  (1~93)47
3  (1~95)48  11  (1~92)46
4  (1~94)47  12  (1~93)47
5  (1~95)48  13  (1~94)47
6  (1~95)48  14  (1~95)48
7  (1~96)48  15  (1~94)47
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    9 9 10 11 9 7 9 5 8 8
10 |    8 10 8 11 6 9
==================================================================
==================================================================
     TX  perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2
DQ loop=15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=2
byte:0, (DQS,DQ)=(8,8)
byte:1, (DQS,DQ)=(8,8)
DRAMC_DQODLY1[200]=88888888
DRAMC_DQODLY2[204]=88888888
20,data:88
[EMI] DRAMC calibration passed

===================================================================
                MT7621   stage1 code done
                CPU=500000000 HZ BUS=166666666 HZ
===================================================================


U-Boot 1.1.3 (Mar 31 2017 - 10:58:58)

Board: Ralink APSoC DRAM:  256 MB
relocate_code Pointer at: 8ffa8000

Config XHCI 40M PLL
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 19
find flash: W25Q256FV
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: SPI Flash
Date:Mar 31 2017  Time:10:58:58
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 880 MHZ ####
 estimate memory size =256 Mbytes
#Reset_MT7530


Catution: ResetButton wasn't pressed or not long enough!
Continuing normal boot...
============================================


Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.                                                                                                                                                                   0

3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-5.4.108
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2431232 Bytes =  2.3 MB
   Load Address: 80001000
   Entry Point:  80001000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...

[    0.000000] Linux version 5.4.108 (pcx@pcx-OptiPlex-7010) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r15945-d0619f7802)) #0 SMP Mon Mar 29 08:53:50 2021
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  [mem 0x0000000010000000-0x0000000023ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001bffffff]
[    0.000000]   node   0: [mem 0x0000000020000000-0x0000000023ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
[    0.000000] OF: fdt: No valid device tree found, continuing without
[    0.000000] percpu: Embedded 14 pages/cpu s26736 r8192 d22416 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130496
[    0.000000] Kernel command line: rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Writing ErrCtl register=00000030
[    0.000000] Readback ErrCtl register=00000030
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 509848K/524288K available (5832K kernel code, 199K rwdata, 1252K rodata, 1280K init, 230K bss, 14440K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/rcu/tree.c:3004 rcu_init+0x55c/0x774
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.108 #0
[    0.000000] Stack : 00000000 8007d738 806c0000 806b99c8 80720000 806b9990 806b8ae4 806efdb4
[    0.000000]         80860000 807031c8 80702d03 8064d524 00000000 00000001 806efd58 00000000
[    0.000000]         00000000 00000000 808a0000 00000000 00000030 00000029 342e3520 3830312e
[    0.000000]         00000000 00000000 00000000 00000000 00000000 80720000 00000000 80729a14
[    0.000000]         00000009 80645dcc 807002d0 80710000 00000003 00000010 9bff0000 00000000
[    0.000000]         ...
[    0.000000] Call Trace:
[    0.000000] [<8000b64c>] show_stack+0x30/0x100
[    0.000000] [<805910b8>] dump_stack+0xa4/0xdc
[    0.000000] [<8002bfe8>] __warn+0xc0/0x10c
[    0.000000] [<8002c090>] warn_slowpath_fmt+0x5c/0xac
[    0.000000] [<80729a14>] rcu_init+0x55c/0x774
[    0.000000] [<807209fc>] start_kernel+0x2b8/0x534
[    0.000000] random: get_random_bytes called from print_oops_end_marker+0x2c/0x64 with crng_init=0
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/rcu/tree.c:3005 rcu_init+0x5ac/0x774
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W         5.4.108 #0
[    0.000000] Stack : 00000000 8007d738 806c0000 806b99c8 80720000 806b9990 806b8ae4 806efdb4
[    0.000000]         80860000 807031c8 80702d03 8064d524 00000000 00000001 806efd58 00000000
[    0.000000]         00000000 00000000 808a0000 00000000 00000030 0000003c 342e3520 3830312e
[    0.000000]         00000000 00000000 00000000 00000000 00000000 80720000 00000000 80729a64
[    0.000000]         00000009 80645dcc 807002d0 80710000 00000003 00000010 9bff0000 00000000
[    0.000000]         ...
[    0.000000] Call Trace:
[    0.000000] [<8000b64c>] show_stack+0x30/0x100
[    0.000000] [<805910b8>] dump_stack+0xa4/0xdc
[    0.000000] [<8002bfe8>] __warn+0xc0/0x10c
[    0.000000] [<8002c090>] warn_slowpath_fmt+0x5c/0xac
[    0.000000] [<80729a64>] rcu_init+0x5ac/0x774
[    0.000000] [<807209fc>] start_kernel+0x2b8/0x534
[    0.000000] ---[ end trace f68728a0d3053b52 ]---
[    0.000000] NR_IRQS: 256
[    0.000000] Kernel panic - not syncing: Failed to find mtk,mt7621-sysc node
[    0.000000] Rebooting in 1 seconds..
[    0.000000] Reboot failed -- System halted

4

Odp: OoliteV8

Zrezygnowałem ze źródeł z postu wyżej, prawdopodobnie przyczyną było bazowanie na niestabilnych źródłach openwrt. Zamiast nich użyłem tej gałęzi od tego samego producenta: https://github.com/GainStrongService/le … ite-mt7621
Problem z ext4 rozwiązany, pojawił się natomiast kolejny z wystawianiem AP. Jeżeli to możliwe prosiłbym o jakieś wskazówki jak podejść do zagadnienia.

Buduję openwrt ze źródeł Gainstrong: https://github.com/GainStrongService/le … ite-mt7621

Firmware Version: OpenWrt SNAPSHOT r6706-f974671a2e / LuCI openwrt-18.06 branch (git-20.029.49294-41e2258)
Kernel Version: 4.14.34

root@OpenWrt:/# cat /etc/openwrt_release
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r6706-f974671a2e'
DISTRIB_TARGET='ramips/mt7621'
DISTRIB_ARCH='mipsel_24kc'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r6706-f974671a2e'
DISTRIB_TAINTS='no-all busybox'

Mam problem z połączeniem hosta do wystawionego przez openwrt AP, a kiedy to samo WiFi przestawię w tryb client i spróbuję podpiąć się do domowego routera, łączy się bez problemu. W luci widać jak nowe urządzenie na chwilę się podłącza i znika, w tcpdump jak podglądam interfejs wlan widać że zewnętrzne urządzenie próbuje się wbić i nic więcej się nie dzieje (próbowałem podpiąć się do AP różnymi urządzeniami).

11:32:33.959706 e0:09:bf:10:a4:2b (oui Unknown) > Broadcast Null Unnumbered, xid, Flags [Response], length 6: 01 00
11:32:33.959831 e0:09:bf:10:a4:2b (oui Unknown) > Broadcast Null Unnumbered, xid, Flags [Response], length 6: 01 00
11:32:37.439957 e0:09:bf:10:a4:2b (oui Unknown) > Broadcast Null Unnumbered, xid, Flags [Response], length 6: 01 00
11:32:37.440096 e0:09:bf:10:a4:2b (oui Unknown) > Broadcast Null Unnumbered, xid, Flags [Response], length 6: 01 00
11:32:44.807668 e0:09:bf:10:a4:2b (oui Unknown) > Broadcast Null Unnumbered, xid, Flags [Response], length 6: 01 00
11:32:44.807803 e0:09:bf:10:a4:2b (oui Unknown) > Broadcast Null Unnumbered, xid, Flags [Response], length 6: 01 00

Logread pokazuje że hostapd ma problem z uwierzytelnieniem

Wed Apr 28 11:11:42 2021 daemon.notice hostapd: wlan0: ACS-COMPLETED freq=2412 channel=1
Wed Apr 28 11:11:42 2021 daemon.err hostapd: Using interface wlan0 with hwaddr 00:e0:30:00:02:58 and ssid "oolite-mt7621_0258"
Wed Apr 28 11:11:42 2021 kern.info kernel: [   38.694387] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Wed Apr 28 11:11:42 2021 kern.info kernel: [   38.707504] br-lan: port 2(wlan0) entered blocking state
Wed Apr 28 11:11:42 2021 kern.info kernel: [   38.718152] br-lan: port 2(wlan0) entered forwarding state
Wed Apr 28 11:11:42 2021 daemon.notice hostapd: wlan0: interface state ACS->ENABLED
Wed Apr 28 11:11:42 2021 daemon.notice hostapd: wlan0: AP-ENABLED
Wed Apr 28 11:11:42 2021 daemon.notice netifd: Network device 'wlan0' link is up
Wed Apr 28 11:11:49 2021 daemon.notice hostapd: wlan0: STA 44:01:bb:8d:f9:9d IEEE 802.11: did not acknowledge authentication response
Wed Apr 28 11:11:51 2021 daemon.notice hostapd: Unsupported authentication algorithm (1)
Wed Apr 28 11:11:51 2021 daemon.notice hostapd: Unsupported authentication algorithm (1)
Wed Apr 28 11:11:51 2021 daemon.notice hostapd: wlan0: STA e0:09:bf:10:a4:2b IEEE 802.11: did not acknowledge authentication response
Wed Apr 28 11:11:51 2021 daemon.notice hostapd: wlan0: STA e0:09:bf:10:a4:2b IEEE 802.11: did not acknowledge authentication response
Wed Apr 28 11:11:51 2021 daemon.notice hostapd: wlan0: STA e0:09:bf:10:a4:2b IEEE 802.11: did not acknowledge authentication response
Wed Apr 28 11:11:52 2021 daemon.notice hostapd: wlan0: STA 44:01:bb:8d:f9:9d IEEE 802.11: did not acknowledge authentication response
Wed Apr 28 11:11:54 2021 daemon.notice hostapd: wlan0: STA 44:01:bb:8d:f9:9d IEEE 802.11: did not acknowledge authentication response
Wed Apr 28 11:11:55 2021 daemon.notice hostapd: Unsupported authentication algorithm (1)
Wed Apr 28 11:11:55 2021 daemon.notice hostapd: Unsupported authentication algorithm (1)

Zainstalowane są następujące pakiety:

root@OpenWrt:/# opkg list-installed
alsa-lib - 1.1.6-1
alsa-utils - 1.1.6-2
ath10k-firmware-qca9887 - 2018-02-09-8f4bafdd-1
ath10k-firmware-qca9888 - 2018-02-09-8f4bafdd-1
ath10k-firmware-qca988x - 2018-02-09-8f4bafdd-1
badblocks - 1.44.1-1
base-files - 190-r6706-f974671a2e
blkid - 2.32-1
block-mount - 2018-04-16-e2436836-1
busybox - 1.28.3-1
cgi-io - 5
chat - 2.4.7-12
comgt - 0.32-30
dnsmasq - 2.79-3
dropbear - 2017.75-5
e2fsprogs - 1.44.1-1
fdisk - 2.32-1
ffmpeg - 3.2.12-3
firewall - 2018-04-05-35b3e74a-2
fstools - 2018-04-16-e2436836-1
fwtool - 1
hostapd-common - 2018-04-09-fa617ee6-1
ip6tables - 1.6.2-1
iptables - 1.6.2-1
iw - 4.14-1
jshn - 2018-04-12-6eff829d-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 4.14.34-1-580bea66717bd15ca72446a254b3f887
kmod-ata-ahci - 4.14.34-1
kmod-ata-core - 4.14.34-1
kmod-ath - 4.14.34+2017-11-01-4
kmod-ath10k - 4.14.34+2017-11-01-4
kmod-ath9k - 4.14.34+2017-11-01-4
kmod-ath9k-common - 4.14.34+2017-11-01-4
kmod-block2mtd - 4.14.34-1
kmod-cfg80211 - 4.14.34+2017-11-01-4
kmod-crypto-crc32c - 4.14.34-1
kmod-crypto-hash - 4.14.34-1
kmod-eeprom-93cx6 - 4.14.34-1
kmod-fs-ext4 - 4.14.34-1
kmod-fs-ntfs - 4.14.34-1
kmod-fs-vfat - 4.14.34-1
kmod-gpio-button-hotplug - 4.14.34-2
kmod-input-core - 4.14.34-1
kmod-ip6tables - 4.14.34-1
kmod-ipt-conntrack - 4.14.34-1
kmod-ipt-core - 4.14.34-1
kmod-ipt-nat - 4.14.34-1
kmod-ipt-offload - 4.14.34-1
kmod-leds-gpio - 4.14.34-1
kmod-lib-crc-ccitt - 4.14.34-1
kmod-lib-crc-itu-t - 4.14.34-1
kmod-lib-crc16 - 4.14.34-1
kmod-mac80211 - 4.14.34+2017-11-01-4
kmod-mii - 4.14.34-1
kmod-mmc - 4.14.34-1
kmod-mt76 - 4.14.34+2018-04-17-ca5cc9a4-1
kmod-mt76-core - 4.14.34+2018-04-17-ca5cc9a4-1
kmod-mt7603 - 4.14.34+2018-04-17-ca5cc9a4-1
kmod-mt76x2 - 4.14.34+2018-04-17-ca5cc9a4-1
kmod-nf-conntrack - 4.14.34-1
kmod-nf-conntrack6 - 4.14.34-1
kmod-nf-flow - 4.14.34-1
kmod-nf-ipt - 4.14.34-1
kmod-nf-ipt6 - 4.14.34-1
kmod-nf-nat - 4.14.34-1
kmod-nf-reject - 4.14.34-1
kmod-nf-reject6 - 4.14.34-1
kmod-nls-base - 4.14.34-1
kmod-nls-cp437 - 4.14.34-1
kmod-nls-iso8859-1 - 4.14.34-1
kmod-nls-utf8 - 4.14.34-1
kmod-ppp - 4.14.34-1
kmod-pppoe - 4.14.34-1
kmod-pppox - 4.14.34-1
kmod-rt2500-usb - 4.14.34+2017-11-01-4
kmod-rt2800-lib - 4.14.34+2017-11-01-4
kmod-rt2800-usb - 4.14.34+2017-11-01-4
kmod-rt2x00-lib - 4.14.34+2017-11-01-4
kmod-rt2x00-usb - 4.14.34+2017-11-01-4
kmod-scsi-core - 4.14.34-1
kmod-sdhci - 4.14.34-1
kmod-sdhci-mt7620 - 4.14.34-1
kmod-slhc - 4.14.34-1
kmod-sound-core - 4.14.34-1
kmod-usb-core - 4.14.34-1
kmod-usb-ehci - 4.14.34-1
kmod-usb-net - 4.14.34-1
kmod-usb-net-cdc-ether - 4.14.34-1
kmod-usb-net-qmi-wwan - 4.14.34-1
kmod-usb-net-rndis - 4.14.34-1
kmod-usb-net-rtl8150 - 4.14.34-1
kmod-usb-net-rtl8152 - 4.14.34-1
kmod-usb-net-sierrawireless - 4.14.34-1
kmod-usb-ohci - 4.14.34-1
kmod-usb-serial - 4.14.34-1
kmod-usb-serial-option - 4.14.34-1
kmod-usb-serial-wwan - 4.14.34-1
kmod-usb-storage - 4.14.34-1
kmod-usb-storage-extras - 4.14.34-1
kmod-usb-uhci - 4.14.34-1
kmod-usb-wdm - 4.14.34-1
kmod-usb2 - 4.14.34-1
kmod-usb3 - 4.14.34-1
lede-keyring - 2017-01-20-a50b7529-1
libblkid - 2.32-1
libblobmsg-json - 2018-04-12-6eff829d-1
libbz2 - 1.0.6-3
libc - 1.1.19-1
libcomerr - 1.44.1-1
libdb47 - 4.7.25.4.NC-5
libext2fs - 1.44.1-1
libfdisk - 2.32-1
libffi - 3.2.1-3
libffmpeg-full - 3.2.12-3
libgcc - 7.3.0-1
libgdbm - 1.11-1
libid3tag - 0.15.1b-4
libip4tc - 1.6.2-1
libip6tc - 1.6.2-1
libiwinfo - 2018-02-15-223e09bf-1
libiwinfo-lua - 2018-02-15-223e09bf-1
libjson-c - 0.12.1-1
libjson-script - 2018-04-12-6eff829d-1
libkmod - 20-1
liblua - 5.1.5-1
liblucihttp - 2019-07-05-a34a17d5-1
liblucihttp-lua - 2019-07-05-a34a17d5-1
liblzma - 5.2.4-1
libmad - 0.15.1b-4
libncurses - 6.1-1
libnl-tiny - 0.1-5
libopenssl - 1.0.2o-1
libpcap1 - 1.10.0-1
libpthread - 1.1.19-1
librt - 1.1.19-1
libsmartcols - 2.32-1
libsqlite3 - 3310100-1
libss - 1.44.1-1
libubox - 2018-04-12-6eff829d-1
libubus - 2018-01-16-5bae22eb-1
libubus-lua - 2018-01-16-5bae22eb-1
libuci - 2018-03-24-5d2bf09e-1
libuclient - 2017-11-02-4b87d831-1
libusb-1.0 - 1.0.21-1
libuuid - 2.32-1
libxml2 - 2.9.9-1
libxtables - 1.6.2-1
logd - 2018-02-14-128bc35f-1
lua - 5.1.5-1
luci - git-20.029.49294-41e2258-1
luci-app-firewall - git-20.029.49294-41e2258-1
luci-base - git-20.029.49294-41e2258-1
luci-lib-ip - git-20.029.49294-41e2258-1
luci-lib-jsonc - git-20.029.49294-41e2258-1
luci-lib-nixio - git-20.029.49294-41e2258-1
luci-mod-admin-full - git-20.029.49294-41e2258-1
luci-proto-3g - git-20.029.49294-41e2258-1
luci-proto-ipv6 - git-20.029.49294-41e2258-1
luci-proto-ppp - git-20.029.49294-41e2258-1
luci-theme-bootstrap - git-20.029.49294-41e2258-1
madplay-alsa - 0.15.2b-6
mtd - 21
netifd - 2018-04-16-513eb27d-1
odhcp6c - 2018-05-04-474b5a3a-11
odhcpd-ipv6only - 1.5-1
opkg - 2017-12-07-3b417b9f-2
pciutils - 3.5.6-1
ppp - 2.4.7-12
ppp-mod-pppoe - 2.4.7-12
procd - 2018-03-28-dfb68f85-1
python3 - 3.6.10-1
python3-asyncio - 3.6.10-1
python3-base - 3.6.10-1
python3-cgi - 3.6.10-1
python3-cgitb - 3.6.10-1
python3-codecs - 3.6.10-1
python3-ctypes - 3.6.10-1
python3-dbm - 3.6.10-1
python3-decimal - 3.6.10-1
python3-distutils - 3.6.10-1
python3-email - 3.6.10-1
python3-gdbm - 3.6.10-1
python3-light - 3.6.10-1
python3-logging - 3.6.10-1
python3-lzma - 3.6.10-1
python3-multiprocessing - 3.6.10-1
python3-ncurses - 3.6.10-1
python3-openssl - 3.6.10-1
python3-pydoc - 3.6.10-1
python3-sqlite3 - 3.6.10-1
python3-unittest - 3.6.10-1
python3-xml - 3.6.10-1
rpcd - 2017-12-07-cfe1e75c-1
rpcd-mod-file - 2017-12-07-cfe1e75c-1
rpcd-mod-iwinfo - 2017-12-07-cfe1e75c-1
rpcd-mod-rrdns - 20170710
rt2800-pci-firmware - 2017-09-06-a61ac5cf-1
rt2800-usb-firmware - 2017-09-06-a61ac5cf-1
shine - 3.1.0-2
swconfig - 11
tcpdump - 4.9.3-3
terminfo - 6.1-1
ubi-utils - 1.5.2-1
ubox - 2018-02-14-128bc35f-1
ubus - 2018-01-16-5bae22eb-1
ubusd - 2018-01-16-5bae22eb-1
uci - 2018-03-24-5d2bf09e-1
uclient-fetch - 2017-11-02-4b87d831-1
uhttpd - 2017-11-04-a235636a-1
uhttpd-mod-ubus - 2017-11-04-a235636a-1
usbutils - 007-7
usign - 2015-07-04-ef641914-1
wireless-regdb - 2017-10-20-4343d359
wpad - 2018-04-09-fa617ee6-1
zlib - 1.2.11-2

Próbowałem:

  • Ustawić AP bez hasła

  • Wyłączyć firewall

  • Wrzucić wifke na interfejs LAN

  • Wrzucić wifke na nowo utworzony interfejs WIFI z oddzielną adresacją i pulą dhcp

  • Zbudować openwrt z zaznaczonym w menuconfig hostapd i wpa-supplicant zamiast wpad

Używam adapterów wifi na USB:

Bus 001 Device 004: ID 148f:5572 Ralink Technology, Corp. RT5572 Wireless Adapter
Bus 001 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

Moje dalsze pomysły jak podejść do zagadnienia:

  • załatanie hostapd patchem, jeżeli tak to jakim i jak?

  • próba podbicia wersji openwrt do przynajmniej "OpenWrt 18.06.1 r7258-5eb055306f", jeżeli to możliwe?

  • odblokowanie jakiejś opcji w menuconfig/krenelu?

5

Odp: OoliteV8

18.06 nie miało żadnych problemów z hostapd, działało to bez problemu (zresztą gargoyle 1.12 na tym działa). Inna sprawa że sterownik do wifi (nie hostapd!) może albo nie wspierać trybu ap na tej karcie albo być na tyle stary że ma problemy z uruchomieniem AP. Tak czy siak - jesteś zdany na siebie, nikt nie bawi się już w utrzymywanie tego softu.

Zacznij od sprawdzenia czy te wifi działają w trybie ap - np. podłącz je do komputera i uruchom z usb współczesne openwrt na komputerze. Jak zadziałają to wiesz że problem masz ze sterownikami, jak nie to nie będą działać, bo zakładam że nie jesteś w stanie poprawić sterowników do wifi.

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

6

Odp: OoliteV8

Dziękuję za szybką odpowiedź, sprawdziłem na innym urządzeniu z openwrt 18.06 i te same adaptery są w stanie wystawić AP i mogę się do nich podłączyć. Czyli w takim razie problem jest ze sterownikami

kmod-rt2800-lib - 4.14.34+2017-11-01-4
kmod-rt2800-usb - 4.14.34+2017-11-01-4
kmod-rt2x00-lib - 4.14.34+2017-11-01-4
kmod-rt2x00-usb - 4.14.34+2017-11-01-4

7

Odp: OoliteV8

Producent z tego co widzę w źródłach robi paskudną sprawy - np otwiera firewalla na wanie. Ponieważ jest tam gotowy DTS to weź sobie aktualne openwrt, przenieś dts + te parę wpisów do plików i skompiluj sobie aktualne openwrt.

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

8

Odp: OoliteV8

Spróbowałem zbudować na źródłach openwrt, z przekopiowaniem potrzebnych plików tak jak wskazałeś. Problem nadal występuje na 2 adapterach (próbowałem je podpinać w USB 2.0 i 3.0), ale jest pewien progres. Teraz jestem w stanie np. laptopem wpiąć się do tego AP i mam informację że połączenie jest ograniczone (wcześniej wcale nie chciał się połączyć), natomiast nie jestem w stanie wyświetlić na nim np. strony Luci. Na komputerze podpiętym po kablu wyświetlam sobie stronę Wireless z Luci i tam widzę że laptop podpina się jako host i co chwilę znika.

Tue May  4 10:14:45 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:46 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:47 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:47 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:48 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:49 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:49 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:50 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:51 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:52 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:52 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:53 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:54 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:55 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:56 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:57 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:57 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Tue May  4 10:14:58 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response

Zainstalowane pakiety:

alsa-lib - 1.1.6-1
alsa-utils - 1.1.6-2
ath10k-firmware-qca9887 - 2018-05-12-952afa49-1
ath10k-firmware-qca9888 - 2018-05-12-952afa49-1
ath10k-firmware-qca988x - 2018-05-12-952afa49-1
badblocks - 1.44.1-2
base-files - 194.3-r8080-9f2a40c72f
block-mount - 2019-03-28-ff1ded63-6
busybox - 1.28.4-3
chat - 2.4.7-13
comgt - 0.32-30
dnsmasq - 2.80-1.4
dropbear - 2017.75-7.1
e2fsprogs - 1.44.1-2
firewall - 2018-08-13-1c4d5bcd-3
fstools - 2019-03-28-ff1ded63-6
fwtool - 1
hostapd - 2018-05-21-62566bc2-8
hostapd-common - 2018-05-21-62566bc2-8
ip6tables - 1.6.2-3
iptables - 1.6.2-3
iw - 4.14-1
jshn - 2018-07-25-c83a84af-5
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 4.14.206-1-6c5af9029fe1070c592985522ae5afd9
kmod-ata-ahci - 4.14.206-1
kmod-ata-core - 4.14.206-1
kmod-ath - 4.14.206+2017-11-01-11
kmod-ath10k - 4.14.206+2017-11-01-11
kmod-ath9k - 4.14.206+2017-11-01-11
kmod-ath9k-common - 4.14.206+2017-11-01-11
kmod-block2mtd - 4.14.206-1
kmod-cfg80211 - 4.14.206+2017-11-01-11
kmod-crypto-crc32c - 4.14.206-1
kmod-crypto-hash - 4.14.206-1
kmod-fs-ext4 - 4.14.206-1
kmod-fs-ntfs - 4.14.206-1
kmod-fs-vfat - 4.14.206-1
kmod-gpio-button-hotplug - 4.14.206-2
kmod-input-core - 4.14.206-1
kmod-ip6tables - 4.14.206-1
kmod-ipt-conntrack - 4.14.206-1
kmod-ipt-core - 4.14.206-1
kmod-ipt-nat - 4.14.206-1
kmod-ipt-offload - 4.14.206-1
kmod-leds-gpio - 4.14.206-1
kmod-lib-crc-ccitt - 4.14.206-1
kmod-lib-crc-itu-t - 4.14.206-1
kmod-lib-crc16 - 4.14.206-1
kmod-mac80211 - 4.14.206+2017-11-01-11
kmod-mmc - 4.14.206-1
kmod-mt76 - 4.14.206+2019-03-23-a5f5605f-1
kmod-mt76-core - 4.14.206+2019-03-23-a5f5605f-1
kmod-mt7603 - 4.14.206+2019-03-23-a5f5605f-1
kmod-mt76x02-common - 4.14.206+2019-03-23-a5f5605f-1
kmod-mt76x2 - 4.14.206+2019-03-23-a5f5605f-1
kmod-mt76x2-common - 4.14.206+2019-03-23-a5f5605f-1
kmod-nf-conntrack - 4.14.206-1
kmod-nf-conntrack6 - 4.14.206-1
kmod-nf-flow - 4.14.206-1
kmod-nf-ipt - 4.14.206-1
kmod-nf-ipt6 - 4.14.206-1
kmod-nf-nat - 4.14.206-1
kmod-nf-reject - 4.14.206-1
kmod-nf-reject6 - 4.14.206-1
kmod-nls-base - 4.14.206-1
kmod-nls-cp437 - 4.14.206-1
kmod-nls-iso8859-1 - 4.14.206-1
kmod-nls-utf8 - 4.14.206-1
kmod-ppp - 4.14.206-1
kmod-pppoe - 4.14.206-1
kmod-pppox - 4.14.206-1
kmod-rt2800-lib - 4.14.206+2017-11-01-11
kmod-rt2800-usb - 4.14.206+2017-11-01-11
kmod-rt2x00-lib - 4.14.206+2017-11-01-11
kmod-rt2x00-usb - 4.14.206+2017-11-01-11
kmod-scsi-core - 4.14.206-1
kmod-sdhci - 4.14.206-1
kmod-sdhci-mt7620 - 4.14.206-1
kmod-slhc - 4.14.206-1
kmod-sound-core - 4.14.206-1
kmod-usb-core - 4.14.206-1
kmod-usb-ehci - 4.14.206-1
kmod-usb-ohci - 4.14.206-1
kmod-usb-serial - 4.14.206-1
kmod-usb-serial-option - 4.14.206-1
kmod-usb-serial-wwan - 4.14.206-1
kmod-usb-storage - 4.14.206-1
kmod-usb-storage-extras - 4.14.206-1
kmod-usb-uhci - 4.14.206-1
kmod-usb2 - 4.14.206-1
kmod-usb3 - 4.14.206-1
libblkid - 2.32-2
libblobmsg-json - 2018-07-25-c83a84af-5
libc - 1.1.19-2
libcomerr - 1.44.1-2
libext2fs - 1.44.1-2
libgcc - 7.3.0-2
libid3tag - 0.15.1b-4
libip4tc - 1.6.2-3
libip6tc - 1.6.2-3
libiwinfo - 2018-07-31-65b8333f-1
libiwinfo-lua - 2018-07-31-65b8333f-1
libjson-c - 0.12.1-2.1
libjson-script - 2018-07-25-c83a84af-5
libkmod - 20-1
liblua - 5.1.5-2
liblucihttp - 2019-07-05-a34a17d5-1
liblucihttp-lua - 2019-07-05-a34a17d5-1
libmad - 0.15.1b-4
libncurses - 6.1-1
libnl-tiny - 0.1-5
libpthread - 1.1.19-2
librt - 1.1.19-2
libss - 1.44.1-2
libubox - 2018-07-25-c83a84af-5
libubus - 2018-10-06-221ce7e7-1
libubus-lua - 2018-10-06-221ce7e7-1
libuci - 2019-05-17-f199b961-2
libuclient - 2018-11-24-3ba74ebc-1
libusb-1.0 - 1.0.22-1
libuuid - 2.32-2
libxtables - 1.6.2-3
logd - 2018-02-14-128bc35f-2
lua - 5.1.5-2
luci - git-21.041.07147-20b3600-1
luci-app-firewall - git-21.041.07147-20b3600-1
luci-base - git-21.041.07147-20b3600-1
luci-lib-ip - git-21.041.07147-20b3600-1
luci-lib-jsonc - git-21.041.07147-20b3600-1
luci-lib-nixio - git-21.041.07147-20b3600-1
luci-mod-admin-full - git-21.041.07147-20b3600-1
luci-proto-3g - git-21.041.07147-20b3600-1
luci-proto-ipv6 - git-21.041.07147-20b3600-1
luci-proto-ppp - git-21.041.07147-20b3600-1
luci-theme-bootstrap - git-21.041.07147-20b3600-1
madplay-alsa - 0.15.2b-6
mtd - 23
netifd - 2019-01-31-a2aba5c7-2.1
odhcp6c - 2018-07-14-67ae6a71-15
odhcpd-ipv6only - 1.15-3
openwrt-keyring - 2018-05-18-103a32e9-1
opkg - 2020-01-25-c09fe209-1
pciutils - 3.5.6-1
ppp - 2.4.7-13
ppp-mod-pppoe - 2.4.7-13
procd - 2018-03-28-dfb68f85-1
rpcd - 2020-05-26-7be1f171-1
rpcd-mod-rrdns - 20170710
rt2800-usb-firmware - 2017-09-06-a61ac5cf-1
swconfig - 11
terminfo - 6.1-1
ubi-utils - 2.0.2-1
ubox - 2018-02-14-128bc35f-2
ubus - 2018-10-06-221ce7e7-1
ubusd - 2018-10-06-221ce7e7-1
uci - 2019-05-17-f199b961-2
uclient-fetch - 2018-11-24-3ba74ebc-1
uhttpd - 2020-02-12-2ee323c0-1
usbutils - 007-9
usign - 2020-05-23-f1f65026-1
wireless-regdb - 2017-10-20-4343d359
wpa-supplicant - 2018-05-21-62566bc2-8
zlib - 1.2.11-2

9 (edytowany przez Cezary 2021-05-04 13:16:35)

Odp: OoliteV8

Luci to ty nie używaj. Serio, krzywdę sobie tylko kiedyś zrobisz.

Tak, wg logów nie potwierdza transmisji. Więc kup sobie inną kartę, bo z tej na razie pożytku nie będziesz miał.

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

10

Odp: OoliteV8

Jakie w takim razie karty pod tego MT7621 rekomendujesz? Zakupię takowe i przetestuję

11

Odp: OoliteV8

Żadnych nie polecę. Nie mam na co dzień styczności z różnymi kartami usb żeby coś polecić.

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

12

Odp: OoliteV8

A czy dobrym pomysłem będzie podbicie wersji openwrt do np. 19.07 (nowsze sterowniki?)? Sklonowałem repo z źródeł openwrt, wybrałem odpowiedni branch, przerzuciłem dts dla Oolite-v8-32MB i dodałem target w /target/linux/ramips/image/mt7621.mk. Zbudował mi się ale po wgraniu na płytkę cały czas się resetuje. To co rzuca na konsole podczas jednego cyklu podaję poniżej

===================================================================
                MT7621   stage1 code Mar 12 2015 14:43:30 (ASIC)
                CPU=500000000 HZ BUS=166666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x31100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-800Mhz ===
PLL3 FB_DL: 0x9, 1/0 = 570/454 25000000
PLL4 FB_DL: 0x14, 1/0 = 693/331 51000000
PLL2 FB_DL: 0x18, 1/0 = 649/375 61000000
do DDR setting..[01F40000]
Apply DDR3 Setting...(use customer AC)
          0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000F:|    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1    1
0010:|    0    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1
0011:|    1    1    1    1    1    1    1    0    0    0    0    0    0    0    0    0
0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
DRAMC_DQSCTL1[0e0]=14000000
DRAMC_DQSGCTL[124]=80000000
rank 0 coarse = 16
rank 0 fine = 64
B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0
opt_dle value:9
DRAMC_DDR2CTL[07c]=C287221D
DRAMC_PADCTL4[0e4]=000022B3
DRAMC_DQIDLY1[210]=0B0A090A
DRAMC_DQIDLY2[214]=050A0809
DRAMC_DQIDLY3[218]=0A080807
DRAMC_DQIDLY4[21c]=08070A08
DRAMC_R0DELDLY[018]=00003031
==================================================================
                RX      DQS perbit delay software calibration
==================================================================
1.0-15 bit dq delay value
==================================================================
bit|     0  1  2  3  4  5  6  7  8  9
--------------------------------------
0 |    9 8 9 11 8 7 9 5 6 7
10 |    7 8 7 10 7 8
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =49 DQS1 = 48
==================================================================
bit     DQS0     bit      DQS1
0  (1~95)48  8  (1~94)47
1  (1~95)48  9  (1~94)47
2  (1~95)48  10  (1~94)47
3  (2~96)49  11  (1~92)46
4  (1~95)48  12  (0~95)47
5  (1~96)48  13  (1~95)48
6  (1~96)48  14  (1~96)48
7  (1~97)49  15  (1~95)48
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    10 9 10 11 9 8 10 5 7 8
10 |    8 10 8 10 7 8
==================================================================
==================================================================
     TX  perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2
DQ loop=15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=2
byte:0, (DQS,DQ)=(8,8)
byte:1, (DQS,DQ)=(8,8)
DRAMC_DQODLY1[200]=88888888
DRAMC_DQODLY2[204]=88888888
20,data:88
[EMI] DRAMC calibration passed

===================================================================
                MT7621   stage1 code done
                CPU=500000000 HZ BUS=166666666 HZ
===================================================================


U-Boot 1.1.3 (Mar 31 2017 - 10:58:58)

Board: Ralink APSoC DRAM:  256 MB
relocate_code Pointer at: 8ffa8000

Config XHCI 40M PLL
flash manufacture id: ef, device id 40 19
find flash: W25Q256FV
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: SPI Flash
Date:Mar 31 2017  Time:10:58:58
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 880 MHZ ####
 estimate memory size =256 Mbytes
#Reset_MT7530


Catution: ResetButton wasn't pressed or not long enough!
Continuing normal boot...
============================================


Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.                                                                                                                                                              0

3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.232
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1928343 Bytes =  1.8 MB
   Load Address: 80001000
   Entry Point:  80001000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...

[    0.000000] Linux version 4.14.232 (pcx@pcx-OptiPlex-7010) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11351-a1ee0ebbd8)) #0 SMP Sun May 16 21:55:26 2021
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Oolite-v8 32MB
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 1c000000 @ 00000000 (usable)
[    0.000000]  memory: 04000000 @ 20000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  [mem 0x0000000010000000-0x0000000023ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001bffffff]
[    0.000000]   node   0: [mem 0x0000000020000000-0x0000000023ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x94/0x4ac with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu s26192 r8192 d22960 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130560
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    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=00004133
[    0.000000] Readback ErrCtl register=00004133
[    0.000000] Memory: 511796K/524288K available (4556K kernel code, 230K rwdata, 1012K rodata, 1292K init, 248K bss, 12492K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000012] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.015546] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087856] pid_max: default: 32768 minimum: 301
[    0.097196] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110220] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.126410] Hierarchical SRCU implementation.
[    0.136097] smp: Bringing up secondary CPUs ...
[    0.146669] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.146679] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.146693] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.146863] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.205334] Synchronize counters for CPU 1: done.
[    0.276929] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.276938] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.276947] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.277028] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.326528] Synchronize counters for CPU 2: done.
[    0.387649] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.387658] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.387667] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.387758] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.446104] Synchronize counters for CPU 3: done.
[    0.505721] smp: Brought up 1 node, 4 CPUs
[    0.517802] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.537305] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.549779] pinctrl core: initialized pinctrl subsystem
[    0.561865] NET: Registered protocol family 16
[    0.582900] pull PCIe RST: RALINK_RSTCTRL = 0
[    0.891885] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.901953] ***** Xtal 40MHz *****
[    0.908682] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.918891] Port 0 N_FTS = 1b102800
[    0.925788] Port 1 N_FTS = 1b102800
[    0.932716] Port 2 N_FTS = 1b102800
[    2.091439] PCIE0 no card, disable it(RST&CLK)
[    2.100131] PCIE1 no card, disable it(RST&CLK)
[    2.108932]  -> 2107f2
[    2.113609] PCIE2 enabled
[    2.118790] PCI host bridge /pcie@1e140000 ranges:
[    2.128317]  MEM 0x0000000060000000..0x000000006fffffff
[    2.138680]   IO 0x000000001e160000..0x000000001e16ffff
[    2.149036] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    2.174379] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.185793] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.197076] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.210061] PCI host bridge to bus 0000:00
[    2.218115] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.231734] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.243485] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.256968] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.273213] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.289713] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.302737] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.316560] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.330034] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.344375] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[    2.357861] pci 0000:00:00.0: BAR 7: no space for [io  size 0x1000]
[    2.370292] pci 0000:00:00.0: BAR 7: failed to assign [io  size 0x1000]
[    2.383436] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.397778] pci 0000:01:00.0: BAR 5: assigned [mem 0x60000000-0x600001ff]
[    2.411251] pci 0000:01:00.0: BAR 4: no space for [io  size 0x0010]
[    2.423686] pci 0000:01:00.0: BAR 4: failed to assign [io  size 0x0010]
[    2.436821] pci 0000:01:00.0: BAR 0: no space for [io  size 0x0008]
[    2.449261] pci 0000:01:00.0: BAR 0: failed to assign [io  size 0x0008]
[    2.462395] pci 0000:01:00.0: BAR 2: no space for [io  size 0x0008]
[    2.474835] pci 0000:01:00.0: BAR 2: failed to assign [io  size 0x0008]
[    2.487969] pci 0000:01:00.0: BAR 1: no space for [io  size 0x0004]
[    2.500410] pci 0000:01:00.0: BAR 1: failed to assign [io  size 0x0004]
[    2.513544] pci 0000:01:00.0: BAR 3: no space for [io  size 0x0004]
[    2.525984] pci 0000:01:00.0: BAR 3: failed to assign [io  size 0x0004]
[    2.539124] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.548960] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.562449] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.578409] clocksource: Switched to clocksource GIC
[    2.590226] NET: Registered protocol family 2
[    2.599551] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.613302] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.626098] TCP: Hash tables configured (established 2048 bind 2048)
[    2.638833] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.650346] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.663047] NET: Registered protocol family 1
[    2.908348] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.920193] Crashlog allocated RAM at address 0x3f00000
[    2.930799] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    2.950629] random: fast init done
[    2.951900] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.968893] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.991998] bounce: pool size: 64 pages
[    2.999619] io scheduler noop registered
[    3.007260] io scheduler deadline registered (default)
[    3.018857] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    3.033272] console [ttyS0] disabled
[    3.040350] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    3.058277] console [ttyS0] enabled
[    3.058277] console [ttyS0] enabled
[    3.072057] bootconsole [early0] disabled
[    3.072057] bootconsole [early0] disabled
[    3.090597] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    3.105044] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    3.127923] m25p80 spi0.0: w25q256 (32768 Kbytes)
[    3.137380] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.150043] Creating 4 MTD partitions on "spi0.0":
[    3.159601] 0x000000000000-0x000000030000 : "u-boot"
[    3.170833] 0x000000030000-0x000000040000 : "u-boot-env"
[    3.182660] 0x000000040000-0x000000050000 : "factory"
[    3.193969] 0x000000050000-0x000002000000 : "firmware"
[    3.206291] libphy: Fixed MDIO Bus: probed
[    3.280478] libphy: mdio: probed
[    4.686664] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.699305] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 22
[    4.719259] NET: Registered protocol family 10
[    4.729993] Segment Routing with IPv6
[    4.737385] NET: Registered protocol family 17
[    4.746352] 8021q: 802.1Q VLAN Support v1.8
[    4.757788] hctosys: unable to open rtc device (rtc0)
[    4.768981] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    4.783891] Please append a correct "root=" boot option; here are the available partitions:
[    4.800529] 1f00             192 mtdblock0
[    4.800536]  (driver?)
[    4.813533] 1f01              64 mtdblock1
[    4.813538]  (driver?)
[    4.826540] 1f02              64 mtdblock2
[    4.826545]  (driver?)
[    4.839553] 1f03           32448 mtdblock3
[    4.839558]  (driver?)
[    4.852555] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    4.870700] Rebooting in 1 seconds..

===================================================================
                MT7621   stage1 code Mar 12 2015 14:43:30 (ASIC)
                CPU=500000000 HZ BUS=166666666 HZ
==================================================================

Czego może mu brakować? Adresy pamięci w dts są takie same jak na obrazach 18.06 które działały.

13 (edytowany przez Cezary 2021-05-18 14:57:22)

Odp: OoliteV8

Przecież napisał - nie znalazł root file systemu, a to dlatego że pobrałeś inny dts do innego systemu w którym inaczej działa podział partycji firmware na kernel i rootfs. Albo zmień sobie dts albo używaj aktualnego systemu.

Nowsze wersje mają nowsze wersje sterowników do mt76. Więc tak.

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

14

Odp: OoliteV8

W jaki sposób mogę dostosować dts żeby to ruszyło?

Aktualny dts:

/dts-v1/;

#include "mt7621.dtsi"
/ {
    compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
    model = "Oolite-v8 32MB";

    memory@0 {
        device_type = "memory";
        reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
    };
    
    chosen {
        bootargs = "console=ttyS0,57600";
    };

    sdhci@1E130000 {
        status = "okay";
//              mediatek,cd-low;
//              mediatek,cd-poll;
    };

    palmbus@1E000000 {
        spi@b00 {
            status = "okay";

            m25p80@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "w25q256";
                reg = <0 0>;
                linux,modalias = "m25p80";
                spi-max-frequency = <10000000>;

                partition@0 {
                    label = "u-boot";
                    reg = <0x0 0x30000>;
                    read-only;
                };

                partition@30000 {
                    label = "u-boot-env";
                    reg = <0x30000 0x10000>;
                    read-only;
                };

                factory: partition@40000 {
                    label = "factory";
                    reg = <0x40000 0x10000>;
                    read-only;
                };

                partition@50000 {
                    label = "firmware";
                    reg = <0x50000 0x1fb0000>;
                };

            };
        };

        i2c@900 {
            compatible = "ralink,i2c-mt7621";
            reg = <0x900 0x100>;
            #address-cells = <1>;
            #size-cells = <0>;
            pinctrl-names = "default";
            pinctrl-0 = <&i2c_pins>;
            status = "okay";
        };
    };

    pcie@1e140000 {
        status = "okay";

        pcie0 {
            mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
                device_type = "pci";
                mediatek,mtd-eeprom = <&factory 0x8000>;
                //mediatek,2ghz = <0>;
                ieee80211-freq-limit = <5000000 6000000>;
            };
        };

        pcie1 {
            mt76@1,0 {
                reg = <0x0800 0 0 0 0>;
                device_type = "pci";
                mediatek,mtd-eeprom = <&factory 0x0000>;
                //mediatek,5ghz = <0>;
                ieee80211-freq-limit = <2400000 2500000>;
    
            };
        };
    };

    ethernet@1e100000 {
        mtd-mac-address = <&factory 0x04>;
    };
    gpio-keys-polled {
        compatible = "gpio-keys-polled";
        #address-cells = <1>;
        #size-cells = <0>;
        poll-interval = <20>;

        reset {
            label = "reset";
            gpios = <&gpio0 18 1>;
            linux,code = <0x198>;
        };
    };

    gpio-leds {
        compatible = "gpio-leds";

        status {
            label = "oolite:green:status";
            gpios = <&gpio0 24 1>;
        };
    };

    pinctrl {
        state_default: pinctrl0 {
            gpio {
                ralink,group = "wdt", "i2c";
                ralink,function = "gpio";
            };
        };
    };
};

Za pomocą kernel command line spróbowałem wskazać mu root=/dev/mtdblock3. To co rzucił na konsole wygląda już nieco inaczej

[   37.991532] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0000: 0x7e1f instead
[   38.010402] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0004: 0x6acf instead
[   38.029271] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0008: 0x5ae7 instead
[   38.048136] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a000c: 0x1420 instead
[   38.067008] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0010: 0xc5ea instead
[   38.085881] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0014: 0x11e6 instead
[   38.104751] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0018: 0x1c63 instead
[   38.123621] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a001c: 0x0411 instead
[   38.142489] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0020: 0x572b instead
[   38.161359] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x007a0024: 0x8c57 instead
[   38.180223] jffs2: Further such events for this erase block will not be printed
[   38.229425] jffs2: Empty flash at 0x007a7ccc ends at 0x007a8000
[   38.270711] jffs2_scan_eraseblock(): End of filesystem marker found at 0x7b0000
[   38.285388] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes
[   38.302184] jffs2: empty_blocks 384, bad_blocks 0, c->nr_blocks 507
[   38.314843] VFS: Cannot open root device "mtdblock3" or unknown-block(31,3): error -5
[   38.330456] Please append a correct "root=" boot option; here are the available partitions:
[   38.347099] 1f00             192 mtdblock0
[   38.347107]  (driver?)
[   38.360120] 1f01              64 mtdblock1
[   38.360125]  (driver?)
[   38.373122] 1f02              64 mtdblock2
[   38.373127]  (driver?)
[   38.386126] 1f03           32448 mtdblock3
[   38.386131]  (driver?)
[   38.399140] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[   38.423982] Rebooting in 1 seconds..

15

Odp: OoliteV8

Dla danego sdk, w danej wersji  - wejdź sobie do ramips/mt7621 i zobacz w innych dtsach jak jest zrobiona obsługa/definicja patycji. Bo jest różne dla różnych wydań, kiedyś była jawnie podawana partcja dla kernela i rootfs, było same firmware a system widział jak to dzielić, obecnie są wprowadzane nody które mówią jaki parser jest używany do podziału partycji. Zobacz w sdk którego używasz jak to jest zrobione dla innych platform.

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

16

Odp: OoliteV8

Działam na ogólnym opewrt, nie mam sdk. Mam źródła gainstronga, ale na nich nie pracuję.
Gdzie szukać nod'ów które wskazują jaki parser ma być użyty do podziału partycji?

Spróbowałem zmodyfikować DTS wzorując się na DTS gainstronga z 21.02

/dts-v1/;

#include "mt7621.dtsi"
/ {
    compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
    model = "Oolite-v8 32MB";

    memory@0 {
        device_type = "memory";
        reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
    };
    
    chosen {
        bootargs = "console=ttyS0,57600";
    };

    sdhci@1E130000 {
        status = "okay";
//              mediatek,cd-low;
//              mediatek,cd-poll;
    };

    palmbus@1E000000 {
        spi@b00 {
            status = "okay";

            m25p80@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "w25q256";
                reg = <0 0>;
                linux,modalias = "jedec,spi-nor";
                spi-max-frequency = <10000000>;

                partitions {
                    compatible="fixed-partitions";
                    #address-cells = <1>;
                    #size-cells = <1>;
                    
                    partition@0 {
                        label = "u-boot";
                        reg = <0x0 0x30000>;
                        read-only;
                    };
    
                    partition@30000 {
                        label = "u-boot-env";
                        reg = <0x30000 0x10000>;
                        read-only;
                    };
    
                    factory: partition@40000 {
                        label = "factory";
                        reg = <0x40000 0x10000>;
                        read-only;
                    };
    
                    partition@50000 {
                        compatible="denx,uimage";
                        label = "firmware";
                        reg = <0x50000 0x1fb0000>;
                    };
    
                };
            };
        };

        i2c@900 {
            compatible = "ralink,i2c-mt7621";
            reg = <0x900 0x100>;
            #address-cells = <1>;
            #size-cells = <0>;
            pinctrl-names = "default";
            pinctrl-0 = <&i2c_pins>;
            status = "okay";
        };
    };

    pcie@1e140000 {
        status = "okay";

        pcie0 {
            mt76@0,0 {
                reg = <0x0000 0 0 0 0>;
                device_type = "pci";
                mediatek,mtd-eeprom = <&factory 0x8000>;
                //mediatek,2ghz = <0>;
                ieee80211-freq-limit = <5000000 6000000>;
            };
        };

        pcie1 {
            mt76@1,0 {
                reg = <0x0800 0 0 0 0>;
                device_type = "pci";
                mediatek,mtd-eeprom = <&factory 0x0000>;
                //mediatek,5ghz = <0>;
                ieee80211-freq-limit = <2400000 2500000>;
    
            };
        };
    };

    ethernet@1e100000 {
        mtd-mac-address = <&factory 0x04>;
    };
    gpio-keys-polled {
        compatible = "gpio-keys-polled";
        #address-cells = <1>;
        #size-cells = <0>;
        poll-interval = <20>;

        reset {
            label = "reset";
            gpios = <&gpio0 18 1>;
            linux,code = <0x198>;
        };
    };

    gpio-leds {
        compatible = "gpio-leds";

        status {
            label = "oolite:green:status";
            gpios = <&gpio0 24 1>;
        };
    };

    pinctrl {
        state_default: pinctrl0 {
            gpio {
                ralink,group = "wdt", "i2c";
                ralink,function = "gpio";
            };
        };
    };
};

Nie wykrył żadnych dostępnych partycji dla root=

17

Odp: OoliteV8

compatible="denx,uimage";

To wybiera parser/sposób podziału partycji, na dodatek zależy to od modelu urządzenia bo jest ich kilka rodzajów. Ale to jest dla aktualnych źródeł openwrt. Z czego właściwie korzystasz, z której wersji?

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

18

Odp: OoliteV8

Jeżeli dobrze rozumiem pytanie to pytasz o źródła, a więc korzystam z tych: https://github.com/openwrt/openwrt/tree/openwrt-19.07
Lokalnie mam ten commit

pcx@pcx-OptiPlex-7010:~/openwrt_MT7621/org_19_07/openwrt$ git branch
  master
* openwrt-19.07
pcx@pcx-OptiPlex-7010:~/openwrt_MT7621/org_19_07/openwrt$ git rev-parse HEAD
a1ee0ebbd8e9927a65c5d1e0db497dd118d559a6

19

Odp: OoliteV8

Wiec powinno być w takiej postaci jak robiłeś. Pokaż pełny log z uruchomienia płytki.

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

20

Odp: OoliteV8

Przyjrzałem się jeszcze raz i zapomniałem przełączyć na odpowiedni target po moich eksperymentach w skutek czego nie zbudowało mi obrazu z mojej zmodyfikowanej dts'ki. Powtórzyłem budowanie ale już z poprawnym targetem i zaskoczyło smile więc kluczowe było to dodanie 'compatible="denx,uimage";' do partycji firmware
Bardzo dziękuję Cezary za wsparcie, bez ciebie chyba bym się przez to nie przedarł. Zaraz atakuję temat wifi i wrzucę wyniki.

21

Odp: OoliteV8

Na obrazie który zbudowałem nie wykrywa huba usb. Strzelam że szczegół znowu tkwi w dts. Na konsolę dostaję to:

===================================================================
                MT7621   stage1 code Mar 12 2015 14:43:30 (ASIC)
                CPU=500000000 HZ BUS=166666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x31100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-800Mhz ===
PLL3 FB_DL: 0xa, 1/0 = 617/407 29000000
PLL4 FB_DL: 0x14, 1/0 = 635/389 51000000
PLL2 FB_DL: 0x18, 1/0 = 615/409 61000000
do DDR setting..[01F40000]
Apply DDR3 Setting...(use customer AC)
          0    8   16   24   32   40   48   56   64   72   80   88   96  104  112  120
      --------------------------------------------------------------------------------
0000:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0001:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0002:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0003:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0004:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0005:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0006:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0007:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0008:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0009:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
000F:|    0    0    0    0    0    0    0    0    1    1    1    1    1    1    1    1
0010:|    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    0
0011:|    1    1    1    1    1    1    1    0    0    0    0    0    0    0    0    0
0012:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0013:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0014:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0015:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0016:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0017:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0018:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
0019:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001A:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001B:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001C:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001D:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001E:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
001F:|    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0
DRAMC_DQSCTL1[0e0]=14000000
DRAMC_DQSGCTL[124]=80000000
rank 0 coarse = 16
rank 0 fine = 56
B:|    0    0    0    0    0    0    0    0    1    1    1    0    0    0    0    0
opt_dle value:9
DRAMC_DDR2CTL[07c]=C287221D
DRAMC_PADCTL4[0e4]=000022B3
DRAMC_DQIDLY1[210]=0B0B0A0B
DRAMC_DQIDLY2[214]=060B080A
DRAMC_DQIDLY3[218]=0A080808
DRAMC_DQIDLY4[21c]=09070B08
DRAMC_R0DELDLY[018]=00003132
==================================================================
                RX      DQS perbit delay software calibration
==================================================================
1.0-15 bit dq delay value
==================================================================
bit|     0  1  2  3  4  5  6  7  8  9
--------------------------------------
0 |    9 8 9 11 8 7 9 5 6 7
10 |    7 8 8 10 6 8
--------------------------------------

==================================================================
2.dqs window
x=pass dqs delay value (min~max)center
y=0-7bit DQ of every group
input delay:DQS0 =50 DQS1 = 49
==================================================================
bit     DQS0     bit      DQS1
0  (1~96)48  8  (1~94)47
1  (1~95)48  9  (1~95)48
2  (1~95)48  10  (1~95)48
3  (2~98)50  11  (1~93)47
4  (1~96)48  12  (1~97)49
5  (1~97)49  13  (1~96)48
6  (1~96)48  14  (0~96)48
7  (1~98)49  15  (1~96)48
==================================================================
3.dq delay value last
==================================================================
bit|    0  1  2  3  4  5  6  7  8   9
--------------------------------------
0 |    11 10 11 11 10 8 11 6 8 8
10 |    8 10 8 11 7 9
==================================================================
==================================================================
     TX  perbyte calibration
==================================================================
DQS loop = 15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqsdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqsdly_pass[1]=15,  finish count=2
DQ loop=15, cmp_err_1 = ffff0000
dqs_perbyte_dly.last_dqdly_pass[0]=15,  finish count=1
dqs_perbyte_dly.last_dqdly_pass[1]=15,  finish count=2
byte:0, (DQS,DQ)=(8,8)
byte:1, (DQS,DQ)=(8,8)
DRAMC_DQODLY1[200]=88888888
DRAMC_DQODLY2[204]=88888888
20,data:88
[EMI] DRAMC calibration passed

===================================================================
                MT7621   stage1 code done
                CPU=500000000 HZ BUS=166666666 HZ
===================================================================


U-Boot 1.1.3 (Mar 31 2017 - 10:58:58)

Board: Ralink APSoC DRAM:  256 MB
relocate_code Pointer at: 8ffa8000

Config XHCI 40M PLL
flash manufacture id: ef, device id 40 19
find flash: W25Q256FV
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC MT7621A DualCore (MAC to MT7530 Mode)
DRAM_CONF_FROM: Auto-Detection
DRAM_TYPE: DDR3
DRAM bus: 16 bit
Xtal Mode=3 OCP Ratio=1/3
Flash component: SPI Flash
Date:Mar 31 2017  Time:10:58:58
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:256, ways:4, linesz:32 ,total:32768

 ##### The CPU freq = 880 MHZ ####
 estimate memory size =256 Mbytes
#Reset_MT7530


Catution: ResetButton wasn't pressed or not long enough!
Continuing normal boot...
============================================


Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.                                                                                                                          0

3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.232
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1924154 Bytes =  1.8 MB
   Load Address: 80001000
   Entry Point:  80001000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80001000) ...
## Giving linux memsize in MB, 256

Starting kernel ...

[    0.000000] Linux version 4.14.232 (pcx@pcx-OptiPlex-7010) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11351-a1ee0ebbd8)) #0 SMP Sun May 16 21:55:26 2021
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Oolite-v8 32MB
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 1c000000 @ 00000000 (usable)
[    0.000000]  memory: 04000000 @ 20000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  [mem 0x0000000010000000-0x0000000023ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001bffffff]
[    0.000000]   node   0: [mem 0x0000000020000000-0x0000000023ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000023ffffff]
[    0.000000] random: get_random_bytes called from start_kernel+0x94/0x4ac with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu s26192 r8192 d22960 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130560
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    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=00006133
[    0.000000] Readback ErrCtl register=00006133
[    0.000000] Memory: 511860K/524288K available (4548K kernel code, 227K rwdata, 1008K rodata, 1244K init, 248K bss, 12428K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 880MHz
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000011] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.015551] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.087864] pid_max: default: 32768 minimum: 301
[    0.097203] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110228] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.126438] Hierarchical SRCU implementation.
[    0.136125] smp: Bringing up secondary CPUs ...
[    0.146690] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.146700] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.146715] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.146884] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.205354] Synchronize counters for CPU 1: done.
[    0.276949] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.276957] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.276966] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.277045] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.326552] Synchronize counters for CPU 2: done.
[    0.387671] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.387682] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.387691] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.387778] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.446125] Synchronize counters for CPU 3: done.
[    0.505738] smp: Brought up 1 node, 4 CPUs
[    0.517872] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.537371] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.549846] pinctrl core: initialized pinctrl subsystem
[    0.561938] NET: Registered protocol family 16
[    0.582941] pull PCIe RST: RALINK_RSTCTRL = 0
[    0.891927] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.901995] ***** Xtal 40MHz *****
[    0.908724] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.918933] Port 0 N_FTS = 1b102800
[    0.925831] Port 1 N_FTS = 1b102800
[    0.932758] Port 2 N_FTS = 1b102800
[    2.091486] PCIE0 no card, disable it(RST&CLK)
[    2.100179] PCIE1 no card, disable it(RST&CLK)
[    2.108978]  -> 2107f2
[    2.113656] PCIE2 enabled
[    2.118839] PCI host bridge /pcie@1e140000 ranges:
[    2.128363]  MEM 0x0000000060000000..0x000000006fffffff
[    2.138726]   IO 0x000000001e160000..0x000000001e16ffff
[    2.149082] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    2.174303] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.185663] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.196986] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    2.210065] PCI host bridge to bus 0000:00
[    2.218162] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    2.231761] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    2.243514] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    2.256988] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.273237] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.289781] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    2.302836] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.316632] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.330111] pci 0000:00:00.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    2.344448] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[    2.357933] pci 0000:00:00.0: BAR 7: no space for [io  size 0x1000]
[    2.370366] pci 0000:00:00.0: BAR 7: failed to assign [io  size 0x1000]
[    2.383512] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    2.397844] pci 0000:01:00.0: BAR 5: assigned [mem 0x60000000-0x600001ff]
[    2.411325] pci 0000:01:00.0: BAR 4: no space for [io  size 0x0010]
[    2.423766] pci 0000:01:00.0: BAR 4: failed to assign [io  size 0x0010]
[    2.436894] pci 0000:01:00.0: BAR 0: no space for [io  size 0x0008]
[    2.449333] pci 0000:01:00.0: BAR 0: failed to assign [io  size 0x0008]
[    2.462469] pci 0000:01:00.0: BAR 2: no space for [io  size 0x0008]
[    2.474910] pci 0000:01:00.0: BAR 2: failed to assign [io  size 0x0008]
[    2.488042] pci 0000:01:00.0: BAR 1: no space for [io  size 0x0004]
[    2.500482] pci 0000:01:00.0: BAR 1: failed to assign [io  size 0x0004]
[    2.513619] pci 0000:01:00.0: BAR 3: no space for [io  size 0x0004]
[    2.526057] pci 0000:01:00.0: BAR 3: failed to assign [io  size 0x0004]
[    2.539192] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.549028] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.562519] pci 0000:00:00.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.578618] clocksource: Switched to clocksource GIC
[    2.590437] NET: Registered protocol family 2
[    2.599794] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.613575] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.626350] TCP: Hash tables configured (established 2048 bind 2048)
[    2.639110] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.650640] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.663353] NET: Registered protocol family 1
[    2.908543] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.920390] Crashlog allocated RAM at address 0x3f00000
[    2.930964] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    2.952405] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.963912] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.986655] random: fast init done
[    2.994170] bounce: pool size: 64 pages
[    3.001694] io scheduler noop registered
[    3.009475] io scheduler deadline registered (default)
[    3.020955] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    3.035189] console [ttyS0] disabled
[    3.042330] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 19, base_baud = 3125000) is a 16550A
[    3.060234] console [ttyS0] enabled
[    3.060234] console [ttyS0] enabled
[    3.074009] bootconsole [early0] disabled
[    3.074009] bootconsole [early0] disabled
[    3.092362] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    3.106758] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[    3.129527] m25p80 spi0.0: w25q256 (32768 Kbytes)
[    3.138974] 4 fixed-partitions partitions found on MTD device spi0.0
[    3.151626] Creating 4 MTD partitions on "spi0.0":
[    3.161177] 0x000000000000-0x000000030000 : "u-boot"
[    3.172308] 0x000000030000-0x000000040000 : "u-boot-env"
[    3.184119] 0x000000040000-0x000000050000 : "factory"
[    3.195388] 0x000000050000-0x000002000000 : "firmware"
[    3.207036] 2 uimage-fw partitions found on MTD device firmware
[    3.218881] Creating 2 MTD partitions on "firmware":
[    3.228800] 0x000000000000-0x0000001d5c7a : "kernel"
[    3.239948] 0x0000001d5c7a-0x000001fb0000 : "rootfs"
[    3.251037] mtd: device 5 (rootfs) set to be root filesystem
[    3.262473] 1 squashfs-split partitions found on MTD device rootfs
[    3.274819] 0x0000004e0000-0x000001fb0000 : "rootfs_data"
[    3.287679] libphy: Fixed MDIO Bus: probed
[    3.360652] libphy: mdio: probed
[    4.766912] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.779649] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 22
[    4.799390] NET: Registered protocol family 10
[    4.810170] Segment Routing with IPv6
[    4.817553] NET: Registered protocol family 17
[    4.826519] 8021q: 802.1Q VLAN Support v1.8
[    4.837724] hctosys: unable to open rtc device (rtc0)
[    4.857135] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    4.877538] Freeing unused kernel memory: 1244K
[    4.886710] This architecture does not have kernel memory protection.
[    5.660077] init: Console is alive
[    5.667133] init: - watchdog -
[    6.596215] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.633755] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    6.753791] usbcore: registered new interface driver usbfs
[    6.764928] usbcore: registered new interface driver hub
[    6.775668] usbcore: registered new device driver usb
[    6.790618] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.809115] init: - preinit -
[    7.761635] mtk_soc_eth 1e100000.ethernet: PPE started
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
[   11.129734] jffs2: notice: (429) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 1 orphan) and 1 of xref (1 dead, 0 orphan) found.
[   11.163205] mount_root: switching to jffs2 overlay
[   11.193947] overlayfs: upper fs does not support tmpfile.
[   11.212973] urandom-seed: Seeding with /etc/urandom.seed
[   11.315639] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   11.338758] procd: - early -
[   11.344630] procd: - watchdog -
[   12.018787] procd: - watchdog -
[   12.025448] procd: - ubus -
[   12.119661] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.133286] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.146482] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.160090] procd: - init -
Please press Enter to activate this console.
[   12.741411] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.759958] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.778433] Loading modules backported from Linux version v4.19.189-0-g97a8651cadce
[   12.793743] Backport generated by backports.git v4.19.189-1-0-gf6aeae51
[   12.809546] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.827704] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[   12.882135] xt_time: kernel timezone is -0000
[   12.912256] urngd: v1.0.2 started.
[   12.955695] PPP generic driver version 2.4.2
[   12.966896] NET: Registered protocol family 24
[   13.000831] usbcore: registered new interface driver rt2800usb
[   13.013364] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.079579] random: crng init done
[   13.086371] random: 7 urandom warning(s) missed due to ratelimiting
[   18.493364] mtk_soc_eth 1e100000.ethernet: PPE started
[   18.510145] br-lan: port 1(eth0.1) entered blocking state
[   18.521143] br-lan: port 1(eth0.1) entered disabled state
[   18.533113] device eth0.1 entered promiscuous mode
[   18.542775] device eth0 entered promiscuous mode
[   18.556402] br-lan: port 1(eth0.1) entered blocking state
[   18.567260] br-lan: port 1(eth0.1) entered forwarding state
[   18.579193] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   19.499363] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

Zainstalowane pakiety:

base-files - 204.4-r11351-a1ee0ebbd8
blkid - 2.34-1
busybox - 1.30.1-6
dnsmasq - 2.80-16.3
dropbear - 2019.78-2
fdisk - 2.34-1
firewall - 2019-11-22-8174814a-3
fstools - 2020-05-12-84269037-1
fwtool - 2
getrandom - 2019-06-16-4df34a4d-3
hostapd - 2019-08-08-ca8c2bd2-7
hostapd-common - 2019-08-08-ca8c2bd2-7
ip6tables - 1.8.3-1
iptables - 1.8.3-1
iw - 5.0.1-1
jshn - 2020-05-25-66195aee-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 4.14.232-1-ec5392878d9894978be40e308cc19639
kmod-cfg80211 - 4.14.232+4.19.189-1-1
kmod-gpio-button-hotplug - 4.14.232-3
kmod-ip6tables - 4.14.232-1
kmod-ipt-conntrack - 4.14.232-1
kmod-ipt-core - 4.14.232-1
kmod-ipt-nat - 4.14.232-1
kmod-ipt-offload - 4.14.232-1
kmod-leds-gpio - 4.14.232-1
kmod-lib-crc-ccitt - 4.14.232-1
kmod-mac80211 - 4.14.232+4.19.189-1-1
kmod-nf-conntrack - 4.14.232-1
kmod-nf-conntrack6 - 4.14.232-1
kmod-nf-flow - 4.14.232-1
kmod-nf-ipt - 4.14.232-1
kmod-nf-ipt6 - 4.14.232-1
kmod-nf-nat - 4.14.232-1
kmod-nf-reject - 4.14.232-1
kmod-nf-reject6 - 4.14.232-1
kmod-nls-base - 4.14.232-1
kmod-ppp - 4.14.232-1
kmod-pppoe - 4.14.232-1
kmod-pppox - 4.14.232-1
kmod-rt2800-lib - 4.14.232+4.19.189-1-1
kmod-rt2800-usb - 4.14.232+4.19.189-1-1
kmod-rt2x00-lib - 4.14.232+4.19.189-1-1
kmod-rt2x00-usb - 4.14.232+4.19.189-1-1
kmod-slhc - 4.14.232-1
kmod-usb-core - 4.14.232-1
libblkid1 - 2.34-1
libblobmsg-json - 2020-05-25-66195aee-1
libc - 1.1.24-2
libfdisk1 - 2.34-1
libgcc1 - 7.5.0-2
libip4tc2 - 1.8.3-1
libip6tc2 - 1.8.3-1
libjson-c2 - 0.12.1-3.1
libjson-script - 2020-05-25-66195aee-1
libmount1 - 2.34-1
libncurses6 - 6.1-5
libnl-tiny - 0.1-5
libpthread - 1.1.24-2
librt - 1.1.24-2
libsmartcols1 - 2.34-1
libubox20191228 - 2020-05-25-66195aee-1
libubus20191227 - 2019-12-27-041c9d1c-1
libuci20130104 - 2019-09-01-415f9e48-4
libuclient20160123 - 2020-06-17-51e16ebf-1
libusb-1.0-0 - 1.0.22-2
libuuid1 - 2.34-1
libxtables12 - 1.8.3-1
logd - 2019-06-16-4df34a4d-3
lsblk - 2.34-1
mtd - 24
netifd - 2021-01-09-753c351b-1
odhcp6c - 2021-01-09-64e1b4e7-16
odhcpd-ipv6only - 2020-05-03-49e4949c-3
openwrt-keyring - 2021-02-20-49283916-2
opkg - 2021-01-31-c5dccea9-1
ppp - 2.4.7.git-2019-05-25-3
ppp-mod-pppoe - 2.4.7.git-2019-05-25-3
procd - 2020-03-07-09b9bd82-1
rt2800-usb-firmware - 20190416-1
swconfig - 12
terminfo - 6.1-5
ubi-utils - 2.1.1-1
ubox - 2019-06-16-4df34a4d-3
ubus - 2019-12-27-041c9d1c-1
ubusd - 2019-12-27-041c9d1c-1
uci - 2019-09-01-415f9e48-4
uclient-fetch - 2020-06-17-51e16ebf-1
urandom-seed - 1.0-1
urngd - 2020-01-21-c7f7b6b6-1
usbutils - 007-10
usign - 2020-05-23-f1f65026-1
wireless-regdb - 2020.11.20-1
wpa-supplicant - 2019-08-08-ca8c2bd2-7

Treść używanego dts jest w poprzednim poście, ale w nim jest #include "mt7621.dtsi" więc wrzucam to dtsi niżej:

#include <dt-bindings/interrupt-controller/mips-gic.h>
#include <dt-bindings/clock/mt7621-clk.h>

/ {
    #address-cells = <1>;
    #size-cells = <1>;
    compatible = "mediatek,mt7621-soc";

    cpus {
        #address-cells = <1>;
        #size-cells = <0>;

        cpu@0 {
            device_type = "cpu";
            compatible = "mips,mips1004Kc";
            reg = <0>;
        };

        cpu@1 {
            device_type = "cpu";
            compatible = "mips,mips1004Kc";
            reg = <1>;
        };
    };

    cpuintc: cpuintc {
        #address-cells = <0>;
        #interrupt-cells = <1>;
        interrupt-controller;
        compatible = "mti,cpu-interrupt-controller";
    };

    aliases {
        serial0 = &uartlite;
    };

    pll: pll {
        compatible = "mediatek,mt7621-pll", "syscon";

        #clock-cells = <1>;
        clock-output-names = "cpu", "bus";
    };

    sysclock: sysclock {
        #clock-cells = <0>;
        compatible = "fixed-clock";

        /* FIXME: there should be way to detect this */
        clock-frequency = <50000000>;
    };



    palmbus: palmbus@1E000000 {
        compatible = "palmbus";
        reg = <0x1E000000 0x100000>;
        ranges = <0x0 0x1E000000 0x0FFFFF>;

        #address-cells = <1>;
        #size-cells = <1>;

        sysc: sysc@0 {
            compatible = "mtk,mt7621-sysc";
            reg = <0x0 0x100>;
        };

        wdt: wdt@100 {
            compatible = "mediatek,mt7621-wdt";
            reg = <0x100 0x100>;
        };

        gpio@600 {
            #address-cells = <1>;
            #size-cells = <0>;

            compatible = "mtk,mt7621-gpio";
            reg = <0x600 0x100>;

            interrupt-parent = <&gic>;
            interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;

            gpio0: bank@0 {
                reg = <0>;
                compatible = "mtk,mt7621-gpio-bank";
                gpio-controller;
                #gpio-cells = <2>;
            };

            gpio1: bank@1 {
                reg = <1>;
                compatible = "mtk,mt7621-gpio-bank";
                gpio-controller;
                #gpio-cells = <2>;
            };

            gpio2: bank@2 {
                reg = <2>;
                compatible = "mtk,mt7621-gpio-bank";
                gpio-controller;
                #gpio-cells = <2>;
            };
        };

        i2c: i2c@900 {
            compatible = "mediatek,mt7621-i2c";
            reg = <0x900 0x100>;

            clocks = <&sysclock>;

            resets = <&rstctrl 16>;
            reset-names = "i2c";

            #address-cells = <1>;
            #size-cells = <0>;

            status = "disabled";

            pinctrl-names = "default";
            pinctrl-0 = <&i2c_pins>;
        };

        i2s: i2s@a00 {
            compatible = "mediatek,mt7621-i2s";
            reg = <0xa00 0x100>;

            clocks = <&sysclock>;

            resets = <&rstctrl 17>;
            reset-names = "i2s";

            interrupt-parent = <&gic>;
            interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>;

            txdma-req = <2>;
            rxdma-req = <3>;

            dmas = <&gdma 4>,
                <&gdma 6>;
            dma-names = "tx", "rx";

            status = "disabled";
        };

        systick: systick@500 {
            compatible = "ralink,mt7621-systick", "ralink,cevt-systick";
            reg = <0x500 0x10>;

            resets = <&rstctrl 28>;
            reset-names = "intc";

            interrupt-parent = <&gic>;
            interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>;
        };

        memc: memc@5000 {
            compatible = "mtk,mt7621-memc";
            reg = <0x5000 0x1000>;
        };

        cpc: cpc@1fbf0000 {
            compatible = "mtk,mt7621-cpc";
            reg = <0x1fbf0000 0x8000>;
        };

        mc: mc@1fbf8000 {
            compatible = "mtk,mt7621-mc";
            reg = <0x1fbf8000 0x8000>;
        };

        uartlite: uartlite@c00 {
            compatible = "ns16550a";
            reg = <0xc00 0x100>;

            clock-frequency = <50000000>;

            interrupt-parent = <&gic>;
            interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>;

            reg-shift = <2>;
            reg-io-width = <4>;
            no-loopback-test;
        };

        uartlite2: uartlite2@d00 {
            compatible = "ns16550a";
            reg = <0xd00 0x100>;

            clock-frequency = <50000000>;

            interrupt-parent = <&gic>;
            interrupts = <GIC_SHARED 27 IRQ_TYPE_LEVEL_HIGH>;

            reg-shift = <2>;
            reg-io-width = <4>;

            pinctrl-names = "default";
            pinctrl-0 = <&uart2_pins>;

            status = "disabled";
        };

        uartlite3: uartlite3@e00 {
            compatible = "ns16550a";
            reg = <0xe00 0x100>;

            clock-frequency = <50000000>;

            interrupt-parent = <&gic>;
            interrupts = <GIC_SHARED 28 IRQ_TYPE_LEVEL_HIGH>;

            reg-shift = <2>;
            reg-io-width = <4>;

            pinctrl-names = "default";
            pinctrl-0 = <&uart3_pins>;

            status = "disabled";
        };

        spi0: spi@b00 {
            status = "disabled";

            compatible = "ralink,mt7621-spi";
            reg = <0xb00 0x100>;

            clocks = <&pll MT7621_CLK_BUS>;

            resets = <&rstctrl 18>;
            reset-names = "spi";

            #address-cells = <1>;
            #size-cells = <0>;

            pinctrl-names = "default";
            pinctrl-0 = <&spi_pins>;
        };

        gdma: gdma@2800 {
            compatible = "ralink,rt3883-gdma";
            reg = <0x2800 0x800>;

            resets = <&rstctrl 14>;
            reset-names = "dma";

            interrupt-parent = <&gic>;
            interrupts = <0 13 4>;

            #dma-cells = <1>;
            #dma-channels = <16>;
            #dma-requests = <16>;

            status = "disabled";
        };

        hsdma: hsdma@7000 {
            compatible = "mediatek,mt7621-hsdma";
            reg = <0x7000 0x1000>;

            resets = <&rstctrl 5>;
            reset-names = "hsdma";

            interrupt-parent = <&gic>;
            interrupts = <0 11 4>;

            #dma-cells = <1>;
            #dma-channels = <1>;
            #dma-requests = <1>;

            status = "disabled";
        };
    };

    pinctrl: pinctrl {
        compatible = "ralink,rt2880-pinmux";
        pinctrl-names = "default";
        pinctrl-0 = <&state_default>;

        state_default: pinctrl0 {
        };

        i2c_pins: i2c_pins {
            i2c_pins {
                ralink,group = "i2c";
                ralink,function = "i2c";
            };
        };

        spi_pins: spi_pins {
            spi_pins {
                ralink,group = "spi";
                ralink,function = "spi";
            };
        };

        uart1_pins: uart1 {
            uart1 {
                ralink,group = "uart1";
                ralink,function = "uart1";
            };
        };

        uart2_pins: uart2 {
            uart2 {
                ralink,group = "uart2";
                ralink,function = "uart2";
            };
        };

        uart3_pins: uart3 {
            uart3 {
                ralink,group = "uart3";
                ralink,function = "uart3";
            };
        };

        rgmii1_pins: rgmii1 {
            rgmii1 {
                ralink,group = "rgmii1";
                ralink,function = "rgmii1";
            };
        };

        rgmii2_pins: rgmii2 {
            rgmii2 {
                ralink,group = "rgmii2";
                ralink,function = "rgmii2";
            };
        };

        mdio_pins: mdio {
            mdio {
                ralink,group = "mdio";
                ralink,function = "mdio";
            };
        };

        pcie_pins: pcie {
            pcie {
                ralink,group = "pcie";
                ralink,function = "pcie rst";
            };
        };

        nand_pins: nand {
            spi-nand {
                ralink,group = "spi";
                ralink,function = "nand1";
            };

            sdhci-nand {
                ralink,group = "sdhci";
                ralink,function = "nand2";
            };
        };

        sdhci_pins: sdhci {
            sdhci {
                ralink,group = "sdhci";
                ralink,function = "sdhci";
            };
        };
    };

    rstctrl: rstctrl {
        compatible = "ralink,rt2880-reset";
        #reset-cells = <1>;
    };

    clkctrl: clkctrl {
        compatible = "ralink,rt2880-clock";
        #clock-cells = <1>;
    };

    sdhci: sdhci@1E130000 {
        status = "disabled";

        compatible = "ralink,mt7620-sdhci";
        reg = <0x1E130000 0x4000>;

        interrupt-parent = <&gic>;
        interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>;

        pinctrl-names = "default";
        pinctrl-0 = <&sdhci_pins>;
    };

    xhci: xhci@1E1C0000 {
        #address-cells = <1>;
        #size-cells = <0>;
        status = "okay";

        compatible = "mediatek,mt8173-xhci";
        reg = <0x1e1c0000 0x1000
               0x1e1d0700 0x0100>;
        reg-names = "mac", "ippc";

        clocks = <&sysclock>;
        clock-names = "sys_ck";

        interrupt-parent = <&gic>;
        interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;

        /*
         * Port 1 of both hubs is one usb slot and referenced here.
         * The binding doesn't allow to address individual hubs.
         * hub 1 - port 1 is ehci and ohci, hub 2 - port 1 is xhci.
         */
        xhci_ehci_port1: port@1 {
            reg = <1>;
            #trigger-source-cells = <0>;
        };

        /*
         * Only the second usb hub has a second port. That port serves
         * ehci and ohci.
         */
        ehci_port2: port@2 {
            reg = <2>;
            #trigger-source-cells = <0>;
        };
    };

    gic: interrupt-controller@1fbc0000 {
        compatible = "mti,gic";
        reg = <0x1fbc0000 0x2000>;

        interrupt-controller;
        #interrupt-cells = <3>;

        mti,reserved-cpu-vectors = <7>;

        timer {
            compatible = "mti,gic-timer";
            interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>;
            clocks = <&pll MT7621_CLK_CPU>;
        };
    };

    nand: nand@1e003000 {
        status = "disabled";

        compatible = "mtk,mt7621-nand";
        bank-width = <2>;
        reg = <0x1e003000 0x800
            0x1e003800 0x800>;
    };

    ethernet: ethernet@1e100000 {
        compatible = "mediatek,mt7621-eth";
        reg = <0x1e100000 0x10000>;

        #address-cells = <1>;
        #size-cells = <1>;

        resets = <&rstctrl 6 &rstctrl 23>;
        reset-names = "fe", "eth";

        interrupt-parent = <&gic>;
        interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>;

        mediatek,switch = <&gsw>;

        mdio-bus {
            #address-cells = <1>;
            #size-cells = <0>;

            phy1f: ethernet-phy@1f {
                reg = <0x1f>;
                phy-mode = "rgmii";
            };
        };

        hnat: hnat@0 {
            compatible = "mediatek,mt7623-hnat";
            reg = <0 0x10000>;
            mtketh-ppd = "eth0";
            mtketh-lan = "eth0";
            mtketh-wan = "eth0";
            resets = <&rstctrl 0>;
            reset-names = "mtketh";
        };
    };

    gsw: gsw@1e110000 {
        compatible = "mediatek,mt7621-gsw";
        reg = <0x1e110000 0x8000>;
        interrupt-parent = <&gic>;
        interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>;
    };

    pcie: pcie@1e140000 {
        compatible = "mediatek,mt7621-pci";
        reg = <0x1e140000 0x100
            0x1e142000 0x100>;

        #address-cells = <3>;
        #size-cells = <2>;

        pinctrl-names = "default";
        pinctrl-0 = <&pcie_pins>;

        device_type = "pci";

        bus-range = <0 255>;
        ranges = <
            0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */
            0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */
        >;

        interrupt-parent = <&gic>;
        interrupts = <GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH
                GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH
                GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>;

        status = "disabled";

        resets = <&rstctrl 24 &rstctrl 25 &rstctrl 26>;
        reset-names = "pcie0", "pcie1", "pcie2";
        clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>;
        clock-names = "pcie0", "pcie1", "pcie2";

        pcie0: pcie@0,0 {
            reg = <0x0000 0 0 0 0>;

            #address-cells = <3>;
            #size-cells = <2>;

            ranges;
        };

        pcie1: pcie@1,0 {
            reg = <0x0800 0 0 0 0>;

            #address-cells = <3>;
            #size-cells = <2>;

            ranges;
        };

        pcie2: pcie@2,0 {
            reg = <0x1000 0 0 0 0>;

            #address-cells = <3>;
            #size-cells = <2>;

            ranges;
        };
    };
};

22

Odp: OoliteV8

kmod-usb2/kmod-usb3 zainstaluj.

jeżeli działa cat /sys/kernel/debug/usb/devices to obsługa usb jest włączona.

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

23

Odp: OoliteV8

Po dodaniu tych pakietów rzeczywiście ruszyło, wykryło huba i wifkę. Niestety jest dalej ten sam problem z pracą w trybie AP.

Mon May 17 00:03:46 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Mon May 17 00:03:48 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Mon May 17 00:03:51 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Mon May 17 00:03:53 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Mon May 17 00:03:55 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Mon May 17 00:03:57 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Mon May 17 00:04:00 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Mon May 17 00:04:02 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Mon May 17 00:04:05 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response
Mon May 17 00:04:07 2021 daemon.notice hostapd: wlan0: STA 40:a3:cc:0b:ce:80 IEEE 802.11: did not acknowledge authentication response

Na laptopie którym próbuję się wpiąć widzę żę jestem niby połączony (połączenie ograniczone) ale karta sieciowa nie dostała adresu, pingi nie chodzą. Czy jest coś czego można jeszcze spróbować?

24

Odp: OoliteV8

Na początek - zmień laptopa i zobacz. Bo może masz w kartę która sprawia problem (np. jest Legacy N)

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

25

Odp: OoliteV8

Sprawdziłem na drugim laptopie, tu nie było informacji o ograniczeniu połączenia ale wynik ten sam
Wifka laptopa: Intel(R) Wi-Fi 6 AX201 160MHz
Wersja sterownika: 22.0.1.1
Protokół: Wi-Fi 4 (802.11n)

Ustawienia AP:
wireless:

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path 'platform/1e1c0000.xhci/usb1/1-1/1-1:1.0'
        option htmode 'HT20'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option key '760071EE'
        option encryption 'none'

network:

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fdd5:1d12:e181::/48'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0.1'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.2.200'
        option gateway '192.168.2.1'
        list dns '192.168.2.1'

config device 'lan_dev'
        option name 'eth0.1'
        option macaddr '0c:ef:af:c3:22:d8'

config interface 'wan'
        option ifname 'eth0.2'
        option proto 'dhcp'

config device 'wan_dev'
        option name 'eth0.2'
        option macaddr '0c:ef:af:c3:22:d8'

config interface 'wan6'
        option ifname 'eth0.2'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0 1 2 3 6t'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '4 6t'

config interface 'ppp0'
        option proto '3g'
        option service 'umts'
        option device '/dev/ttyUSB3'
        option apn 'internet'