[clug] USB to RS232 DB9 Adapter

George at Clug Clug at goproject.info
Tue Aug 6 12:11:57 UTC 2019



On Tuesday, 06-08-2019 at 17:01 Bryan Kilgallin via linux wrote:
> My ancient DOS palmtop is very unreliable. So I wanted to port its 
> applications to my PC.
> 
> Thus I bought this converter.
> 
> {Connect a variety of legacy RS-232 devices to your modern computer with 
> this simple adaptor.
> 
> 
> 
> • USB 1.1 compliant
> 
> • Speed: Over 250kbps
> 
> • Remote wake-up and power management
> 
> • Compatibility: Windows XP, Vista, 7, Mac® OS 9.0+, Linux}
> 
> https://www.jaycar.com.au/rs-232-db9m-to-usb-converter/p/XC4927
> 
> The miniature Driver CD contains a Linux directory.
> Within which are:
> 	* "log" directory; and
> 	* "ld_pl2303_v0728.rar" file.
> The "log" directory contains the files:
> 	* "lenovo_reaper.db7"; and
> 	* "reaper.log".
> 
> I opened "ld_pl2303_v0728.rar" with Archive Manager". Copying the 
> results into a folder on my PC's Desktop.
> That folder contained these directories:
> 	* "Redhat8";
> 	* "Redhat9"; and
> 	* "Redhat73".

Bryan, 

The device does not appear to support Ubuntu.

The directory in the error message below shows directory path that is found in Ubuntu. Maybe there is an equivalent path which would contain source code for building the drivers in Ubuntu.

As others have suggested, maybe you could get the device to work using standard drivers and without compiling the devices drivers, but somehow I doubt it.

Buying the device was a reasonable try, but please consider that it may only support RedHat Linux, and not Ubuntu.

I would not have the ability to get source code written for a RedHat environment to compile under a Ubuntu environment.

You could post the build and source code for  RedHat driver and maybe someone could tell you necessary changes to allow it to compile under Ubuntu, but I think that would be a large task.


> "Redhat8" contains these files:
> 	* "Makefile";
> 	* "pl2303.c"; and
> 	* "ReadMe.txt".
> "ReadMe.txt" began thus.
> {To install driver -
>          make inst (The Makefile will check the module and compile and 
> link it automatically. It will also remove
>                     the loaded USB-Serial driver)}
> 
> Next I opened a Terminal window. Changing the working directory to 
> "Redhat8". Then I entered "make inst". With this output to screen.
> {
> gcc -D__KERNEL__ -I/usr/src/linux-2.4/include 
> -I/usr/src/linux-2.4/drivers/usb/serial   -Wall -Wstrict-prototypes 
> -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common 
> -Wno-unused  -DMODULE -c pl2303.c
> pl2303.c:33:10: fatal error: linux/config.h: No such file or directory
>   #include <linux/config.h>
>            ^~~~~~~~~~~~~~~~

In the RedHat8 folder is there a "linux" folder containing a "config.h" file?

When I check my Debian for "/usr/src/linux-2.4/drivers/usb/serial" ...

# ls /usr/src/linux-2.4/drivers/usb/serial
ls: cannot access '/usr/src/linux-2.4/drivers/usb/serial': No such file or directory

# ls /usr/src/
linux-headers-4.19.0-5-amd64  linux-headers-4.19.0-5-common  linux-kbuild-4.19

# find /usr/src -name serial
/usr/src/linux-headers-4.19.0-5-amd64/include/config/snd/serial
/usr/src/linux-headers-4.19.0-5-amd64/include/config/ir/serial
/usr/src/linux-headers-4.19.0-5-amd64/include/config/serial
/usr/src/linux-headers-4.19.0-5-amd64/include/config/tablet/serial
/usr/src/linux-headers-4.19.0-5-amd64/include/config/usb/serial

I guess in Debian "/usr/src/linux-headers-4.19.0-5-amd64/include/config/usb/serial" is the equivelent to "/usr/src/linux-2.4/drivers/usb/serial" ?

Can someone with Redhat 8 check to see if there is actually a "/usr/src/linux-2.4/drivers/usb/serial" and let us know.





> compilation terminated.
> Makefile:45: recipe for target 'pl2303.o' failed
> make: *** [pl2303.o] Error 1
> }
> 
> My PC is running Ubuntu 18.04.2 LTS.
> 
> Please walk me through a fix.
> -- 
> members.iinet.net.au/~kilgallin/
> 
> -- 
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux
> 



More information about the linux mailing list