RE: Sun386i Porting Effort

"Zach Lowry" <[email protected]>
Newsgroups gmane.os.netbsd.ports.sun3,gmane.os.netbsd.ports
Message-ID <[email protected]>
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I could really use a pointer or two...

I'm still playing with Assembly stuff, staring at all of the .S files
I encouhter while trying to compile the Sun3 boot loader for i386. It
appears that there's 2 sections of the bootloader in M68k ASM,
ctrlsp.S, and SRT0.S. locore.s is also present, but not used in the
bootloader. What do these files do? Do I need to write a functional
equivilent for x86 ASM? Was the Sun3 bootloader written completely
from scratch?

I commented everything out of SRT0.S jst to get it to compile, in
anticipation of linker errors in the future.

Thanks!

Zach Lowry || Murfreesboro, TN || www.zachlowry.net
Linux / *BSD / Irix / Solaris / Apple / Unix Network Administration

Registered Linux User #264589
14 Different NetBSD-Supported Machines


> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Zach Lowry
> Sent: Tuesday, July 15, 2003 11:34 AM
> To: [email protected]; Netbsd-Ports
> Subject: RE: Sun386i Porting Effort
> 
> 
>  
> 
> *** PGP Signature Status: good
> *** Signer: Zach Lowry <[email protected]>
> *** Signed: 7/15/2003 11:30:23 AM
> *** Verified: 7/15/2003 11:34:49 AM
> *** BEGIN PGP VERIFIED MESSAGE ***
> 
> Well, I feel that I've made a bit of progress to share, but I'm
> feeling rather stuck at the moment. 
> 
> I've just about cleaned all references to m68k headers and the like
> out of my "sun386" port. I have an i386 compiler ready to build
> stuff. Much of the C code I expect will transition easily, but I
> have a SRT0.s file that's impeding my way. The one from NetBSD-sun3
> is
> obviously in Motorola assembler, and I'm not too hot on Intel
> assembly, though I may be able to hack through it. What I have done
> for the most part is to arrange the headers and things separate
> from m68k, so now everything points to i386 headers and the like.
> Whether it compiles or not is a different story, altogether. I'm
> kind of
> "flying blind", at the moment. Until I get a boot loader, that'll
> probably stay the same. If anyone has a copy of the SunOS net
> bootloader laying around, I would greatly appreciate it, as I could
> probably use it in the meantime to boot a NetBSD kernel and delay
> this bootloader mess for a little while. 
> 
> Thanks everyone for all the help I've recieved already!
> 
> Zach Lowry || Murfreesboro, TN || www.zachlowry.net
> Linux / *BSD / Irix / Solaris / Apple / Unix Network Administration
> 
> Registered Linux User #264589
> 14 Different NetBSD-Supported Machines
> 
> 
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]]On Behalf Of Zach Lowry
> > Sent: Thursday, June 26, 2003 4:18 PM
> > To: [email protected]; Netbsd-Ports
> > Subject: Sun386i Porting Effort
> > 
> > 
> >  
> > 
> > *** PGP Signature Status: good
> > *** Signer: Zach Lowry <[email protected]>
> > *** Signed: 6/26/2003 4:10:54 PM
> > *** Verified: 6/26/2003 4:24:01 PM
> > *** BEGIN PGP VERIFIED MESSAGE ***
> > 
> > Well, I've officially started trying to get a stage2 bootloader
> > going. 
> > 
> > For this, I've copied the Sun68k arch directory and changed a few
> > things around, but mostly just enough things to get the
> > sun68k/stand/netboot part to try and compile. The C code doesn't
> > apear to be a problem, but it bombs here:
> > 
> > /usr/src/tools/tools.NetBSD-1.6.1-i386/bin/i386--netbsdelf-gcc
> > -Os -msoft-float -fno-defer-pop   -Werror -Dsun -D_STANDALONE
> > -DSUN_BOOTPARAMS -O2 -I. -I/usr/src/sys/arch/sun386/stand/netboot
> > -I/usr/src/sys/arch/sun386/stand/netboot/../libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../.. -nostdinc
> > -isystem /usr/include  -c conf.c
> > /usr/src/tools/tools.NetBSD-1.6.1-i386/bin/i386--netbsdelf-gcc
> > -Os -msoft-float -fno-defer-pop   -Werror -Dsun -D_STANDALONE
> > -DSUN_BOOTPARAMS -O2 -I. -I/usr/src/sys/arch/sun386/stand/netboot
> > -I/usr/src/sys/arch/sun386/stand/netboot/../libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../.. -nostdinc
> > -isystem /usr/include  -c
> > /usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa/dev_n
> > et .c
> > /usr/src/tools/tools.NetBSD-1.6.1-i386/bin/i386--netbsdelf-gcc
> > -Os -msoft-float -fno-defer-pop   -Werror -Dsun -D_STANDALONE
> > -DSUN_BOOTPARAMS -O2 -I. -I/usr/src/sys/arch/sun386/stand/netboot
> > -I/usr/src/sys/arch/sun386/stand/netboot/../libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../.. -nostdinc
> > -isystem /usr/include  -c
> > /usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa/bootp
> > ar am .c
> > /usr/src/tools/tools.NetBSD-1.6.1-i386/bin/i386--netbsdelf-gcc
> > -Os -msoft-float -fno-defer-pop   -Werror -Dsun -D_STANDALONE
> > -DSUN_BOOTPARAMS -O2 -I. -I/usr/src/sys/arch/sun386/stand/netboot
> > -I/usr/src/sys/arch/sun386/stand/netboot/../libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../.. -nostdinc
> > -isystem /usr/include  -c
> > /usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa/globa
> > ls .c
> > /usr/src/tools/tools.NetBSD-1.6.1-i386/bin/i386--netbsdelf-gcc
> > -Os -msoft-float -fno-defer-pop   -Werror -Dsun -D_STANDALONE
> > -DSUN_BOOTPARAMS -O2 -I. -I/usr/src/sys/arch/sun386/stand/netboot
> > -I/usr/src/sys/arch/sun386/stand/netboot/../libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../.. -nostdinc
> > -isystem /usr/include  -c
> > /usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa/nfs.c
> > /usr/src/tools/tools.NetBSD-1.6.1-i386/bin/i386--netbsdelf-gcc
> > -Os -msoft-float -fno-defer-pop   -Werror -Dsun -D_STANDALONE
> > -DSUN_BOOTPARAMS -O2 -I. -I/usr/src/sys/arch/sun386/stand/netboot
> > -I/usr/src/sys/arch/sun386/stand/netboot/../libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../.. -nostdinc
> > -isystem /usr/include  -c
> > /usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa/rpc.c
> > /usr/src/tools/tools.NetBSD-1.6.1-i386/bin/i386--netbsdelf-gcc
> > -Os -msoft-float -fno-defer-pop   -Werror -Dsun -D_STANDALONE
> > -DSUN_BOOTPARAMS -O2 -I. -I/usr/src/sys/arch/sun386/stand/netboot
> > -I/usr/src/sys/arch/sun386/stand/netboot/../libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa
> > -I/usr/src/sys/arch/sun386/stand/netboot/../../../.. -nostdinc
> > -isystem /usr/include  -c
> > /usr/src/sys/arch/sun386/stand/netboot/../../../../lib/libsa/udp.c
> > /usr/src/tools/tools.NetBSD-1.6.1-i386/bin/i386--netbsdelf-ld -N
> > -Ttext 240000 -e start  -o netboot 
> > /usr/src/sys/arch/sun386/stand/libsa/SRT0.o
> > /usr/src/sys/arch/sun386/stand/libsa/SRT1.o conf.o dev_net.o
> > bootparam.o globals.o nfs.o rpc.o udp.o 
> > /usr/src/sys/arch/sun386/stand/libsa/libsa.a
> > /usr/src/tools/tools.NetBSD-1.6.1-i386/bin/i386--netbsdelf-ld:
> > cannot open /usr/src/sys/arch/sun386/stand/libsa/SRT0.o: No such
> > file or
> > directory
> > 
> > SRT0 appears to be Motorola ASM code. Why, oh why, does there
> > have to be ASM in here? :)
> > 
> > Like I said before, this is my first time with all this, does
> > anyone have any helpful tips or suggestions? Where should I go
> > now? None of the docs I got seems to speak much on the 386i's
> > boot
> > process, are any of the engineers that worked on this machine
> > still out there
> > anywhere?
> > 
> > Thanks!
> > 
> > Zach Lowry || Murfreesboro, TN || www.zachlowry.net
> > Linux / *BSD / Irix / Solaris / Apple / Unix Network
> > Administration  
> > 
> > Registered Linux User #264589
> > 14 Different NetBSD-Supported Machines
> > 
> > 
> > *** END PGP VERIFIED MESSAGE ***
> > 
> 
> 
> *** END PGP VERIFIED MESSAGE ***
> 

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4

iQA/AwUBPx3qbYHWQmQc5olOEQKPzACgt5SeB+ZtkFRCqFWOcWHpNO6EfvgAoI3e
A7hZnFmvTWOekyLw48Za2sCS
=qzF9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.