Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there kernel support for a CH384 Dual Serial/Parallel PCI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
SumDog
n00b
n00b


Joined: 16 Dec 2005
Posts: 22
Location: Chicago, USA

PostPosted: Thu Jul 25, 2024 3:57 am    Post subject: Is there kernel support for a CH384 Dual Serial/Parallel PCI Reply with quote

I have a 1x PCI-e card that has a parallel port (and two serial headers) I want to be able to use in an x86 VM (running Win95 ... retro hardware project). I can't seem to get it recognized though. The following is the output from lspci

Code:

0f:00.0 Serial controller: Nanjing Qinheng Microelectronics Co., Ltd. CH384 Dual Port Serial and Parallel Port Adapter (rev 10)


and from lwhw

Code:

                       *-communication UNCLAIMED
                            description: Serial controller
                            product: CH384 Dual Port Serial and Parallel Port Adapter
                            vendor: Nanjing Qinheng Microelectronics Co., Ltd.
                            physical id: 0
                            bus info: pci@0000:0f:00.0
                            version: 10
                            width: 32 bits
                            clock: 33MHz
                            capabilities: pm msi pciexpress 16850 cap_list
                            configuration: latency=0
                            resources: ioport:c000(size=256) memory:f5d00000-f5d07fff ioport:c100(size=4) memory:c0400000-c0407fff


I'm on the 6.6.41-gentoo kernel. I've build and loaded the parport_pc and parport modules. They should up in lsmod when I modprobe them, but nothing on dmesg and this card still shows as UNCLAIMED in lshw. The only think I've found for this model number has been definitions in this serial drive config (and the 8250 is enabled in my kernel):

https://github.com/torvalds/linux/blob/master/drivers/tty/serial/8250/8250_pci.c

Does this device work in Linux, or is this a lost cause?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3416
Location: Canada

PostPosted: Thu Jul 25, 2024 6:57 am    Post subject: Reply with quote

Did you set to yes or module CONFIG_PARPORT_SERIAL which is in device drivers/ Parallel port support / pc style hardware ?

Last edited by dmpogo on Thu Jul 25, 2024 6:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
SumDog
n00b
n00b


Joined: 16 Dec 2005
Posts: 22
Location: Chicago, USA

PostPosted: Thu Jul 25, 2024 3:42 pm    Post subject: Reply with quote

dmpogo wrote:
Did you set to yes or module CONFIG_PARPORT_SERIAL


Ah yes, that was it. I did have it configured, but didn't run "modprobe parport_serial"

Code:

[43550.962222] parport_serial 0000:0f:00.0: enabling device (0000 -> 0003)
[43550.962513] parport0: PC-style at 0xc100, irq 37 [PCSPP,TRISTATE]
[43551.054130] 0000:0f:00.0: ttyS0 at I/O 0xc0c0 (irq = 37, base_baud = 115200) is a XR16850
[43551.054330] 0000:0f:00.0: ttyS1 at I/O 0xc0c8 (irq = 37, base_baud = 115200) is a XR16850


I also had to set CONFIG_PPDEV and run "modprobe ppdev" to get /dev/parport0 to show up.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum