any chance to get /dev/ttyS1 (/dev/tts/1) working with freebios on the emia-m?
(i need it for the smartcardreader ...)
niki
On Mon, 17 Nov 2003, Niki Waibel wrote:
any chance to get /dev/ttyS1 (/dev/tts/1) working with freebios on the emia-m?
(i need it for the smartcardreader ...)
as soon as we get epia-m up under v2.
ron
any chance to get /dev/ttyS1 (/dev/tts/1) working with freebios on the emia-m?
(i need it for the smartcardreader ...)
as soon as we get epia-m up under v2.
seems that that v2 will take some time. i'd like to hack v1 to get it running. is src/lib/serial_subr.c: void ttys0_init(void) {} the right place to look at?
setserial seems to be fine: === ~ # setserial /dev/tts/0 -a /dev/tts/0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4 Baud_base: 115200, close_delay: 500, divisor: 0 closing_wait: 30000 Flags: spd_normal skip_test
~ # setserial /dev/tts/1 -a /dev/tts/1, Line 1, UART: unknown, Port: 0x02f8, IRQ: 3 Baud_base: 115200, close_delay: 500, divisor: 0 closing_wait: 30000 Flags: spd_normal skip_test ===
but the kernel has not recogn the serial ports: === ~ # dmesg | grep tty ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A ===
ttyS0 (tts/0) is where i run the console...
niki
Niki Waibel wrote:
~ # setserial /dev/tts/1 -a /dev/tts/1, Line 1, UART: unknown, Port: 0x02f8, IRQ: 3 Baud_base: 115200, close_delay: 500, divisor: 0 closing_wait: 30000 Flags: spd_normal skip_test ===
Are you sure setserial acutally reads the info from the device or is it just showing you what the current settings of the device should be?
Ah.. Never mind I just looked at the man page and answered my question.
from the man page "It is important to note that setserial merely tells the Linux kernel where it should expect to find the I/O port and IRQ lines of a particular serial port. It does *not* configure the hardware....."
So I'm guessing the 2nd serial device isn't enabled.
On 17-Nov-2003 Richard Smith wrote:
Niki Waibel wrote:
~ # setserial /dev/tts/1 -a /dev/tts/1, Line 1, UART: unknown, Port: 0x02f8, IRQ: 3 Baud_base: 115200, close_delay: 500, divisor: 0 closing_wait: 30000 Flags: spd_normal skip_test ===
Are you sure setserial acutally reads the info from the device or is it just showing you what the current settings of the device should be?
Ah.. Never mind I just looked at the man page and answered my question.
from the man page "It is important to note that setserial merely tells the Linux kernel where it should expect to find the I/O port and IRQ lines of a particular serial port. It does *not* configure the hardware....."
So I'm guessing the 2nd serial device isn't enabled.
so it is. it is done in src/superio/via/vt1211/setup_serial.inc but there are too many fancy values :)
niki