Ran-Thegoth / uwe5622

1 stars 2 forks source link

How to properly compile and install? #1

Open sirken opened 1 year ago

sirken commented 1 year ago

Attempting to install this on an opi3 LTS. Drivers compile and kernel modules seem to be loaded, but wifi device does not exist. What am I missing?

make -C /lib/modules/`uname -r`/build M=$PWD

... compiles ok CC [M] /home/user/Downloads/uwe5622/tty-sdio/sprdbt_tty.mod.o LD [M] /home/user/Downloads/uwe5622/tty-sdio/sprdbt_tty.ko CC [M] /home/user/Downloads/uwe5622/unisocwifi/sprdwl_ng.mod.o LD [M] /home/user/Downloads/uwe5622/unisocwifi/sprdwl_ng.ko

sudo make -C /lib/modules/`uname -r`/build M=$PWD modules_install

INSTALL /lib/modules/6.1.35-1-MANJARO-ARM/extra/tty-sdio/sprdbt_tty.ko GZIP /lib/modules/6.1.35-1-MANJARO-ARM/extra/tty-sdio/sprdbt_tty.ko.gz INSTALL /lib/modules/6.1.35-1-MANJARO-ARM/extra/unisocwifi/sprdwl_ng.ko GZIP /lib/modules/6.1.35-1-MANJARO-ARM/extra/unisocwifi/sprdwl_ng.ko.gz DEPMOD /lib/modules/6.1.35-1-MANJARO-ARM

lsmod | grep spr

sprdwl_ng 360448 1 sprdbt_tty 32768 0 cfg80211 438272 1 sprdwl_ng rfkill 32768 6 sprdbt_tty,cfg80211

nmcli device status

DEVICE TYPE STATE CONNECTION
end0 ethernet connected Wired connection 1 lo loopback connected (externally) lo

Tried manual modprobe, sprdbt_tty ok but sprdwl_ng either hangs or gets segfault

sudo modprobe -vv sprdbt_tty

modprobe: INFO: custom logging function 0xaaaac637f970 registered insmod /lib/modules/6.1.35-1-MANJARO-ARM/kernel/drivers/net/wireless/uwe5622/tty-sdio/sprdbt_tty.ko.gz modprobe: INFO: context 0xaaaae9ed54c0 released

sudo modprobe -vv sprdwl_ng

modprobe: INFO: custom logging function 0xaaaae141f970 registered insmod /lib/modules/6.1.35-1-MANJARO-ARM/kernel/drivers/net/wireless/uwe5622/unisocwifi/sprdwl_ng.ko.gz Segmentation fault (core dumped)

Ran-Thegoth commented 1 year ago

Hi! You try to use bluettoth module. I do not test it, because I need no bluetooth in my project. Wireless module (sprdwl_ng) without sprdbt_tty works fine.

sirken commented 1 year ago

Hi @Ran-Thegoth. Thanks for the reply. What commands are needed to install and enable sprdwl_ng only?

Ran-Thegoth commented 1 year ago

The same command for build. But I do not use systemd or udev on SBC and load required modules manual with rc file (I use SYSV-style init from busybox). Also you can disable BT in your dtb/overlay, and udev will not be load tty driver. Or just rm -rf /lib/modules/uname -r/kernel/drivers/net/wireless/uwe5622/tty-sdio before run depmod