除其他外,本教程()和阅读Linux设备驱动程序书中的某些章节时,我无法获得探测函数中的pr_debug()语句来显示dmesg中的任何输出。
这是我的密码:
#include <linux/module.h> /*included for all kernel modules*/
#include <linux/kernel.h> /*included for KERN_DEBUG*/
#include <linux/init.h> /*included for __init and __exit macros*/
#include
我正在尝试编译用于USB转串行设备的Linux驱动程序,但遇到错误
/root/moxa_usb_to_serial/mxu11x0/driver/mxu11x0.c:307: error: ‘usb_serial_probe’ undeclared here (not in a function)
/root/moxa_usb_to_serial/mxu11x0/driver/mxu11x0.c:308: error: ‘usb_serial_disconnect’ undeclared here (not in a function)
我有linux
Linux host 3.10.
我正在学习如何编写linux驱动程序,以及如何挑选我随处可见的U盘。有一段时间,当我插入探测函数时,我一直在为调用它而苦苦挣扎。
发生的情况是,当我拔出它的时候,它会被调用,或者至少在那之前它里面的printk不会被调用。然后调用disconnect函数。对/sys/bus/usb/drivers中的驱动程序使用bind和unbind可以做同样的事情。
May 24 21:09:12 localhost.localdomain kernel: probed
May 24 21:09:12 localhost.localdomain kernel: usb 1-2: USB disconnect
当我尝试为我的Silabs USB to UART桥安装驱动程序时,我遇到了一个问题。
我从这里下载了驱动程序:
我正试着把它安装在我的树莓树上,它的内核是3.6.11
在说明中,我可以看到以下内容:
make (your cp2010x driver)
cp cp2010x.ko to /libmodules/<kernel>/kernel/driver/usb/serial
insmod /libmodules/<kernel>/kernel/driver/usb/serial/usbserial.ko
insmod xp2010x.ko
然而,当我尝试调用MAKE
我买了一个相当便宜的无线天线,现在不得不在Ubuntu14.04位上安装RT2870驱动程序。
我从它的官方网页下载了驱动程序文件2010_0709_RT2870_Linux_STA_v2.4.0.1,并试图编译它,但我得到了编译错误,我不知道如何克服。
所以,在我发布make之后,这个过程就开始了,过了一段时间,它就以
/home/xxx/Desktop/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSNetDevDetach’:
/home/xxx/Desk
我有一个带有嵌入式系统的板,它是基于buildroot的。在"make linux-menuconfig“中,我想为USB-RS232适配器"Moxa UPORT 1110”添加适当的驱动程序。我在"make linux-menuconfig“中做了标记: Device Drivers-> USB support -> USB Serial Converter support-> USB MoxaUPORT Serial Driver 将适配器与设备连接后,linux将无法识别该设备。 当我检查"lsusb“时,我得到: lsusb
Bus
我最近带了我的raspberry pi 3型号的B+和我的wifi适配器,它是Realtek RTL8188。
当我插入Raspberry pi时,它不起作用,但在我的Windows 10笔记本电脑上立即工作
(详细资料)终端: lsusb
Bus 001 Device 009: ID 0bda:f179 Realtek Semiconductor Corp.
Bus 001 Device 005: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 001 Device 007: ID 0424:7800 Standard Microsyste
我有一个无线接口,我正在尝试安装他们的Linux驱动程序从这里开始。
当我运行install.sh (我只有CLI)时,我会得到这些错误。我该怎么做呢?这是一台64位的机器。
/home/zeno/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c: In function ârtw_proc_init_oneâ:
/home/zeno/RTL8188C_8192C_USB_linux_v4.0.2_9
我使用110 WiFi .它过去运行良好,但是在一些配置更改之后,我破坏了一些东西,现在当我插入dongle时,我在lsusb输出中看到了它,但是wlan0没有被创建,dongle上的led也不亮。
要查什么?
~ > uname -a
Linux Distress 3.2.0-56-generic #86-Ubuntu SMP Wed Oct 23 17:31:43 UTC 2013 i686 i686 i386 GNU/Linux
dmesg显示
[ 667.824095] usb 1-8: new high-speed USB device number 6 using ehci
如dmesg下面所示,检测到USB连接:
[ 1106.391415] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[ 1106.416995] usb 2-1: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[ 1106.417027] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 1106.417041] usb 2-1: Product
我插上了一个WiFi USB手柄,我就可以立即上网了。现在我很好奇我的uSB棒的类型(USB1.0、USB2.0或USB3.0)。但是当我运行ls /media/begueradj/时,我看不到它。怎么解决这个问题?
编辑:
Bus 002 Device 002: ID 064e:a103 Suyin Corp. Acer/HP Integrated Webcam [CN0314]
Bus 002 Device 004: ID 12d1:14dc Huawei Technologies Co., Ltd.
Bus 002 Device 001: ID 1d6b:0002 Linux Foun
苏斯b
Bus 002 Device 014: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
不名-a
Linux HOSTNAME 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue Nov 6 11:21:14 CST 2012 x86_64 x86_64 x86_64 GNU/Linux
德梅斯
usb 2-3: new high speed USB device number 12 using ehci_hcd
usb 2-3: New USB device found, idVend
我有一个宾得PocketJet 3 Plus,我想在我的linux机器上使用,但我找不到一个linux驱动程序,只有windows驱动。我能做些什么来让它发挥作用吗?还是我应该忘记这个想法?
这就是我从dmesg那里得到的:
[ 5562.920208] usb 2-3.4: new full-speed USB device number 17 using ehci-pci
[ 5563.014188] usb 2-3.4: New USB device found, idVendor=0a17, idProduct=3406
[ 5563.014195] usb 2-3.4: New US
在Ubuntu22.04内核升级到5.19之后,Wifi停止工作。升级内核后,我通常运行
cd rtl8192eu-linux-driver
make clean
make
sudo make install
sudo modprobe 8192eu
基于这个帖子,这种方式重新启动驱动程序,wifi又开始工作了。但是,这次,我犯了一些错误。
xander@xander:~/rtl8192eu-linux-driver/rtl8192eu-linux-driver$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.0-05190
我想使用Ubuntu12.04上的USB蓝牙软盘。我想我会先安装一些驱动程序。我从哪弄到的?有没有通用的蓝牙驱动程序?
我还需要做些什么吗?
编辑:当我运行lsusb时,我得到以下结果:
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 003: ID 0a12:100b Cambridge Silicon Radio, Ltd
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
以防万一:我正在VirtualBox中运行Ubun