Subject: Re: More progress
To: Ben Harris <bjh21@netbsd.org>
From: Ian Fry <Ian.Fry@sophos.com>
List: port-arm26
Date: 11/23/2001 13:12:25
On Fri, Nov 23, 2001 at 12:53:23PM +0000, Ben Harris wrote:
> On Fri, 23 Nov 2001, Ian Fry wrote:
> > (I managed to trash the RISC OS partition in doing so, however :-( )
> > Where does the NetBSD disklabel get written to when you have a disk that
> > is split between NetBSD and RISC OS? I'm sure I ran bb_netbsd after
> > creating a smaller RISC OS partition on the disk. I'm going to retry this
> > over the weekend - it's likely that I missed a step.
> I have a feeling there may be something behaving less than wonderfully
> there.  I've certainly had problems with disklabel(8) writing labels other
> than where the kernel expected to find them.

Ah, right. Well it took me several goes to get the disklabel written and the
kernel to load it in-core (I kept getting 'wd0: no disk label'). In the end,
I wrote the label to disk using '-r', then read the label into a file, and
re-wrote the label back to the disk, asking the in-core copy to be
resynchronised...

> > I still need to boot single user and enable swap in order to get the
> > machine to boot in a sensible amount of time, though.
> If you don't have it already, you should add "rc_fast_and_loose=YES" to
> /etc/rc.conf.  This stops /etc/rc spawning quite so many shells.

Ah, yes! I'd forgotten about that. I'll try it over the weekend.

> > I've found a small problem with boot26 - if booting from a floppy (which
> > I currently have to, due to the lack of RISC OS partition on the hard
> > disk), the floppy light stays on after the kernel has been loaded from
> > the floppy.
> This isn't so much a bug in boot26 as in RISC OS.  When you ask ADFS to
> shut down (and even send it Service_PreReset), it seems not to turn off the
> floppy-drive motor.  

I wondered if it was.

> Either boot26 needs to have some magic to turn off the motor or the kernel
> needs support for the FDC.  Personally, I'd go for the former, since that
> means that kernels with FDC support compiled out won't have the problem.

Would it be enough to add a short delay before starting the hardware probes?
Or maybe ask RISC OS to reset the floppy controller (can you do this from
RISC OS?) ?

> > Also, the module version of boot26 doesn't seem to get built as part of a
> > 'make build' (cross building from my i386 1.5.2 machine).
> Index: Makefile.buildboot
> [snip]

Cheers. Apart from that small problem, I got a complete cross build. I got
around it by creating a zero sized boot26,ffa, and redoing the 'make install'
step.

Ian.