LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-06-2004, 05:43 PM   #1
Corallis
Member
 
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Rep: Reputation: 15
Laptop Kernel Problems


Ive got slackware 10.0 with both the 2.4.26 kernel, and the 2.6.7 kernel. On the 2.4.26 kernel, my internet works, but not my sound. Under the 2.6.7 kernel, its the opposite, but none of my modules show up. Ive tried recompiling the kernel and reinstalling slackware about 10 times so far, and nothing has worked. I got my laptop over a week ago, and I have yet to be able to get an operating system working. (Other than what it came with, windows). Since nobody seems to know what my problem is (I have followed several guides and asked several people, and nothing I ever read helps). I am thinking of maybe downgrading and installing slackware 9.1, then upgrading the kernel to 2.6.7, then using swaret to upgrade all of the packages. Does anyone think this might help at all, or am I wasting my time? Im thinking about just giving up on linux all together on this laptop.
 
Old 07-06-2004, 05:56 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
For a laptop, I would install the acpi package if it not already installed, same for hotplug package and make sure their start scripts are executables (rc.acpid, rc.hotplug). If after a reboot net card still does not work, I would try add or uncomment '/sbin/modprobe tulip' in /etc/rc.modules (and make sure this file is executable too). If it still does not work I would look my laptop documentation and figure out what the net card is (manufacturer, model, type...) and modprobe the module accordingly.
 
Old 07-06-2004, 07:07 PM   #3
Corallis
Member
 
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Original Poster
Rep: Reputation: 15
Ive already done that. The problem isnt that Im just missing my network cards module, the problem is that Im missing all of my modules. I havethe correct drivers, but they dont load.
 
Old 07-06-2004, 08:50 PM   #4
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Well, you can try compiling the kernel with everything you need build-in.

I prefered build-in kernel. But since I have been messing around with my hardware, and planning to put new one inside and remove some. I put some of the things in modules, just so that I do not have to recompile everytime I change the hardware.

Since it is a laptop, and you hardly if every change anything inside it, (accept PCMCIA cards). So, why not build in the kernel all you need; but also compile kernel module support.
 
Old 07-07-2004, 04:01 PM   #5
Corallis
Member
 
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Original Poster
Rep: Reputation: 15
That sounds like a great idea. All of the tutorials I have found though only explain how to use modules? Could anyone give me a link to a tutorial that tells you how to build them in to the kernel? Or at least something I can google. Ive tried googling for a bit on this subject but Im not quite sure what you are supposed to call this, so my results havent been very satisfying.
 
Old 07-07-2004, 04:16 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
To change your config, say to enable all features that you previously enabled as modules to built-in, you can do :
Automatically :
Code:
cd /usr/src/linux
cp .config config-kernel.old
cat .config | perl -pe 's/m$/y/' > config-kernel.new
cp config-kernel.new .config
Or Manually :
Code:
cd /usr/src/linux
make menuconfig
And change feature enabled with m(modules) to * (built-in)

[edit]
Try to enable tulip driver if your net card is in the mother board

Last edited by keefaz; 07-07-2004 at 04:18 PM.
 
Old 07-07-2004, 06:51 PM   #7
Corallis
Member
 
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Original Poster
Rep: Reputation: 15
If I do this, do I still do "make modules" and "make modules_install" when I go to update to the 2.6.7 kernel?

Or does this sound like it will be ok for updating my kernel?

1. Download the kernel
2. tar xvjf the kernel into /usr/src
3. make menuconfig, and edit a few of the options
4. cp .config config-kernel.old
cat .config | perl -pe 's/m$/y/' > config-kernel.new
cp config-kernel.new .config
5. make bzImage
6. cp System.map /boot/System.map
cp .config /boot/config
7. Then setup lilo to point to the right kernel.

Does that sound like it should work, or am I missing something? I am just doing this from what I have learned, Im not following a guide or anything, so I could be a bit off.
 
Old 07-07-2004, 07:19 PM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
no just figure out what is your current configuration file for kernel 2.6.7 (I will assume it is /boot/config-2.6.7) :
Code:
1. Download the kernel
2. tar xvjf the kernel into /usr/src
3. ln -s linux linux-2.6.7
4. cp /boot/config-2.6.7 /usr/src/linux/.config
5. make menuconfig, and edit a few of the options (it is the more 
   important step, be carefull, enable your features as 
   built-in as you want but try to do a few change in a first step).
6. make
7. make modules_install
6. cp System.map /boot/System.map-2.6.7
7. cp /boot/config-2.6.7 /boot/config-2.6.7.old
8. cp .config /boot/config-2.6.7
9. cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.7
10. rm /boot/vmlinuz
11. ln -s /boot/vmlinuz-2.6.7 /boot/vmlinuz
12. rm /boot/System.map
13. ln -s /boot/System.map-2.6.7 /boot/System.map
14. Then setup lilo to point to the right kernel (vmlinuz)

Last edited by keefaz; 07-07-2004 at 07:27 PM.
 
Old 07-07-2004, 07:35 PM   #9
Corallis
Member
 
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Original Poster
Rep: Reputation: 15
Ok, I did everything you said. Now my sound works, but my internet still doesnt work.
 
Old 07-07-2004, 07:38 PM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
did you enabled the tulip driver in menuconfig ?
 
Old 07-07-2004, 07:45 PM   #11
Corallis
Member
 
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Original Poster
Rep: Reputation: 15
No, you said only to do that if the network card is built into my motherboard. It is not. Ill retry the compile with it enabled though, just to make sure.
 
Old 07-07-2004, 07:48 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You use a PCMCIA net card ?
 
Old 07-08-2004, 02:49 AM   #13
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
give some info on ur network card, if its pci give output of lspci -v.
 
Old 07-08-2004, 07:08 AM   #14
Corallis
Member
 
Registered: Jan 2004
Location: EST
Distribution: Slackware 10.0
Posts: 150

Original Poster
Rep: Reputation: 15
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5705M Gigabit Ethernet (rev 01)

There is the output from lspci. I have managed to get the net working in the 2.6.7 kernel, but I had to download a new driver, and now every time I start my laptop I have to run "insmod" as root, and insert the module, or else it doesnt work anymore. Is there any way to get the module to load automatically so I dont have to do that every time I start up?
 
Old 07-08-2004, 07:37 AM   #15
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
It is the main purpose of your /etc/rc.d/rc.modules file just add your command to load the module in it
 
  


Reply



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
Getting a laptop: touchpad locking & bios conflicts & other possible laptop problems? mandrakemikael Linux - Laptop and Netbook 2 12-09-2004 07:15 AM
Problems with an old laptop alek66 Linux - Laptop and Netbook 4 08-20-2004 06:25 PM
What is the name of the Slackware 9.1 laptop kernel jtp51 Linux - Newbie 2 06-02-2004 09:47 PM
Kernel CONFIG_X86_L1_CACHE_SHIFT=5 for laptop happi Linux - Laptop and Netbook 0 05-04-2004 01:23 PM
laptop problems skeletal29 Linux - Hardware 7 05-03-2002 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:57 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
Open Source Consulting | Domain Registration