最近一直在用ibm x31 當debug machine,
要用rs232, 但是usb port 都會不夠用,
想到我之前有買過 pcmcia rs232 的卡
但之前都沒法設定成功
[11940.814127] pcmcia_socket pcmcia_socket0: pccard: card ejected from slot 0
[11940.854196] serial 0000:03:00.0: PCI INT A disabled
[11942.816169] pcmcia_socket pcmcia_socket0: pccard: CardBus card inserted into slot 0
[11942.816209] pci 0000:03:00.0: [4348:3253] type 0 class 0x000700
[11942.816246] pci 0000:03:00.0: reg 10: [io 0x0000-0x0007]
[11942.816270] pci 0000:03:00.0: reg 14: [io 0x0000-0x0007]
[11942.816387] pci 0000:03:00.0: BAR 0: assigned [io 0x4c00-0x4c07]
[11942.816404] pci 0000:03:00.0: BAR 0: set to [io 0x4c00-0x4c07] (PCI address [0x4c00-0x4c07])
[11942.816417] pci 0000:03:00.0: BAR 1: assigned [io 0x4c08-0x4c0f]
[11942.816433] pci 0000:03:00.0: BAR 1: set to [io 0x4c08-0x4c0f] (PCI address [0x4c08-0x4c0f])
[11942.816455] pci 0000:03:00.0: cache line size of 32 is not supported
[11942.816696] serial 0000:03:00.0: enabling device (0000 -> 0001)
[11942.816721] serial 0000:03:00.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[11942.818834] 0000:03:00.0: ttyS4 at I/O 0x4c00 (irq = 11) is a XScale
[11942.819207] 0000:03:00.0: ttyS5 at I/O 0x4c08 (irq = 11) is a XScale
今天很認真的google了一下, 有人說要用 setserial 設定
先用 setserial 查一下
/dev/ttyS4, UART: undefined, Port: 0x4c00, IRQ: 11
/dev/ttyS5, UART: undefined, Port: 0x4c08, IRQ: 11
這2個是 undefined, 然後我查另一台用 usb2rs232的設定是
/dev/ttyUSB1, UART: 16654, Port: 0x0001, IRQ: 0
後來我就用
sudo setserial /dev/ttyS4 uart 16654
再用 minicom 開啟,
竟然成功了....
之後可以省一個usb port 囉