LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-29-2015, 04:29 AM   #1
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Rep: Reputation: 32
Insert modules compiled for 2.4.* into a 2.6.* kernel


Guys, I have a production PC running 8.1 with some custom applications and modules which exist in a /home/user/lib dir and are inserted during boot by a script called from rc.local all normal looking stuff.

In an attempt to preserve the life of this setup as I can not obtain the application in a form to install, I've installed 13.37 or 14 (cant recall which for the time being) and simply copied over the /home/user stuff and trying to run the startup script as before.

However the modules just error with a whole bunch of stuff that is beyond me.

From what I do know, if I had the source for these modules, then I'd be asking a slightly different question, in that I would be trying to compile them on the new kernel but I dont.

My end goal would be to be able to install a recent version of slack and simply copy over the application and modules from the original install. Currently we are using clonezilla or acronis images and very similar hardware to recover from hardware failures.

So to the QUESTION; At this stage, is there any mileage to be gained by trying if at all possible to get these modules inserted? If so, any pointers would be greatly appreciated.
 
Old 08-29-2015, 05:17 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by plisken View Post
(..) modules which exist in a /home/user/lib
This looks like a huge security risk left unmitigated and it's not FSSTND / LSB / whatever else compliant either.


Quote:
Originally Posted by plisken View Post
is there any mileage to be gained by trying if at all possible to get these modules inserted?
There should be enough kernel changes between 2.4 and 2.6 for this not to work. Your next step depends on what these undisclosed "custom applications" are about. If they are interactive and 'net-facing I'd start by chopping off heads as kernel 2.4 era networked services aren't even remotely funny anymore.
 
Old 08-29-2015, 09:08 AM   #3
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Sounds like you will need to run a slackware 8.1 vm.
 
Old 08-29-2015, 09:34 AM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
I would look at maintaining the legacy setup in a virtual machine on a modern PC running an up to date operating system.
It seems curious that an application that requires kernel modules for which you do not have the source has not been superseded since 8.1
 
Old 08-29-2015, 02:29 PM   #5
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Thanks for comments thus far.

I the box is not net facing and in fact until recently, wasnt even networked. It simply interfaces with hardware on a production machine and does some calculations, makes some decisions and so forth. It is isolated and one could argue that it does not need any updating I guess. There are two expansion cards inside, both for the connectivity to the various pieces of hardware and other PC's on the machine. One of these I believe is an 8 port serial adapter, the other, similar but not so standard looking.

I don't have access to the PC but can get any info needed I guess but from reading above and my trolling through google, I'm thinking that getting these modules to run on a newer kernel isn't going to be a walk in the part.


I had thought about a VM, indeed when I first cast eyes on this, that was my first thought but I then questioned the fact that it had come additional hardware and then the VM confusion set in.
 
Old 08-29-2015, 04:05 PM   #6
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645

Rep: Reputation: 146Reputation: 146
If you consider the VM solution, AFAIR even Slackware 9.1 had a 2.4 kernel. That's what I started with, the switch to 2.6 came later.
 
Old 08-30-2015, 03:29 AM   #7
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
The thing that concerns me and confuses is the additional hardware, the expansion cards for example, these wont be visable by the guest in a new build, rendering it useless
 
Old 08-30-2015, 07:13 AM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
What expansion cards do you need it to see? Network, sound, video and even SCSI cards are able to be 'virtualised' these days.

Echoing the thoughts above, you'll probably have the best results putting it into a VM. Without the source code, you aren't going to get a 2.4 series module into any modern kernel. Heck, it was hard enough switching between 2.4 releases... Big changes came with short notice in that particular kernel series... which is why I think an 8.1 VM with the exact same kernel version you're currently working with is your best shot at keeping it going.

More info about the application and what the kernel modules do may help people suggest alternative solutions to your problem.
 
Old 08-30-2015, 08:41 AM   #9
plisken
Member
 
Registered: Dec 2001
Location: Scotland
Distribution: Slackware 9.1-15 RH 6.2/7, RHEL 6.5 SuSE 8.2/11.1, Debian 10.5
Posts: 516

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by rkelsen View Post
What expansion cards do you need it to see? Network, sound, video and even SCSI cards are able to be 'virtualised' these days.
There are two expansion cards installed, one of which I'm pretty sure is an 8 RS232 ports and the other similar, only not so normal looking connectors.

Unless I'm way off a guest Os wont see this hardware on a host so I'm not so sure this would be a viable solution unfortunately, though I would be delighted to be corrected.

I'm going to try and find out a bit more aout these modules and also the two hardware cards and will update here.
 
Old 08-31-2015, 11:27 AM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by titopoquito View Post
If you consider the VM solution, AFAIR even Slackware 9.1 had a 2.4 kernel. That's what I started with, the switch to 2.6 came later.
Slack 12.0 was the first that was released with a 2.6 kernel, although, 11.0 had a 2.6 kernel in the extra/ section that could be installed.
 
Old 08-31-2015, 04:36 PM   #11
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Hi,

I hope your device is not big format printer...

I faced similar situation in the past (the PC failed) and I see that the folks here don't understand you.
It could be that one of the expansion cards is a custom made piece of hardware, that requires the proprietary kernel modules.
If you don't have the source code and the card is *custom*, then you have no chances of upgrading to newer kernel.
What you could try do, is to run VM with PCI pass-through, but make sure the device can be passed through properly in the first place.

In my case it happened that we had to order the PC from the manufacturer with the whole software stack.
An old crappy PC that cost a fortune (normally would cost ~100 euro).

Hope this helps.

--
Best regards,
Andrzej Telszewski
 
  


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
custom compiled kernel 2.6.21.1 and rc.modules matters Slackware 14 05-18-2007 08:56 AM
kernel compiled, but modules not found? mikedeatworld Slackware 2 11-29-2006 06:54 PM
kernel compiled. starts up. no modules, and etc. RHLinuxGUY Slackware 5 04-14-2005 07:04 PM
Insert Modules into Kernel aje Linux - General 3 10-30-2004 03:42 PM
can't insert modules into 2.6 Kernel maxi Debian 5 02-11-2004 06:07 AM

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

All times are GMT -5. The time now is 08:52 AM.

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