Dear Mister Okajima,
Hi list,

Trying to build linus git-tree kernel 2.6.28 with aufs2-standalone causes the 
following error message:

exec debian/rules  DEBIAN_REVISION=2.6.28-byse-10.00.Custom  
APPEND_TO_VERSION=-custombuild  INITRD=YES  kernel_image kernel_headers 
====== making target debian/stamp/build/kernel [new prereqs: conf.vars]======
This is kernel package version 11.015.
test ! -f scripts/package/builddeb.kpkg-dist || mv -f 
scripts/package/builddeb.kpkg-dist scripts/package/builddeb
test ! -f scripts/package/Makefile.kpkg-dist || mv -f 
scripts/package/Makefile.kpkg-dist scripts/package/Makefile
/usr/bin/make  EXTRAVERSION=-byse  ARCH=i386 \
                 bzImage
make[1]: Entering directory `/usr/src/linux-2.6'
scripts/kconfig/conf -s arch/x86/Kconfig
make[1]: Leaving directory `/usr/src/linux-2.6'
make[1]: Entering directory `/usr/src/linux-2.6'
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
Kernel: arch/x86/boot/bzImage is ready  (#1)
make[1]: Leaving directory `/usr/src/linux-2.6'
/usr/bin/make  EXTRAVERSION=-byse  ARCH=i386 \
                 modules
make[1]: Entering directory `/usr/src/linux-2.6'
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CALL    scripts/checksyscalls.sh
  Building modules, stage 2.
  MODPOST 2081 modules
ERROR: "devcgroup_inode_permission" [fs/aufs/aufs.ko] undefined!
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6'
make: *** [debian/stamp/build/kernel] Error 2


Since I'm new to Linux (especially when it comes to kernel patching & building) 
this might be just one stupid beginners
mistake, so here's what my bash history tells me I did:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 
/usr/src/linux-2.6
ln -s /usr/src/linux-2.6 linux
cd linux
git pull
git checkout -b tmp v2.6.28
git clone http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git 
aufs2-standalone.git
cd aufs2-standalone.git/
git checkout origin/aufs2-28
cd /usr/src/linux
patch -p1 --dry-run -i aufs2-standalone.git/aufs2-standalone.patch 
patch -p1 -b -i aufs2-standalone.git/aufs2-standalone.patch # this worked like 
a charm / zero rejects!


Now ... here follows the *bumpy* part, where I didn't know for sure how to 
proceed:


#copy subdir content of aufs2-standalone.git/fs/aufs to linux kernel source 
tree fs/aufs :

cp -vr aufs2-standalone.git/fs/. /usr/src/linux/fs


copied aufs_type.h to linux kernel source include tree:

cp -v include/linux/aufs_type.h /usr/src/linux/include/linux

copied Documentation Subdir to /usr/src/linux/Documentation


What I did *not* copy (since I had now clue where to place them) are the 
following files:


-rw-r--r--  1 root root 29699 31. Mär 22:57 ChangeLog
-rw-r--r--  1 root root   627 31. Mär 22:56 config.mk
-rw-r--r--  1 root root 17990 31. Mär 22:56 COPYING
-rw-r--r--  1 root root  1481 31. Mär 22:57 ecryptfs.patch
drwxr-xr-x  8 root root  4096 31. Mär 22:57 .git
-rw-r--r--  1 root root   617 31. Mär 22:56 Makefile


anyway ... I risked building the menu config

make menuconfig

configured aufs2 like I'm told in README.aufs2:

#
# General setup
#
CONFIG_EXPERIMENTAL=y
CONFIG_CONFIGFS_FS=m
[...]
#
# Miscellaneous filesystems
#
CONFIG_AUFS_FS=m
CONFIG_AUFS_BRANCH_MAX_127=y
# CONFIG_AUFS_BRANCH_MAX_511 is not set
# CONFIG_AUFS_BRANCH_MAX_1023 is not set
# CONFIG_AUFS_BRANCH_MAX_32767 is not set
CONFIG_AUFS_HINOTIFY=y
CONFIG_AUFS_EXPORT=y
# CONFIG_AUFS_DEBUG is not set
CONFIG_AUFS_BDEV_LOOP=y
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
CONFIG_NFSD=m
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=m
CONFIG_NFS_ACL_SUPPORT=m
CONFIG_NFS_COMMON=y

saved the config

and off it went by a ...

fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image 
kernel_headers


... resulting in the error message mentioned above :-(


Can someone point me to the error - maybe the files I did not copy? Where to 
place them?

Thanks!

Mr. Tux

_________________________________________________________________
http://redirect.gimas.net/?n=M0903xSearchVideo
Videosuche - Ganz einfach mit der Live Search
------------------------------------------------------------------------------

Reply via email to