From: Stewart M. <smm...@gm...> - 2012-01-04 00:50:59
|
On Tue, 2012-01-03 at 19:19 -0500, Stewart Millen wrote: When I had enabled the proposed 3.0.0-15 kernels, there were no linux-header packages for them. Today when I saw this might be a problem, I re-enabled the "proposed" repositories and checked again. Still no linux-header packages. But after I sent this email, I went and checked a second time. Lo and behold, they were now available, so I installed them. I then was successfully able to build Scramdisk from source as per Jonathan's instructions. There must have been a time delay between my re-enabling the proposed- repositories and the updates showing themselves as available. Thanks, Jonathan. Stewart > > Make the following changes to compile SD4L on Ubuntu 11.10 > > and possibly on other systems with 3.0 series kernel. > > > > 1) In the main Makefile, in the "drv:" section, change the line > > elif test "$(MINOR)" = "6"; then \ > > to > > elif test "$(MINOR)" = "6" -o "$(MAJOR)" = "3"; then \ > > > > 2) In the "driver" folder Makefile, replace the line > > ifeq ($(MINOR),6) > > with lines: > > KERNEL_GT_26 = ($(MAJOR) >= 3) || ($(MINOR) > 6) > > ifneq ($(KERNEL_GT_26),0) > > > > Then, just run "make deb" and install the resulting Debian > > package. > > > > Well, I tried just doing what you suggest, but I'm still having problems: > > stimpy@stimpy-laptop:/usr/src/linux/ScramDisk-2.1$ sudo make > [sudo] password for stimpy: > cd gui && qmake && lrelease scramdisk_de.ts > echo "#define KERNEL_BUILD \"3.0.0\"" > driver/kernel_build.h > list='crypto driver utils gui docs'; for subdir in $list; \ > do make -C $subdir all || exit 1; done > make[1]: Entering directory `/usr/src/linux/ScramDisk-2.1/crypto' > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o getiv.o getiv.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o gf2e64.o gf2e64.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o gf2e128.o gf2e128.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o crc32.o crc32.c > gcc -I. -O2 -Wall -o crc32-mktab crc32-mktab.c > ./crc32-mktab -p 0x04c11db7 -b 32 -B 8 -r -c \ > -s crc32_table -i crc32.h -t uint32 -o crc32-tab.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o crc32-tab.o crc32-tab.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o sha1.o sha1.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o sha256.o sha256.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o sha512.o sha512.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o rmd160.o rmd160.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o whirlpool.o whirlpool.c > gcc -I. -O2 -Wall -o blowfish-mktab blowfish-mktab.c > ./blowfish-mktab > blowfish-tab.h > [.............................................................] > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o blowfish.o blowfish.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o cast128.o cast128.c > gcc -I. -O2 -Wall -o des-mktab des-mktab.c > ./des-mktab > des-tab.h > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o des-base.o des-base.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o des.o des.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o des3.o des3.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o tea.o tea.c > gcc -I. -O2 -Wall -o rijndael-mktab rijndael-mktab.c > ./rijndael-mktab > rijndael-tab.h > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o rijndael.o rijndael.c > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o serpent.o serpent.c > gcc -I. -O2 -Wall -o square-mktab square-mktab.c > ./square-mktab > square-tab.h > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o square.o square.c > square.c: In function ‘square_init’: > square.c:91:10: warning: array subscript is above array bounds [-Warray-bounds] > gcc -I. -O2 -Wall -o twofish-mktab twofish-mktab.c > ./twofish-mktab > twofish-tab.h > gcc -I. -I/usr/src/linux/include -O2 -Wall -c -o twofish.o twofish.c > ar rc libsdcrypto.a getiv.o gf2e64.o gf2e128.o crc32.o crc32-tab.o sha1.o sha256.o sha512.o rmd160.o whirlpool.o blowfish.o cast128.o des-base.o des.o des3.o tea.o rijndael.o serpent.o square.o twofish.o > ranlib libsdcrypto.a > make[1]: Leaving directory `/usr/src/linux/ScramDisk-2.1/crypto' > make[1]: Entering directory `/usr/src/linux/ScramDisk-2.1/driver' > ln -s ../crypto/crc32.c crc32.c > ln -s ../crypto/crc32-tab.c crc32-tab.c > ln -s ../crypto/sha1.c sha1.c > ln -s ../crypto/sha256.c sha256.c > ln -s ../crypto/sha512.c sha512.c > ln -s ../crypto/rmd160.c rmd160.c > ln -s ../crypto/whirlpool.c whirlpool.c > ln -s ../crypto/blowfish.c blowfish.c > ln -s ../crypto/cast128.c cast128.c > ln -s ../crypto/des-base.c des-base.c > ln -s ../crypto/des.c des.c > ln -s ../crypto/des3.c des3.c > ln -s ../crypto/tea.c tea.c > ln -s ../crypto/rijndael.c rijndael.c > ln -s ../crypto/serpent.c serpent.c > ln -s ../crypto/square.c square.c > ln -s ../crypto/twofish.c twofish.c > ln -s ../crypto/gf2e64.c gf2e64.c > ln -s ../crypto/gf2e128.c gf2e128.c > ln -s ../crypto/getiv.c getiv.c > make -C /lib/modules/3.0.0-15-generic-pae/build SUBDIRS=/usr/src/linux/ScramDisk-2.1/driver modules > make: Entering an unknown directory > make: *** /lib/modules/3.0.0-15-generic-pae/build: No such file or directory. Stop. > make: Leaving an unknown directory > make[1]: *** [all] Error 2 > make[1]: Leaving directory `/usr/src/linux/ScramDisk-2.1/driver' > make: *** [all] Error 1 > > > What I *think* may be going on is this: > > I am running a proposed kernel, 3.0.0-15-generic-pae, to fix a bug with ecryptfs. > I see no link to a "build" directory under /lib/modules for this kernel (or for its mate, 3.0.0-15-generic). I do see them for the 3.0.0-14 kernels. > > Looking in Synaptic, I see that the linux-headers packages for the 3.0.0-14 kernels are available and have been installed, whereas there are only the linux-image files for the 3.0.0-15 kernels. > If so, how do I build the headers? > > Thanks for any answers, > > Stewart > |