[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OpenAFS in UML



On Mon, Mar 01, 2004 at 08:13:28AM -0800, Matt Zimmerman wrote:
> On Mon, Mar 01, 2004 at 03:24:41PM +0100, Frank Lenaerts wrote:
> 
> > On the other hand, the README.modules file from the
> > openafs-modules-source package describes the make-kpkg approach where
> > I don't seem to be able to pass an ARCH=um parameter (so that ARCH
> > effectively becomes i386).
> 
> Presumably you will need to invoke 'make' manually in the module build
> directory so that you can pass ARCH=um, touch the stamp file that it uses to
> keep track of when the build is done (if any) and then use the kdist_image
> target.

To preserve history:

- compile user-mode-linux according to the description
  /usr/share/doc/user-mode-linux/README.Debian so that you have a
  UML-ified kernel source tree

- unpack the openafs.tar.gz

- change the modules/openafs/debian/sysname so that the i386_umlinux24
  sysname is used during the configure. Note however that, although
  modules/openafs/README talks about sys_name, this does not seem to
  be used, probably because the sys_name is only used when Transarc-
  style paths are used. 

--- begin ---
# check for UML
case $KVERS in
        2.4*um)
                echo i386_umlinux24
                exit
                ;;
esac 
---  end  ---

- build the openafs-modules package:

KSRC=~/uml/user-mode-linux-2.4.23-2um/kernel-source-2.4.23 fakeroot \
make -f debian/rules ARCH=um binary-modules

- The resulting deb file could be installed inside the UML
  instance. If the UML instance uses modules directly from the host
  (via hostfs), unpack the deb file and copy the modules in
  /usr/lib/uml/modules/...

- Load the module inside the UML. Apparently, the module taints the
  kernel (I don't know why).

> -- 
>  - mdz

-- 
lenaerts.frank@pandora.be

gpg fingerprint: A41E A399 5160 BAB9 AEF1  58F2 B92A F4AB 9FFB 3707
gpg key id: 9FFB3707

Those who do not understand Unix are condemned to reinvent it, poorly."
-- Henry Spencer

Attachment: pgpys2YKoZzDq.pgp
Description: PGP signature


Reply to: