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

Problems with module-assistant and squashfs



Hey guys,
I'm looking to take advantage of a number of mac80211 fixes provided
by newer kernels. I'm using BackTrack4 (live distro using debian), and
would like to upgrade the kernel but still leverage the live cd
functionality. I took the BackTrack 4 iso, extracted it, mounted it,
chrooted into the environment, provided through a script here
(http://www.offensive-security.com/blog/backtrack/customising-backtrack-live-cd-the-easy-way/).
The compilation process finished fine, and i installed everything
without a problem, however whenever i try to boot the resulting ISO, I
drop into busy box on the initramfs. The last error in casper.log is
aufs. After spending some time researching the problem, I came across
this post: http://lists.debian.org/debian-live/2008/04/msg00002.html .
The only thing i really didnt do was use module-assistant to generate
squashfs and aufs modules.

LZMA module compiles fine but i get an error (squashfs_fs.h: no such
file or directory) with squashfs ( m-a build -t -k
/usr/src/linux-2.6.32.7 -l 2.6.32.7 squashfs). Looking at the error it
appeared that it couldnt find the kernel headers. sure enough
/usr/include/linux/squashfs_fs.h didnt exist. BackTrack 4 doesnt have
a linux-headers-2.3.60.9 package, so i manually copied the
/usr/src/linux-source-2.3.60.9/fs/squashfs/squashfs*.h to the
directory. (keep in mind the new kernel 2.6.32.7 has been installed,
but not booted -- i've also had the same results with 2.6.31.12). that
gave me a new error:

dh_installdirs
CONFIG_SQUASHFS=m /usr/bin/make -C /usr/src/linux-2.6.32.7
M=/usr/src/modules/squashfs modules
EXTRA_CFLAGS="-DCONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3 -I/usr/include
-DUnsquashNoPreempt"
make[2]: Entering directory `/usr/src/linux-2.6.32.7'
  CC [M]  /usr/src/modules/squashfs/inode.o
In file included from /usr/src/modules/squashfs/inode.c:24:
/usr/include/linux/squashfs_fs.h:194: error: expected
specifier-qualifier-list before âu64â
/usr/include/linux/squashfs_fs.h:217: error: expected
specifier-qualifier-list before â__le32â
/usr/include/linux/squashfs_fs.h:239: error: expected
specifier-qualifier-list before â__le32â

--snip--

various errors similar to this scroll the window quite a bit. i've
tried swapping the squashfs headers from the newer kernels but the
same errors happen..

Additionally, i get another error (unrelated?) when building aufs
modules (m-a build -t -k /usr/src/linux-2.6.32.7 -l 2.6.32.7 aufs) :

make[2]: Entering directory `/usr/src/linux-2.6.32.7'
  CC [M]  /usr/src/modules/aufs/module.o
In file included from /usr/src/modules/aufs/dentry.h:35,
                 from /usr/src/modules/aufs/aufs.h:40,
                 from /usr/src/modules/aufs/module.c:26:
/usr/src/modules/aufs/vfsub.h: In function âdo_vfsub_permissionâ:
/usr/src/modules/aufs/vfsub.h:215: error: implicit declaration of
function âpermissionâ
make[3]: *** [/usr/src/modules/aufs/module.o] Error 1
make[2]: *** [_module_/usr/src/modules/aufs] Error 2

can anyone help?


Reply to: