LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-26-2008, 08:24 PM   #1
testnbbuser
LQ Newbie
 
Registered: Nov 2007
Posts: 14

Rep: Reputation: 0
compiling a driver in knoppix and copy it to embedded Debian


Hi all,

I have a embedded Debian that runs in a CF card. Everything was well until intel decided to change the mobo I was using to run my system, and replace it with a new model where the networking card is different. Now they are using a realtek chipset. I have found the driver but I can not compile it in the embedded debian. Can I compile the driver in Knoppix and then somehow copy it to the Debian embedded system? Which would be the steps?

Thanks in advance!
 
Old 01-27-2008, 07:44 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Why can you not compile the driver in the embedded Debian?

Instructions for compiling the module are in the readme file in the driver tar ball.
 
Old 01-27-2008, 05:35 PM   #3
testnbbuser
LQ Newbie
 
Registered: Nov 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Debian runs on 64MB CF Cards

The embedded Debian runs on a 64MB CF Card, and I had to trim a lot of stuff to make it fit in that space. Among the trimmed stuff were the sources and most of the compiling utilities (plus documentation and many other stuff).
 
Old 01-27-2008, 06:21 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
At the prices of 1gig CF cards (newegg has some for $8) put in a 1gb (or larger) with the full install. Make the driver and if you need to, transfer the driver over to the smaller card.
 
Old 01-27-2008, 06:52 PM   #5
testnbbuser
LQ Newbie
 
Registered: Nov 2007
Posts: 14

Original Poster
Rep: Reputation: 0
We custom designed the OS with a very limited group of services to make it really stable, it just does Samba file serving and a mini_http server to serve some CGIs, all this is just serving in a corporate intranet, no internet. All the other services were swept and just the basics to start the system were kept. We just need to get that NIC driver compiled and copy it to the embedded system. Any option other than buy a CF card and install a full new Debian OS?
 
Old 01-27-2008, 07:02 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Look you only have to install the full version on one machine one time. You should just be able to add the .deb packages to your current OS (on the new card). The entire thing should take you less than a couple of hours. The other advantage to doing it this way is that the next time something like this pops up, you just whip out your full install cf card and boom you are good to go.

Your other option would be to set up a cross compiler on a desktop. That can be a buttload of work(days).

Last edited by lazlow; 01-27-2008 at 07:04 PM.
 
Old 01-27-2008, 08:19 PM   #7
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Just thinking out loud here, but I wonder....

What about making a small partition on the sysadmins desktop, and dd the embedded Debian to that partition. Then set up the bootloader to boot it, or chroot into it. Add in whatever you need to be able to compile the module. Then copy the module to the CF card and run /sbin/depmod -a.

Would that work?

Last edited by bigrigdriver; 01-27-2008 at 08:20 PM.
 
Old 01-28-2008, 12:02 AM   #8
testnbbuser
LQ Newbie
 
Registered: Nov 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Well, I found a solution, I did run knoppix (where the realtek network card works), and looked for the driver it was using (realtek r8169), then I searched the r8169.ko file and copied it to my embedded system where all the modules are located (keeping the same folder structure it had in Knoppix). Then I run debmod -a and included the module in the module.conf so it can be loaded at boot time. It worked

The knoppix had the same kernel version as my embedded Debian, this is a must for the module to work. Otherwise the module won't work.

This was a quick fix, and I was lucky that the module was already compiled in Knoppix. But if the driver was not included in Knoppix, I could not had made it work. So right now I am gonna try to compile another driver in Knoppix and then copy it to the embedded system.
 
Old 01-31-2008, 02:46 PM   #9
testnbbuser
LQ Newbie
 
Registered: Nov 2007
Posts: 14

Original Poster
Rep: Reputation: 0
compiling a new kernel in Knoppix?

Hi,

anybody has any idea about how to compile a kernel in Knoppix and the copy it to another system (in this case my embedded system)?

I need to compile support for the new Intel ICH9 chipsets and I think these are only included in the newer kernels?

Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Compiling Embedded (BSP) Linux for EP-8248 Board jasonj Linux - General 0 11-13-2007 07:27 PM
need help compiling slmodem-2.9.10 driver on Knoppix 3.9 Joseph Schiller Debian 3 06-13-2005 04:05 PM
Debian from Knoppix HD install driver issues jmoschetti45 Linux - Laptop and Netbook 3 10-04-2004 06:47 AM
IBM T30 with Knoppix 3.3 (Debian) need graphic driver for Radeon 7500 Shengren Linux - Hardware 2 02-21-2004 11:18 AM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration