LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2008, 01:56 PM   #1
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 242
Blog Entries: 2

Rep: Reputation: 41
Kernel build question


With my last two cd's I had I downloaded slackware 10.2 and installed it on an old computer just to tinker around with it and see what I could do with it. For fun, you might say....

Anyway, I downloaded and built the kernel 2.6.26, and tweaked with only a very 'very' few things. After reading a bit that menuconfig would use the old configuration files, so I used that, however, I do believe I should have copied the old configuration files from the old kernel directory. Eh, I'll do that tomarrow when I have more time to reinstall it.

Anyway, I had enabled zd1211rw to load, which it did. I installed wpa_supplicant, dbus, and the zd1211 firmware.

After rebooting, everything went rather well, or at least it seemed to do so. X ran just fine, wpa_supplicant didn't give me errors about missing libraries, etc, etc...

However, when I typed in iwconfig, wlan0 wasn't there. Or at least eth0/1, or whatever name the kernel/service/whatever might have given the wireless adapter. However, there was a new name, sit0, but it's not the wireless adapter either.

I remembered something about having to use this number found through lsusb "050d:705c" but don't remember exactly what it was.

So my first question is, what do I do about getting slackware 10.2 to see the wireless adapter, or was building the 2.6.26 kernel the wrong thing to do?

Second question, when I lsmod, I've noticed it only lists 3 things, not the usual longer list. mac80211, cfg80211, and zd1211rw are the only things listed.

So, is the problem that I didn't use the correct old config and just replacing the config file with the old one from the 2.4.x directory would fix that or what?

Hopefully, I'm not coming off too newbie like. I'm not looking for too many answers, but wouldn't mind a helping hand to guide me in the right direction.

This was only a test run for now, just to see what I could do. I have already made plans for downloading the zd1211 drivers and adding them to the older kernel, so if that's the best way to go, then no one answer, I'll figure out it on my own......

Thanks...
 
Old 12-09-2008, 03:18 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
It depends on how you installed it, you need to provide more info on what exactly you did, did you install the modules too ? "make modules_install" ? I've built many kernels simply by using an old .config to start off and tweaking it to my liking. It has worked great.

A quick rundown of what I do:
Code:
make mrproper

# now copy in the old .config

make menuconfig

# tweak whatever you want

make

# at this point I make sure /lib/modules/2.6.?? does not exist and will not be overwritten by the new modules

make modules_install

# remove the old
rm -f /boot/config.old
rm -f /boot/System.map.old
rm -f /boot/vmlinuz.old

# rename the present
mv /boot/config /boot/config.old
mv /boot/System.map /boot/System.map.old
mv /boot/vmlinuz /boot/vmlinuz.old

# copy in the new
cp arch/x86/boot/bzImage /boot/vmlinuz
cp System.map /boot
cp .config /boot/config

# change permissions of vmlinuz
chmod a-rwx,u+r /boot/vmlinuz
Change bootloader options if needed and you're good to go. (remember with lilo you need to run /sbin/lilo to apply changes in /etc/lilo.conf)
 
Old 12-09-2008, 03:41 PM   #3
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 242
Blog Entries: 2

Original Poster
Rep: Reputation: 41
I had followed this one here http://www.linuxquestions.org/questi...-2.6.0-127095/, and I did use make modules_install.

Woops...I just reread through the thread again, I missed make mrproper. That's the only thing I didn't do.

There was only one error when I typed in make install, it just said that /dev/sda doesn't exist, which it shouldn't anyway. Then reran it and there were no errors.

/lib/modules/2.6.xx...Didn't think about that one, but there shouldn't have been a dir, for Slack 10.2 came with 2.4.xx.

I'll copy over the old config for 2.4.xx and add the zydas driver. I just wrote down your setup as well as what was written on the thread I showed and I'll give that a try tomarrow and see what happens. This time not forgetting mrproper...

Thanks
 
Old 12-09-2008, 03:51 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
"make mrproper" is not absolutely necessary, but it does make sure everything is ready for configuring and compiling, usually it just fixes any broken symlinks.
 
Old 12-09-2008, 06:01 PM   #5
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 242
Blog Entries: 2

Original Poster
Rep: Reputation: 41
Turns out I didn't have to do what I thought I had to do, so I was able to recompile it...I guess the config file wasn't the correct one, or I missed something else.

Either way, it loaded more modules this time. I modprobed zd1211rw, but when I ran lsmod it doesn't show mac80211 using it. Well, actually lsmod doesn't show anything is being used.

Anyway, anyway...I'll just do a 'lot' more reading and perhaps I'll be able to buy some of the books I've found in the book reviews here and give a try later.

Thanks for your help...
 
Old 12-10-2008, 04:32 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
If you want a very good, free, online book try:
http://www.kroah.com/lkn/
 
  


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
Kernel build, install and boot question on ram disk image wdli Programming 58 10-22-2008 12:42 PM
kernel build question narz Slackware 2 05-17-2008 09:31 PM
Question: Kernel build i386 vs i686 louisb Linux - Enterprise 5 02-11-2007 10:41 PM
kernel module question for kernel build davimint Slackware 2 09-22-2006 08:03 PM
The linux kernel ...to patch it or to build it that is the question Rodcl Linux - Software 3 07-13-2002 09:19 PM


All times are GMT -5. The time now is 10:31 PM.

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