mareksuscak / asus-pce-n53-linux Goto Github PK
View Code? Open in Web Editor NEW🤖 Asus PCE-N53 Linux Driver for Kernel versions 3.x, 4.x and 5.x
License: Other
🤖 Asus PCE-N53 Linux Driver for Kernel versions 3.x, 4.x and 5.x
License: Other
followed your tutorial and just installed a fresh copy of linux mint 19 cinnamon, v 3.8.6, linux kernel 4.15.0-24, I get this error stopping the first "Make", not a programmer, how do I fix this ?
from /home/linuxos/asus-pce-n53-linux/os/linux/../../os/linux/sta_ioctl.c:30:
In function ‘memcpy’,
inlined from ‘rt_ioctl_iwaplist’ at /home/linuxos/asus-pce-n53-linux/os/linux/../../os/linux/sta_ioctl.c:697:2:
./include/linux/string.h:340:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter
__read_overflow2();
^~~~~~~~~~~~~~~~~~
scripts/Makefile.build:332: recipe for target '/home/linuxos/asus-pce-n53-linux/os/linux/../../os/linux/sta_ioctl.o' failed
make[2]: *** [/home/linuxos/asus-pce-n53-linux/os/linux/../../os/linux/sta_ioctl.o] Error 1
Makefile:1552: recipe for target 'module/home/linuxos/asus-pce-n53-linux/os/linux' failed
make[1]: *** [module/home/linuxos/asus-pce-n53-linux/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-24-generic'
Makefile:384: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
I'm encountering an issue with the driver. The network interface is disabled on startup and it seems that changing /etc/network/interfaces
doesn't do much.
So in order to have interface enabled from the start, I'm using the following workaround:
enp4s0
is the name of the interface on my systemnetworkd
is enabled$cat /etc/systemd/network/20-enp4s0.network
[Match]
Name=enp4s0
[Network]
Description = Wireless Home
DHCP = yes
Unfortunately, private wireless parameters can't be changed with networkd
like in iwpriv
.
so to set WirelessMode
I'm using another systemd
config
$cat /etc/systemd/system/enp4s0-set-params.service
[Unit]
After=network.target
Before=network-online.target
[Service]
ExecStart=iwpriv enp4s0 set WirelessMode=9
[Install]
WantedBy=multi-user.target
as of 4.2.0-17-generic. Not sure if you still keep this up-to-date, but it may be time to get another wireless card...
When I do 'make', the following error occurred:
asus-pce-n53-linux/include/os/rt_linux.h:286:9: error: unknown type name ‘mm_segment_t’
286 | mm_segment_t fs;
| ^~~~~~~~~~~~
There are several changes required because pci_
methods are not available anymore.
I tried to apply it but at the end make install
failed with Killed.
unfortunately. Not really skilled in the C details though, so I am not able to provide a solid PR.
I have Ubuntu 16.04 LTS
and Asus PCE-N53
card.
During building a driver, I had to fix 2 compile errors:
asus-pce-n53-linux/os/linux/../../common/rtmp_mcu.c:558:72: error: passing argument 3 of ‘pci_read_config_word’ from incompatible pointer type [-Werror=incompatible-pointer-types]
pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration);
asus-pce-n53-linux/os/linux/../../common/rtmp_mcu.c:578:72: error: passing argument 3 of ‘pci_read_config_word’ from incompatible pointer type [-Werror=incompatible-pointer-types]
pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration);
I had changed this
pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration);
to this
pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, (u16*)&Configuration);
in 2 places of a file rtmp_mcu.c
It's pretty odd to have pages and pages filling the kernel log. Is there a way to limit this?
$ sudo apt-get update
$ sudo apt-get upgrade -y
$ sudo apt-get install build-essential linux-headers-generic linux-headers-$(uname -r) -y
$ cd ~
$ git clone https://github.com/mareksuscak/asus-pce-n53-linux.git
$ cd asus-pce-n53-linux
$ make
$ sudo make install
$ sudo modprobe rt5592sta
I follow the instruction above, and everything went well. However, wifi network still cannot detect the adapter.
And then I went for some research, I see your answer in this post https://askubuntu.com/questions/863391/how-to-make-the-asus-pce-n53-wifi-card-work-with-ubuntu-16/894473#894473
And I tried the following commands you gave.
sudo lshw -C network
however, I am unable to locate logical name for this adapter.
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:05:00.0
logical name: enp5s0
version: 0c
serial: d8:cb:8a:c0:79:db
size: 1Gbit/s
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip=192.168.0.26 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s
resources: irq:19 ioport:d000(size=256) memory:f7200000-f7200fff memory:f2100000-f2103fff
*-network UNCLAIMED
description: Network controller
product: RT5592 PCIe Wireless Network Adapter
vendor: Ralink corp.
physical id: 0
bus info: pci@0000:06:00.0
version: 00
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress cap_list
configuration: latency=0
resources: memory:f7100000-f710ffff
this answer is given years ago, do you have any update solution?
my system info if that matter
Host: Kernel: 5.4.0-39-generic x86_64 bits: 64 compiler: gcc v: 9.3.0
Desktop: Gnome 3.36.2 Distro: Ubuntu 20.04 LTS (Focal Fossa)
Machine:
Type: Desktop Mobo: MSI model: Z97S SLI Krait Edition (MS-7922) v: 2.0
serial: <superuser/root required> UEFI: American Megatrends v: 10.6
date: 08/13/2015
CPU:
Topology: Quad Core model: Intel Core i7-4790K bits: 64 type: MT MCP arch: Haswell
rev: 3 L2 cache: 8192 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 64003
Speed: 2430 MHz min/max: 800/4400 MHz Core speeds (MHz): 1: 2014 2: 1794 3: 2011
4: 1973 5: 1912 6: 1937 7: 1972 8: 1949
Graphics:
Device-1: NVIDIA GM204 [GeForce GTX 970] vendor: Micro-Star MSI driver: nvidia
v: 440.100 bus ID: 01:00.0
Display: x11 server: X.Org 1.20.8 driver: nvidia
unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz
OpenGL: renderer: GeForce GTX 970/PCIe/SSE2 v: 4.6.0 NVIDIA 440.100
direct render: Yes
Audio:
Device-1: Intel 9 Series Family HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus ID: 00:1b.0
Device-2: NVIDIA GM204 High Definition Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel bus ID: 01:00.1
Sound Server: ALSA v: k5.4.0-39-generic
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel port: d000 bus ID: 05:00.0
IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: d8:cb:8a:c0:79:db
Device-2: Ralink RT5592 PCIe Wireless Network Adapter vendor: ASUSTeK driver: N/A
port: d000 bus ID: 06:00.0
Drives:
Local Storage: total: 2.05 TiB used: 8.43 GiB (0.4%)
ID-1: /dev/sda vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB
ID-2: /dev/sdb vendor: Seagate model: ST2000DM001-1ER164 size: 1.82 TiB temp: 33 C
Partition:
ID-1: / size: 28.71 GiB used: 8.40 GiB (29.3%) fs: ext4 dev: /dev/sda6
Sensors:
System Temperatures: cpu: 32.0 C mobo: N/A gpu: nvidia temp: 37 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 33%
Info:
Processes: 307 Uptime: 8m Memory: 31.31 GiB used: 2.00 GiB (6.4%) Init: systemd
runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.16 inxi: 3.0.38
any comment will be helpful, thank you.
Hey there, recently have tried to test it on Debian 10 machine and i had the same problem like @not-in-stock encountered a while back ( #10 ). Driver is working fine, but the interface is down on boot.
After a few tests, I came up to this solution:
sudo apt install net-tools
ip a
or whatever to get it).$ cd /etc/systemd/system/
$ sudo nano asus_wifi.service
[Unit]
After=network.target
Before=network-online.target
[Service]
ExecStart=ifconfig your_interface_name up
[Install]
WantedBy=multi-user.target
$ sudo systemctl enable asus_wifi.service
I think there are better ways to fix this problem, but this worked well enough for me.
Good luck!
EDIT: Works on Debian 11.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.