Subject: RE: Sun386i Porting Effort
To: Netbsd-Ports <netbsd-ports@netbsd.org>
From: Zach Lowry <zach@zachlowry.net>
List: netbsd-ports
Date: 07/15/2003 11:33:54
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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: netbsd-ports-owner@netbsd.org
> [mailto:netbsd-ports-owner@netbsd.org]On Behalf Of Zach Lowry
> Sent: Thursday, June 26, 2003 4:18 PM
> To: port-sun3@netbsd.org; Netbsd-Ports
> Subject: Sun386i Porting Effort
> 
> 
>  
> 
> *** PGP Signature Status: good
> *** Signer: Zach Lowry <zach@zachlowry.net>
> *** 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_net
> .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/bootpar
> 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/globals
> .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 ***
> 

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

iQA/AwUBPxQsH4HWQmQc5olOEQIOuACgiHwe408AwzdteggmCFXU90f1ypYAn2Vp
/egmshOahOUK2rZ1V2QDEVBJ
=5SsS
-----END PGP SIGNATURE-----