>
> On Thu, 29 Apr 1999, Anton Blanchard wrote:
>
> > > I hope that Ultra Linux will continue, in some form, so that we can finally
> > > get support for some of the sparcs RedHat is not currently supporting in
> > > 6.0 (i.e. sun4/330). We may be a minority among all sparc users, but we
> > > are out there.
> >
> > Don't worry, I'll be making sure rh6.0 and above runs on 4/300 and when
> > time permits the other sun4s.
>
> Cool. Out of curiosity, how hard would it be to make SILO or any of the
> other Sparc loaders work on sun4? My SunOS disk has died, so I can now
> only boot via tftp. (Handy trick for other sun4 people - drop the kernel
> image in / on a SunOS partition and then you can "b/vmlinux" instead of
> messing around with tftp.)
It should not be that hard. The below cookbook is targeted to anyone who has
a sun4 + some spare time and wants to help.
Basically, one has to write a new first stage boot loader and modify a few
files in the second stage loader to support it.
I cannot do that though, because without a machine to test it on often it would be
just a waste of time.
I'd start with first stage loader.
Make sure your first partition starts higher than 8K from start of the disk,
so that you are not limited with the 1K limit of ext2fs and can code first
versions of the loader in C (the 512B version has to be in assembly
completely).
A good start for the implementation would be this:
take the attached first stage loader.
Install SILO 0.8.6 on the machine, run /sbin/silo -f. Note the first block
of second.b (by looking at first 4bytes of /boot/second.b).
For the first tests hardcode it into first stage main.c.
Fetch NetBSD's bootloader and study it how it opens devices and the like.
sun4 PROM has no nice methods on how to read from devices.
Try to write it into that main.c (there are some comments what needs to be
done), make it and dd if=first.b of=/dev/sda bs=512 seek=1. Once you get it
working till the point it prints SIL and jumps to the second stage loader,
you can either start hacking the second stage loader as mentioned below, or
try to minimize the necessary code in main.c, so that it does only what's
absolutely necessary to do. Note that it does not have to close the device,
that's the task for the second stage loader. I'll happily write an assembly
version of that if it will not be too large.
In second stage loader, one needs to check console.c, disk.c, memory.c,
misc.c, prom.c, timer.c and tree.c and make sure there it will work with
SUN4 PROM. A good source for all this is linux kernel's sun4 support plus
NetBSD bootloader.
begin 644 first.tgz
M'XL(`*`X)S<``^U8>5/;2!;/O]:G>*DDBV5L(1N($[RD!@PDSG*533:;3:5<
M;:EE=Y`EC0X#<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:LV;@H`]W\L8&E\1E&3OF%U<\`TVW>$KEC
MVZ@$8608Y>:.P>KILEC*Q\TJ^ZQ;=GNXAZL*?E_1'_H)`P8'=PJ31(U\:15B
M+<^CN]57E,0TF96Q7=P>RR3EU/]'1_Z'\3`>QL-X&`_C83R,A_%7'/\%<(T?
%(0`H````
`
end
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | [EMAIL PROTECTED] | http://sunsite.mff.cuni.cz
Administrator of SunSITE Czech Republic, MFF, Charles University
___________________________________________________________________
UltraLinux | http://ultra.linux.cz/ | http://ultra.penguin.cz/
Linux version 2.2.5 on a sparc64 machine (3958.37 BogoMips)
___________________________________________________________________
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of the message to [EMAIL PROTECTED]