Subject: Re: installboot problems
To: <>
From: None <mcmahill@mtl.mit.edu>
List: port-pmax
Date: 10/12/2000 22:14:39
so I did 


mkdir machine
mkdir mips
ln -s /usr/src/sys/arch/pmax/include/elf_machdep.h machine
ln -s /usr/src/sys/arch/mips/include/elf_machdep.h mips
echo "CFLAGS+= -I${.CURDIR}" >> Makefile

make

same error reading the bootxx_cd9660 program:

installboot: read tiny-1.5/usr/mdec.pmax/bootxx_cd9660: Undefined error: 0

-Dan

On Fri, 13 Oct 2000, Simon Burge wrote:

> mcmahill@mtl.mit.edu wrote:
> 
> > Can someone verify if installboot works on the 1.5 branch?  I compiled it
> > on a 1.5_ALPHA2 sparc (the pmax installboot) and when I try and run it I
> > get:
> > 
> > % /usr/src/sys/arch/pmax/stand/installboot/installboot -v -i 3899 \
> >       images/tiny.iso tiny-1.5/usr/mdec.pmax/bootxx_cd9660
> > 
> > 
> > disk: images/tiny.iso
> > bootstrap: tiny-1.5/usr/mdec.pmax/bootxx_cd9660
> > installboot: read tiny-1.5/usr/mdec.pmax/bootxx_cd9660: Undefined error: 0
> > 
> > 
> > but the file does exist:
> > 
> > % ls -l tiny-1.5/usr/mdec.pmax/bootxx_cd9660 
> > -r--r--r--  1 mcmahill  mtl  6944 Oct  3 00:33 tiny-1.5/usr/mdec.pmax/bootxx_cd9660
> > 
> > the bootxx_cd9660 came from the 1.5_ALPHA2/pmax snapshot.
> > 
> > the 1.5 branch installboot doesn't build on my 1.4.2 pmax and I won't be
> > able to upgrade that for a bit.  So I'm wondering if installboot is broken
> > or if there is some non-portable stuff I ran into when I compiled on a
> > sparc.
> 
> installboot (well, loadbootstrap.c) pulls in ELF headers and
> there may be some difference between the sparc and mips MD ELF
> headers.  Can you arrange for your cross-compiled installboot
> to use sys/arch/pmax/include/elf_machdep.h instead of the sparc
> elf_machdep.h?  Perhaps something like:
> 
> 	mkdir machine
> 	ln -s /sys/arch/pmax/include/elf_machdep.h machine
> 
> and have -I${.CURDIR} should work.
> 
> Simon.
> --
> Simon Burge                            <simonb@wasabisystems.com>
> NetBSD Sales, Support and Service:  http://www.wasabisystems.com/
>