我們有個老產(chǎn)品需要CH9344 在linux3.0.35下的驅(qū)動,論壇上最新的1.8版本驅(qū)動需要內(nèi)核版本在3.4以上。能否將老版本驅(qū)動發(fā)我一份,謝謝!郵箱:個人信息保護,已隱藏
熱門產(chǎn)品 :
USB3.0 HUB控制器:CH634
我們有個老產(chǎn)品需要CH9344 在linux3.0.35下的驅(qū)動,論壇上最新的1.8版本驅(qū)動需要內(nèi)核版本在3.4以上。能否將老版本驅(qū)動發(fā)我一份,謝謝!郵箱:個人信息保護,已隱藏
您好,郵件已發(fā)送,請注意查收。
已收到,但是編譯有問題:
??CHK?????include/linux/version.h ??CHK?????include/generated/utsrelease.h make[1]:?“include/generated/mach-types.h”已是最新。 ??CALL????scripts/checksyscalls.sh ??CHK?????include/generated/compile.h ??CC??????drivers/usb/serial/ch9344.o drivers/usb/serial/ch9344.c:?In?function?'ch9344_cmd_irq': drivers/usb/serial/ch9344.c:420:8:?error:?implicit?declaration?of?function?'tty_port_tty_hangup'?[-Werror=implicit-function-declaration] drivers/usb/serial/ch9344.c:?In?function?'ch9344_tty_set_termios': drivers/usb/serial/ch9344.c:1560:29:?warning:?initialization?from?incompatible?pointer?type?[enabled?by?default] drivers/usb/serial/ch9344.c:1580:17:?error:?incompatible?types?when?assigning?to?type?'struct?ktermios?*'?from?type?'struct?ktermios' drivers/usb/serial/ch9344.c:?In?function?'ch9344_probe': drivers/usb/serial/ch9344.c:1881:17:?warning:?unused?variable?'tty_dev'?[-Wunused-variable] drivers/usb/serial/ch9344.c:?At?top?level: drivers/usb/serial/ch9344.c:708:13:?warning:?'ch9344_tty_unregister'?defined?but?not?used?[-Wunused-function] cc1:?some?warnings?being?treated?as?errors scripts/Makefile.build:305:?recipe?for?target?'drivers/usb/serial/ch9344.o'?failed make[3]:?***?[drivers/usb/serial/ch9344.o]?Error?1 scripts/Makefile.build:441:?recipe?for?target?'drivers/usb/serial'?failed make[2]:?***?[drivers/usb/serial]?Error?2 scripts/Makefile.build:441:?recipe?for?target?'drivers/usb'?failed make[1]:?***?[drivers/usb]?Error?2 Makefile:947:?recipe?for?target?'drivers'?failed make:?***?[drivers]?Error?2
1.
error:?implicit?declaration?of?function?'tty_port_tty_hangup'
這個函數(shù)我全局搜索了,除了ch9344.c中有引用,內(nèi)核其他地方未見引用和定義。
2.
error:?incompatible?types?when?assigning?to?type?'struct?ktermios?*'?from?type?'struct?ktermios'
等號兩邊類型不匹配
您好,重新發(fā)了驅(qū)動,麻煩重新編譯試下。
你好,編譯后有一處warning:
?CC??????drivers/usb/serial/ch9344.o drivers/usb/serial/ch9344.c:?In?function?'ch9344_tty_set_termios': drivers/usb/serial/ch9344.c:1532:29:?warning:?initialization?from?incompatible?pointer?type?[enabled?by?default]
相關(guān)代碼:
static?void?ch9344_tty_set_termios(struct?tty_struct?*tty, ????????????????struct?ktermios?*termios_old) { ????????struct?ch9344?*ch9344?=?tty->driver_data; ????????struct?ktermios?*termios?=?&tty->termios;????//?tty->termios為struct?ktermios?*類型 ???????? ????????。。。 ?}
修改為:
static?void?ch9344_tty_set_termios(struct?tty_struct?*tty, ????????????????struct?ktermios?*termios_old) { ????????struct?ch9344?*ch9344?=?tty->driver_data; ????????struct?ktermios?*termios?=?tty->termios; ???????? ????????。。。 ?}
已編譯通過,目前在做測試