* compile btrfs for 2.6.27-rc9
@ 2008-10-10 12:12 Xavier Nicollet
2008-10-10 19:22 ` Arun Bhanu
2008-10-10 19:25 ` Chris Mason
0 siblings, 2 replies; 3+ messages in thread
From: Xavier Nicollet @ 2008-10-10 12:12 UTC (permalink / raw)
To: linux-btrfs
Hello everyone,
I am trying to compile btrfs.ko (unstable) for 2.6.27-rc9.
I copied btrfs part of Kbuild, and fs/btrfs to my 2.6.27-rc9 tree.
Then make modules modules_install
However, I can't insmod btrfs.ko. Dmesg ouput:
[ 8973.920435] btrfs: no symbol version for struct_module
[ 8994.375255] btrfs: no symbol version for struct_module
[ 9049.174891] btrfs: no symbol version for struct_module
[ 9125.963989] btrfs: no symbol version for struct_module
[ 9178.504381] btrfs: no version for "struct_module" found: kernel
tainted.
[ 9178.513086] btrfs: Unknown symbol security_inode_mkdir
Is there a better way to do it ? I am running ubuntu.
Cheers,
--
Xavier Nicollet
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: compile btrfs for 2.6.27-rc9
2008-10-10 12:12 compile btrfs for 2.6.27-rc9 Xavier Nicollet
@ 2008-10-10 19:22 ` Arun Bhanu
2008-10-10 19:25 ` Chris Mason
1 sibling, 0 replies; 3+ messages in thread
From: Arun Bhanu @ 2008-10-10 19:22 UTC (permalink / raw)
To: linux-btrfs
* Xavier Nicollet (nicollet@jeru.org) wrote:
> Hello everyone,
>
> I am trying to compile btrfs.ko (unstable) for 2.6.27-rc9.
> I copied btrfs part of Kbuild, and fs/btrfs to my 2.6.27-rc9 tree.
>
> Then make modules modules_install
> However, I can't insmod btrfs.ko. Dmesg ouput:
>
> [ 8973.920435] btrfs: no symbol version for struct_module
> [ 8994.375255] btrfs: no symbol version for struct_module
> [ 9049.174891] btrfs: no symbol version for struct_module
> [ 9125.963989] btrfs: no symbol version for struct_module
> [ 9178.504381] btrfs: no version for "struct_module" found: kernel
> tainted.
> [ 9178.513086] btrfs: Unknown symbol security_inode_mkdir
>
> Is there a better way to do it ? I am running ubuntu.
If you use git, you will not have to manually copy the btrfs directory
and keep track of other changes(fs/Kconfig and fs/Makefile).
This is how I manage it with git. My knowledge of git is pretty bare
minimum so I am sure there are better ways of doing it. Anyway, here
goes.
You can replace all the "ab1-*" names with your own branch names.
[1] $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
[2] $ cd linux-2.6
[3] $ git remote add btrfs git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable.git
[4] $ git fetch btrfs
[5] $ git checkout -b ab1-v2.6.27 v2.6.27
[6] $ git branch ab1-btrfs btrfs/master
[7] $ git pull . ab1-btrfs
Now you have merged "btrfs" tree into the "linus" tree. Do your kernel
compile as usual and install the new kernel. If you don't need those
branches anymore delete them.
[8] $ git checkout master
[9] $ git branch -D ab1-btrfs
[10] $ git branch -D ab1-v2.6.27
When "linus" tree gets updated you can do a "git pull" to get the
changes. When "btrfs" tree has changes repeat from step 4 to build a new
kernel with btrfs.
>
> Cheers,
>
> --
> Xavier Nicollet
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
-Arun
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: compile btrfs for 2.6.27-rc9
2008-10-10 12:12 compile btrfs for 2.6.27-rc9 Xavier Nicollet
2008-10-10 19:22 ` Arun Bhanu
@ 2008-10-10 19:25 ` Chris Mason
1 sibling, 0 replies; 3+ messages in thread
From: Chris Mason @ 2008-10-10 19:25 UTC (permalink / raw)
To: nicollet; +Cc: linux-btrfs
On Fri, 2008-10-10 at 14:12 +0200, Xavier Nicollet wrote:
> Hello everyone,
>
> I am trying to compile btrfs.ko (unstable) for 2.6.27-rc9.
> I copied btrfs part of Kbuild, and fs/btrfs to my 2.6.27-rc9 tree.
>
> Then make modules modules_install
> However, I can't insmod btrfs.ko. Dmesg ouput:
>
> [ 8973.920435] btrfs: no symbol version for struct_module
> [ 8994.375255] btrfs: no symbol version for struct_module
> [ 9049.174891] btrfs: no symbol version for struct_module
> [ 9125.963989] btrfs: no symbol version for struct_module
> [ 9178.504381] btrfs: no version for "struct_module" found: kernel
> tainted.
> [ 9178.513086] btrfs: Unknown symbol security_inode_mkdir
>
> Is there a better way to do it ? I am running ubuntu.
This is fixed now, if you pull from the git tree you'll have the patch.
Thanks,
Chris
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-10 19:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-10 12:12 compile btrfs for 2.6.27-rc9 Xavier Nicollet
2008-10-10 19:22 ` Arun Bhanu
2008-10-10 19:25 ` Chris Mason
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.