From: Wufu C. <cc...@gm...> - 2010-09-11 12:33:23
|
Hello All I successfully build the aufs2 module for colinux 0.7.8RC1 . (I'm try to run debian squeeze latest live cd(iso) with colinux078 ) (I had run successfully debian etch live cd(iso) with old colinux , also announced in this list) it works with newly build vmlinux in same machine (ubuntu 10.04 for aufs2 build) , but don't work with original vmlinux from colinux.org snapshot is it the gcc version mismatch? a)work with newly build vmlinux root@localhost:/tmp/aufs# dmesg | head -n1 Linux version 2.6.33.5-co-0.7.8 (ccwufu@desktop) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #2 PREEMPT Sat Sep 11 17:33:35 CST 2010 root@localhost:/tmp/aufs#insmod ./aufs.kko root@localhost:/tmp/aufs# dmesg | tail fuse_read_super: connection already mounted aufs 2-standalone.tree-33-20100823 b) don't work with original vmlinux from colinux.org snapshot root@localhost:~# dmesg | head -n1 Linux version 2.6.33.5-co-0.7.8 (hn@hn-dt) (gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux) ) #1 PREEMPT Wed Sep 1 22:49:51 UTC 2010 root@localhost:~# insmod aufs.ko insmod: error inserting 'aufs.ko': -1 Invalid module format root@localhost:~# dmesg | tail aufs: disagrees about version of symbol module_layout Best Regards ccwufu below are building steps ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ prepare aufs2 standalone mkdir ~/aufs2 cd ~/aufs2 git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git aufs2-standalone.git cd aufs2-standalone.git git checkout origin/aufs2-33 vi config.mk changed CONFIG_AUFS_DEBUG = y with CONFIG_AUFS_DEBUG = ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compile colinux kernel mkdir ~/colinux078 cd ~/colinux078 wget http://www.henrynestler.com/colinux/testing/stable-0.7.8/20100901-Snapshot/stable-colinux-20100901.tar.gz tar -xvf stable-colinux-20100901.tar.gz cd stable-colinux-20100901 cp ~/aufs2/aufs2-standalone.git/aufs2-base.patch ./patch/aufs2-base.diff cp ~/aufs2/aufs2-standalone.git/aufs2-standalone.patch ./patch/aufs2-standalone.diff gedit ./patch/series-2.6.33.5 (delete line : unionfs-2.5.4_for_2.6.33.diff add a line : aufs2-base.diff add another line : aufs2-standalone.diff) ./configure make kernel Tips : don't follow OLD tips in WIKI "You can stop it with CTRL-C after the message "Making Kernel 2.6.22" was showed (no needs to finish). " ... (don't break it , let it go) ........................... Configuring Kernel 2.6.33.5 Making Kernel 2.6.33.5 Making Modules 2.6.33.5 Create Modules archive Create md5sum local: 271: serial-core.diff: bad variable name ........................... cd ~/colinux078/build/linux-2.6.33.5-build ccwufu@desktop:~/colinux078/build/linux-2.6.33.5-build$ ls -al total 31084 -rw-r--r-- 1 ccwufu ccwufu 219543 2010-09-11 17:33 Module.symvers -rwxr-xr-x 1 ccwufu ccwufu 4323499 2010-09-11 17:33 vmlinux -rw-r--r-- 1 ccwufu ccwufu 3801394 2010-09-11 17:34 vmlinux-modules.tar.gz ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make aufs cd ~/aufs2/aufs2-standalone.git ccwufu@desktop:~/aufs2/aufs2-standalone.git$ make KDIR=/home/ccwufu/colinux078/build/linux-2.6.33.5-build ... Building modules, stage 2. MODPOST 1 modules CC /home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.mod.o LD [M] /home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.ko make[1]: Leaving directory `/home/ccwufu/colinux078/build/linux-2.6.33.5-build' ln -f fs/aufs/aufs.ko aufs.ko ccwufu@desktop:~/aufs2/aufs2-standalone.git$ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& result : ccwufu@desktop:~/colinux078/build/linux-2.6.33.5-build$ ls -al -rwxr-xr-x 1 ccwufu ccwufu 4323499 2010-09-11 17:33 vmlinux -rw-r--r-- 1 ccwufu ccwufu 3801394 2010-09-11 17:34 vmlinux-modules.tar.gz ccwufu@desktop:~/aufs2/aufs2-standalone.git/fs/aufs$ ls -al -rw-r--r-- 2 ccwufu ccwufu 293595 2010-09-11 17:41 aufs.ko &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& running in colinux a)aufs2 insmod failure while original vmlinux from colinux.org root@localhost:~# dmesg | head -n1 Linux version 2.6.33.5-co-0.7.8 (hn@hn-dt) (gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux) ) #1 PREEMPT Wed Sep 1 22:49:51 UTC 2010 root@localhost:~# ls Desktop My GCompris aufs.ko vmlinux-modules.tar.gz root@localhost:/tmp/aufs# modinfo ./aufs.ko filename: aufs.ko version: 2-standalone.tree-33-20100823 description: aufs -- Advanced multi layered unification filesystem author: Junjiro R. Okajima <auf...@li...> license: GPL srcversion: 76B861C166EB214ECD5C416 depends: vermagic: 2.6.33.5-co-0.7.8 preempt mod_unload modversions 586 parm: debug:debug print (int) parm: brs:use <sysfs>/fs/aufs/si_*/brN (int) root@localhost:~# insmod aufs.ko insmod: error inserting 'aufs.ko': -1 Invalid module format root@localhost:~# dmesg | tail aufs: disagrees about version of symbol module_layout a)aufs2 insmod works while newly build vmlinux from colinux.org root@localhost:/tmp/aufs# dmesg | head -n1 Linux version 2.6.33.5-co-0.7.8 (ccwufu@desktop) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #2 PREEMPT Sat Sep 11 17:33:35 CST 2010 root@localhost:/tmp/aufs# modinfo ./aufs.ko filename: aufs.ko version: 2-standalone.tree-33-20100823 description: aufs -- Advanced multi layered unification filesystem author: Junjiro R. Okajima <auf...@li...> license: GPL srcversion: 76B861C166EB214ECD5C416 depends: vermagic: 2.6.33.5-co-0.7.8 preempt mod_unload modversions 586 parm: debug:debug print (int) parm: brs:use <sysfs>/fs/aufs/si_*/brN (int) root@localhost:/tmp/aufs#insmod ./aufs.kko root@localhost:/tmp/aufs# dmesg | tail fuse_read_super: connection already mounted aufs 2-standalone.tree-33-20100823 root@localhost:/tmp/aufs# lsmod Module Size Used by aufs 210765 1 root@localhost:/tmp# mount -t aufs -o br=/tmp/rw:${HOME}=ro none /tmp/aufs root@localhost:~# mount none on /tmp/aufs type aufs (rw,br=/tmp/rw:/root=ro) &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ preblem : a1)aufs2-base.patch : 2 out of 2 hunks FAILED -- saving rejects to file fs/splice.c.rej a2)aufs : make : WARNING: "do_splice_from" [/home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.ko] undefined! (delete the line : unionfs-2.5.4_for_2.6.33.diff in ~/colinux078/stable-colinux-20100901/patch/series-2.6.33.5 b)aufs :make : /bin/sh: scripts/mod/modpost: not found don't breake "make kernel" during make colinux kernel "scripts/mod/modpost" will be created during "make kernel" c)aufs : make : WARNING: Module.symvers is missing; modules will have no dependencies and modversions. don't breake "make kernel" during make colinux kernel -rw-r--r-- 1 ccwufu ccwufu 219543 2010-09-11 17:33 Module.symvers Module.symvers will be created during "make kernel" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ log : ccwufu@desktop:~/colinux078/build/linux-2.6.33.5-source$ patch -p1 < aufs2-base.patch patching file fs/namei.c Hunk #1 succeeded at 1208 (offset 1 line).p Hunk #2 succeeded at 1218 (offset 1 line). patching file fs/splice.c Hunk #1 FAILED at 1053. Hunk #2 FAILED at 1081. 2 out of 2 hunks FAILED -- saving rejects to file fs/splice.c.rej patching file include/linux/namei.h Hunk #1 succeeded at 74 with fuzz 2 (offset 1 line). patching file include/linux/splice.h Hunk #1 succeeded at 87 with fuzz 2 (offset 5 lines). ccwufu@desktop:~/colinux078/build/linux-2.6.33.5-source$ patch -p1 <aufs2-standalone.patch patching file fs/namei.c Hunk #2 succeeded at 1218 (offset 1 line). Hunk #3 succeeded at 1241 (offset 1 line). patching file fs/namespace.c patching file fs/notify/group.c patching file fs/notify/inode_mark.c patching file fs/open.c patching file fs/splice.c Hunk #1 succeeded at 1047 with fuzz 2 (offset -30 lines). Hunk #2 succeeded at 1236 with fuzz 2 (offset 132 lines). patching file security/commoncap.c patching file security/device_cgroup.c patching file security/security.c Hunk #11 succeeded at 560 with fuzz 2 (offset -7 lines). Hunk #12 succeeded at 669 (offset 1 line). Hunk #13 succeeded at 697 (offset 1 line). ccwufu@desktop:~/colinux078/build/linux-2.6.33.5-source$ ccwufu@desktop:~/aufs2/aufs2-standalone.git$ make KDIR=/home/ccwufu/colinux078/build/linux-2.6.33.5-build WARNING: Symbol version dump /home/ccwufu/colinux078/build/linux-2.6.33.5-build/Module.symvers is missing; modules will have no dependencies and modversions. Building modules, stage 2. MODPOST 1 modules /bin/sh: scripts/mod/modpost: not found make[4]: *** [__modpost] Error 127 make[3]: *** [modules] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/ccwufu/colinux078/build/linux-2.6.33.5-build' make: *** [fs/aufs/aufs.ko] Error 2 ccwufu@desktop:~/aufs2/aufs2-standalone.git$ MODPOST 1 modules WARNING: "deny_write_access" [/home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.ko] undefined! WARNING: "do_truncate" [/home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.ko] undefined! WARNING: "do_splice_from" [/home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.ko] undefined! WARNING: "cap_file_mmap" [/home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.ko] undefined! WARNING: "lookup_hash" [/home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.ko] undefined! WARNING: "do_splice_to" [/home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.ko] undefined! WARNING: "__lookup_one_len" [/home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.ko] undefined! CC /home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.mod.o LD [M] /home/ccwufu/aufs2/aufs2-standalone.git/fs/aufs/aufs.ko make[1]: Leaving directory `/home/ccwufu/colinux078/build/linux-2.6.33.5-build' ln -f fs/aufs/aufs.ko aufs.ko ccwufu@desktop:~/aufs2/aufs2-standalone.git$ |