六个小时后,我几乎放弃 Ubuntu。
我在台式电脑上安装了 Ubuntu 12.04,但我的 WLAN 无法工作。现在我用以太网电缆连接了电脑。(女主人讨厌那根电缆)。
我有一台华硕 PCE-N53,它与 Linux 兼容,我下载了驱动程序,但文件夹中没有可执行文件。只有一个 MAKEFILE。
请记住,我已经使用 Ubuntu 6 个小时了,我不知道我在这里做什么。
在获得 Ubuntu Norway 的 Facebook 页面的一些帮助后,我尝试了这个:
espen@ubuntu:~$ cd /home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326
espen@ubuntu:~/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326$ make
make -C tools
make[1]: Entering directory `/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/tools'
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/tools/bin2h
cp -f os/linux/Makefile.6 /home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/Makefile
make -C /lib/modules/3.8.0-29-generic/build SUBDIRS=/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.8.0-29-generic'
CC [M] /home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../common/rtmp_mcu.o
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../common/rtmp_mcu.c: In function ‘RtmpAsicSendCommandToMcu’:
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../common/rtmp_mcu.c:558:4: warning: passing argument 3 of ‘pci_read_config_word’ from incompatible pointer type [enabled by default]
include/linux/pci.h:794:19: note: expected ‘u16 *’ but argument is of type ‘ULONG *’
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../common/rtmp_mcu.c:564:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘ULONG’ [-Wformat]
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../common/rtmp_mcu.c:564:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘ULONG’ [-Wformat]
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../common/rtmp_mcu.c:578:4: warning: passing argument 3 of ‘pci_read_config_word’ from incompatible pointer type [enabled by default]
include/linux/pci.h:794:19: note: expected ‘u16 *’ but argument is of type ‘ULONG *’
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../common/rtmp_mcu.c:587:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘ULONG’ [-Wformat]
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../common/rtmp_mcu.c:587:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘ULONG’ [-Wformat]
CC [M] /home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.o
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.c:42:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_remove_one’
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.c:43:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_probe’
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.c:62:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__devinitdata’
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.c:87:17: error: ‘rt2860_pci_tbl’ undeclared here (not in a function)
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.c:88:17: error: ‘rt2860_probe’ undeclared here (not in a function)
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.c:90:5: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.c:90:29: error: ‘rt2860_remove_one’ undeclared here (not in a function)
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.c:294:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_probe’
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.c:465:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rt2860_remove_one’
/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.c:73:1: error: ‘__mod_pci_device_table’ aliased to undefined symbol ‘rt2860_pci_tbl’
cc1: some warnings being treated as errors
make[2]: *** [/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux/../../os/linux/pci_main_dev.o] Error 1
make[1]: *** [_module_/home/espen/Nedlastinger/Linux/DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-29-generic'
make: *** [LINUX] Error 2
如您所见,它不起作用。当然,我尝试了附加驱动程序程序,它只有适用于我的 Nvidia 卡的驱动程序,没有其他的。
有人有什么建议吗?
有人告诉我./configure.. 我不知道那是什么意思!
答案1
不幸的是,您的问题已为人所知。该卡是 Ralink RT5592。这不是 Linux 问题,而是 Ralink 自发布以来一直没有更新此卡的驱动程序。这些驱动程序适用于 2.6 内核。您需要一个补丁才能让它们正确构建为我们今天使用的 3.8 内核及更高版本。
我有同样的卡。我买它是因为它宣传支持 Linux。是的,三星也在包装盒上撒谎以增加销量。我不得不与他们争夺一台宣传支持 Linux 的打印机。最后他们更新了驱动程序,让它有点价值。是的,它支持 Linux......有一段时间了。我一直在反复检查,希望得到一些开源支持,但上次检查时进展并不快。
我正在考虑使用另一张卡。考虑到 Windows 是大多数人喜欢支持的唯一操作系统,我怀疑是否有人会从中吸取教训。