From owner-freebsd-emulation Tue Jul 21 12:44:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24659 for freebsd-emulation-outgoing; Tue, 21 Jul 1998 12:44:17 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA24579; Tue, 21 Jul 1998 12:44:02 -0700 (PDT) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id MAA16790; Tue, 21 Jul 1998 12:38:39 -0700 (PDT) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpda16786; Tue Jul 21 19:38:30 1998 Date: Tue, 21 Jul 1998 12:38:27 -0700 (PDT) From: Julian Elischer To: John Wilkes cc: freebsd-questions@FreeBSD.ORG, sef@FreeBSD.ORG, emulation@FreeBSD.ORG Subject: Re: linux emulation and dongle on serial port In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is what I was going to ask you to do NEXT :-) what does it do under LINUX? under FreeBSD you may try TRUSS as well as ktrace.. (hmmm is truss available in 2.2.x?) On Tue, 21 Jul 1998, John Wilkes wrote: > On Fri, 3 Jul 1998, Julian Elischer wrote: > > > > On Fri, 3 Jul 1998, John Wilkes wrote: > > > > > I want to use some Linux software which requires a Rainbow dongle on the > > > serial port. It works fine running native Linux, but with FreeBSD (2.2.5 > > > and 2.2.6) Linux emulation, the hardware dongle is not recognized. Is > > > there any restriction on using the serial ports with linux emulation? > > > > You might try see what it's doing under linux with trace > > I finally did this and here is what it says: > > 329 rbuxid CALL open(0x8001ba0,0x2,0x1b6) > 329 rbuxid NAMI "/compat/linux/dev/finsim" > 329 rbuxid NAMI "/dev/finsim" > 329 rbuxid RET open 3 > 329 rbuxid CALL obs_vread(0xe,0xefbfdc58,0xefbfdc48) > 329 rbuxid RET obs_vread 0 > 329 rbuxid CALL ioctl(0x3,0x5405 ,0x8003bc0) > 329 rbuxid RET ioctl 0 > 329 rbuxid CALL ioctl(0x3,0x5407 ,0x8003bd8) > 329 rbuxid RET ioctl 0 > 329 rbuxid CALL old.sigvec(0x3,0xefbfdb54) > 329 rbuxid RET old.sigvec 0 > 329 rbuxid CALL dup2(0xefbfdb10) > 329 rbuxid RET dup2 671899648/0x280c6000 I wonder what fd they are duplicating? 3? > 329 rbuxid CALL ioctl(0x3,0x5401 ,0xefbfdb18) I am guessing this is setting the baud rate or something.. > 329 rbuxid RET ioctl 0 why would you lseek on a device? is /dev/finsim the serial port? > 329 rbuxid CALL old.lseek(0x3,0,0) > 329 rbuxid RET old.lseek 0 > 329 rbuxid CALL write(0x3,0x280c6000,0x50) > 329 rbuxid GIO fd 3 wrote 80 bytes > "FINTRONIC#0S81NCAAAAABBBBBCCCCCDDDDDEEEEEFFFFFGGGGGHHHHHIIIIIJJJJJKKKK\ > KLLLLLMMMM" > 329 rbuxid RET write 80/0x50 > 329 rbuxid CALL old.lseek(0x3,0,0) > 329 rbuxid RET old.lseek 0 > 329 rbuxid CALL obs_vread(0xe,0xefbfdc34,0xefbfdc24) > 329 rbuxid RET obs_vread 0 read returned 0 bytes. I wonder if 0xe is the duped fd for 0x3 ? > 329 rbuxid CALL recvmsg(0xa) > 329 rbuxid RET recvmsg 10/0xa Ok, so I wonder where it's getting a message from? > 329 rbuxid CALL read(0x3,0x280c6000,0x10000) > 329 rbuxid PSIG SIGALRM caught handler=0x8000c40 mask=0x0 code=0x0 > 329 rbuxid RET read -1 errno -4 Unknown error: -4 > 329 rbuxid CALL ioctl(0x3,0x5407 ,0x8003bd8) > 329 rbuxid RET ioctl 0 > > The call to read() apparently fails, but errno -4 is undefined, as far as I > know. Unfortunately, I do not have source to the program. possibly someone with more linux knowledge may be more helpful.. try sean fagan... > > I'm running as root, so permissions shouldn't be an issue. I can tip to > the port, and if a modem is attached, talk to it just fine. > > If anyone can offer clues as to what's going in in the above trace, I would > be very grateful! > > John Wilkes > > inet: john@wilkes.com | "Try not. > addr: 321 High School Rd NE #367 | Do. > city: Bainbridge Island, Wash. | Or do not. > code: 98110 | There is no try." > icbm: 47 37 42 N / 122 29 36 W | - Yoda > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Jul 21 12:55:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA26431 for freebsd-emulation-outgoing; Tue, 21 Jul 1998 12:55:04 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from kithrup.com (kithrup.com [207.126.97.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA26392; Tue, 21 Jul 1998 12:54:51 -0700 (PDT) (envelope-from sef@kithrup.com) Received: (from sef@localhost) by kithrup.com (8.8.8/8.8.8) id MAA14690; Tue, 21 Jul 1998 12:54:33 -0700 (PDT) (envelope-from sef) Date: Tue, 21 Jul 1998 12:54:33 -0700 (PDT) From: Sean Eric Fagan Message-Id: <199807211954.MAA14690@kithrup.com> To: john@wilkes.com, julian@whistle.com Subject: Re: linux emulation and dongle on serial port Cc: emulation@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG In-Reply-To: Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Reply to me, or to the list; please don't do both. >what does it do under LINUX? >under FreeBSD you may try TRUSS as well as ktrace.. >(hmmm is truss available in 2.2.x?) truss is not directly available in -stable, but it ports *REAL* easily. (Not surprising, given that I developed it in -stable, and only then ported it to -current ;).) THe linux kdump may be available as a port or package in -stable; I forget. The dump below does not look like a linux kdump. I have no idea what people are talking about, though, since I disappeared from most of hte mailing lists for a while. ;) Sean. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message From owner-freebsd-emulation Tue Jul 21 13:39:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA06283 for freebsd-emulation-outgoing; Tue, 21 Jul 1998 13:39:29 -0700 (PDT) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA06253; Tue, 21 Jul 1998 13:39:20 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id NAA01804; Tue, 21 Jul 1998 13:37:52 -0700 (PDT) Message-Id: <199807212037.NAA01804@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Julian Elischer cc: John Wilkes , freebsd-questions@FreeBSD.ORG, sef@FreeBSD.ORG, emulation@FreeBSD.ORG Subject: Re: linux emulation and dongle on serial port In-reply-to: Your message of "Tue, 21 Jul 1998 12:38:27 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 21 Jul 1998 13:37:52 -0700 From: Mike Smith Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > > I want to use some Linux software which requires a Rainbow dongle on the > > > > serial port. It works fine running native Linux, but with FreeBSD (2.2.5 > > > > and 2.2.6) Linux emulation, the hardware dongle is not recognized. Is > > > > there any restriction on using the serial ports with linux emulation? > > > > > > You might try see what it's doing under linux with trace > > > > I finally did this and here is what it says: It looks like you used kdump. If this is the case, please repeat the dump with linux_kdump out of the ports collection, as Linux uses different syscall numbers. This is an FAQ, and I'm surprised that nobody mentioned it before. > > 329 rbuxid CALL recvmsg(0xa) > > 329 rbuxid RET recvmsg 10/0xa > > Ok, so I wonder where it's getting a message from? This is a giveaway; you have definitely used the wrong kdump. (recvmsg takes three arguments, not one. recvmsg is syscall #27 under FreeBSD, but #27 under Linux is alarm(), which takes one arg.) -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message