Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 1998 20:33:30 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        Simon Shapiro <shimon@simon-shapiro.org>
Cc:        freebsd-alpha@FreeBSD.ORG, Doug Rabson <dfr@nlsystems.com>
Subject:   Re: Alpha Install
Message-ID:  <Pine.LNX.4.02.9808282032370.7208-100000@feral-gw>
In-Reply-To: <XFMail.980829002919.shimon@simon-shapiro.org>

next in thread | previous in thread | raw e-mail | index | archive | help


On Sat, 29 Aug 1998, Simon Shapiro wrote:

> 
> Matthew Jacob, On 29-Aug-98 you wrote:
> >  
> >  
> >  Oh, dear, that should work. I've not installed a FreeBSD alpha
> >  system so I can't check this. ispmbox.h isn't getting included.
> >  
> >  I don't think that __FreeBSD__ must be getting defined in this case.
> 
> I added to the Makefile (in compile/...  - ugly but config is not there
> yet), -D__FreeBSD__=3.  This carries the day a bit further.
> 
> Also, dod I mention that /usr/share/mk/bsd/kern.mk is missing from NetBSD 
> and the kernel's makefile sort of insists on it?
> 
> >  Under NetBSD this file lives in dev/ic, but under FreeBSD it's
> >  under dev/isp.
> 
> All the ifdefs are there, but the define is not.
>  
> >  What compiler are you using? If the NetBSD one, you'd better
> >  make some define changes 'coz the isp driver lives in both
> >  worlds (as well as others) and assumes the layouts as driven
> >  by correct defines!
> 
> It gets uglier than that.  In pci/if_de.c there is a cure set of:
> 
> #ifdef __some_os__
> #define YUCK "foo/bar.h"
> ...
> #endif
> 
> ...
> 
> #include YUCK
> 
> 
> This does not impress the NetBSD compiler one bit. It wuite downright
> offends the bugger.  I ugnly-hacked it to be a bit more explicit.
> 
> I would have not started this, were I not been told to compile the FreeBSD
> kernel under NetBSD :-)  As such, it may yet compile tonight.
> 
> Ifyou want access to that Alpha box, send me your vipw passwd line so I add
> you as a user to the machine, while I still have it.

Oh, thanks- I have plenty of Alphas, but I haven't made the time
to switch to FreeBSD on one of them. I was spending all of today
with one rebuild NetWorker/NetBSD/Alpha.

I'll look at it tomorrow.

> 
> 
> >  
> >  On Fri, 28 Aug 1998, Simon Shapiro wrote:
> >  
> > > 
> > > Doug Rabson, On 27-Aug-98 you wrote:
> > > >  On Thu, 27 Aug 1998, Simon Shapiro wrote:
> > > >  
> > > > > Hi Y'all,
> > > > > 
> > > > > How do I get FreeBSD to run on an Alpha Personal Workstation 433au?
> > > > > 
> > > > > I have a NetBSD snapshot installed and it seems to work well.
> > > >  
> > > >  The first thing to do is to build a FreeBSD kernel and test boot it.
> > > >  There are patches to current sources for this available at:
> > > >  
> > > >       http://www.freeebsd.org/~dfr/alpha-sys-diff-270898.gz
> > > >  
> > > >  You can build the kernel on NetBSD and just drop it in the NetBSD
> > > >  root
> > > >  directory and boot to single user mode to test it.  It should work
> > > >  fine
> > > >  on
> > > >  a 433au - I have one sitting under my desk :-).
> > > 
> > > To your instructions, I think I can safely add:
> > > 
> > > *  Create the complete alpha source tree on a FreeBSD machine by
> > > copying a
> > >    good tree and adding the above patches.
> > > 
> > > *  cd sys/alpha/conf
> > > *  cp GENERIC GENERIC-alpha  #Does funny things to your
> > >    ../../compile/GENERIC otherwise
> > > *  configure GENERIC-alpha
> > > *  cd ../../compile; tar -zcvf GENERIC-alpha.tgz GENERIC-alpha
> > > 
> > > *  Copy the directory to the NetBSD box.
> > > *  cd ...sys/compile/GENERIC-alpha
> > > *  make depend ...  Will fail with some strange (and unrepeatable)
> > > errors.
> > > *  make depend again.  This time you will get:
> > > 
> > >    ./../libkern/strncpy.c  ../../isa/sio.c ../../isa/kbdio.c
> > > ../../isa/syscons.c swapkernel.c ioconf.c param.c vnode_if.c config.c
> > > ../../pci/if_de.c:176: `#include' expects "FILENAME" or <FILENAME>
> > > mkdep -a -f .newdep -nostdinc -I- -I. -I../.. -I../../../include 
> > > -DKERNEL
> > > -include opt_global.h -U__NetBSD__  -UKERNEL
> > > ../../alpha/alpha/genassym.c
> > > 
> > >    (  See the #include' expects "FILENAME" or <FILENAME> message?  )
> > > 
> > > *  make     This will fail with
> > > 
> > > cc -c -O -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit 
> > > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes 
> > > -Wpointer-arith
> > > -Winline -Wuninitialized -ansi  -nostdinc -I- -I. -I../..
> > > -I../../../include  -DKERNEL -include opt_global.h -U__NetBSD__
> > > -mno-fp-regs -Wa,-mev56  ../../dev/isp/isp_freebsd.c
> > > In file included from ../../dev/isp/isp_freebsd.h:82,
> > >                  from ../../dev/isp/isp_freebsd.c:36:
> > > ../../dev/isp/ispvar.h:58: parse error before `ispreq_t'
> > > ../../dev/isp/ispvar.h:58: warning: function declaration isn't a
> > > prototype
> > > *** Error code 1
> > > 
> > > And this one stumbles me...  Looks ugly but OK, but will not compile...
> > > 
> > > Simon
> > > 
> > > 
> > > 
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-alpha" in the body of the message
> > > 
> >  
> 
> 
> 
> Sincerely Yours,                 Shimon@Simon-Shapiro.ORG
>                                              770.265.7340
> Simon Shapiro
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.02.9808282032370.7208-100000>