Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various external USB WiFI dongles. Fresh rip 4 image #7290

Open
oxoocoffee opened this issue Nov 24, 2024 · 5 comments
Open

Various external USB WiFI dongles. Fresh rip 4 image #7290

oxoocoffee opened this issue Nov 24, 2024 · 5 comments

Comments

@oxoocoffee
Copy link

oxoocoffee commented Nov 24, 2024

Creating a bug report/issue

  • [x ] I have searched the existing open and closed issues

Required Information

  • DietPi version | G_DIETPI_VERSION_CORE=9 G_DIETPI_VERSION_SUB=8 G_DIETPI_VERSION_RC=0 G_GITBRANCH='master' G_GITOWNER='MichaIng'
  • Distro version | bookworm 0
  • Kernel version | uname -a
  • SBC model | RPi 4 Model B (aarch64) or (EG: RPi3)
  • Power supply used | (Power supply that also did come wt my rPi5 kit)
  • SD card used | (SanDisk)

Additional Information (if applicable)

  • Software title | kernel
  • Was the software title installed freshly or updated/migrated? Fresh Install
  • Can this issue be replicated on a fresh installation of DietPi? Yes
  • Bug report ID | d714ba79-6dc9-4de3-9515-fd8e92223326

Steps to reproduce

  1. Insert different USB Wifi Dongles to USB (blue) port which should not matter
  2. ifconfig -a shows no wlan0

Expected behaviour

  • I would expect wlan0 show up as a un-configured device

Actual behaviour

  • No devices found. I will post dongle models, insert kernel log lines, and lsusb for each

Extra details

I am experimenting with a different WiFi Dongles, since I a trying to steal away from hacking the external WiFI antenna on PCB for a better signal in metal cases.

I did not make any configuration changes in dietpi-config / Network Options: *.
Under Adapter Options I have default settings and for below scenarios they do stay as they are below.

    Ethernet     : Available | [On] | Connected
    WiFi         : Not Found | [Off] | Disconnected
    Onboard WiFi : [Off]

I have few USB WiFI dongles that after insertion, automatically show wlan in ifconfig

Below is the list of what looks like are devices which running kernel does not support.
All links are to Amazon store, and links been sensitized :)

Would it be to merge some to next update so we do not have to look for a correct source version and compile the submodules?

  • AC600 Mbps Dual Band Internet USB WiFi Adapter 🔴 Not Working

    $ sudo dmsg -T --follow-new
    [Sun Nov 24 22:19:23 2024] usb 1-1.2: new high-speed USB device number 7 using xhci_hcd
    [Sun Nov 24 22:19:23 2024] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=c811, bcdDevice= 2.00
    [Sun Nov 24 22:19:23 2024] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [Sun Nov 24 22:19:23 2024] usb 1-1.2: Product: 802.11ac NIC
    [Sun Nov 24 22:19:23 2024] usb 1-1.2: Manufacturer: Realtek
    [Sun Nov 24 22:19:23 2024] usb 1-1.2: SerialNumber: 123456
    $ lsusb
    Bus 001 Device 006: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC
    
  • USB-AX55 Nano AX1800 USB WiFi6

    $ dmesg -T --follow-new 
    [Sun Nov 24 22:47:35 2024] usb 1-1.1: new high-speed USB device number 9 using xhci_hcd
    [Sun Nov 24 22:47:35 2024] usb 1-1.1: New USB device found, idVendor=0b05, idProduct=1a62, bcdDevice= 0.00
    [Sun Nov 24 22:47:35 2024] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [Sun Nov 24 22:47:35 2024] usb 1-1.1: Product: 802.11ax WLAN Adapter
    [Sun Nov 24 22:47:35 2024] usb 1-1.1: Manufacturer: Realtek
    [Sun Nov 24 22:47:35 2024] usb 1-1.1: SerialNumber: 00e04c000001
    $ lsusb
    Bus 001 Device 009: ID 0b05:1a62 ASUSTek Computer, Inc. 802.11ax WLAN Adapter
  • Edimax Wi-Fi 4 802.11n Adapter for PC N150 Nano USB Adapter ❤️ Working

    $ dmesg -T --follow-new 
    [Sun Nov 24 22:59:10 2024] usb 1-1.2: new high-speed USB device number 10 using xhci_hcd
    [Sun Nov 24 22:59:10 2024] usb 1-1.2: New USB device found, idVendor=7392, idProduct=b811, bcdDevice= 0.00
    [Sun Nov 24 22:59:10 2024] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [Sun Nov 24 22:59:10 2024] usb 1-1.2: Product: Edimax N150 Adapter
    [Sun Nov 24 22:59:10 2024] usb 1-1.2: Manufacturer: Realtek
    [Sun Nov 24 22:59:10 2024] usb 1-1.2: SerialNumber: 08BEAC441FD9
    [Sun Nov 24 22:59:10 2024] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
    [Sun Nov 24 22:59:10 2024] usbcore: registered new interface driver r8188eu

    🔴 Important: Interesting line here in above output

    [Sun Nov 24 22:59:10 2024] r8188eu: module is from the staging directory, the quality is unknown, you have been warned. 
    
    $ lsusb
    Bus 001 Device 010: ID 7392:b811 Edimax Technology Co., Ltd Edimax N150 Adapter
    wlan0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
         ether xx:xx:xx:xx:xx:xx  txqueuelen 1000  (Ethernet)
         RX packets 0  bytes 0 (0.0 B)
         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 0  bytes 0 (0.0 B)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  • EDUP USB WiFi Adapter for PC ❤️ Working

    $ sudo dmsg -T --follow-new
    [Sun Nov 24 22:33:27 2024] usb 1-1.2: new high-speed USB device number 8 using xhci_hcd
    [Sun Nov 24 22:33:27 2024] usb 1-1.2: New USB device found, idVendor=148f, idProduct=7601, bcdDevice= 0.00
    [Sun Nov 24 22:33:27 2024] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [Sun Nov 24 22:33:27 2024] usb 1-1.2: Product: 802.11 n WLAN
    [Sun Nov 24 22:33:27 2024] usb 1-1.2: SerialNumber: 1.0
    [Sun Nov 24 22:33:28 2024] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [Sun Nov 24 22:33:28 2024] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [Sun Nov 24 22:33:28 2024] usb 1-1.2: reset high-speed USB device number 8 using xhci_hcd
    [Sun Nov 24 22:33:28 2024] mt7601u 1-1.2:1.0: ASIC revision: 76010001 MAC revision: 76010500
    [Sun Nov 24 22:33:28 2024] mt7601u 1-1.2:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
    [Sun Nov 24 22:33:28 2024] mt7601u 1-1.2:1.0: EEPROM ver:0c fae:00
    [Sun Nov 24 22:33:29 2024] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
    [Sun Nov 24 22:33:29 2024] usbcore: registered new interface driver mt7601u 
    $ lsusb
    Bus 001 Device 008: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
    
    $ ifconfig -a
    wlan0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether xx:xx:xx:xx:xx:xx  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    

I have few others from other brand on the way. I will update the list when Iet them as well few others I did not have time yet to check.
I am not sure about rPI 5 fresh image

In reality I am trying to find an external and supported USB WiFI dongle, preferably with external SMA antenna. If anyone can list working models, that would be great.

Tx

@Joulinar
Copy link
Collaborator

best to test with new RPI kernel #6676
This might have an improvement for some USB WiFi adapter

@oxoocoffee
Copy link
Author

oxoocoffee commented Nov 25, 2024

Quick glance @ #7253 mentions Raspberry Pi 5: and I am running Raspberry Pi 4, which there are two different images AFAIK. Is #7253 is still applicable here?

Also see is a current modules loaded on this system

$ lsmod 
Module                  Size  Used by
nft_chain_nat          16384  8
xt_MASQUERADE          16384  2
nf_nat                 49152  2 nft_chain_nat,xt_MASQUERADE
brcmfmac              331776  0
brcmutil               24576  1 brcmfmac
r8188eu               331776  0
mt7601u               122880  0
mac80211              974848  1 mt7601u
libarc4                16384  2 mac80211,r8188eu
cfg80211              925696  3 mt7601u,brcmfmac,mac80211
rfkill                 32768  2 cfg80211
ip6t_REJECT            16384  1
nf_reject_ipv6         16384  1 ip6t_REJECT
xt_hl                  16384  22
ip6_tables             32768  52
ip6t_rt                16384  3
ipt_REJECT             16384  1
nf_reject_ipv4         16384  1 ipt_REJECT
xt_LOG                 16384  10
nf_log_syslog          24576  10
xt_comment             16384  2
nft_limit              16384  13
xt_limit               16384  0
xt_addrtype            16384  4
xt_tcpudp              16384  0
xt_conntrack           16384  18
nf_conntrack          143360  3 xt_conntrack,nf_nat,xt_MASQUERADE
nf_defrag_ipv6         20480  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
nft_compat             20480  123
nf_tables             237568  639 nft_compat,nft_chain_nat,nft_limit
nfnetlink              20480  2 nft_compat,nf_tables
binfmt_misc            20480  1
vc4                   331776  0
snd_soc_hdmi_codec     20480  0
drm_display_helper     16384  1 vc4
cec                    53248  1 vc4
drm_dma_helper         20480  1 vc4
drm_kms_helper        204800  4 drm_dma_helper,vc4
snd_soc_core          274432  2 vc4,snd_soc_hdmi_codec
hid_multitouch         24576  0
snd_compress           20480  1 snd_soc_core
joydev                 28672  0
snd_pcm_dmaengine      20480  1 snd_soc_core
snd_pcm               139264  4 snd_soc_hdmi_codec,snd_compress,snd_soc_core,snd_pcm_dmaengine
rpivid_hevc            53248  0
v4l2_mem2mem           45056  1 rpivid_hevc
snd_timer              36864  1 snd_pcm
v3d                    90112  0
snd                   106496  5 snd_soc_hdmi_codec,snd_timer,snd_compress,snd_soc_core,snd_pcm
gpu_sched              49152  1 v3d
videobuf2_dma_contig    20480  1 rpivid_hevc
drm_shmem_helper       24576  1 v3d
videobuf2_memops       16384  1 videobuf2_dma_contig
syscopyarea            16384  1 drm_kms_helper
videobuf2_v4l2         32768  2 rpivid_hevc,v4l2_mem2mem
drm                   581632  8 gpu_sched,drm_kms_helper,drm_dma_helper,v3d,vc4,drm_shmem_helper,drm_display_helper
videobuf2_common       69632  5 videobuf2_dma_contig,videobuf2_v4l2,rpivid_hevc,v4l2_mem2mem,videobuf2_memops
sysfillrect            16384  1 drm_kms_helper
videodev              274432  4 videobuf2_v4l2,videobuf2_common,rpivid_hevc,v4l2_mem2mem
drm_panel_orientation_quirks    28672  1 drm
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
raspberrypi_hwmon      16384  0
backlight              24576  1 drm
mc                     61440  5 videodev,videobuf2_v4l2,videobuf2_common,rpivid_hevc,v4l2_mem2mem
i2c_brcmstb            16384  0
nvmem_rmem             16384  0
uio_pdrv_genirq        16384  0
uio                    24576  1 uio_pdrv_genirq
fuse                  135168  1
dm_mod                139264  0
ip_tables              32768  8
x_tables               53248  14 xt_conntrack,nft_compat,xt_LOG,xt_tcpudp,xt_addrtype,ip6t_rt,xt_comment,ip6_tables,ipt_REJECT,ip_tables,xt_limit,xt_hl,xt_MASQUERADE,ip6t_REJECT
ipv6                  557056  19 nf_reject_ipv6

@Joulinar
Copy link
Collaborator

is still applicable

Yes

@oxoocoffee
Copy link
Author

Ok, couple of things. This issue is in a way related to my ##7253 issue, where I did try to install AP using dietpi-software on rPI 5 clean image and I got similar errors.

As far this issue goes, The system is still booted as it was with all steps above.
I would like to remove external USB dangle and try internatl WIFI.
Should I post my findings to the other thread which is internal WIIFI and AP? And indicate that the information if for rPi 4? Start a similar issue like the ##7253 but for rPI 4?

Please note, all software was installed strictly using dietpi-software.

On current running system rPI 4

  • Uninstall AP software using dietpi-software, I should uncheck the WiFi Hotspot option in Advanced Networking? Does this under cover include purge flag to apt? to remove all files? If not, which files I should remove to revert to clean version?
  • When I uninstall WiFi Hotspot this should uninstall its dependent packages? I just want to make sure everything which was modified by installing WiFi Hotspot is removed.
  • Remove external WIFI dongle, and reboot
  • sudo dietpi-config and enable Onboard WiFi
  • Verify that wlan0 is enabled using ifconfig -a
  • Install WiFi Hotspot and capture all output.
  • If errors encountered, post if here or to the other thread?

I can make a fresh image of rPI 5 and capture all output when installing WiFi Hotspot on it.
I should be able to do it tonight.

Any other notes or suggestions you recommend? For now without using external WiFI?

@MichaIng
Copy link
Owner

@oxoocoffee
Sorry for my late reply. To your questions:

  • Uninstalling software via dietpi-software indeed purges all packages, hence removes all config files. Also other possible related files are removed.
  • Yes, all dependent packages are purged.

I guess the issues are discussed in the new topic you opened 🙂.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants