Subject: Re: Cross-compiling kernels...
To: Peter Maydell <pm215@cam.ac.uk>
From: Wes Brown <wes@prozac.eeap.cwru.edu>
List: port-hp300
Date: 05/02/1997 08:22:02
> Jason Thorpe wrote:
> >On Thu, 01 May 1997 14:15:33 +0100
> > Peter Maydell <pm215@cam.ac.uk> wrote:
> > > I have just successfully cross-compiled a NetBSD kernel on Linux
> >
> >...I would imagine that you're not using NetBSD-current, then.
> >NetBSD-current has several changes to support cross-compiling.
>
> Yep, I'm still on 1.2.
>
> >The src/usr.bin/make directory in NetBSD-current should compile
> >out-of-the-box on just about any system these days.
>
> ...but not Linux :-> I had to edit util.c to put in an appropriate
> #ifdef -- util.c tries to define versions of vsnprintf() and snprintf(),
> and these collide with the ones in the GNU libc.
>
> > > I shall probably eventually stick some details on my WWW site
> > > (http://mnementh.trin.cam.ac.uk/),
> >
> >....yah, that'd be cool.
>
> Nice to be appreciated :->
> http://mnementh.trin.cam.ac.uk/hp/cross.html is now available.
Looks like I should update my mirror.
> While I'm here, can I ask a question or two about device drivers?
> I'm still thinking about the HPIB driver, but getting a bit stuck
> due to the lack of any documentation...
>
> hpib.c gives driver entry points in a struct driver{}. match() [probe for
> device in autoconfigure stage] and attach() [actually initialise the
> device] I understand, but start(), go(), intr() and done() are less
> obvious. Could somebody give me a quick guide to what they're all for?
Two students this semester went through the HP-IB code and made some
changes so that it would work with GP-IB equipment. They gained an
understanding of some of the code. I have been bugging them to send the
diffs to Jason Thorpe so they can be incorporated. Maybe the two of them
are still subscribed to the list. (Ben Floering or Jason Garver, would you
like to say anything on this subject?)
> Peter Maydell
> { There are exactly 12 comments in nhpib.c, including version info,
> copyright details and one /* NOTREACHED */ :-> }
>
Wes
---
Wes Brown
ewb4@po.cwru.edu wes@prozac.cwru.edu
http://prozac.cwru.edu/wes/About.me.html
KB8TGR