Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I patch lufs support into gentoo-dev-sources-2.6.7?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
abcdefg
Apprentice
Apprentice


Joined: 29 Feb 2004
Posts: 216
Location: The Netherlands

PostPosted: Sat Jul 24, 2004 10:47 am    Post subject: How can I patch lufs support into gentoo-dev-sources-2.6.7? Reply with quote

Hi,

I want to be able to mount fps, so I installed lufs. After selecting the newest lufs (because the old one doesn't support 2.6 kernels) and making my kernel source writeable it is installed correct.
But when I run lufsmount it says:
Code:
lufsmount ftpfs://uses:passwprd@ftpadress /mnt/site -o ftpactive
mount failed: No such device
you don't have kernel lufs support (check whether the lufs module is available/loaded)


On irc someone told me I need to patch my kernel because the gentoo-dev-sources don't have this patch or that I need to use the love-sources. I have searched the forum and there are pretty much posts about lufs but nobody needs to patch his kernel. How can I patch this and what files do I need?

Thanks,
David

ps: I have asked this quastion bevore on this forum, but there where no replys on it, after finding out that I need a patch this is a kernel quastion and not a network so I decided to delete the old topic and create this new one.
Back to top
View user's profile Send private message
zatalian
Apprentice
Apprentice


Joined: 27 Aug 2002
Posts: 179
Location: Gent, Belgium

PostPosted: Sat Jul 24, 2004 1:31 pm    Post subject: Reply with quote

the lufs patch has problems with the supermount patch, so it's not possible to patch the gentoo-dev-sources just like that.

What you can do is modify the gentoo-dev-sources and replace supermount with lufs. That is what i'm doing. The easyest way is as following :


fetch the latest gentoo-dev-sources.
go to /usr/portage/distfiles where you will find a file called genpatches-2.6-7.xx-extras.tar.bz2
unzip the file, remove the supermount patch, add the lufs patch, zip the file
recalculate the digests for the ebuild
emerge again
Back to top
View user's profile Send private message
abcdefg
Apprentice
Apprentice


Joined: 29 Feb 2004
Posts: 216
Location: The Netherlands

PostPosted: Sat Jul 24, 2004 2:43 pm    Post subject: Reply with quote

Thank you,

There are some things I dont't understand, I have deleted the supermount patch, but what file do I have to add, can I emerge the lufs patch or do I have to download this? where?

Quote:
recalculate the digests for the ebuild

And what do you mean with this, what is a digest?
Back to top
View user's profile Send private message
zatalian
Apprentice
Apprentice


Joined: 27 Aug 2002
Posts: 179
Location: Gent, Belgium

PostPosted: Sun Jul 25, 2004 8:23 am    Post subject: Reply with quote

you have to download the latest version of lufs at sourceforge :
http://sourceforge.net/project/showfiles.php?group_id=57332

replace the supermount patch with this patch in the genpathes-...-extra.tar.bz2 file

go to the directory where your ebuild is and type
Code:

ebuild gentoo-dev-sources-2.6.7-rxx.ebuild digest


the digest thing calculates the md5sum of all the files that are needed in the ebuild, so that downloads can be checked before usage. Because we altered the file, there's a new md5sum and we need to recalculate it. If you leave this step, you would get a warning about the file being corrupt or something.
Back to top
View user's profile Send private message
abcdefg
Apprentice
Apprentice


Joined: 29 Feb 2004
Posts: 216
Location: The Netherlands

PostPosted: Sun Jul 25, 2004 10:24 am    Post subject: Reply with quote

Hi,

I have done the steps what you describet but I get an error message when I emerge it.

Here is what I have done:
Code:
emerge sync
emerge -f gentoo-dev-sources
cd /usr/portage/distfiles
bunzip2 genpatches-2.6-7.43-extras.tar.bz2
tar -xf genpatches-2.6-7.43-extras.tar
cd genpatches-2.6-7.43
rm 4715_supermount-2.0.4-2.6.7.patch
wget http://puzzle.dl.sourceforge.net/sourceforge/lufs/lufs-0.9.7-2.4.22.patch.gz
gunzip lufs-0.9.7-2.4.22.patch.gz
cd ..
tar -cf genpatches-2.6-7.43-extras.tar genpatches-2.6-7.43
rm -R genpatches-2.6-7.43
bzip2 genpatches-2.6-7.43-extras.tar
cd /usr/portage/sys-kernel/gentoo-dev-sources/
ebuild gentoo-dev-sources-2.6.7-r11.ebuild digest
emerge gentoo-dev-sources


And this is the error message:
Code:
emerge gentoo-dev-sources                       
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-kernel/gentoo-dev-sources-2.6.7-r11 to /
>>> md5 src_uri ;-) linux-2.6.7.tar.bz2
>>> md5 src_uri ;-) genpatches-2.6-7.43-base.tar.bz2
>>> md5 src_uri ;-) genpatches-2.6-7.43-extras.tar.bz2
>>> Preparing to unpack...
>>> Unpacking source...
>>> Unpacking linux-2.6.7.tar.bz2 to /var/tmp/portage/gentoo-dev-sources-2.6.7-r11/work
 * genpatches-2.6-7.43-base.tar.bz2 unpacked

bzip2: (stdin): trailing garbage after EOF ignored
 * genpatches-2.6-7.43-extras.tar.bz2 unpacked
 * Excluding Patch #1399_sparc-U1-hme-lockup.patch
 * From: /patches/
 * Excluding Patch #1399_sparc-U1-hme-lockup.patch
 * From: /patches/genpatches-2.6-7.43
 * Applying 1100_ip_tables.patch...                                                      [ ok ]
 * Applying 1105_CAN-2004-0497.patch...                                                  [ ok ]
 * Applying 1110_proc.patch...                                                           [ ok ]
 * Applying 1310_k8_cardbus_io.patch...                                                  [ ok ]
 * Applying 1315_alpha-sysctl-uac.patch...                                               [ ok ]
 * Applying 1320_x86_64-2.6.7-2.patch...                                                 [ ok ]
 * Applying 1321_x86_64-noiommu.patch...                                                 [ ok ]
 * Applying 1325_iptables-headers.patch...                                               [ ok ]
 * Applying 1340_sparc-obp64-naming.patch...                                             [ ok ]
 * Applying 1342_sparc-stopa.patch...                                                    [ ok ]
 * Applying 1362_sparc-kconfig-rework.patch...                                           [ ok ]
 * Applying 1363_sparc-kconfig-driver-rework.patch...                                    [ ok ]
 * Applying 1380_sparc-sun4c-iospace.patch...                                            [ ok ]
 * Applying 1900_ulogd_timestamp.patch...                                                [ ok ]
 * Applying 2115_fa311-mac-address-fix.patch...                                          [ ok ]
 * Applying 2700_ppc-pegasos-2.6.6.patch...                                              [ ok ]
 * Applying 4505_bootsplash-3.1.4-sp-0.1-2.6.7.patch...                                  [ ok ]
 * Applying 4705_squashfs-2.0.patch...                                                   [ ok ]
 * Applying 4905_speakup-20040618.patch...                                               [ ok ]
 * Applying lufs-0.9.7-2.4.22.patch...                                                   [ !! ]

 * Please attach /var/tmp/portage/gentoo-dev-sources-2.6.7-r11/temp/lufs-0.9.7-2.4.22.err to an
y bug you may post.

!!! ERROR: sys-kernel/gentoo-dev-sources-2.6.7-r11 failed.
!!! Function unipatch, Line 513, Exitcode 0
!!! Unable to dry-run patch.


It looks like I did add a wrong file, is http://puzzle.dl.sourceforge.net/sourceforge/lufs/lufs-0.9.7-2.4.22.patch.gz the right file?

Thank you,
David
Back to top
View user's profile Send private message
zatalian
Apprentice
Apprentice


Joined: 27 Aug 2002
Posts: 179
Location: Gent, Belgium

PostPosted: Sun Jul 25, 2004 10:29 am    Post subject: Reply with quote

you need the patch for the 2.6 kernel, not the 2.4

the correct one is
http://prdownloads.sourceforge.net/lufs/lufs-0.9.7-2.6.0-test9.patch.gz?download
Back to top
View user's profile Send private message
abcdefg
Apprentice
Apprentice


Joined: 29 Feb 2004
Posts: 216
Location: The Netherlands

PostPosted: Sun Jul 25, 2004 6:59 pm    Post subject: Reply with quote

Thanks a lot, this works,
David
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum