Subject: Re: Bootloader 'Todo' List
To: Reinoud Zandijk <imago@kabel065011.kabel.utwente.nl>
From: Ben Harris <bjh21@netbsd.org>
List: port-arm32
Date: 11/19/2000 15:24:11
On Sat, 18 Nov 2000, Reinoud Zandijk wrote:

> > Incidentally, I've just written a useful little tool to convert text files
> > into tokenized BBC BASIC, and hidden it at
> > <URL:ftp://ftp.netbsd.org/pub/NetBSD/misc/quick-hacks/bastok/>.  This
> > makes it possible to generate a usable form of BBBB without needing to
> > copy it to and from a RISC OS machine.  I'll put it into the main NetBSD
> > source tree once I've worked out where it should go.
> 
> Nice but its not nessisary (ahum) ... you can just load your file in
> BASIC with "BASIC -load file" ... that loads the text file just fine and
> then a simple `SAVE' is enough.

I suspect this trick may need a BASIC that supports TEXTLOAD, which I
believe some old versions don't.  I, at least, want to be able to boot on
everything from Arthur 1.20 upwards.

> Hehe.... yeah ... I've patched it in now so that ELF can be used too for
> booting NetBSD/arm32 easily without much changes... It still boots my A4
> perfectly :)) allthough the program has significantly grown from about 14
> kb (?) to a 23 kb :) ... It now autodetects arm26/arm32 and calls the
> relevant procedures...

Be careful.  If it gets too close to 32k it won't be able to fit in one
page on arm26, which will break things.

-- 
Ben Harris                                                   <bjh21@netbsd.org>
Portmaster, NetBSD/arm26               <URL:http://www.netbsd.org/Ports/arm26/>