Package Details: ax-usb-nic-dkms 3.1.0-1

Git Clone URL: https://aur.archlinux.org/ax-usb-nic-dkms.git (read-only, click to copy)
Package Base: ax-usb-nic-dkms
Description: Kernel module for ASIX USB Ethernet Controller
Upstream URL: https://www.asix.com.tw/en/support/download
Licenses: GPL2
Submitter: mmoya
Maintainer: mmoya
Last Packager: mmoya
Votes: 5
Popularity: 1.73
First Submitted: 2023-09-15 17:45 (UTC)
Last Updated: 2024-03-26 19:26 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

mmoya commented on 2024-04-24 09:27 (UTC) (edited on 2024-04-26 09:35 (UTC) by mmoya)

Hi @BuSteR

Do you have enough bandwidth to check if commits 3d4014b5 and 2c5d4f99 fix the oops referred in your previous comment?

Thanks

vepirree commented on 2024-04-16 20:02 (UTC) (edited on 2024-04-16 20:24 (UTC) by vepirree)

When plugging in the adapter, the LED flashes for a split second. The system can not see it apart from recognizing it as a USB device. However, when putting my laptop to sleep and then waking it up, the adapter starts showing activity (the LED light blinks like it's downloading something) but it still does not show up in any network management and related utilities. Trying usbreset just kicks it back to the pre-sleep state (no activity). Nothing that raises eyebrows is to be seen in journalctl either.

EDIT: I tried reinstalling it since it stopped showing up in lsmod and I see this (note the error on step 2):

(1/4) Arming ConditionNeedsUpdate...
(2/4) Install DKMS modules
==> ERROR: Missing 6.8.5-arch1-1 kernel modules tree for module ax-usb-nic/3.1.0.
(3/4) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
(after this there aren't any other errors)

Also, I am on kernel 6.8.4 so that's that.

mmoya commented on 2024-03-06 14:26 (UTC)

Hi BuSteR

I'll try the changes locally and will upload an updated version.

Thanks for the investigation.

BuSteR commented on 2024-02-09 08:33 (UTC)

There is some bug in the driver, which I think is related to this helper - https://github.com/aircrack-ng/rtl8812au/issues/1088#issue-1784546374. In ax88179_178a.c, there is a check specifically for this, but it seems not to work properly.

#if KERNEL_VERSION(5, 16, 0) <= LINUX_VERSION_CODE
        eth_hw_addr_set(netdev, addr->sa_data);
#else
        memcpy(netdev->dev_addr, addr->sa_data, ETH_ALEN);      
#endif

        ret = ax_write_cmd(axdev, AX_ACCESS_MAC, AX_NODE_ID, ETH_ALEN,
                           ETH_ALEN, addr->sa_data);
        if (ret < 0)
                return ret;

        return 0;

}

Additionally, my dmesg is flooded with this: "============AX88279==========", and I think it's okay to add this to the PKGBUILD:

sed -i '/printk("============AX88279==========");/d' "${pkgdir}/usr/src/${_pkgname}-${pkgver}/ax_main.c"

After it is removed from ax_main.c, it doesn't print at all.

BuSteR commented on 2024-02-07 14:02 (UTC)

I might try it on x86_64 architecture and will come back with a result. I think this happens when renaming the interface, but I can't confirm it now, as the RPI is a remote gateway.

mmoya commented on 2024-02-07 12:31 (UTC)

I'm seeing similar oops both in 6.6 and 6.7 on x86_64 but the system remains functional.

$ journalctl --since '-5day' | grep -E 'Linux version |Expected addr: '
Feb 03 16:43:42 itotele kernel: Linux version 6.7.2-arch1-1 (linux@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.41.0) #1 SMP PREEMPT_DYNAMIC Fri, 26 Jan 2024 19:10:20 +0000
Feb 03 16:43:48 itotele kernel: ax_usb_nic 10-1.1:1.0 enp100s0f4u1u1: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 03 17:07:58 itotele kernel: ax_usb_nic 10-1.1:1.0 enp100s0f4u1u1 (unregistered): Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 04 18:39:48 itotele kernel: Linux version 6.7.3-arch1-2 (linux@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Fri, 02 Feb 2024 17:03:55 +0000
Feb 05 09:13:51 itotele kernel: Linux version 6.6.15-2-lts (linux-lts@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Fri, 02 Feb 2024 17:04:24 +0000
Feb 05 09:13:54 itotele kernel: ax_usb_nic 8-1.2:1.0 eth0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 05 09:19:15 itotele kernel: Linux version 6.6.15-2-lts (linux-lts@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Fri, 02 Feb 2024 17:04:24 +0000
Feb 05 09:19:18 itotele kernel: ax_usb_nic 8-1.2:1.0 eth0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 05 09:25:57 itotele kernel: Linux version 6.7.3-arch1-2 (linux@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Fri, 02 Feb 2024 17:03:55 +0000
Feb 05 09:26:00 itotele kernel: ax_usb_nic 8-1.2:1.0 eth0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 05 09:27:59 itotele kernel: Linux version 6.6.15-2-lts (linux-lts@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Fri, 02 Feb 2024 17:04:24 +0000
Feb 05 09:28:02 itotele kernel: ax_usb_nic 8-1.2:1.0 eth0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 06 08:48:46 itotele kernel: ax_usb_nic 8-1.2:1.0 eth0 (unregistered): Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 06 10:07:09 itotele kernel: ax_usb_nic 8-1.2:1.0 eth0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 06 21:26:10 itotele kernel: Linux version 6.7.4-arch1-1 (linux@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Mon, 05 Feb 2024 22:07:49 +0000
Feb 06 21:26:13 itotele kernel: ax_usb_nic 8-1.2:1.0 eth0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Feb 06 21:28:14 itotele kernel: Linux version 6.7.4-arch1-1 (linux@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.42.0) #1 SMP PREEMPT_DYNAMIC Mon, 05 Feb 2024 22:07:49 +0000
Feb 06 21:28:17 itotele kernel: ax_usb_nic 8-1.2:1.0 eth0: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

alllexx88 commented on 2024-02-07 11:10 (UTC)

@BuSteR it is probably either Raspberry Pi 4 specific, or architecture (arm/aarch64) specific, since it works for me now on amd64 on 6.7.x kernel, and I believe it worked on 6.6.x kernel before too.

BuSteR commented on 2024-02-07 08:18 (UTC) (edited on 2024-02-07 08:23 (UTC) by BuSteR)

It seems that there is a problem with kernel 6.6.X with the driver:

[   10.200488] ax_usb_nic 2-1:1.0 net1: Current addr:  20 7b d2 72 de d5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.214595] ax_usb_nic 2-1:1.0 net1: Expected addr: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   10.227920] ------------[ cut here ]------------
[   10.232570] netdevice: net1: Incorrect netdev->dev_addr
[   10.237918] WARNING: CPU: 0 PID: 439 at net/core/dev_addr_lists.c:519 dev_addr_check+0xac/0x148
[   10.246635] Modules linked in: nft_meta_bridge bridge nft_chain_nat nf_nat nft_ct zstd zram zsmalloc nf_tables cfg80211 8021q garp stp llc btusb btrtl btintel btbcm bluetooth bcm2835_v4l2(C) bcm2835_codec(C) rpivid_hevc(C) bcm2835_isp(C) v4l2_mem2mem bcm2835_mmal_vchiq(C) videobuf2_vmalloc videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videodev ecdh_generic ecc rfkill libaes videobuf2_common raspberrypi_hwmon raspberrypi_gpiomem mc i2c_bcm2835 vc_sm_cma(C) nvmem_rmem uio_pdrv_genirq uio ax88179_178a sch_cake tcp_bbr i2c_bcm2708 i2c_dev snd_bcm2835(C) snd_pcm snd_timer snd nf_conntrack_pptp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ax_usb_nic(O) drm tun fuse drm_panel_orientation_quirks backlight dm_mod nfnetlink ip_tables x_tables ipv6
[   10.312521] CPU: 0 PID: 439 Comm: ip Tainted: G         C O       6.6.14-1-rpi #1
[   10.320000] Hardware name: Raspberry Pi 4 Model B Rev 1.5 (DT)
[   10.325825] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[   10.332780] pc : dev_addr_check+0xac/0x148
[   10.336871] lr : dev_addr_check+0xac/0x148
[   10.340960] sp : ffffffc08077b510
[   10.344265] x29: ffffffc08077b510 x28: 0000000000000000 x27: 0000000000000000
[   10.351399] x26: ffffffde8d3274a0 x25: ffffff8101e72f90 x24: 0000000000000101
[   10.358531] x23: ffffff8102548268 x22: 0000000000001002 x21: ffffffde8d3274a0
[   10.365663] x20: ffffff8102548000 x19: ffffff8102548000 x18: 0000000000000006
[   10.372795] x17: 000000000000ffff x16: ffffff810cebfa40 x15: ffffffc08077af70
[   10.379927] x14: 0000000000000000 x13: 000000006b49d200 x12: ffffffdeaabad8c8
[   10.387059] x11: 0000000000000001 x10: 0000000000001a20 x9 : ffffffdea94ce800
[   10.394191] x8 : ffffff810d84d780 x7 : 0000000000000004 x6 : 00000000000000d0
[   10.401323] x5 : 00000000410fd080 x4 : 0000000000f0000f x3 : 0000000000000003
[   10.408455] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffffff810d84bd00
[   10.415587] Call trace:
[   10.418026]  dev_addr_check+0xac/0x148
[   10.421768]  __dev_open+0x48/0x218
[   10.425166]  __dev_change_flags+0x194/0x218
[   10.429344]  dev_change_flags+0x2c/0x80
[   10.433175]  do_setlink+0x28c/0xef8
[   10.436659]  __rtnl_newlink+0x520/0x898
[   10.440489]  rtnl_newlink+0x58/0x90
[   10.443973]  rtnetlink_rcv_msg+0x134/0x390
[   10.448063]  netlink_rcv_skb+0x64/0x138
[   10.451895]  rtnetlink_rcv+0x20/0x38
[   10.455464]  netlink_unicast+0x300/0x370
[   10.459381]  netlink_sendmsg+0x1c4/0x448
[   10.463298]  __sock_sendmsg+0x64/0xc0
[   10.466955]  ____sys_sendmsg+0x260/0x298
[   10.470872]  ___sys_sendmsg+0xb4/0x110
[   10.474613]  __sys_sendmsg+0x8c/0xf0
[   10.478181]  __arm64_sys_sendmsg+0x2c/0x40
[   10.482271]  invoke_syscall+0x50/0x128
[   10.486016]  el0_svc_common.constprop.0+0x48/0xf0
[   10.490715]  do_el0_svc+0x24/0x38
[   10.494023]  el0_svc+0x40/0xe8
[   10.497073]  el0t_64_sync_handler+0x100/0x130
[   10.501423]  el0t_64_sync+0x190/0x198
[   10.505079] ---[ end trace 0000000000000000 ]---

mmoya commented on 2024-01-21 20:59 (UTC)

Fixed. Thanks.

alllexx88 commented on 2024-01-18 09:18 (UTC)

Hi, there's a small typo, here's the fix:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,5 +20,5 @@ package() {
     sed -e "s/@PKGVER@/${pkgver}/" -i "${pkgdir}/usr/src/${_pkgname}-${pkgver}/dkms.conf"
     mkdir -p "${pkgdir}/usr/lib/modprobe.d"
     echo "blacklist ax88179_178a" > "${pkgdir}/usr/lib/modprobe.d/ax-usb-nic.conf"
-    echo "blacklist cdc_ncm" > "${pkgdir}/usr/lib/modprobe.d/ax-usb-nic.conf"
+    echo "blacklist cdc_ncm" >> "${pkgdir}/usr/lib/modprobe.d/ax-usb-nic.conf"
 }

Because of this typo, ax88179_178a isn't blacklisted:

$ cat /usr/lib/modprobe.d/ax-usb-nic.conf 
blacklist cdc_ncm

Thanks