PDA

View Full Version : Fedora FC5 kernel files


Giorabar
30th May 2006, 08:18 AM
I have installed Fedora FC5 and now trying to install Iscsi.
during Iscsi install there is a need for kernel files, but I have noticed that the kernel files are missing.
I have both kernels:
2.6.16-1.2122_FC5smp , and 2.6.15-1.2054_FC5smp but no kernel sources were found.

the build link point to /usr/src/kernels/... but kernels dir does not exist in /usr/src

How can I get these source?

giulix
30th May 2006, 08:42 AM
yum install kernel-devel

Giorabar
30th May 2006, 11:12 AM

Thanks , I ran it successfully.

whutton
30th May 2006, 06:04 PM
so have you had any success with the installation of ISCSI on fc5?

i am about to do the same thing, the yum instructions were useful, as
i had forgot the command line option for the kernal sources

are you refering to the doc www.open-iscsi.org/docs/README ??
i am a bit confused as to what to modify and specifcally which file to make the changes in
still looking. i know the sources are in /usr/srcs/kernels/......

The instructions i have are below..

As of today, the Open-iSCSI Initiator requires a host running the
Linux operating system with kernel version 2.6.11, or later. You need to
enable "Cryptographic API" under "Cryptographic options" in the
kernel config. You also need to enable "CRC32c CRC algorithm" if
you use header or data digests. They are the kernel options,
CONFIG_CRYPTO and CONFIG_CRYPTO_CRC32C, respectively.

Compilation of the kernel Opne-iSCSI modules requires a path
to kernel sources:

make KSRC=<kernel-src>

or cross-compilation:

make KSRC=<kernel-src> KARCH="ARCH=um"


do we need to do this, or is it already done?

the crypto/Makefile has the following

obj-$(CONFIG_CRYPTO) += api.o scatterwalk.o cipher.o digest.o compress.o \
and
obj-$(CONFIG_CRYPTO_CRC32C) += crc32c.o

tks

Giorabar
31st May 2006, 06:43 AM
whutton,

I did not succeed yet. Yes I use the above doc, Yes as I undertsand you have to issue the make command.
Unfortunatley the make process still fails due to mismatch of the kernel , I havent figure it out yet.
If you do any progress please let me know.
Thanks

giulix
31st May 2006, 07:42 AM
do we need to do this, or is it already done?

CONFIG_CRYPTO is compiled in
CONFIG_CRYPTO_CRC32C is compiled as a module
See /usr/src/kernels/`uname -r`*/.config

whutton
31st May 2006, 08:04 PM
giulix

although many years with linux i somehow managed to escaped the task of kernel modifications
thank you for pointing out that the config file was hidden.
i assume the instructions are indicating that one should change the settings to 'y'

# Automatically generated make config: don't edit
# Linux kernel version: 2.6.16-1.2122_FC5
# Sun May 21 14:58:07 2006
#

CONFIG_CRYPTO=y
#CONFIG_CRYPTO_CRC32C=m <<changed to y
CONFIG_CRYPTO_CRC32C=y


so we assume that we need to do all this

i got looking at tge /lib/modules directory
should it not have a subdirectory
2.6.16-1.2122

to match the kernal source?

if so where / how does one get these files?

whutton
1st June 2006, 06:20 PM
have you taken the drivers off cd5
iscsi-initiator-utils-5.0.5.476-0.1.i386.rpm
and tried them?

giulix
3rd June 2006, 09:04 AM
I've found these (http://sunsite.utk.edu/ftp/tigerd2/fedora/development/i386/repodata/repoview/iscsi-initiator-utils-0-5.0.5.476-0.1.html) which seem to install fine on my machine, but I've got a single processor.

markkuk
3rd June 2006, 11:05 AM
I did not succeed yet. Yes I use the above doc, Yes as I undertsand you have to issue the make command.
Unfortunatley the make process still fails due to mismatch of the kernel , I havent figure it out yet.
The first message shows that you are running a SMP kernel, this means you must install kernel-smp-devel instead of kernel-devel.

Giorabar
4th June 2006, 10:23 AM
I have downloaded the iscsi-smp-devel successfully but still has the same iscsi Install

I have also downloaded the iscsi-initiator-util and this idea looks good thanks whutton. I will notify when/if it works.

Giorabar
7th June 2006, 11:32 AM
Finally succeeded to use the iscsi utils from the install disks.
I also succeded to install a newer version of Iscsi.
I finally succeeded to compile , install iscsi and create a session with iscsci devices
Currently get sporadic conn (1011) problem with uscsi which does not belong to this thread.

Thanks to every one

karlchilders
7th June 2006, 07:06 PM
Updates can be found here

http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/i386/kernel-smp-devel-2.6.16-1.2122_FC5.i686.rpm

Giorabar
11th June 2006, 08:26 AM
Just an update for my Iscsi connected to INTRANSA IP5500 box.
I got a reply from Intransa support that the dont support open-iscsi yet!!!
therefor I need to get off FC5 until they would support it.

psyklops
10th August 2006, 10:27 AM
You may want to try different versions of the iSCSI initiator. I've been able to set up and install iscsi-initiator utils (current version) on an FC5 box connecting to an iSCSI to FC router/gateway with good success.