[1877] in NetBSD-Development
AFS on PowerPC
daemon@ATHENA.MIT.EDU (Charles M. Hannum)
Thu Jun 3 09:46:04 1999
Date: Thu, 3 Jun 1999 09:48:50 -0400 (EDT)
From: "Charles M. Hannum" <root@ihack.net>
To: netbsd-dev@MIT.EDU
FYI, my PowerPC AFS 3.3 build does work. I discovered a couple of
additional issues beyond the struct lwp_context lossage:
1) The module must be built with -msoft-float. Otherwise egcs will
output FP instructions for block moves, and it will fall over.
2) Since ELF LKMs don't work yet *sigh*, you have to link the module
directly into your kernel. This is easy to do (see below), but if
the resulting kernel is too large, you'll get bitten by an obscure
bug that I don't have time to investigate right now. So, you need
to use a config file with a bit less cruft than GENERIC.
The build trees are all in zsr:/u2/afs/build. Please DO NOT modify
anything there. These are all for -current (1.4C).
To compile the module into my kernel, I add the following to
sys/conf/files:
deffs AFS
object /usr/vice/etc/dkload/libafs.o afs
and the following to the kernel config file:
file-system AFS
Assuming you've copied the object file into the right location, this
will link it in and arrange to initialize it properly at boot time.
Some time after Usenix, I will update my sources to 3.3a and get the
PowerPC and Alpha ports working there.