0

I am supposed to compile /usb/serial/ch341.c file to ch341.ko. I am using rs485 module which is not working. I found on some forums that other people also facing this problem because drivers come with old device id in ch341.ko file and device comes with new device id -

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=82078234d4023c61b9d88e8be5e795423d17538e

I need to add new device id to ch341.c file which is alredy there in -

http://lxr.linux.no/linux/drivers/usb/serial/ch341.c

Now i need to compile this file to ch341.ko for raspbian wheezy to work in my raspberry pi.

Any help will be appreciated.

Inderpal Singh
  • 270
  • 2
  • 8
  • 24

2 Answers2

1

I had a CH341A (in SERIAL MODE) attached to my RasPI (raspbian wheezy with latest Upgrades). To my surprise the CH341A SERIAL was recognized correctly and I communication through "ttyUSB0" worked fine (using pySerial).

ls /dev/tty*

...look for "ttyUSB0" in the list.

0

You may want to follow the following blog posts:

  1. Building modules for Raspberry Pi
  2. More specific one on building a wireless driver

Following the steps outlined in these two posts you should be able to compile/ or cross compile your driver and get the required .ko file

Nipun Batra
  • 11,007
  • 11
  • 52
  • 77
  • I have checked drivers and device id is correct in it. Also i have tried code on ubuntu with newer ch341 driver, it returns none but drivers are ok. @Nipun – Inderpal Singh Apr 30 '13 at 09:04