51

Odp: Rpi b + MT7612U Netgear A6210

Masz failed bo czeka na abc i się tego nie doczekał. Przed chwilą przecież o tym pisałem.

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

52

Odp: Rpi b + MT7612U Netgear A6210

Tak, rozumiem. Jeśli w PICOCOM wycisnę CTRL + A oraz CTRL + Q i wyjdę to mam dostęp potem do strumienia. Jak więc zrobić to skryptem? Zauważyłem, że jeśli w CHAT podam ABC i wyłączę timeout to działa to wtedy, ale proces musi wtedy wisieć w tle

53

Odp: Rpi b + MT7612U Netgear A6210

Nie musi.

echo "AT coś tak\r\n" > /dev/ttyACMX
cat /dev/ttyACMX

i będzie Ci leciał strumień.

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

54 (edytowany przez tinware 2021-01-16 17:23:30)

Odp: Rpi b + MT7612U Netgear A6210

Cezary, gdyby byłoby to tak proste, to nie pisałbym o tym smile

# echo "AT*E2GPSNPD\r\n" > /dev/ttyACM2
# cat /dev/ttyACM2

*EMRDY: 1
^C


# echo "AT"*"E2GPSNPD\r\n" > /dev/ttyACM2
# cat /dev/ttyACM2

*EMRDY: 1
^C

# echo "AT\*E2GPSNPD\r\n" > /dev/ttyACM2
# cat /dev/ttyACM2

*EMRDY: 1
^C

Tak jak pisałem na początku, mam problem z tą jedną jedyną komendą i działa ona tylko wtedy, gdy ręcznie wpiszę ją w picocom. Udało się Nam ogarnąć to w CHAT, ale nie wiadomo czemu proces CHAT musi wisieć w tle, aby potem strumień działał.

To mnie jeszcze zaciekawiło:

# printf 'AT*E2GPSNPD' | picocom /dev/ttyACM2
picocom v3.1

port is        : /dev/ttyACM2
flowcontrol    : none
baudrate is    : 9600
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        :
omap is        :
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

!! STDIN is not a TTY !! Continue anyway...
Type [C-a] [C-h] to see available commands
Terminal ready

** read zero bytes from stdin **

Terminating...
Thanks for using picocom

Moje pytanie powinno więc chyba brzmieć:
co tak niezwykłego robię ręcznie w picocom, czego nie potrafi zrobić skrypt z użyciem CHAT...

55

Odp: Rpi b + MT7612U Netgear A6210

Picocom po swojemu inicjuje port.

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

56 (edytowany przez tinware 2021-01-17 04:26:39)

Odp: Rpi b + MT7612U Netgear A6210

Napisałem swojego rodzaju watchdoga w Bashu i w ten sposób to jakoś działa do tej pory, robie cały czas testy i sprawdzam, czy się to nie wysypie. Dziękuję Ci za dotychczasową pomoc.

Mam jeszcze jeden modem, który ma dość dziwne objawy w RAS:

00:01 daemon.notice netifd: Interface 'modem' is setting up now
00:02 daemon.notice pppd[16473]: pppd 2.4.7 started by root, uid 0
00:03 local2.info chat[16484]: abort on (BUSY)
00:03 local2.info chat[16484]: abort on (NO CARRIER)
00:03 local2.info chat[16484]: abort on (ERROR)
00:03 local2.info chat[16484]: report (CONNECT)
00:03 local2.info chat[16484]: timeout set to 10 seconds
00:03 local2.info chat[16484]: send (AT&F^M)
00:04 local2.info chat[16484]: expect (OK)
00:04 local2.info chat[16484]: AT^M
00:04 local2.info chat[16484]: *EMRDY: 1^M
00:04 local2.info chat[16484]: &F^M^M
00:04 local2.info chat[16484]: OK
00:04 local2.info chat[16484]:  -- got it
00:04 local2.info chat[16484]: send (ATE1^M)
00:04 local2.info chat[16484]: expect (OK)
00:04 local2.info chat[16484]: ^M
00:04 local2.info chat[16484]: ATE1^M^M
00:04 local2.info chat[16484]: OK
00:04 local2.info chat[16484]:  -- got it
00:04 local2.info chat[16484]: send (AT+CGDCONT=1,"IP","darmowy"^M)
00:04 local2.info chat[16484]: timeout set to 30 seconds
00:04 local2.info chat[16484]: expect (OK)
00:04 local2.info chat[16484]: ^M
00:04 local2.info chat[16484]: AT+CGDCONT=1,"IP","darmowy"^M^M
00:04 local2.info chat[16484]: OK
00:04 local2.info chat[16484]:  -- got it
00:04 local2.info chat[16484]: send (ATD*99***1#^M)
00:04 local2.info chat[16484]: expect (CONNECT)
00:04 local2.info chat[16484]: ^M
00:05 local2.info chat[16484]: ATD*99***1#^M^M
00:05 local2.info chat[16484]: CONNECT
00:05 local2.info chat[16484]:  -- got it
00:05 local2.info chat[16484]: send ( ^M)
00:05 daemon.info pppd[16473]: Serial connection established.
00:05 kern.info kernel: [ 1078.490367] 3g-modem: renamed from ppp0
00:05 daemon.info pppd[16473]: Renamed interface ppp0 to 3g-modem
00:05 daemon.info pppd[16473]: Using interface 3g-modem
00:05 daemon.notice pppd[16473]: Connect: 3g-modem <--> /dev/ttyACM0
00:06 daemon.info pppd[16473]: CHAP authentication succeeded: Congratulations!
00:06 daemon.notice pppd[16473]: CHAP authentication succeeded
00:06 daemon.info pppd[16473]: LCP terminated by peer
00:06 daemon.notice pppd[16473]: Modem hangup
00:06 daemon.notice pppd[16473]: Connection terminated.
00:07 daemon.info pppd[16473]: Exit.
00:07 daemon.notice netifd: Interface 'modem' is now down

Nawiązuję połączenie i po niecałej sekundzie rozłącza się, nie rozumiem tej sytuacji


Próbując połączyć się w NCM odkryłem chyba buga:

/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:2.1/tty/ttyACM0
/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:2.3/tty/ttyACM1
/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:2.5/usbmisc/cdc-wdm0
/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:2.8/usbmisc/cdc-wdm1
/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:2.6/net/wwan0


00:13 daemon.notice netifd: Interface 'modem' is setting up now
00:13 daemon.notice netifd: modem (13019): ls: /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:2.8/net: No such file or directory
00:13 daemon.notice netifd: modem (13019): The interface could not be found.
00:13 daemon.notice netifd: modem (13050): Stopping network modem
00:13 kern.err kernel: [ 8946.016308] cdc_wdm 3-1:2.8: wdm_int_callback - 0 bytes
00:13 daemon.notice netifd: modem (13050): sending ->
00:18 daemon.notice netifd: Interface 'modem' is now down

Chyba netifd szuka nie na tym endpoicie, na którym powinien... interfejs sieciowy oraz cdc-wdm mają zawsze inny path

57

Odp: Rpi b + MT7612U Netgear A6210

Połączenie zerwane przed drugą stronę. Zdarza się.

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

58

Odp: Rpi b + MT7612U Netgear A6210

Cześć,

Mam jeszcze taki problem z kartą MT7612U.

Jeśli złożę set, a następnie uruchomię zasilanie to po uruchomieniu systemu karta nie przełącza się:

Bus 003 Device 002: ID 0e8d:2870 Љ Љ

Jeśli wtedy odłączę kartę od portu USB i podłącze ją ponownie przełącza się prawidłowo:

Bus 003 Device 004: ID 0e8d:7612 MediaTek Inc. Wireless

i następnie muszę wydać polecenie: wifi

Jak można to naprawić? Jak ręcznie wywołać usb-modeswitch żeby działało np. z rc.local?

59

Odp: Rpi b + MT7612U Netgear A6210

Po prostu

usbmode -s

ale on działa na hotplugu, więc powinno i po starcie przełączyć. Chyba że RPI aktywacja USB następuje głęboko przed uruchomieniem hotpluga, nie wiem. Dodaj sobie w/w do rc.local i zobacz co będzie.

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

60

Odp: Rpi b + MT7612U Netgear A6210

PS. Jak ci działa ta karta to umieść info o niej w tym wątku: https://eko.one.pl/forum/viewtopic.php?pid=269342 niech będzie dla przyszłych pokoleń archeologów.

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

61 (edytowany przez tinware 2022-07-01 11:21:30)

Odp: Rpi b + MT7612U Netgear A6210

Niestety, to nie działa. Uruchomiłem system i sprawdziłem lsusb:

Bus 003 Device 002: ID 0e8d:2870 Љ Љ

Następnie ręcznie wprowadziłem: usbmode -s
I karta wlan nie przełącza się

# usbmode -h
usbmode: unrecognized option: h
Usage: usbmode <command> <options>
Commands:
        -l              List matching devices
        -s              Modeswitch matching devices

Options:
        -v              Verbose output
        -c <file>       Set configuration file to <file> (default: /etc/usb-mode.json)


# usbmode -c /etc/usb-mode.json


# usbmode -v


# usbmode -l
Found device: 0e8d:2870 (Manufacturer: "?", Product: "?", Serial: "?")


# usbmode -s


# lsusb
Bus 003 Device 002: ID 0e8d:2870 Љ Љ

62

Odp: Rpi b + MT7612U Netgear A6210

A w ogóle jesteś pewien że to usbmode ją przełącza?

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

63 (edytowany przez tinware 2022-07-01 11:29:02)

Odp: Rpi b + MT7612U Netgear A6210

Co innego by ją przełączało po ręcznym odłączeniu od portu i ponownym podłączeniu?
Zobacz, wpis jest...

# cat /etc/usb-mode.json

...
    "0e8d:2870": {
            "*": {
                    "t_vendor": 3725,
                    "t_product": [ 30226 ],
                    "mode": "StandardEject",
                    "msg": [  ]
            }
    },
...

Ręczne odłączenie i ponowne podłączenie do portu:

[   34.587271] usb 3-1: USB disconnect, device number 2
[   35.896319] usb 3-1: new high-speed USB device number 3 using ehci-platform
[   36.097513] usb 3-1: New USB device found, idVendor=0e8d, idProduct=2870, bcdDevice= 0.01
[   36.105754] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   36.112959] usb 3-1: Product: Љ
[   36.116219] usb 3-1: Manufacturer: Љ
[   36.119885] usb 3-1: SerialNumber: Љ
[   36.124559] usb-storage 3-1:1.0: USB Mass Storage device detected
[   36.133206] scsi host0: usb-storage 3-1:1.0
[   36.319172] usb 3-1: USB disconnect, device number 3
[   37.246224] usb 3-1: new high-speed USB device number 4 using ehci-platform
[   37.448250] usb 3-1: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[   37.456532] usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[   37.463714] usb 3-1: Product: Wireless
[   37.467611] usb 3-1: Manufacturer: MediaTek Inc.
[   37.472240] usb 3-1: SerialNumber: 000000000
[   37.646347] usb 3-1: reset high-speed USB device number 4 using ehci-platform
[   37.848248] mt76x2u 3-1:1.0: ASIC revision: 76120044
[   37.906010] mt76x2u 3-1:1.0: ROM patch build: 20141115060606a
[   38.078839] mt76x2u 3-1:1.0: Firmware Version: 0.0.00
[   38.083926] mt76x2u 3-1:1.0: Build: 1
[   38.087664] mt76x2u 3-1:1.0: Build Time: 201507311614____

usbmode -s i w logread brak wpisów...

64

Odp: Rpi b + MT7612U Netgear A6210

Ok, ale ją nie łapie. Patrząc na to wystarczy programowo "wysunąć" urządzenie. Jakieś echo do unbind typu: https://unix.stackexchange.com/question … usb-device

Czy ona udostępnia wirtualny dysk/cd? To może zwykłe eject zadziała?

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

65 (edytowany przez tinware 2022-07-01 11:44:53)

Odp: Rpi b + MT7612U Netgear A6210

To nie działa:

# echo "3-1" | tee /sys/bus/usb/drivers/usb/unbind
3-1
# echo "3-1" | tee /sys/bus/usb/drivers/usb/bind
3-1

Przypomnisz, jak zrobić eject takiego dysku?

66

Odp: Rpi b + MT7612U Netgear A6210

Zainstaluj program eject (ze starszego wydania openwrt jeżeli w tym co masz go nie ma) i zrób eject /dev/sdcoś-tam

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

67

Odp: Rpi b + MT7612U Netgear A6210

Tak, udostępnia dysk ze sterownikiem. Widzę go na Windows, jest to dokładnie CDROM, ale nie widzę w /dev/ czegoś w stylu sdaX

68

Odp: Rpi b + MT7612U Netgear A6210

Zainstalowałeś usb-storage?

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

69

Odp: Rpi b + MT7612U Netgear A6210

Nie mam w repo czegoś takiego jak: usb-storage.
Mam zainstalowany kmod-usb-storage.
Nie mam zainstalowanych: kmod-usb-storage-extras oraz kmod-usb-storage-uas

70

Odp: Rpi b + MT7612U Netgear A6210

Jak masz usb-storage to powinien nośnik pokazać.

Pokaz

cat /sys/kernel/debug/usb/devices

przed tym przełączeniem.

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

71 (edytowany przez tinware 2022-07-01 12:31:50)

Odp: Rpi b + MT7612U Netgear A6210

Proszę.

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.04
S:  Manufacturer=Linux 5.4.188 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=1c1a000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12   MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 5.04
S:  Manufacturer=Linux 5.4.188 ohci_hcd
S:  Product=Generic Platform OHCI controller
S:  SerialNumber=1c1a400.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.04
S:  Manufacturer=Linux 5.4.188 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=1c1b000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0e8d ProdID=2870 Rev= 0.01
S:  Manufacturer=Љ
S:  Product=Љ
S:  SerialNumber=Љ
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=160mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.04
S:  Manufacturer=Linux 5.4.188 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=1c1c000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 5.04
S:  Manufacturer=Linux 5.4.188 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=1c1d000.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=06 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12   MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 5.04
S:  Manufacturer=Linux 5.4.188 ohci_hcd
S:  Product=Generic Platform OHCI controller
S:  SerialNumber=1c1b400.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=07 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12   MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 5.04
S:  Manufacturer=Linux 5.4.188 ohci_hcd
S:  Product=Generic Platform OHCI controller
S:  SerialNumber=1c1c400.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=08 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12   MxCh= 1
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0001 Rev= 5.04
S:  Manufacturer=Linux 5.4.188 ohci_hcd
S:  Product=Generic Platform OHCI controller
S:  SerialNumber=1c1d400.usb
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

To mam:

acme - 3.0.1-1
adb - android.5.0.2_r1-3
alsa-lib - 1.2.4-1
antfs-mount - 1
attr - 2.4.48-2
avahi-dbus-daemon - 0.8-7
base-files - 1442-r16554-1d4dea6d4f
bc - 1.06.95-1
block-mount - 2021-01-04-c53b1882-1
busybox - 1.33.2-2
ca-bundle - 20210119-1
ca-certificates - 20210119-1
cgi-io - 2021-09-08-98cef9dd-20
coreutils - 8.32-6
curl - 7.82.0-2
dbus - 1.13.12-1
dnsmasq - 2.85-8
dropbear - 2020.81-2
e2fsprogs - 1.45.6-2
ethtool - 5.10-1
fdisk - 2.36.1-2
fdk-aac - 2.0.1-4
ffmpeg - 4.3.3-1
firewall - 2021-03-23-61db17ed-1
fstools - 2021-01-04-c53b1882-1
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2020-10-25-9ef88681-2
hostapd-common - 2020-06-08-5a8b3662-40
htop - 3.1.2-1
ip-tiny - 5.11.0-3
ip6tables - 1.8.7-1
ipset - 7.6-1
iptables - 1.8.7-1
iptables-mod-conntrack-extra - 1.8.7-1
iptables-mod-ipopt - 1.8.7-1
iw - 5.9-8fab0c9e-3
jshn - 2021-05-16-b14c4688-2
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.4.188-1-ec28b25633072072a51a4b6693256be8
kmod-cfg80211 - 5.4.188+5.10.110-1-1
kmod-crypto-crc32c - 5.4.188-1
kmod-crypto-hash - 5.4.188-1
kmod-fs-antfs - 5.4.188+2020-02-10-b41ba529-2
kmod-fs-ext4 - 5.4.188-1
kmod-fs-vfat - 5.4.188-1
kmod-fuse - 5.4.188-1
kmod-input-core - 5.4.188-1
kmod-ip6tables - 5.4.188-1
kmod-ipt-conntrack - 5.4.188-1
kmod-ipt-conntrack-extra - 5.4.188-1
kmod-ipt-core - 5.4.188-1
kmod-ipt-ipopt - 5.4.188-1
kmod-ipt-ipset - 5.4.188-1
kmod-ipt-nat - 5.4.188-1
kmod-ipt-offload - 5.4.188-1
kmod-ipt-raw - 5.4.188-1
kmod-lib-crc-ccitt - 5.4.188-1
kmod-lib-crc16 - 5.4.188-1
kmod-mac80211 - 5.4.188+5.10.110-1-1
kmod-mii - 5.4.188-1
kmod-mt76-core - 5.4.188+2021-12-03-678071ef-4
kmod-mt76-usb - 5.4.188+2021-12-03-678071ef-4
kmod-mt76x02-common - 5.4.188+2021-12-03-678071ef-4
kmod-mt76x02-usb - 5.4.188+2021-12-03-678071ef-4
kmod-mt76x2-common - 5.4.188+2021-12-03-678071ef-4
kmod-mt76x2u - 5.4.188+2021-12-03-678071ef-4
kmod-mtd-rw - 5.4.188+git-20160214-2
kmod-nf-conntrack - 5.4.188-1
kmod-nf-conntrack6 - 5.4.188-1
kmod-nf-flow - 5.4.188-1
kmod-nf-ipt - 5.4.188-1
kmod-nf-ipt6 - 5.4.188-1
kmod-nf-nat - 5.4.188-1
kmod-nf-reject - 5.4.188-1
kmod-nf-reject6 - 5.4.188-1
kmod-nfnetlink - 5.4.188-1
kmod-nls-base - 5.4.188-1
kmod-nls-cp437 - 5.4.188-1
kmod-nls-iso8859-1 - 5.4.188-1
kmod-nls-utf8 - 5.4.188-1
kmod-ppp - 5.4.188-1
kmod-pppoe - 5.4.188-1
kmod-pppox - 5.4.188-1
kmod-scsi-core - 5.4.188-1
kmod-slhc - 5.4.188-1
kmod-sound-core - 5.4.188-1
kmod-tun - 5.4.188-1
kmod-usb-core - 5.4.188-1
kmod-usb-ehci - 5.4.188-1
kmod-usb-net - 5.4.188-1
kmod-usb-net-cdc-ether - 5.4.188-1
kmod-usb-net-rndis - 5.4.188-1
kmod-usb-serial - 5.4.188-1
kmod-usb-serial-pl2303 - 5.4.188-1
kmod-usb-storage - 5.4.188-1
kmod-usb2 - 5.4.188-1
lame-lib - 3.100-1
libatomic1 - 8.4.0-3
libattr - 2.4.48-2
libavahi-client - 0.8-7
libavahi-dbus-support - 0.8-7
libblkid1 - 2.36.1-2
libblobmsg-json20210516 - 2021-05-16-b14c4688-2
libbz2-1.0 - 1.0.8-1
libc - 1.1.24-3
libcap - 2.43-1
libcomerr0 - 1.45.6-2
libcurl4 - 7.82.0-2
libdaemon - 0.14-5
libdbus - 1.13.12-1
libevdev - 1.12.0-1
libexpat - 2.2.10-2
libext2fs2 - 1.45.6-2
libf2fs6 - 1.14.0-1
libfdisk1 - 2.36.1-2
libffmpeg-full - 4.3.3-1
libfuse1 - 2.9.9-1
libgcc1 - 8.4.0-3
libgcrypt - 1.8.7-2
libgmp10 - 6.2.1-1
libgnutls - 3.7.1-2
libgpg-error - 1.42-2
libip4tc2 - 1.8.7-1
libip6tc2 - 1.8.7-1
libipset13 - 7.6-1
libiwinfo-data - 2021-04-30-c45f0b58-2.1
libiwinfo-lua - 2021-04-30-c45f0b58-2.1
libiwinfo20210430 - 2021-04-30-c45f0b58-2.1
libjson-c5 - 0.15-2
libjson-script20210516 - 2021-05-16-b14c4688-2
libkmod - 27-2
liblua5.1.5 - 5.1.5-9
liblucihttp-lua - 2021-06-11-3dc89af4-1
liblucihttp0 - 2021-06-11-3dc89af4-1
liblzo2 - 2.10-4
libmnl0 - 1.0.4-2
libncurses6 - 6.2-3
libnettle8 - 3.6-1
libnghttp2-14 - 1.43.0-1
libnl-tiny1 - 2020-08-05-c291088f-2
libopenssl-conf - 1.1.1n-1
libopenssl1.1 - 1.1.1n-1
libpcap1 - 1.9.1-3.1
libpci - 3.7.0-2
libpcre - 8.44-3
libpopt0 - 1.16-2
libpthread - 1.1.24-3
libreadline8 - 8.1-1
librt - 1.1.24-3
libsmartcols1 - 2.36.1-2
libss2 - 1.45.6-2
libstdcpp6 - 8.4.0-3
libtasn1 - 4.16.0-1
libtirpc - 1.3.2-1
libubox20210516 - 2021-05-16-b14c4688-2
libubus-lua - 2021-06-30-4fc532c8-2
libubus20210630 - 2021-06-30-4fc532c8-2
libuci-lua - 2021-04-14-4b3db117-5
libuci20130104 - 2021-04-14-4b3db117-5
libuclient20201210 - 2021-05-14-6a6011df-1
libudev-zero - 1.0.0-1
liburing - 0.7-1
libusb-1.0-0 - 1.0.24-4
libustream-wolfssl20201210 - 2022-01-16-868fd881-1
libuuid1 - 2.36.1-2
libwolfssl5.2.0.99a5b54a - 5.2.0-stable-1
libx264 - 2020-10-26-1
libxtables12 - 1.8.7-1
logd - 2020-10-25-9ef88681-2
lua - 5.1.5-9
luci - git-20.074.84698-ead5e81
luci-app-acme - git-20.294.22655-09cfbb3
luci-app-firewall - git-22.089.67741-3856d50
luci-app-mwan3 - git-21.126.37401-0ddb72d
luci-app-openvpn - git-22.025.78298-e927a11
luci-app-opkg - git-21.312.69848-4745991
luci-app-samba4 - git-21.295.66822-2e989d8
luci-app-uhttpd - git-22.029.54375-df07e6b
luci-base - git-22.083.69138-0a0ce2a
luci-compat - git-22.046.85744-f08a0f6
luci-i18n-acme-de - git-22.085.24753-f4a5b6c
luci-i18n-acme-en - git-22.085.24753-f4a5b6c
luci-i18n-acme-pl - git-22.085.24753-f4a5b6c
luci-i18n-base-de - git-22.099.58713-fe09ab9
luci-i18n-base-en - git-22.099.58713-fe09ab9
luci-i18n-base-pl - git-22.099.58713-fe09ab9
luci-i18n-firewall-de - git-22.089.67741-3856d50
luci-i18n-firewall-en - git-22.089.67741-3856d50
luci-i18n-firewall-pl - git-22.089.67741-3856d50
luci-i18n-mwan3-de - git-22.099.58713-fe09ab9
luci-i18n-mwan3-en - git-22.099.58713-fe09ab9
luci-i18n-mwan3-pl - git-22.099.58713-fe09ab9
luci-i18n-openvpn-de - git-22.099.58713-fe09ab9
luci-i18n-openvpn-en - git-22.099.58713-fe09ab9
luci-i18n-openvpn-pl - git-22.099.58713-fe09ab9
luci-i18n-opkg-de - git-22.085.24753-f4a5b6c
luci-i18n-opkg-en - git-22.085.24753-f4a5b6c
luci-i18n-opkg-pl - git-22.085.24753-f4a5b6c
luci-i18n-samba4-de - git-22.099.58713-fe09ab9
luci-i18n-samba4-en - git-22.099.58713-fe09ab9
luci-i18n-samba4-pl - git-22.099.58713-fe09ab9
luci-i18n-uhttpd-de - git-22.099.58713-fe09ab9
luci-i18n-uhttpd-en - git-22.099.58713-fe09ab9
luci-i18n-uhttpd-pl - git-22.099.58713-fe09ab9
luci-lib-base - git-20.232.39649-1f6dc29
luci-lib-ip - git-20.250.76529-62505bd
luci-lib-jsonc - git-22.097.61937-bc85ba5
luci-lib-nixio - git-20.234.06894-c4a4e43
luci-mod-admin-full - git-19.253.48496-3f93650
luci-mod-network - git-22.046.85061-dd54dce
luci-mod-status - git-22.046.85784-0ac2542
luci-mod-system - git-22.019.40321-7a37d02
luci-proto-ipv6 - git-21.148.49484-14511e5
luci-proto-ppp - git-21.163.64918-6c6559a
luci-theme-bootstrap - git-22.084.39047-f1d687e
mailsend - 1.19-2
minicom - 2.7.1-2
mkf2fs - 1.14.0-1
mtd - 26
mwan3 - 2.10.13-1
nano - 6.2-2
netifd - 2021-10-30-8f82742c-1
nmap - 7.80-3
ntfs-3g - 2017.3.23-6-fuseint
ntfs-3g-utils - 2017.3.23-6-fuseint
odhcp6c - 2021-01-09-53f07e90-16
odhcpd-ipv6only - 2021-07-18-bc9d317f-3
openssl-util - 1.1.1n-1
openvpn-openssl - 2.5.3-3
openwrt-keyring - 2021-02-20-49283916-2
opkg - 2021-06-13-1bf042dd-1
parted - 3.4-1
partx-utils - 2.36.1-2
pciids - 0.354-1
pciutils - 3.7.0-2
picocom - 3.1-5
ppp - 2.4.8.git-2020-10-03-3
ppp-mod-pppoe - 2.4.8.git-2020-10-03-3
procd - 2021-03-08-2cfc26f8-1
procps-ng - 3.3.16-3
pv - 1.6.6-1
rpcd - 2022-02-19-8d26a1ba-1
rpcd-mod-file - 2022-02-19-8d26a1ba-1
rpcd-mod-iwinfo - 2022-02-19-8d26a1ba-1
rpcd-mod-luci - 20210614
rpcd-mod-rrdns - 20170710
samba4-client - 4.14.12-1
samba4-libs - 4.14.12-1
samba4-server - 4.14.12-1
screen - 4.8.0-2
socat - 1.7.3.4-2
terminfo - 6.2-3
uboot-envtools - 2021.01-13
ubox - 2020-10-25-9ef88681-2
ubus - 2021-06-30-4fc532c8-2
ubusd - 2021-06-30-4fc532c8-2
uci - 2021-04-14-4b3db117-5
uclient-fetch - 2021-05-14-6a6011df-1
uhttpd - 2021-03-21-15346de8-2
uhttpd-mod-ubus - 2021-03-21-15346de8-2
urandom-seed - 3
urngd - 2020-01-21-c7f7b6b6-1
usb-modeswitch - 2017-12-19-f40f84c2-2
usbids - 0.354-1
usbutils - 013-2
usign - 2020-05-23-f1f65026-1
wget-ssl - 1.21.1-1
wireless-regdb - 2021.08.28-1
wpad - 2020-06-08-5a8b3662-40
wsdd2 - 2021-08-09-bcc51c3e-1
zlib - 1.2.11-4

I jeszcze log z uruchomienia:

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.188 (root@Intel-D510MO) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16554-1d4dea6d4f)) #0 SMP Sat Apr 16 12:59:34 2022
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: FriendlyARM NanoPi NEO
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 15 pages/cpu s30924 r8192 d22324 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 505964K/524288K available (6612K kernel code, 426K rwdata, 1808K rodata, 2048K init, 245K bss, 18324K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x2fc/0x4ac with crng_init=0
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000017] Switching to timer-based delay loop, resolution 41ns
[    0.000140] Console: colour dummy device 80x30
[    0.000192] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000204] pid_max: default: 32768 minimum: 301
[    0.000378] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000390] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001345] CPU: Testing write buffer coherency: ok
[    0.001804] /cpus/cpu@0 missing clock-frequency property
[    0.001824] /cpus/cpu@1 missing clock-frequency property
[    0.001839] /cpus/cpu@2 missing clock-frequency property
[    0.001853] /cpus/cpu@3 missing clock-frequency property
[    0.001864] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002384] Setting up static identity map for 0x40200000 - 0x40200060
[    0.002509] rcu: Hierarchical SRCU implementation.
[    0.003053] smp: Bringing up secondary CPUs ...
[    0.013821] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.024705] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.035493] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.035583] smp: Brought up 1 node, 4 CPUs
[    0.035602] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[    0.035608] CPU: All CPU(s) started in HYP mode.
[    0.035613] CPU: Virtualization extensions available.
[    0.040162] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.040411] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.040435] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.040754] pinctrl core: initialized pinctrl subsystem
[    0.041964] NET: Registered protocol family 16
[    0.042432] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.043873] No ATAGs?
[    0.062914] SCSI subsystem initialized
[    0.064005] usbcore: registered new interface driver usbfs
[    0.064094] usbcore: registered new interface driver hub
[    0.064181] usbcore: registered new device driver usb
[    0.064352] pps_core: LinuxPPS API ver. 1 registered
[    0.064361] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.064403] PTP clock support registered
[    0.064947] Advanced Linux Sound Architecture Driver Initialized.
[    0.066057] clocksource: Switched to clocksource arch_sys_counter
[    0.071960] thermal_sys: Registered thermal governor 'step_wise'
[    0.072352] NET: Registered protocol family 2
[    0.072566] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.073205] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.073238] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.073282] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.073345] TCP: Hash tables configured (established 4096 bind 4096)
[    0.073459] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.073508] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.073727] NET: Registered protocol family 1
[    0.074706] kvm [1]: vgic interrupt IRQ16
[    0.074860] kvm [1]: Hyp mode initialized successfully
[    0.076336] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.083004] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.083181] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.085315] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.089777] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.091447] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.098760] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.100306] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.100760] printk: console [ttyS0] disabled
[    0.120954] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 39, base_baud = 1500000) is a U6_16550A
[    0.684694] printk: console [ttyS0] enabled
[    0.694792] loop: module loaded
[    0.700996] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    0.707407] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    0.713465] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.719277] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.725219] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 58000)
[    0.734654] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.741889] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.749116] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.754074] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.760865] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.766530] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.772196] dwmac-sun8i 1c30000.ethernet: device MAC address 8e:0c:ad:8b:79:41
[    0.780345] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    0.786632] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    0.792990] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    0.800505] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.807059] ehci-platform: EHCI generic platform driver
[    0.812494] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.818113] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.826021] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.856074] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.862403] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.870684] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.877910] usb usb1: Product: EHCI Host Controller
[    0.882782] usb usb1: Manufacturer: Linux 5.4.188 ehci_hcd
[    0.888270] usb usb1: SerialNumber: 1c1a000.usb
[    0.893286] hub 1-0:1.0: USB hub found
[    0.897110] hub 1-0:1.0: 1 port detected
[    0.901977] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.908205] ohci-platform: OHCI generic platform driver
[    0.913606] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.920251] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.928139] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.000259] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[    1.008539] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.015752] usb usb2: Product: Generic Platform OHCI controller
[    1.021674] usb usb2: Manufacturer: Linux 5.4.188 ohci_hcd
[    1.027162] usb usb2: SerialNumber: 1c1a400.usb
[    1.032130] hub 2-0:1.0: USB hub found
[    1.035918] hub 2-0:1.0: 1 port detected
[    1.040859] usbcore: registered new interface driver usb-storage
[    1.047138] mousedev: PS/2 mouse device common for all mice
[    1.053055] i2c /dev entries driver
[    1.057326] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.067062] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.077612] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.107405] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.114999] sun8i-h3-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl supply vcc-pl not found, using dummy regulator
[    1.128970] NET: Registered protocol family 10
[    1.134470] Segment Routing with IPv6
[    1.138253] NET: Registered protocol family 17
[    1.142739] can: controller area network core (rev 20170425 abi 9)
[    1.148988] NET: Registered protocol family 29
[    1.153430] 8021q: 802.1Q VLAN Support v1.8
[    1.157734] Registering SWP/SWPB emulation handler
[    1.173126] sun8i-h3-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.184585] ehci-platform 1c1b000.usb: EHCI Host Controller
[    1.190225] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[    1.198134] ehci-platform 1c1b000.usb: irq 28, io mem 0x01c1b000
[    1.236062] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    1.242213] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.250424] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.258704] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.265916] usb usb3: Product: EHCI Host Controller
[    1.270800] usb usb3: Manufacturer: Linux 5.4.188 ehci_hcd
[    1.276289] usb usb3: SerialNumber: 1c1b000.usb
[    1.281437] hub 3-0:1.0: USB hub found
[    1.285252] mmc0: new high speed SDHC card at address aaaa
[    1.291032] hub 3-0:1.0: 1 port detected
[    1.295588] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[    1.301902] ehci-platform 1c1c000.usb: EHCI Host Controller
[    1.307603] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 4
[    1.315491] ehci-platform 1c1c000.usb: irq 30, io mem 0x01c1c000
[    1.321579]  mmcblk0: p1 p2 p3
[    1.346078] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    1.352374] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.360657] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.367884] usb usb4: Product: EHCI Host Controller
[    1.372756] usb usb4: Manufacturer: Linux 5.4.188 ehci_hcd
[    1.378246] usb usb4: SerialNumber: 1c1c000.usb
[    1.383239] hub 4-0:1.0: USB hub found
[    1.387105] hub 4-0:1.0: 1 port detected
[    1.391893] ehci-platform 1c1d000.usb: EHCI Host Controller
[    1.397531] ehci-platform 1c1d000.usb: new USB bus registered, assigned bus number 5
[    1.405417] ehci-platform 1c1d000.usb: irq 32, io mem 0x01c1d000
[    1.436074] ehci-platform 1c1d000.usb: USB 2.0 started, EHCI 1.00
[    1.442358] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.450639] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.457863] usb usb5: Product: EHCI Host Controller
[    1.462735] usb usb5: Manufacturer: Linux 5.4.188 ehci_hcd
[    1.468223] usb usb5: SerialNumber: 1c1d000.usb
[    1.473174] hub 5-0:1.0: USB hub found
[    1.476991] hub 5-0:1.0: 1 port detected
[    1.481695] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    1.488357] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 6
[    1.496281] ohci-platform 1c1b400.usb: irq 29, io mem 0x01c1b400
[    1.570248] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[    1.578530] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.585744] usb usb6: Product: Generic Platform OHCI controller
[    1.586062] usb 3-1: new high-speed USB device number 2 using ehci-platform
[    1.591670] usb usb6: Manufacturer: Linux 5.4.188 ohci_hcd
[    1.604091] usb usb6: SerialNumber: 1c1b400.usb
[    1.609084] hub 6-0:1.0: USB hub found
[    1.612871] hub 6-0:1.0: 1 port detected
[    1.617652] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    1.624286] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 7
[    1.632180] ohci-platform 1c1c400.usb: irq 31, io mem 0x01c1c400
[    1.710258] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[    1.718533] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.725746] usb usb7: Product: Generic Platform OHCI controller
[    1.731669] usb usb7: Manufacturer: Linux 5.4.188 ohci_hcd
[    1.737156] usb usb7: SerialNumber: 1c1c400.usb
[    1.742144] hub 7-0:1.0: USB hub found
[    1.745935] hub 7-0:1.0: 1 port detected
[    1.750644] ohci-platform 1c1d400.usb: Generic Platform OHCI controller
[    1.757303] ohci-platform 1c1d400.usb: new USB bus registered, assigned bus number 8
[    1.765186] ohci-platform 1c1d400.usb: irq 33, io mem 0x01c1d400
[    1.807293] usb 3-1: New USB device found, idVendor=0e8d, idProduct=2870, bcdDevice= 0.01
[    1.815470] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.822617] usb 3-1: Product: Љ
[    1.825848] usb 3-1: Manufacturer: Љ
[    1.829527] usb 3-1: SerialNumber: Љ
[    1.833846] usb-storage 3-1:1.0: USB Mass Storage device detected
[    1.840287] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.04
[    1.840352] scsi host0: usb-storage 3-1:1.0
[    1.848567] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.859964] usb usb8: Product: Generic Platform OHCI controller
[    1.865878] usb usb8: Manufacturer: Linux 5.4.188 ohci_hcd
[    1.871369] usb usb8: SerialNumber: 1c1d400.usb
[    1.876392] hub 8-0:1.0: USB hub found
[    1.880183] hub 8-0:1.0: 1 port detected
[    1.884936] ALSA device list:
[    1.887936]   No soundcards found.
[    1.903926] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    1.911514] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.920442] Freeing unused kernel memory: 2048K
[    1.996251] Run /sbin/init as init process
[    2.060033] init: Console is alive
[    2.063647] init: - watchdog -
[    2.240730] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.258707] ANTFS Module: Version 07.19-b41ba529
[    2.269326] ehci-fsl: Freescale EHCI Host controller driver
[    2.279285] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    2.289080] init: - preinit -
[    2.360194] random: fast init done
[    2.476998] random: jshn: uninitialized urandom read (4 bytes read)
[    2.505044] random: jshn: uninitialized urandom read (4 bytes read)
[    2.525506] random: jshn: uninitialized urandom read (4 bytes read)
[    2.598280] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.1:01] driver [Generic PHY]
[    2.606905] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[    2.614220] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[    2.621935] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[    2.628477] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/mii link mode
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
[    2.877142] scsi 0:0:0:0: CD-ROM            MediaTek Flash autorun    0.01 PQ: 0 ANSI: 0 CCS
[    6.722635] mount_root: mounting /dev/root
[    6.727562] EXT4-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
[    6.749147] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    6.754762] mount_root: loading kmods from internal overlay
[    6.773655] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[    6.781452] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[    6.901999] block: attempting to load /etc/config/fstab
[    6.909115] block: extroot: not configured
[    6.956976] urandom-seed: Seeding with /etc/urandom.seed
[    6.994603] procd: - early -
[    6.998205] procd: - watchdog -
[    7.105162] urandom_read: 3 callbacks suppressed
[    7.105173] random: jshn: uninitialized urandom read (4 bytes read)
[    7.196847] random: jshn: uninitialized urandom read (4 bytes read)
[    7.279377] random: jshn: uninitialized urandom read (4 bytes read)
[    7.559247] procd: - watchdog -
[    7.565709] procd: - ubus -
[    7.621123] procd: - init -
Please press Enter to activate this console.
[    7.938946] urngd: v1.0.2 started.
[    7.973216] kmodloader: loading kernel modules from /etc/modules.d/*
[    7.990530] crng init done
[    7.993271] random: 1 urandom warning(s) missed due to ratelimiting
[    8.011026] tun: Universal TUN/TAP device driver, 1.6
[    8.061056] fuse: init (API version 7.31)
[    8.103667] Loading modules backported from Linux version v5.10.110-0-g3238bffaf992
[    8.111445] Backport generated by backports.git v5.10.110-1-0-g1fbde860
[    8.149221] usbcore: registered new interface driver usbserial_generic
[    8.155912] usbserial: USB Serial support registered for generic
[    8.194122] xt_time: kernel timezone is -0000
[    8.201038] usbcore: registered new interface driver cdc_ether
[    8.275048] usbcore: registered new interface driver mt76x2u
[    8.301700] usbcore: registered new interface driver pl2303
[    8.307471] usbserial: USB Serial support registered for pl2303
[    8.317264] PPP generic driver version 2.4.2
[    8.323381] NET: Registered protocol family 24
[    8.330264] usbcore: registered new interface driver rndis_host
[    8.358382] kmodloader: done loading kernel modules from /etc/modules.d/*
[   12.154562] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.1:01] driver [Generic PHY]
[   12.163530] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[   12.170917] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[   12.178657] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[   12.185219] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/mii link mode
[   12.206464] dwmac-sun8i 1c30000.ethernet eth0: Too many address, switching to promiscuous
[   12.944180] usb 3-1: usbfs: process 3294 (usbmode) did not claim interface 0 before use
[   12.952525] usb 3-1: usbfs: process 3294 (usbmode) did not claim interface 0 before use
[   12.961096] usb 3-1: usbfs: process 3294 (usbmode) did not claim interface 0 before use
[   12.969601] usb 3-1: usbfs: process 3294 (usbmode) did not claim interface 0 before use
[   12.978036] usb 3-1: usbfs: process 3294 (usbmode) did not claim interface 0 before use
[   12.986379] usb 3-1: usbfs: process 3294 (usbmode) did not claim interface 0 before use
[   12.994430] usb 3-1: usbfs: process 3294 (usbmode) did not claim interface 0 before use

72

Odp: Rpi b + MT7612U Netgear A6210

Widzisz, bo go driver w ogóle nie ruszył z jakiegoś powodu...

Powinien go usbmode ruszyć. Możesz sobie przekompilować starszy usb-modeswitch gdzie z linii poleceń można było podać które urządzenie ma brać. Może to coś da,

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

73

Odp: Rpi b + MT7612U Netgear A6210

Przydałby się jakiś delay, bo jeśli 30 sekund od podania zasilania włożę tą kartę wlan to wszystko jest ok

74 (edytowany przez Cezary 2022-07-01 12:54:47)

Odp: Rpi b + MT7612U Netgear A6210

Reset magistrali usb? usbreset z pakietu usbutils.

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

75 (edytowany przez tinware 2022-07-03 21:04:35)

Odp: Rpi b + MT7612U Netgear A6210

# usbreset 0e8d:2870

Resetting Љ ... ok

# lsusb

Bus 003 Device 002: ID 0e8d:2870 Љ Љ

Ale to uparte, nie chce odpuścić, 10 podejść do tematu, 100 poprawek koncepcji na skrypt, 10000 testów - udało się!
Problem polega na tym, że urządzenia za każdym razem inaczej się zachowują, po twardym resecie nie przełączają się w ogóle, czasami przełączają się przez usbmode... zależy, czy podłączy się jedno, dwa czy trzy urządzenia, zależy też czy jedno czy wszystkie na raz, a może każde co 5 sekund, a może co 15 sekund jedno po drugim... dużo by tutaj mówić, po prostu nie ma stałego schematu na ich zachowanie.

Przez to udało mi się po dziesiątkach godzin wypracować taki oto skrypt, który testuję i nie udało mi się go wyłożyć - tzn. jak wlan jest w gnieździe USB to działa zawsze wink

/etc/hotplug.d/usb/91-mediatek_mt7612un

#!/bin/bash



# watch -n 1 "lsusb | grep 0e8d"
# watch -n 1 "ps | grep mt7612un | tail -40"
# watch -n 1 "logread | grep MT7612UN | tail -40"
# watch -n 1 "tail -35 /tmp/mt7612un.txt"


SET_DELAY=15
SCRIPT_PATH="/etc/hotplug.d/usb/91-mediatek_mt7612un" # nazwa pliku max. 23 znaki
UPTIME_SEC=$( /bin/cat /proc/uptime | /usr/bin/awk -F '.' '{print $1}' )


APPEND_LOG(){
  PS_LOGD=$( /bin/ps | /bin/grep "/sbin/logd" | /usr/bin/head -n 1 | /usr/bin/awk '{print $5}' )
  if [ "$PS_LOGD" = "/sbin/logd" ]; then
    logger -p $1 -t "MediaTek MT7612UN Hotplug" "$2"
  fi

  #echo "[$1] $2" >> /tmp/mt7612un.txt
}


if [ "$1" = "SWITCH" ]; then
  if [ "$((SET_DELAY-UPTIME_SEC))" -gt 0 ]; then
    APPEND_LOG "notice" "Opoznienie przelaczenia o $((SET_DELAY-UPTIME_SEC)) sekund"
    sleep $((SET_DELAY-UPTIME_SEC))
  fi

  TRY=0
  while true; do
    sleep 3

    DEVS=$( cat /sys/kernel/debug/usb/devices | grep "Vendor=0e8d ProdID=2870" )
    if [ "$DEVS" != "" ]; then
      if [ "$TRY" -gt 0 ]; then
        TRY=$((TRY+1))
      else
        TRY=1
       fi

      WAIT=$(( TRY * TRY * 5 ))
      if [ "$TRY" -le 1 ]; then
        APPEND_LOG "notice" "Oczekiwanie na przelaczenie $WAIT sekund"
      elif [ "$TRY" -le 3 ]; then
        APPEND_LOG "warn" "Oczekiwanie na przelaczenie $WAIT sekund"
      else
        APPEND_LOG "error" "Oczekiwanie na przelaczenie $WAIT sekund"
      fi
      sleep $WAIT

      APPEND_LOG "notice" "Proba przelaczenia: $TRY"
      echo "0e8d 2870" > /sys/bus/usb/drivers/mt76x2u/new_id
      echo "0e8d 2870" > /sys/bus/usb/drivers/usb-storage/new_id

    else
      if [ "$TRY" -gt 0 ]; then
        TRY=-1
      else
        TRY=$((TRY-1))
      fi
    fi

    if [ "$TRY" -eq -1 ]; then
      APPEND_LOG "notice" "Urzadzenia w prawidlowej konfiguracji"
    fi

    if [ "$TRY" -le -3 ]; then
      APPEND_LOG "notice" "Reset Wi-Fi i zakonczenie"
      wifi
      break
    fi

  done

else

  if [ "$PRODUCT" = "e8d/2870/1" ] && [ "$DEVTYPE" = "usb_device" ] && [ "$ACTION" = "add" ]; then
    CMD=$( ps | grep ""$SCRIPT_PATH" SWITCH" | grep "sh" | awk -F ' ' '{print $1}' )
    for PID in $CMD; do
      APPEND_LOG "notice" "Przerwanie starego skryptu [$PID]"
      kill $PID
    done

    sh $SCRIPT_PATH SWITCH &
    APPEND_LOG "notice" "Wykryto nowe urzadzenie [$DEVICENAME]"
    APPEND_LOG "notice" "Uruchomienie skryptu [$!]"
  fi

fi

Przykładowy wynik dla trzech urządzeń podłączonych w tym samym czasie:

Sun Jul  3 22:02:47 2022 user.notice MediaTek MT7612UN Hotplug: Wykryto nowe urzadzenie [5-1.1]
Sun Jul  3 22:02:47 2022 user.notice MediaTek MT7612UN Hotplug: Uruchomienie skryptu [5650]
Sun Jul  3 22:02:47 2022 user.notice MediaTek MT7612UN Hotplug: Przerwanie starego skryptu [5650]
Sun Jul  3 22:02:47 2022 user.notice MediaTek MT7612UN Hotplug: Wykryto nowe urzadzenie [5-1.2]
Sun Jul  3 22:02:47 2022 user.notice MediaTek MT7612UN Hotplug: Uruchomienie skryptu [5893]
Sun Jul  3 22:02:48 2022 user.notice MediaTek MT7612UN Hotplug: Przerwanie starego skryptu [5893]
Sun Jul  3 22:02:48 2022 user.notice MediaTek MT7612UN Hotplug: Wykryto nowe urzadzenie [5-1.3]
Sun Jul  3 22:02:48 2022 user.notice MediaTek MT7612UN Hotplug: Uruchomienie skryptu [6158]
Sun Jul  3 22:02:53 2022 user.notice MediaTek MT7612UN Hotplug: Oczekiwanie na przelaczenie 5 sekund
Sun Jul  3 22:02:58 2022 user.notice MediaTek MT7612UN Hotplug: Proba przelaczenia: 1
Sun Jul  3 22:03:02 2022 user.notice MediaTek MT7612UN Hotplug: Urzadzenia w prawidlowej konfiguracji
Sun Jul  3 22:03:08 2022 user.notice MediaTek MT7612UN Hotplug: Reset Wi-Fi i zakonczenie