compiling a driver in knoppix and copy it to embedded Debian
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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).
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.
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?
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).
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 07:20 PM.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.