Re: TCSBRK not implemented in linux compat
Hi, thanks. I think for now I can work around this although it would be nice to have this implemented. Regards, Arjan On Dec 2, 2008, at 11:13 PM, Ed Schouten wrote: Hello Arjan, * Arjan van der Velde [EMAIL PROTECTED] wrote: While trying to get a linux binary running on FreeBSD I encountered the following problem during serial port I/O. Dec 1 22:22:34 soekris kernel: linux: pid 7239 (linuxbinary): ioctl fd=0, cmd=0x5409 ('T',9) is not implemented 0x5409 turns out to be TCSBRK, which is not implemented (yet?). Can anyone give me some clues where / how to start implementing this? It seems like the linux way of handling it is to call tcdrain(), but I'm not sure as to how this translates to the FreeBSD compat layer. I think you could just make it call TIOCDRAIN directly. Unfortunately that's not correct if the argument is 0, because then we have to call TIOCSBRK and TIOCCBRK with a 250 msec interval. I guess adding some kind of printf() there should be good enough for now. I can't look into it right now, because I have to get up at 6:15 tomorrow. Sorry! :-/ -- Ed Schouten [EMAIL PROTECTED] WWW: http://80386.nl/ ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
TCSBRK not implemented in linux compat
Hi, While trying to get a linux binary running on FreeBSD I encountered the following problem during serial port I/O. Dec 1 22:22:34 soekris kernel: linux: pid 7239 (linuxbinary): ioctl fd=0, cmd=0x5409 ('T',9) is not implemented 0x5409 turns out to be TCSBRK, which is not implemented (yet?). Can anyone give me some clues where / how to start implementing this? It seems like the linux way of handling it is to call tcdrain(), but I'm not sure as to how this translates to the FreeBSD compat layer. Thanks, Regards, Arjan ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: TCSBRK not implemented in linux compat
On Tue, Dec 02, 2008 at 09:56:28PM +0100, Arjan van der Velde wrote: Hi, While trying to get a linux binary running on FreeBSD I encountered the following problem during serial port I/O. Dec 1 22:22:34 soekris kernel: linux: pid 7239 (linuxbinary): ioctl fd=0, cmd=0x5409 ('T',9) is not implemented 0x5409 turns out to be TCSBRK, which is not implemented (yet?). Can anyone give me some clues where / how to start implementing this? It seems like the linux way of handling it is to call tcdrain(), but I'm not sure as to how this translates to the FreeBSD compat layer. I believe you want to talk to Ed Schouten as this is a TTY thing.. I CCed him ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: TCSBRK not implemented in linux compat
Hello Arjan, * Arjan van der Velde [EMAIL PROTECTED] wrote: While trying to get a linux binary running on FreeBSD I encountered the following problem during serial port I/O. Dec 1 22:22:34 soekris kernel: linux: pid 7239 (linuxbinary): ioctl fd=0, cmd=0x5409 ('T',9) is not implemented 0x5409 turns out to be TCSBRK, which is not implemented (yet?). Can anyone give me some clues where / how to start implementing this? It seems like the linux way of handling it is to call tcdrain(), but I'm not sure as to how this translates to the FreeBSD compat layer. I think you could just make it call TIOCDRAIN directly. Unfortunately that's not correct if the argument is 0, because then we have to call TIOCSBRK and TIOCCBRK with a 250 msec interval. I guess adding some kind of printf() there should be good enough for now. I can't look into it right now, because I have to get up at 6:15 tomorrow. Sorry! :-/ -- Ed Schouten [EMAIL PROTECTED] WWW: http://80386.nl/ pgpHUWMPMVbVk.pgp Description: PGP signature
Re: TCSBRK not implemented in linux compat
While trying to get = a linux binary running on FreeBSD I encountered the following prob= lem during serial port I/O. Dec 1 22:22:34 soekris kernel: = linux: pid 7239 (linuxbinary): ioctl fd=0, cmd=0x5409 ('T',9) = is not implemented 0x5409 turns out to be TCSBRK, which is = not implemented (yet?). Can anyone give me some clues where / how = to start implementing this? It seems like the linux way of handlin= g it is to call tcdrain(), but I'm not sure as to how this transla= tes to the FreeBSD compat layer. It should probably be translated to= the same BSD call. What it does is drain the buffer then send the seria= l BREAK signal: a low-voltage signal lasting longer than the length of o= ne normal character. The other side can detect this and generate an inte= rrupt, which then may get translated to a signal (see the stty parametersn= bsp; ignbrk, brkint). -SB ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to [EMAIL PROTECTED]