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: (6) </ [1] 2 3 4 5 6 ... >/

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

reply to topic new topic new poll
Topic: DSL 4 kernel headers ?, Compiling modules< Next Oldest | Next Newest >
pmisch Offline





Group: Awaiting Authorisation
Posts: 18
Joined: May 2006
Posted: Dec. 04 2007,19:43 QUOTE

I compiled wlan-driver modules for DSL 3.x successfully and posted them in the DSL-wiki (rt73.0, rt61.o, zd1211b.o).
These modules run well with DSL 3.x but not with DSL 4.x, because of the different kernel (DSL3: 2.4.26 vs. DSL4: 2.4.31) so I had to compile them again.

When trying to compile these modules for DSL 4.x I ran into following problem:

I downloaded <kernelsource.dsl>, <linux-kernel-headers.dsl> and <gcc1-with-libs.dsl>
but when I try to load the dsl-extensions as usual they dont show up.
No kernel-headers or kernel-source showup anywhere (not in /usr/src/linux or elsewhere)

What am I doing wrong?
Compiling worked so fine in DSL 3.x !

Any suggestions welcome.
Am I using the wrong extensions or wrong files?

Peter from Germany.
:(
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Dec. 04 2007,20:40 QUOTE

- DSL 4 uses a different kernel as stated, so you cannot use the old headers
- extensions should still load and should still show up, as they are just files
- even in DSL 3 you should not load linux-kernel-headers.dsl
- get the new kernel source in [download mirror]/current/kernel (I don't think there's a headers-only package yet) or kernel.org - but it is not a mydsl extension
Back to top
Profile PM 
pmisch Offline





Group: Awaiting Authorisation
Posts: 18
Joined: May 2006
Posted: Dec. 04 2007,22:36 QUOTE

Thanx for your quick reply,

You said, normal extensions should still load and should still show up in DSL4.x, as they are just files.
=> Yes, true, they do, but not these kernel-source files...

Even in DSL 3 you should not load linux-kernel-headers.dsl:
=> OK, this was my fault, please forget it.

Get the new kernel source in [download mirror]/current/kernel (I don't think there's a headers-only package yet) or kernel.org - but it is not a mydsl extension.

=> Well, thats exactly the point:
There are (at this moment) no kermel-source and kernel-header file available as DSL-EXTENSIONS for DSL 4.x. Those which are available work only with 3.x. As I said before, I tried these which are available and they dont work with 4.x.

So my wishes are:
1. Please could anyone make the correct source- and header-files
for DSL 4.x available as DSL-extensions so that compiling modules
is possible? They should be present somewhere, maybe with "roberts"?
2. And please specify the correct DSL-version in the MyDSL download repository names, e.g kernel-headers-3.x.dsl or kernel-headers-4.x.dsl.

That would be a great help for those who need kernel-modules. If I myself accomplish to compile modules for DSL4.x I will make them available via DSL wiki (wireless cards) as I did before for DSL 3.x.

Peter
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Dec. 04 2007,23:00 QUOTE

Quote
Even in DSL 3 you should not load linux-kernel-headers.dsl:
=> Strange, only if they ARE loaded, then compiling modules is possible in 3.x, whereas kernel-source normally isnt needed.
Bad practice, as those headers are for a different version, and could potentially cause some problems down the road.

It's not a show stopper for you to download the vanilla source, unless you have some issue with the size?

2. Probably not a good idea, as the kernel are different in other versions (see older releases).  It might be nice to have it listed in the .info though.  And it's not hard to look at torsmo showing your kernel version.
Back to top
Profile PM 
pmisch Offline





Group: Awaiting Authorisation
Posts: 18
Joined: May 2006
Posted: Dec. 04 2007,23:20 QUOTE

Well, it seems that I made not clear enough where the problem is.

In DLS3.x compiling modules requires only:
- gcc1-with-libs.dsl
- kernel-source.dsl
- your module source-code
and everything compiles fine. Right or not?
I did this many times :-)

In  DSL4.x something has been changed:
- gcc1-with-libs.dsl
- kernel-source.dsl
- Module source-code
and nothing works....
Even those loaded files dont show up.

It is not only a matter of wrong headerfiles
because we dont need them - at least in DSL 3.x.

Look, if we cannot compile modules correctly in DSL 4.x
then many friends wont be able to work with DSL 4.x ;-)
Thats the reason I started this topic.

Peter
Back to top
Profile PM 
29 replies since Dec. 04 2007,19:43 < Next Oldest | Next Newest >

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

Pages: (6) </ [1] 2 3 4 5 6 ... >/
reply to topic new topic new poll
Quick Reply: DSL 4 kernel headers ?

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