$sudo apt-get install subversion
$sudo apt-get kernel-package libncurses5-dev fakeroot wget bzip2
2) Get Linux source
$cd ~
$sudo svn co https://scst.svn.sourceforge.net/svnroot/scst/trunk scst
$cd /usr/src
$sudo apt-get source linux-image-$(uname -r)
$cd /usr/src/linux-3.0.0
$sudo cp /home/hui/scst/iscsi-scst/kernel/patches/put_page_callback-3.0.patch .
$sudo cp /home/hui/scst/scst/kernel/scst_exec_req_fifo-3.0.patch .
$sudo patch -p1 <put_page_callback-3.0.patch
$sudo patch -p1 <scst_exec_req_fifo-3.0.patch
$sudo cp /boot/config-3.0.0-12-generic .config
4) Build kernel
$sudo make-kpkg clean
$sudo fakeroot make-kpkg --initrd --append-to-version=-scstcustom kernel_image kernel_headers
5) Install kernel
$sudo dpkg -i linux-headers-3.0.22-scstcustom_3.0.22-scstcustom-10.00.Custom_i386.deb
$sudo dpkg -i linux-image-3.0.22-scstcustom_3.0.22-scstcustom-10.00.Custom_i386.deb
6) Reboot the host and switch to scstcustom then build scst
$cd ~/scst
$sudo make scst scst_install iscsi iscsi_install scstadm scstadm_install
That's all. You will be able to find scst modules in /lib/modules/`uname -r`/
No comments:
Post a Comment