Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: compiling drivers, hints, tips, and tricks< Next Oldest | Next Newest >
Amn Offline





Group: Members
Posts: 3
Joined: Nov. 2005
Posted: May 16 2006,12:44 QUOTE

Thanks for the excelent post Clacker!

I've been beaten by a few of the gotchas you pointed out in the past, but I think it's time I tried again!


--------------
Nothing is foolproof to a sufficiently talented fool!
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: May 16 2006,13:05 QUOTE

Quote
cd ../
patch -p1 -d linux-2.4.26 < knoppix-kernel.patch
cd linux-2.4.26
make dep


'make dep' won't be enough to prepare sources for building some modules.

To correctly prepare sources for module building you need to begin to compile the kernel ie run 'make'.  But you can cntrl-C very early in the process, just after the 'split' line in fact.  All kernel source files needed for module building with then be correctly prepared.

I made a .uci out of my prepared sources with user.tar.gz placing a symlink from /opt/prepared_sources to /usr/src/linux-2.4.26 or something like that.  As long as another .dsl has been installed first (so that mkwriteable has been run), the symlink will get placed on installing the uci.  So I can mount the sources without risking maxing out my ramdisk.

I haven't posted it to the repo because:

1. I'm not convinced the resulting sources exactly match the running knoppix 2.4.26 kernel ie I'm not sure I trust the knoppix config file.  If they don't, some modules built could be dangerously borked if they don't exactly match the running kernel.

2. A very few progs during compile seem to want the kernel sources to be writeable - I think that might be a hangover from the very early days of linux when, unless I'm mistaken, for example, some prog headers went into the kernel source directory.
Back to top
Profile PM 
phonky Offline





Group: Members
Posts: 9
Joined: July 2007
Posted: Mar. 27 2009,12:56 QUOTE

Quote
sudo apt-get install libncurses5-dev patch


This does not work for me on dsl 3.4/2.4.26.

I get errors about unmet dependencies with libncurses5, libc6...
Back to top
Profile PM 
phonky Offline





Group: Members
Posts: 9
Joined: July 2007
Posted: Mar. 31 2009,18:52 QUOTE

I do a last try.

How do I compile drivers in DSL?
I'm trying to compile a network driver,
there's a post on this:
rtl8187b

I haven't been able to find out how to compile drivers in DSL. This thread is dated and I can't follow it, as stated in the previous post, something is broken.

I'd be very grateful if someone could help. Can't think I'm the only one who's trying to compile a driver in DSL....
Back to top
Profile PM 
bartgrefte Offline





Group: Members
Posts: 33
Joined: Jan. 2007
Posted: April 26 2009,19:05 QUOTE

Also having trouble compiling a driver, for two onboard Intel 82574L Gb NIC's...

http://damnsmalllinux.org/cgi-bin....y105871
Back to top
Profile PM 
9 replies since May 03 2006,16:50 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: compiling drivers

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code