From owner-freebsd-hackers Sat Feb 9 7:51:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail11.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id 123AD37B447 for ; Sat, 9 Feb 2002 07:50:56 -0800 (PST) Received: (qmail 5138 invoked from network); 9 Feb 2002 15:50:54 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([65.91.153.195]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 9 Feb 2002 15:50:54 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Sat, 09 Feb 2002 10:50:52 -0500 (EST) From: John Baldwin To: Julian Elischer Subject: Re: requesting guidance for updating the RocketPort driver Cc: freebsd-hackers@freebsd.org, John Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 09-Feb-02 Julian Elischer wrote: > he infrastructure needed for a new driver can be taken from > the sample driver in /usr/share/examples/drivers/make_device_driver.sh > IN -CURRENT. (use cvdweb on the website to get it) > > that will at least get rid of the 'shims' stuff. There is already a newer driver in current. I've backported it but it didn't help me get my RocketPort working. :-P (I think my rocketport has other issues though as other people have had success with the cards on the old driver.) The backport is fairly easy. You need to bascially take the src/sys/dev/rp/ directory from current, merge the appropriate lines from sys/conf/files (and remove references to i386/isa/rp.c in files.i386 and files.pc98), change all 'struct thread *td's to 'struct proc *p', and change 'suser_td(td)' to 'suser(p)'. Finally, you need to sys/i386/isa/edit isa_compat.h and remove references to rpdriver. If someone with a workign RP card can test that that works and commit the changes, that would be nice. :) > On Sat, 9 Feb 2002, John wrote: > >> *** Please reply directly, since I am not currently subscribed to this list >> *** >> >> It seems to be a given that Comtrol is not in a position to support >> and develop the driver for the RocketPort cards. I happen to be >> the owner of a couple of these, and I'm having problems with >> newer versions of FreeBSD. >> >> For one, I get >> Feb 8 23:35:27 dexter /kernel: rp0: driver is using old-style compatibility >> shims >> Feb 8 23:35:37 dexter /kernel: WARNING: driver rp should register devices >> with ma >> ke_dev() (dev_t = "#rp/0x10007") >> >> That'd be fine and well, if the silly thing WORKED, which it doesn't, >> quite. tcsetattr returns "Invalid argument" when perfectly reasonable >> things are going on, preventing me from running PPP on these, or >> indeed making other reasonable changes to the terminal line driver >> characteristics. >> >> I just grabbed the latest version from -stable, and it diffs against >> what I'm using with no changes. The version I have with FreeBSD >> 2.1 doesn't have the problem with setting line characteristics, >> but it differs in many details from the driver in -stable. I was >> actually working with a developer at Comtrol in 1997 (they are/were >> local), and I have several versions of the driver from February >> 24, March 11, April 10, and May 22 which may be in a more advanced >> state than the driver in the distribution. At any rate, I've run >> PPP on that version of the driver for a almost 5 years, and it has >> done that quite well. >> >> I'd be very happy to work on this and get a superior driver into >> the distribution, but I could use just a bit of hand-holding, >> particularly with regard to that "old style driver shims" thing. >> >> I suspect, jumping from a 1997 FreeBSD (2.1) to a 2002 FreeBSD, there >> may be a few bumps in the road. >> >> Can someone point me in the right direction, or provide a little >> hand-holding? >> >> Thanks! >> >> *** Please reply directly, since I am not currently subscribed to this list >> *** >> -- >> >> John Lind >> john@starfire.MN.ORG >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-hackers" in the body of the message >> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message