From owner-freebsd-questions Tue Jul 21 09:01:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA16084 for freebsd-questions-outgoing; Tue, 21 Jul 1998 09:01:54 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from logic-probe.com (ip198.santa-clara6.ca.pub-ip.psi.net [38.28.19.198]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA16067 for ; Tue, 21 Jul 1998 09:01:44 -0700 (PDT) (envelope-from john@wilkes.com) Received: from localhost (john@localhost) by logic-probe.com (8.8.7/8.8.7) with SMTP id JAA00313 for ; Tue, 21 Jul 1998 09:01:00 -0700 (PDT) (envelope-from john@wilkes.com) X-Authentication-Warning: on-the-road.wilkes.com: john owned process doing -bs Date: Tue, 21 Jul 1998 09:00:59 -0700 (PDT) From: John Wilkes Reply-To: john@wilkes.com To: freebsd-questions@FreeBSD.ORG Subject: Re: linux emulation and dongle on serial port In-Reply-To: Message-ID: Organization: Wilkes Enterprises - Bainbridge Island MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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