Re: [Ocf-linux-users] I have some question about building kernel with OCF-linux...
Brought to you by:
david-m
From: Mosquito <mos...@gm...> - 2007-11-05 10:06:57
|
David McCullough 提到: > 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 ? well...I'm not sure actually... because with the patch "ocf-linux-26-XXXXXXXX.patch.gz"... and after set crypto options and ocf options when i make menuconfig.. i thought it's should be built as module when i build the kernel... but it's look like not include it... I've build it by manual like the note and you say... "make -C /usr/src/linux-source-2.6.22/ M=`pwd` modules modules_install" I just wondering does that correct? >> 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, > David hm...I've hang on ocf,cryptodev,cryptosoft... and I'm running the script bench-ocf... it's will show me something like result... it's should be fine, right? anyway...thanks for your reply...:) Best regards~ mosquito PS.My thunderbid with Gmail IMAP is look like insane... sorry about the spam...= =" |