日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

usb转4串口芯片 linux驱动,【官方发布】CH9344 USB转四串口芯片Linux驱动

發布時間:2024/1/1 linux 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 usb转4串口芯片 linux驱动,【官方发布】CH9344 USB转四串口芯片Linux驱动 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

如果修改makefile

把KERNELDIR := /lib/modules/$(shell uname -r)/build

改成:KERNELDIR ?=$(KERNEL_DIR)

則編譯報錯:

build driver module: ch9344

rm -rf *.mk .tmp_versions Module.symvers *.mod.c *.o *.ko .*.cmd Module.markers modules.order

make -C /home/vm/rk/project/firefly-sdk/rk3328_drv/../kernel? M=/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344

make[1]: Entering directory '/home/vm/rk/project/firefly-sdk/kernel'

LD? ? ? /home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/built-in.o

CC [M]? /home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.o

/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.c: In function 'ch934x_tty_ioctl':

/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.c:1395:16: warning: unused variable 'flags' [-Wunused-variable]

error, forbidden warning:ch934x.c:1395

unsigned long flags;

^~~~~

At top level:

/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.c:2202:12: warning: 'ch934x_reset_resume' defined but not used [-Wunused-function]

error, forbidden warning:ch934x.c:2202

static int ch934x_reset_resume(struct usb_interface *intf)

^~~~~~~~~~~~~~~~~~~

/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.c:2142:12: warning: 'ch934x_suspend' defined but not used [-Wunused-function]

error, forbidden warning:ch934x.c:2142

static int ch934x_suspend(struct usb_interface *intf, pm_message_t message)

^~~~~~~~~~~~~~

/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.c:1158:13: warning: 'ch934x_tty_unthrottle' defined but not used [-Wunused-function]

error, forbidden warning:ch934x.c:1158

static void ch934x_tty_unthrottle(struct tty_struct *tty)

^~~~~~~~~~~~~~~~~~~~~

/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.c:1148:13: warning: 'ch934x_tty_throttle' defined but not used [-Wunused-function]

error, forbidden warning:ch934x.c:1148

static void ch934x_tty_throttle(struct tty_struct *tty)

^~~~~~~~~~~~~~~~~~~

/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.c:219:12: warning: 'ch934x_cmd_in' defined but not used [-Wunused-function]

error, forbidden warning:ch934x.c:219

static int ch934x_cmd_in(struct ch934x *ch934x,

^~~~~~~~~~~~~

/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.c:154:12: warning: 'ch934x_control_out' defined but not used [-Wunused-function]

error, forbidden warning:ch934x.c:154

static int ch934x_control_out(struct ch934x *ch934x, u8 request,

^~~~~~~~~~~~~~~~~~

scripts/Makefile.build:283: recipe for target '/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.o' failed

make[2]: *** [/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344/ch934x.o] Error 1

Makefile:1479: recipe for target '_module_/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344' failed

make[1]: *** [_module_/home/vm/rk/project/firefly-sdk/rk3328_drv/ch9344] Error 2

make[1]: Leaving directory '/home/vm/rk/project/firefly-sdk/kernel'

Makefile:5: recipe for target 'default' failed

make: *** [default] Error 2

總結

以上是生活随笔為你收集整理的usb转4串口芯片 linux驱动,【官方发布】CH9344 USB转四串口芯片Linux驱动的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。