Re: [Ocf-linux-users] I have some question about building kernel with OCF-linux...
Brought to you by:
david-m
From: David M. <Dav...@se...> - 2007-11-05 03:46:32
|
Jivin Mosquito lays it down ... > HI...guys:) Hi. > I'm a newbie of kernel and ocf-linux... > and i got a work to write a driver for a product's prototype... > so i need make ocf-linux worked first... > > i have some problem with make it work... > i'm using ubuntu 7.10... > and i trying to build it with kernel 2.6.22.10... > > I'm following instruction in readme... > and somebody's note > http://www.docunext.com/resources/mediawiki/index.php/My_Notes_on_Patching_2.6.22_with_OCF > > I'm patch kernel source with ocf-linux-26-XXXXXXXX.patch.gz > it's have no error msg...but when i make menuconfig > i didn't see OCF's option... > so i follow the note... > manual add {source "crypto/ocf/Kconfig"} into <$Linux Source > dir$>/drivers/crypto/Kconfig > and then i can set options for OCF when i make menuconfig... > is this a bug need to fix?? > > then...i set OCF option as "M"...to be complier as module... > and then i build kernel with those commands... > make-kpkg clean > make-kpkg --initrd kernel_image kernel_headers > dpkg -i linux-image-2.6.22.10.Custom_i386.deb > dpkg -i linux-headers-2.6.22.10.Custom_i386.deb > > it's should be fine...and i reboot...using new kernel to boot... > but like the note...OCF didn't complier as module... So you have built the kernel ok with OCF support enabled as a module ? > the note say david remind that he skipped "install kernel" part... > but i'm not sure what does that mean... > so i subscribe this mailing list and hope some one give me some help... Try something like: make -C /usr/src/linux-source-2.6.22/ M=`pwd` modules modules_install Not sure exactly what you need here as I always build from my own source trees and not debian ones ;-) If that all works then try loading the modules: modprobe ocf lsmod | grep ocf Cheers, Davidm -- David McCullough, dav...@se..., Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.cyberguard.com |