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

Building NTFS modules from fedora kernel source packages



i've tried the steps using all the different kernel source packs i have
on my work machine:
linux-2.6.4-1.305
linux-2.6.5-1.315
linux-2.6.5-1.322
linux-2.6.5-1.326
linux-2.6.5-1.332
linux-2.6.5-1.349


the module builds fine on linux-2.6.4-1.305, linux-2.6.5-1.315, and
linux-2.6.5-1.322. From linux-2.6.5-1.326 onwards it throws up about a
mile of errors and I have no idea why. i presume you are getting the
same errors. 
small snippet of them:

[root oiktest linux-2.6.5-1.326]# make modules SUBDIRS=fs/ntfs
  CC [M]  fs/ntfs/aops.o
In file included from fs/ntfs/aops.c:24:
include/linux/errno.h:4:23: asm/errno.h: No such file or directory
In file included from include/linux/mm.h:4,
                 from fs/ntfs/aops.c:25:
include/linux/sched.h:4:37: asm/param.h: No such file or directory
In file included from include/linux/types.h:13,
                 from include/linux/capability.h:16,
                 from include/linux/sched.h:7,
                 from include/linux/mm.h:4,
                 from fs/ntfs/aops.c:25:
include/linux/posix_types.h:47:29: asm/posix_types.h: No such file or
directory
In file included from include/linux/capability.h:16,
                 from include/linux/sched.h:7,
                 from include/linux/mm.h:4,
                 from fs/ntfs/aops.c:25:
include/linux/types.h:14:23: asm/types.h: No such file or directory
In file included from include/linux/capability.h:16,
                 from include/linux/sched.h:7,
                 from include/linux/mm.h:4,
                 from fs/ntfs/aops.c:25:

if anyone could shed some light on this, it would be appreciated.

On Wed, 2004-05-05 at 16:10, Eric Beyer wrote:
> Stefan Thierl said:
> > I've seen reports of something similar from other people.. I'd still
> > like to try though, no point in sitting here like a lemon, may as well
> > break something while i'm at it :)
> > could you send the steps over when you have a moment?
> > thanks
> 
> Stefan,
>  Below are the steps. This normally works for me but no luck when I tried
> it last night. Good luck!
> 
> > On Wed, 2004-05-05 at 15:32, Eric Beyer wrote:
> >>
> >> I hope you have better luck than I did. I was going to send the step but
> >> decided I should probably test them in FC2 before sending them. I could
> >> not create the ntfs.ko using the newest kernel source (2.6.5-1.349?).
> >> Then
> >> again I attempted this in a virtual environment since FC2T3 doesn't
> >> currently work with my hardware (though FC1 does...). I will keep
> >> working
> >> on it.
> >>
> 1. Determine your kernel version: uname -r
> 2.6.5-1.349
> 
> 2. Download and install your kernel source (if you don't currently have it)
> 
> 3. Prepare the kernel source
> cd /usr/src/linux-2.6.5-1.349
> 
> 4. make mrproper
> 
> 5. make menuconfig or (xconfig, gconfig, oldconfig)
> 
> 6. Choose to add an alternate config file (found in <linux src>/configs)
> 
> 6a. Go to File Systems, DOS/FAT/NT Filesystems
> 
> 6b. Choose to build NTFS file system support as a module
> 
> 6c. Go back to the main menu, exit and save
> 
> 7. Edit the toplevel Makefile
> 
> Change:
> VERSION = 2
> PATCHLEVEL = 6
> SUBLEVEL = 5
> EXTRAVERSION = -1.349custom
> 
> To this:
> VERSION = 2
> PATCHLEVEL = 6
> SUBLEVEL = 5
> EXTRAVERSION = -1.349
> 
> 8. Compile the NTFS module
> make modules SUBDIRS=fs/ntfs
> 
> Note: worked in FC1 using kernel 2.6.3 but no luck in FC2 with 2.6.5-1.349
> 
> 9. Make a ntfs directory under /lib/modules/*
> mkdir /lib/modules/2.6.5-1.349/kernel/fs/ntfs
> 
> 10. Copy the ntfs.ko module to your modules directory
> cp fs/ntfs/ntfs.ko /lib/modules/2.6.5-1.349/kernel/fs/ntfs/
> 
> 11. Change the permissions on the ntfs.ko module (if needed)
> chmod 644 /lib/modules/2.6.5-1.349/kernel/fs/ntfs/ntfs.ko
> 
> 12. Update modules.dep
> /sbin/depmod -a
> 
> At this point you should be able to use the module to mount a NTFS file
> system
-- 
Stefan Thierl
Systems Administrator
Hoxton Bibliotech
239 Old Street
London EC1V 9EY
--
T: 020 7553 4476
F: 020 7251 3130
W: http://techteam.biblio-tech.net

"We accelerate the creation, growth and success of companies and improve 
 the career opportunities of individuals."



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