[OpenAFS-devel] Porting of AFS into UML

Derek Atkins warlord@MIT.EDU
07 Jul 2003 13:48:03 -0400


1.2.9 does not support UML

-derek

"Raymond Wong" <raymond@lifewood.com> writes:

> Hi Kris,
> 
> I am using 1.2.9a for compilation.  Not yet keep up with the newest cvs.
> But have you encountered problems in compiling 1.2.9a?   Currently, I am
> using uml version 2.4.19um.  I did the following steps,
> 
> 1. Download linux-2.4.19.tar.gz.
> 2. Download dot-config of uml 2.4.19um
> 3. Replace dot-config in linux source tree and make dep
> 4. Go back to openafs-kernel-source and make
> 
> The result is MODLOAD-2.4.19-MP.  When I insmod-ed either one of them as
> 
> 
> bash-2.05# insmod libafs-2.4.19.o  -f
> Warning: kernel-module version mismatch
>         libafs-2.4.19.o was compiled for kernel version 2.4.19
>         while this kernel is version 2.4.19-5um
> libafs-2.4.19.o: unresolved symbol remove_wait_queue_Rsmp_941ba7c5
> libafs-2.4.19.o: unresolved symbol try_inc_mod_count_Rsmp_e6105b23
> libafs-2.4.19.o: unresolved symbol generic_read_dir_Rsmp_91c1152b
> libafs-2.4.19.o: unresolved symbol filemap_fdatasync_Rsmp_a4eb0987
> libafs-2.4.19.o: unresolved symbol generic_file_read_Rsmp_4b008759
> libafs-2.4.19.o: unresolved symbol path_walk_Rsmp_82fa2492
> libafs-2.4.19.o: unresolved symbol dget_locked_Rsmp_d183b29b
> libafs-2.4.19.o: unresolved symbol page_readlink_Rsmp_21238a47
> libafs-2.4.19.o: unresolved symbol iget4_Rsmp_bca964ec...
> 
> It seems the makefile wrongly inteprets my uml as a SMP version.  Then I
> changed config.cache to force to say "no" at the smp option but it seems
> doesn't work.  So, is this problem addressed in 1.2.10?
> 
> Or actually, I might miss to include um patch.  I'll try to recompile
> tomorrow and let's see what happens.
> 
> Thanks, Kris.
> 
> Ray
> 
> -----Original Message-----
> From: openafs-devel-admin@openafs.org
> [mailto:openafs-devel-admin@openafs.org] On Behalf Of Kris Van Hees
> Sent: Tuesday, July 08, 2003 12:26 AM
> To: OpenAFS-devel@openafs.org
> Subject: Re: [OpenAFS-devel] Porting of AFS into UML
> 
> 
> On Sat, Jul 05, 2003 at 08:15:25PM +0800, Raymond Wong wrote:
> > Has anyone done any coding related to the porting of AFS into UML 
> > (User-mode Linux)?  I found it is quite painful.  Currently, I found 
> > no manuals in relation to setting up whole AFS by using AFS source 
> > code only.  I have successfully compiled the AFS source in UML but I 
> > have no idea how to configure AFS manually.  Could anyone give me some
> 
> > hints?
> 
> Raymond,
> 
> 	I added code for supporting the User Mode Linux as  a  supported
> architecture.  The code should be in both 1.2.10 and in the CVS HEAD.  I
> do notice that I need to update the patch for CVS HEAD because it uses a
> mechanism to detect UML which no longer works with the newer UML release
> code.  Note that you do need to have the Linux kernel source  code  with
> the UML patch applied available in /usr/src/linux.
> 
> 	The configuration should be identical to the one used for  Linux
> based OpenAFS.
> 
> 	Kris
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
> 
> 
> 
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available