Date: Tue, 21 Jul 1998 09:00:59 -0700 (PDT) From: John Wilkes <john@wilkes.com> To: freebsd-questions@FreeBSD.ORG Subject: Re: linux emulation and dongle on serial port Message-ID: <Pine.BSF.3.96.980721085108.297A-100000@on-the-road.wilkes.com> In-Reply-To: <Pine.BSF.3.95.980703181027.6401F-100000@current1.whistle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 329 rbuxid CALL ioctl(0x3,0x5401 ,0xefbfdb18) 329 rbuxid RET ioctl 0 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 329 rbuxid CALL recvmsg(0xa) 329 rbuxid RET recvmsg 10/0xa 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. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980721085108.297A-100000>