LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 12-19-2005, 07:52 AM   #1
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Rep: Reputation: 15
Using kernel from fedora on mandriva


Hi,

We have a scsi controller that is supported on red-hat / fedora kernel's only. But the demand is to run mandriva on the machine (HP XW 9300 Workstation).

So...
I was wondering if it's possible to compile a fedora kernel (maybe even a monolithic one) and boot the mandrake environment (urpmi and co.) using that kernel.

Is it possible ? And if so then any tips to the subject ?

Thank you very much,
Maxim.


Keywords : kernel distribution different other hybrid mandrake mandriva fedora

--
Cheers,
Maxim Vexler (hq4ever).

Do u GNU ?

Last edited by hq4ever; 12-19-2005 at 07:55 AM.
 
Old 12-19-2005, 11:43 AM   #2
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Since they are both rpm based, you should be able to install the kernel rpm just fine. There may be some dependancy issues, but for the most part, they can be ignored, as long as the mandriva default kernel is close to the same core revision (i.e. 2.6.x). udev settings will probably be non-functional.

Is the driver shipped only with the Redhat Kernel? Or is there a way to rebuild the driver? It would be far easier to just recompile the driver under mandrake if possible. May not get the "support" from the vender, but then most venders don't support Linux much anyways. What driver is it?
 
Old 12-19-2005, 11:55 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
It will install, but remember that the Mandriva and Fedora kernels are heavily patched for their distros needs, so the Fedora kernel you install may not work right. Why not just recompile the Mandriva kernel and add support for your hardware if this is an option.
 
Old 12-19-2005, 02:58 PM   #4
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: 15
Thank you for helping

I did tried to recompile the kernel with the driver as a loadable module, but as it seem I don't have enough experience with the linux kernel patching & recompilation process.

I even posted to our local LUG group http://article.gmane.org/gmane.linux...n.israel/24330 but oddly (and not typicaly to linux-il) haven't received not a single replay.


Any help with this would be very much appreciated.


Cheers,
Maxim.
 
Old 12-20-2005, 11:37 AM   #5
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: 15
Anyone ?

Sorry for the pumping the post, it's just that the issue is rather important (at least to me).

Thank you.
 
Old 12-20-2005, 12:05 PM   #6
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Ok, here's what you can do (I just tested this on my Mandriva system, and it built correctly). Install as root the source rpm file with "rpm -i srpms-1/mptlinux-3.02.52-1.src.rpm" (part of the zip package in your LUG post). This will install the source and rpm build files in /usr/src/RPM. Change directories to /usr/src/RPM. Edit SPECS/mptlinux.spec, change the line beginning with Copyright: to License: (the Copyright: tag is no longer supported by RPM). rebuild with "rpmbuild -ba SPECS/mptlinux.spec". It should build an RPM file for your currently running architecture. The new rpm will have the drivers ready to be installed with rpm -i (or rpm -Uvh). This is as far as I got, as I don't have the hardware to test further. Let me know if this works for you.
 
Old 12-20-2005, 02:39 PM   #7
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: 15
This helps.

I have followed your suggestions,

But now when I try to rpm -i the RPM file I get

Code:
[snip]
Saving initrd-2.6.12-12mdk.img in /boot directory.
No module 1 found for kernel 2.6.12-12mdk, aborting.
post Install Done.
What does that mean ?
 
Old 12-20-2005, 02:54 PM   #8
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Do you have both 2.6.12-12mdk and 2.6.12-12mdksmp kernels? It's possible that it is only building for the currently running kernel and not for both kernels that are installed. When I built it, it only built the smp kernel drivers. If this is the case, then you'd have to reboot to the UP kernel, and rebuild for it (if you want support for it as well).

I just installed the up kernel and rebuilt the driver rpm. It appears that it only builds for the kernel currently running. I'd have to reboot to do a final test on the UP kernel.

Last edited by GrueMaster; 12-20-2005 at 03:01 PM.
 
Old 12-20-2005, 03:14 PM   #9
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: 15
I'm building it on a test i586 machine, because the target machine is at a remote site that I currently can't ssh to.

On my test machine I have on 2.6.12-12mdk installed (and if you need a laugh it's a P-III 550 mhz) but it still fails.

Sad but true

Thanks for trying to help me, I appreciate it.
 
Old 12-20-2005, 04:39 PM   #10
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
From what I can tell so far, it appears to be a bug either in the rpm spec file, or the make file for the drivers. I have both kernels installed currently, and if I take the "make" lines out of the script, the script cycles through both kernels ok.

I have to go to an appointment, but I'll try to work on this more either tonight or tomorrow morning. Thought I'd let you know where things stood.

In the mean time, what command line are you typing to rebuild the rpm files?
 
Old 12-21-2005, 02:29 AM   #11
GrueMaster
Member
 
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
Interesting, what insomnia will do for a guy. I have your solution.

There are 4 lines in the SPEC file that need to be commented for the build to make all the required modules:
# build section ########
Line 32 (if [ -f /lib/modules/${kernel}/.....) Add # to the beginning of this line to comment it out.
Line 34 (fi ) Add # to comment it out.

# install section #####
Lines 42 & 57 are identical to lines 32 & 34. They also need to be commented out. Save the SPEC file, then run "rpmbuild -ba SPECS/mptlinux.spec" to rebuild the rpm package. It will now have modules for UP & SMP kernels.

And since I have 2 Pentium Pro systems with 64M memory as test systems, I'm not laughing.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usefulness of mandriva-patches in kernel, or just new 2.614. kernel from source? Emmanuel_uk Mandriva 6 12-20-2005 08:56 PM
Migration from Mandriva to Fedora : a few questions to ask Dear Gentlemen. TigerLinux Fedora 10 10-02-2005 11:48 PM
XP -> Fedora -> Mandriva TigerLinux Fedora 1 09-29-2005 09:06 PM
Installing Fedora over Mandriva - problems with boot Ariod Fedora - Installation 2 09-26-2005 10:59 AM
Can I dual boot XP and Fedora Core 4 as easy as with Mandriva? futurist Fedora - Installation 16 09-22-2005 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 10:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration