LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-22-2005, 06:22 PM   #1
ksrjapan
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Problems after Kernel 2.6.0 compilation


Hi folks
I upgraded my slackware9.1 to Slackware10.1 using swaret.
I then downloaded kernel 2.6.0 , moved it to /usr/src/, followed the steps as I learnt from this forum and compiled it successfully
My system is HP Pavilion ze5200 Laptop

Now my ACPI is working properly and I can use Battery Monitor


But I face the following problems and I am looking for any assistance to set right

1. I can't connect to internet any more
running netconfig is of no use

2. my console is very small now. (640 X 480). How can I configure to increase it to the full display size (1280 X 1024) ? I know how to set display in x windows but not for the tty terminals.


3. Sound is not working. It says can't find /dev/dsp

4. Booting into X flickers for a moment and then the display is good. But with kernel 2.4.0 no such probelm. Can I use the old xorg.conf file instead of the new one or is there any work around for this.

5. How can I configure my ATI Radeon driver instead of the VESA ?


Regards
 
Old 03-22-2005, 06:35 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
hi there,

first : why do you use the 2.6.0 ? ( sure that's the right version.? )
better get the latest.....( 2.6.11.5 )

and your Q.'s :

1) if you type ( as root in a console ) " # ifconfig " , what do you get ?
( is it there as eth0 .... )
if not, look at how your nic is recognised with " #lspci ", and load the proper module with " #modprobe <mod-name> "
use " #lsmod " to check if it's loaded.

2)you'll need to compile framebuffer-support for your graph.card into the kernel
and use the " vga=xxx" option in lilo.conf. ( then rerun " lilo" )

3)/dev/dsp might not exist ? check that...

4)&5) try " radeon " for the display driver in xorg.conf.

egag.
 
Old 03-23-2005, 06:17 AM   #3
ksrjapan
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Problems after Kernel 2.6.0 compilation

Hi egag
Thanks for the suggestions.

1. ifconfig does not return eth0. I will try to load the modules as you have suggested and see the result
In /etc hosts, hosts.config, networks are all fine. How can I bring up the eth0 ?

2./etc/lilo.conf already contains
vga = 773

which means VESA frame buffer console with 1024X768X256. Same is the case with kernel 2.4.0 but everything is fine. I don't understand how to add the frame-buffer support in the kernel compilation. Does it mean, I need to compile the kernel again with the support ? If so where exactly it is?

3. /dev/dsp is right there but still it is not working. By the way I don't know where the boot log messages are saved. there is no such /var/log/dmesg anymore in 10.1. So I am not able to post the exact boot message here which complains that ALSA is missing like that.

4.I will try radeon in lilo.conf for the driver as you suggested.

I appreciate any help

Regards
K.Suresh
 
Old 03-23-2005, 08:32 AM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
if you used " netconfig " then the config file " /etc/rc.d/rc.inet1.conf " should contain all info.
( check that )
if thats ok, make sure "/etc/rc.d/rc.inet1" is executable.
then just run

#/etc/rc.d/rc.inet1 stop
#/etc/rc.d/rc.inet1 start

this script takes care of lo and eth .

and framebuffer support is under graphics support in the kernel config menu.

check permissions on /dev/dsp ( maybe it's a symlink to /dev/sound/dsp )
perm.'s should be rw-rw-r--

i think the radeon driver will give you better results.

egag
 
Old 03-24-2005, 06:17 PM   #5
ksrjapan
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Problems after Kernel 2.6.0 compilation

1.Nothing works for the internet and it could not find eth0 at all
It fails while trying to start the dhcpd server and complains that STD......ADDR not found.


2. I added frame buffer support but still the console is small.

3. /dev/dsp is fine with rwxrwzrwx permissions. But could not get sound.


One thing I don't understand is that, both the kernels use the same lilo.conf file. So my settings should not be a problem since both I have vga = 773 in the file. I suspect that 2.4.0 Kernel takes the vesa buffer by default. But while compiling Kernel 2.6.0 it takes the Radeon AGP 345M driver and that is the problem. I don't know how to tweak it.

Same is the case for sound also.

lspci output is the same in both the kernels but sound is not working for kernel 2.6.0
======================================================
I don't know where is the boot log message is saved. if you can help me to find out that, then the boot log will be much informative to get more info regarding the problem. I searched but it is not in /var/log/dmsg.
======================================================
The only advantage I am having is that ACPI works fine after compiling.
I compiled 2 to 3 times with different options for frame buffer support, console buffer support, alsa sound etc., but in vain.


***Note : When I installed Slackware 9.1 from cd and upgraded it to version 10.1, there is nothing inside /usr/src. i.e. no .config at all. I put 2.6.0 kernel there and created a new config file using menu config. My question is how can I revert back to the original position, that to my 2.4.0 config. If I can do that, then I will use that same original .config for 2.6.0 with only the ACPI support and that is what I need.

ksr


Last edited by ksrjapan; 03-24-2005 at 06:22 PM.
 
Old 03-24-2005, 06:38 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Congrats, you succeed to configure and compile a running kernel from scratch (without an old config). You can be proud of that, it is not easy

You are very close to perfect as you have only internet and sounds issue.

thing to check in kernel config (cd to your kernel dir) :
- For framebuffer
Have you video select enabled ?
grep CONFIG_VIDEO_SELECT .config

- For sound, I suppose you are already in audio group in /etc/group
/dev/dsp is a symlink in 2.6 kernel so you have to ls -l the original file to find permissions
Do you have hotplug and udev enabled ?
/etc/rc.d/rc.hotplug and /etc/rc.d/udev need to be executable

- For internet, post the output of
/sbin/lspci | grep net

And the output of lsmod would be usefull too
 
Old 03-25-2005, 07:32 PM   #7
ksrjapan
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Hi I am putting the results as below

grep CONFIG_VIDEO_SELECT .config says that it is not set.
If I change it to CONFIG_VIDEO_SELECT=yes, do I need to recompile the kernel.

/dev/dsp is a syslink to /dev/dsp0

/dev/dsp is lrwxrwxrwx
/dev/dsp0 is crw-rw--w-

/etc/rc.d/rc.hotplug is -rwx-r-xr-x
/etc/rc.d/udev is not there

lsmod says
lsmod : QM_MODULES :Function is implemented.




This is the lspci | grep net


00:12.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller

This is the lspci output

00:00.0 Host bridge: ATI Technologies Inc: Unknown device cbb2 (rev 02)
00:01.0 PCI bridge: ATI Technologies Inc PCI Bridge [IGP 340M]
00:02.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:06.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 02)
00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV]
00:08.0 Modem: ALi Corporation Intel 537 [M5457 AC-Link Modem]
00:0a.0 CardBus bridge: O2 Micro, Inc. OZ6912 Cardbus Controller
00:0c.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link)
00:0f.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
00:10.0 IDE interface: ALi Corporation M5229 IDE (rev c4)
00:11.0 Bridge: ALi Corporation M7101 PMU
00:12.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon IGP 340M


By the way where is the boot log message actually saved.
While loading, it tries to run dhcpd and then it says that something is missing like

ioctl SIOCGIFHWADDR : No such device

How can I check the boot log messages. I could not find inside the /var/log directory.



ksr
 
Old 03-25-2005, 10:43 PM   #8
animeresistance
Member
 
Registered: Feb 2004
Distribution: Slackware
Posts: 230

Rep: Reputation: 39
Hi,
Well i'm not an expert, but lemme see if i can help. Your main problem as i can see, is that you don't have any modules installed, that's why lsmod doesn't display anything. You compiled your kernel with "*" options or with "M" options ?
 
Old 03-26-2005, 12:55 AM   #9
ksrjapan
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Hi
Actually I don't remember that. But I simply used <space> bar if I want to include something. Somtimes it is * and some time it is M. Is there any difference between these things? I am a newbie and I appreciate any help.


ksr
 
Old 03-26-2005, 09:19 AM   #10
animeresistance
Member
 
Registered: Feb 2004
Distribution: Slackware
Posts: 230

Rep: Reputation: 39
Well, the only difference is when you choose "M" you are telling the kernel that those will compile as modules, you can load them with insmod or you can remove them with rsmod. And when you choose "*" you are inlcuding them in the kernel, they are not modules. and you can't remove them or add them, unless you recompile the kernel.

By the way, why you downloaded the 2.6.0 kernel ? why you don't download and install the new kernel 2.6.11 ? maybe it has support for your hardware and maybe you will have less problems with your laptop.
 
Old 03-26-2005, 09:25 AM   #11
animeresistance
Member
 
Registered: Feb 2004
Distribution: Slackware
Posts: 230

Rep: Reputation: 39
Oh by the way, i recommend you follow the instructions of shilo's thread, maybe the instructions will help you a lot.
 
Old 03-26-2005, 12:33 PM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
/etc/rc.d/udev is not there
install udev slackware package, udev/2.6 kernel works fine

From your lspci output, try to enable as module (if you can):

Device Drivers-->Networking support-->
Ethernet (10 or 100Mbit)
EISA, VLB, PCI and on board controllers
National Semiconductor DP8381x series PCI Ethernet
 
Old 03-27-2005, 06:13 AM   #13
ksrjapan
LQ Newbie
 
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for every help
I recompiled kernel 2.6.11 and now internet and sound are fine (compiled as in built in the kernel using *)

But still my console is very small though I configured graphic card to have frame buffer support.

Any clue
 
Old 03-27-2005, 10:02 AM   #14
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
For the console size make sure you configured the kernel with :

CONFIG_VIDEO_SELECT=y
CONFIG_VGA_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FB_VESA=y
CONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y

#optional
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
 
Old 03-27-2005, 10:42 AM   #15
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
Quote:
Originally posted by keefaz
For the console size make sure you configured the kernel with :

CONFIG_VIDEO_SELECT=y
CONFIG_VGA_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FB_VESA=y
CONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y

#optional
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
hmm...in kernel 2.6.11.5 there is no " CONFIG_FB_VESA=y "
i have the rest, and it's doing ok here.
but, even with " vga=normal " in the lilo.conf, i get a logo ?
i allways thought "vga=normal" wouldn't give anything but text.
strange thing....

egag
 
  


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
problems with new kernel compilation (2.4.31) fintanmcevoy Linux - Software 2 11-02-2005 09:27 AM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
Kernel Compilation Problems jironimo Linux - Software 6 03-27-2004 08:58 AM
kernel compilation problems h_lina_k Linux - Newbie 0 03-02-2004 02:23 PM
Kernel compilation problems nikhiljosh Linux - General 3 07-29-2001 07:55 AM

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

All times are GMT -5. The time now is 01:44 AM.

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