WLAN-Pi / pi-gen

Image build tool for WLAN Pi RPi and CM4 based hardware
BSD 3-Clause "New" or "Revised" License
48 stars 7 forks source link

MT7921K not detected #44

Closed gcastle2007 closed 1 year ago

gcastle2007 commented 1 year ago

Hello,

I assembled Wlan PI M4 with Mediatek MT7921K. I have message "NO WI-FI ADAPTER" on display. I use image image_v3.1.3-2023-07-11-wlanpi-os.zip

Please fix it.

Deafult login/password wlanpi/wlanpi don't work.

jiribrejcha commented 1 year ago

I've just tested M4 with the 3.1.3 image and everything is working fine. So it shouldn't be a systemic issue.

Default credentials are working fine too. Have you SSH'd in? Did you get the prompt to change default password to your own?

image
jiribrejcha commented 1 year ago

Did Mediatek MT7921K work fine for you on the 3.1.2 image?

gcastle2007 commented 1 year ago

No, MR7921K don't work on 3.1.2 also. login/password wlanpi/wlanpi also don't work on image image_v3.1.2-2023-02-04-wlanpi-os.zip I made fresh flash card over Balena Ether and login over ssh over ethernet on first boot.

jiribrejcha commented 1 year ago

Are you specifying the username in your ssh command?

ssh wlanpi@192.168.2.14

(replace the IP address with your WLAN Pi’s)

gcastle2007 commented 1 year ago

I use putty. I reading guide https://userguide.wlanpi.com/wlan-pi-os/faq/default-password

Varian 1:

login as: wlanpi wlanpi@192.168.1.41's password: Access denied wlanpi@192.168.1.41's password: Access denied wlanpi@192.168.1.41's password:

Variant 2:

login as: wlanpi@192.168.1.41 wlanpi@192.168.1.41@192.168.1.41's password: Access denied wlanpi@192.168.1.41@192.168.1.41's password: Access denied

password: wlanpi , not caps lock

gcastle2007 commented 1 year ago

I also change hash in /etc/shadow to hash what i know password. But I message "access denied" in putty and "permission denied" in ubuntu.

jolla commented 1 year ago

Not able to reproduce on this end. Are you sure hitting the right IP?

On Wed, Jul 12, 2023 at 7:58 AM gcastle2007 @.***> wrote:

I also change hash in /etc/shadow to hash what i know password. But I message "access denied" in putty and "permission denied" in ubuntu.

— Reply to this email directly, view it on GitHub https://github.com/WLAN-Pi/pi-gen/issues/44#issuecomment-1632484083, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFQT4D5I7CWSA6HCDVN52DXP2NPLANCNFSM6AAAAAA2HED2UM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Thank you,

Jerry Olla

gcastle2007 commented 1 year ago

Yes, absolulty. I have in network 3 devices - notebook, access point with dhcp server and device wlan pi m4.

I have write video. You can watch. What I make not correctly?

https://youtu.be/VaPy6pb0MBs

nimbo78 commented 1 year ago

back to topic: image 3.1.2

root@wlanpi-365:/home/wlanpi# lspci
root@wlanpi-365:/home/wlanpi# lsusb
Bus 001 Device 003: ID 0e8d:0608 MediaTek Inc. Wireless_Device
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@wlanpi-365:/home/wlanpi# nmcli --get-values GENERAL.DEVICE,GENERAL.TYPE device show
pan0
bridge

eth0
ethernet

lo
loopback

adapter photo obviously the card is inserted, but is not recognized as a pci wi-fi adapter

nimbo78 commented 1 year ago

@jiribrejcha on a fresh 3.1.3 image - same problem. any suggestions how to fix mt7921k on wlanpi m4?

jolla commented 1 year ago

Please provide the output of dmesg | grep pcie

You should see something like this

wlanpi@wlanpi-b14:~ $ dmesg | grep pcie [ 8.947114] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /scb/pcie@7d500000/status [ 8.947728] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges: [ 8.947752] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff] [ 8.947793] brcm-pcie fd500000.pcie: MEM 0x0600000000..0x063fffffff -> 0x00c0000000 [ 8.947832] brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x007fffffff -> 0x0000000000 [ 8.952717] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00 [ 8.956995] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator [ 8.958196] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator [ 8.958275] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator [ 8.989004] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)

jiribrejcha commented 1 year ago

I use putty. I reading guide https://userguide.wlanpi.com/wlan-pi-os/faq/default-password

Varian 1:

login as: wlanpi wlanpi@192.168.1.41's password: Access denied wlanpi@192.168.1.41's password: Access denied wlanpi@192.168.1.41's password:

Variant 2:

login as: wlanpi@192.168.1.41 wlanpi@192.168.1.41@192.168.1.41's password: Access denied wlanpi@192.168.1.41@192.168.1.41's password: Access denied

password: wlanpi , not caps lock

@gcastle2007, can you please try to use a different SSH client? It sounds like it might perhaps some settings in Putty.

gcastle2007 commented 1 year ago

@jiribrejcha , I used device of @nimbo78. I didn't know cm4 had emmc on board :)

nimbo78 commented 1 year ago

@jolla

root@wlanpi-365:/home/wlanpi#  dmesg | grep pcie
[    8.897844] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /scb/pcie@7d500000/status
[    8.902902] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    8.902936] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    8.902976] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    8.903021] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x007fffffff -> 0x0000000000
[    8.907122] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    8.909242] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[    8.909355] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[    8.909406] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[    9.238486] brcm-pcie fd500000.pcie: link down
jolla commented 1 year ago

Based on this message, it looks like either you have a bad MT7921K or MCUzone board.

[ 9.238486] brcm-pcie fd500000.pcie: link down

Do you have a different m.2 Wi-Fi module your can try in the m.2 slot? Also, I would recommend picking up the newer mt7922 Wi-Fi module, it supports 160MHz channels and so far has proved to be more stable than the 7921K has been.

nimbo78 commented 1 year ago

@jolla some intel ax200\ax210 is ok for test purpose?

jolla commented 1 year ago

Yes

On Sat, Jul 29, 2023 at 12:48 PM nimbo78 @.***> wrote:

@jolla https://github.com/jolla some intel ax200\ax210 is ok for test purpose?

— Reply to this email directly, view it on GitHub https://github.com/WLAN-Pi/pi-gen/issues/44#issuecomment-1656805209, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEFQT4CEI2OQ6OZBTID5WXLXSVEG5ANCNFSM6AAAAAA2HED2UM . You are receiving this because you were mentioned.Message ID: @.***>

-- Thank you,

Jerry Olla

nimbo78 commented 1 year ago

seems like intel ax210 doesn't work too

root@wlanpi-365:/home/wlanpi# dmesg | grep pcie
[    8.569441] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /scb/pcie@7d500000/status
[    8.570122] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    8.570150] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    8.570191] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    8.570229] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x007fffffff -> 0x0000000000
[    8.577329] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    8.600063] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[    8.600187] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[    8.600242] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[    8.927158] brcm-pcie fd500000.pcie: link down
jolla commented 1 year ago

Yes, unfortunately it looks like the issue is a hardware issue with the MCUzone board. Perhaps a pin is bent or damaged on the m.2 socket. You'll likely need to get a replacement MCUzone board.

josuhr commented 1 year ago

Hey folks - having a similar issue here with a Comfast CF-953AX / MT7921au - seeing the "No Wi-Fi Adapter" message, but in my case the pcie link is up and I see the adapter in the list of USB devices as "MediaTek Inc. Wireless_Device". Any thoughts?

I feel like I might be missing something obvious from Adrian G's killer guide.

wlanpi@wlanpi-64a:~ $ dmesg | grep pcie
[    1.348892] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.348959] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.349066] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.349166] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000
[    1.350146] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.354536] pci_bus 0000:01: supply vpcie3v3 not found, using dummy regulator
[    1.354801] pci_bus 0000:01: supply vpcie3v3aux not found, using dummy regulator
[    1.354949] pci_bus 0000:01: supply vpcie12v not found, using dummy regulator
[    1.404846] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[   18.533100] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /scb/pcie@7d500000/status
jolla commented 1 year ago

Since your issue is with USB Wi-Fi modules this would be a separate issue, I've created a separate issue to track it

nimbo78 commented 1 year ago

well, that was HW issue :) The damper between the CM4 and the expansion card is too thick and the contact between the CM4 and the expansion card was lost in several places. So I just threw away the damper rings and it works like a charm. Sorry to bother you