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

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

reply to topic new topic new poll
Topic: Compiling custom kernel for rt2500, rt2500 driver and SMP are not compatible< Next Oldest | Next Newest >
quirky Offline





Group: Members
Posts: 7
Joined: Jan. 2006
Posted: Jan. 11 2006,13:24 QUOTE

Hi,

DSL works great on my aging 64Mb 450Mhz laptop - I was really surprised 1. that it ran at all 2. how well it did run! far better than the HD installed Redmondware. The one problem is with the wireless network card: I have a ralink chipset card and my wireless network uses WPA. Now, this card has GPL'd drivers (rt2500) that work fine once set up, but they are completely incompatible with DSL's SMP-enabled kernel. insmod'ing the rt2500 module is ok, but when you ifconfig an IP address to the network interface you get a system hang. It is a known problem, even on single CPU/non hyperthreaded machines, and the only solution is to use a kernel without SMP. Because of this, I'd really like to compile a DSL kernel configured without SMP (the target machine is single CPU anyway).

I've followed the various knoppix remastering howtos and have been able to reproduce a regular remastered DSL iso with minor changes. I've downloaded the DSL 2.4.31 kernel source and dsl.config. So now I've got my chroot'd "master" environment with the kernel sources in /usr/src as expected. The questions I have are:

1. How do I install gcc-2.95, make, etc into this chroot environment? Do I have to physically download more stuff from the net or can I use .dsl files that come included in the dsl-2.0.iso? I'm a bit confused about .dsl vs .deb in DSL actually (my other machine has Ubuntu installed, so I understand deb files ok, .dsl is a bit of a mystery)

2. Do I have to compile from within DSL or can I do it from a different distribution? My guess is that it doesn't matter, as long as I compile with DSL's gcc-2.95.

3. What would be the steps to compile the kernel? Obviously there'd be Apply Knoppix patch, Use "make menuconfig" to remove SMP support, but what would come next? "make all"? What files would be generated and where would they go?

I've compiled my own custom 2.6.14 Ubuntu kernel using the Debian make-kpkg utility, so I know the basics. But make-kpkg hides the details of where kernel modules need to go and so on - it just produces a new linux_image.deb file that you can install with dpkg. e.g. do I have to regenerate any other files manually?

Perhaps all this would be easier with a HD install, but I've been told that I can't install Linux on the target laptop, despite the stability problems Win98 gives. My plan is to use DSL, use 'ssh -X' to connect to my Ubuntu PC and use the laptop as a kind of thin client, and a remastered live CD would do the trick. Plus it sounds cool "Oh, yeah, I use DSL with a custom kernel..." :)

thanks in advance!
Back to top
Profile PM 
quirky Offline





Group: Members
Posts: 7
Joined: Jan. 2006
Posted: Jan. 12 2006,07:50 QUOTE

Well, I guess no one knows! However here are some answers:

A .dsl file is simply a gzipped tar file (tar.gz) renamed to .dsl. So installation is as easy as "tar xzvf whatever.dsl". Mystery solved :)

gcc-2.95 is no longer supplied in DSL (as far as I can tell), instead we get tcc by default and gcc 3.3 can be downloaded from the mydsl mirrors. This probably means that the DSL documentation needs updating.

In addition to the compiler change, I needed libncurses and -dev, and gnu-utils. Also from mydsl.

The 2.4.31 kernel seems to compile fine with gcc 3.3, providing you undo the part of the Knoppix patch that hardcodes gcc-2.95 into the Makefile. Perhaps it will cause problems later, I'll see, but I hope not since I am recompiling all the modules with 3.3 too. I followed the distro-independent kernel compile HOWTO without problems, this answered my other questions. The isolinux "stuff" is regenerated when one remasters the iso, it seems. Hopefully that means the new kernel image and modules will go where they are supposed to. ???

Oh, and I had no trouble compiling from within the chroot environment in Ubuntu - it let me connect to the net too without problems. This is very handy, as I could wget the required software.

I'll update with more info when I've finished + tested it. If it works.
Back to top
Profile PM 
tempestuous Offline





Group: Members
Posts: 259
Joined: Aug. 2004
Posted: Jan. 12 2006,09:16 QUOTE

Quite a few wifi problems have been reported under DSL2+.  This is the first time someone has suggested a specific kernel configuration which might be at fault.
I will mention this issue in the "DSL Ideas and Suggestions" forum.
Back to top
Profile PM 
quirky Offline





Group: Members
Posts: 7
Joined: Jan. 2006
Posted: Jan. 13 2006,18:56 QUOTE

I first noticed it with Ubuntu's 686-smp kernel and reported this bug:
http://bugzilla.ubuntu.com/show_bug.cgi?id=21485

Also, Suse don't provide the rt2500.ko for their SMP kernel.

When it happened with DSL, I assumed it was 'detecting' the hyper threading processesor, until I tried it on my old laptop which is a PII (I think). The real "fix" would be for some hero to fix the rt2500 drivers, but that seems unlikely to happen.

I'm now sorting out the final few hitches in my remastering. I'm getting kernel panics atm  :(
Back to top
Profile PM 
quirky
Unregistered






Posted: Jan. 13 2006,21:30 QUOTE

It worked!

I'm posting this from my remastered non-SMP DSL :)
Back to top
14 replies since Jan. 11 2006,13:24 < Next Oldest | Next Newest >

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

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: Compiling custom kernel for rt2500

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