LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 02-08-2004, 12:45 PM   #151
major.tom
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15

Quote:
Originally posted by [c0ld~fusi0n]
The point that's confusing me is that my card worked (and still works) under 2.4.22. This makes no sense to me, the new kernel should have MORE support, not less. And my SCSI card isn't very new either.... Maybe there is a possibility to carry the module respectively the driver over from my old kernel? (Without any extreme complex procedures, I'm still new to the linux system.)
I agree. Maybe it's named differently, then. Do you have the 2.4.22 source? If so, perhaps it could be used to find the correct driver in 2.6.2. You won't have to re-build your 2.4.22 kernel, but by running make menuconfig (might require re-pointing /usr/src/linux -> /usr/src/linux-2.4.22), finding the driver there and saving your .config file, perhaps you can use the 2 config files to connect the same driver. The reason I'm suggesting this is that the text displayed in the menuconfig interface might've changed, but the line in the .config file probably hasn't.

This would be preferable to copying your current 2.4.22 module (if it is a module - I think it has to be in the kernel) into the 2.6.2 tree as I doubt this would work. Each kernel module is specific to a given source tree and if it's not from the same tree, all bets are off.

Garry
 
Old 02-08-2004, 06:48 PM   #152
G-fahmah
LQ Newbie
 
Registered: Feb 2004
Location: Puerto Rico
Distribution: Slackware 9.1
Posts: 12

Rep: Reputation: 0
Smile

this was my first kernel compile and following this instructions i did so like a charm.

the only prob i have is that theres no more framebuffer how can i get it back, cuz i kinda liked the lil pinguin on top

ps. great comunity
 
Old 02-08-2004, 11:15 PM   #153
adamjaskie
Member
 
Registered: Feb 2004
Posts: 32

Rep: Reputation: 15
Quote:
Originally posted by adamjaskie
I cannot get the ati drivers working in 2.6.2 either. I have no problem getting to a console on boot, but when I type startx, all I get is a blank screen. I followed the same procedure I used to get them working on 2.4.21, but it does not work in 2.6.2.
This has been fixed. Check out my thread in hardware if you are having the same problem.
 
Old 02-09-2004, 10:24 PM   #154
bashrc2
Member
 
Registered: Feb 2004
Distribution: slackware 9.1
Posts: 106

Rep: Reputation: 15
28 tries!

finally! i was able to compile kernel 2.6.2 whew!

here's what I did from a fresh .config of 2.6.2... might help someone later..

nvidia video card:
agpgart = disable
vesa = *
nvidia support = M
framebuffer(refer to page2)
MAKE SURE framebuffer Console support = y
(i was wondering why i got a blank screen, it was set as module, so easy to forget)

network adapter:
realtek 8139 c+ = M
realtek 8139 = M
(i dont know which one to use so now i have to modprobe)

mouse ps/2 = y

sound alsa oss emulation = y
c-media = y


thanks to DaOne and jymbo and the LQMB!
 
Old 02-10-2004, 02:35 PM   #155
glennardo
Member
 
Registered: Oct 2003
Location: Jakarta, Indonesia
Distribution: Slackware 13.37
Posts: 50

Rep: Reputation: 15
I got mine working...the frame buffer, agpgart, ALSA (Audigy), ethernet , etc.

Here's the config :

Character Devices:
1. Agpgart = YES
2. Sis chipset = Module
in /etc/rc.d/rc.modules i put /sbin/modprobe sis-agp

Graphic Support
1. Support for framebuffer devices = YES
2. VESA VGA graphics support = YES

- Console display driver support
1. Video mode selection support = YES
2. Framebuffer console support = YES
select compiled-in fonts = "" IS NOT SET !! ""
It won't work if i say "YES".
- Logo Configuration
YES to all

Sound
Sound card support = YES

ALSA = Module
- Sequencer support = Module
-Sequencer dummy client = not set
- OSS API emulation = YES
- OSS Mixer API = module
- OSS PCM API = module
- OSS Sequencer API = YES
- Verbose printk = not set
- Debug = not set
- PCI devices
EMU10K1 = module

In /etc/rc.d/rc.modules i did :
uncomment /sbin/modprobe emu10k1 and replace emu10k1 with snd-emu10k1

/etc/rc.d/rc.alsa
remove " modprobe snd-mixer-oss "

Ethernet
My MB is ASUS-P4S533-x with ethernet card built-in.
So..."YES" to RealTek RTL-8139 PCI Fast Ethernet Adapter Support
and...as "module" to SiS 900/7016 PCI Fast Ethernet Adapter Support

uncomment " #/sbin/modprobe sis900 " in rc.modules

That's all...hope might help someone also !
 
Old 02-10-2004, 06:31 PM   #156
bashrc2
Member
 
Registered: Feb 2004
Distribution: slackware 9.1
Posts: 106

Rep: Reputation: 15
good job!

about your ethernet card.. i think you have to just load sis900 as modules since you have to uncomment /sbin/modprobe sis900 and remove realtek in your .config
you only have 1 nic do you?

anyway.. about agpgart
agpgart = M

hehe i thought i disabled it
 
Old 02-12-2004, 03:07 AM   #157
Nikore
LQ Newbie
 
Registered: Sep 2003
Posts: 1

Rep: Reputation: 0
I have a make install error with the 2.6.2 kernel. I orgnaly have goten it to work but i messed up the system in another way. So I resinstalled everything downloaded the 2.6.2 kernel and went to go complie it and i get this at the end of make modules_install .. "if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.2; fi". That looks like C code to me and also an error the other error i get is when i do make install it says:
/arch/i386/boot/setup.S:165. Warning: value 0x37ffffff truncated to 0x37ffffff
Root device is (3. 2).
Boot sector 512 bytes.
setup is 4879 bytes.
System is 1579 KB.
Kernel : arch/i386/boot/bzImage is ready.

sh /usr/src/linux-2.6.2/arch/i386/boot/install.sh 2.6.2 /arch/i386/boot/bzImage System.map "/boot"

part_nowrite: read:: Input/ouput error
make[1]: *** [install] Error 1
make: *** [install] error 2

i have tryed googleing for the awanser and searching the forums. I have also tryed recomplieing it (and other vertions as well). If you need more info i can try to post more of what it says ....the rest of the logs and text just show regular compile info and i dont get any error with just make.
 
Old 02-12-2004, 11:31 PM   #158
gregorw
LQ Newbie
 
Registered: Feb 2004
Location: Sydney, Australia
Distribution: Suse 9.0 & Slackware 9.1
Posts: 13

Rep: Reputation: 0
Question

I new to Linux and am attempting my first Kernel compile

I followed DaOne's guide and when I got to the su -c "make modules_install" command it errored out immediately with it being unable to find a file /usr/src/linux/drivers/net/3c501.ko

The only file that is close is 3c501.c

This stopped me in my tracks....

In DaOne's guide when you create the vmlinuz.old image path in LILO there is no corresponding directory for this path. Am I supposed to copy the existing files to a new directory called vmlinuz.old or am I totally wrong here ?

Also why do we not copy the bzImage file & System.map files to /boot as many other install guides say ?

I have also tried beyondzero's guide but when I loaded the new kernel from LILO it loaded the old kernel. I also noticed that when the Kernel was compiling the directory paths listed were in /usr/src/linux-2.4.22. So it seemed to be compiling the old Kernel.

In beyondzero's guide you do not "break the link" (rm -f) to the /usr/src/linux directory like in DaOne's could this have caused my wrong kernel compile problem ?

Every kernel compile procedure that I have seen is different. This makes it hard to understand what is going on as there are only a few constants to the procedure.

Documentation is very difficult to master as you are writing this document as someone who knows exactly what you mean, which makes it hard to understand if you are uninitiated. Can DaOne's guide be written with every command written down with explanations on what each command is doing and why ? I am sure this will help us "newbies" learn.

I am a long tome NetWare guy looking to learn the next big thing. I decided to dive right in and go for a more "hard core" version. SuSE, Mandrake & Debian are easy. I need to know how the system works so Slackware is ideal
 
Old 02-17-2004, 11:47 AM   #159
Vincent
Member
 
Registered: Feb 2003
Location: Germany
Distribution: Slackware 9.1
Posts: 77

Rep: Reputation: 15
Hi,
here are the steps I've done so far:

ln -s linux-2.6.2 linux
uncommented line in Makefile
edited lilo & run lilo
make mrproper
make menuconfig
make
su -c "make modules_install"
make install

Here are lilo.conf and Makefile:
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hda1
  label = slack
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking


image = /boot/vmlinuz.old

root = /dev/hda1

label = slack.old

read-only
# Linux bootable partition config ends
Code:
#
# INSTALL_PATH specifies where to place the updated kernel and system map
# images.  Uncomment if you want to place them anywhere other than root.
#

export  INSTALL_PATH=/boot

#
# INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory
# relocations required by build roots.  This is not defined in the
# makefile but the arguement can be passed to make if needed.
#
But after restarting, still the old kernel (2.4.22) is booted.

What did I wrong?
 
Old 02-17-2004, 02:10 PM   #160
glennardo
Member
 
Registered: Oct 2003
Location: Jakarta, Indonesia
Distribution: Slackware 13.37
Posts: 50

Rep: Reputation: 15
Here's step by step i use when patching 2.6.1 to 2.6.2 and compiling the new kernel(2.6.2):



1. Create a new directory for new kernel(2.6.1), for example :

$mkdir /home/me/upgrade



2. extract the kernel(2.6.1) to /home/me/upgrade directory :

$tar xvjf linux-2.6.1.tar.bz2 -C /home/me/upgrade



3. Create a symbolic link to that new directory :

- $ cd /home/me/upgrade

- $ ln -s linux-2.6.1/ linux



4. extract the patch file to the top directory of linux-2.6.1



5. Patch the patchfile :

$patch -p1 <patch-2.6.2



Now the compiling part :



Note : I always do these as root !



1. make mrproper

2. make menuconfig or make xconfig

3. save all the configuration and quit

4. make bzImage

5. make modules

6. make modules_install

7. cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.2

8. cp System.map /boot/System.map-2.6.2

9. rm /boot/System.map

10. ln -s /boot/System.map-2.6.2 /boot/System.map



continue with editing lilo.conf....





Editing lilo.conf :



Use any text editor you like, for now i choose pico.



1.As root !!

#pico /etc/lilo.conf

..and here's what i did :

image = /boot/vmlinuz
root = /dev/hda4
label = SLACKWARE
read-only
image = /boot/vmlinuz-2.6.2
root = /dev/hda4 ---->> change with your / directory !!
label = SLACK-2.6.2
read-only
# Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# DOS bootable partition config begins
other = /dev/hda1
label = WINDOWS-XP
table = /dev/hda
# DOS bootable partition config ends

2. Still as root :
#/sbin/lilo

That's all..hope it helps !!

cheers
 
Old 02-17-2004, 07:58 PM   #161
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 493

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Vincent
Hi,
here are the steps I've done so far:

ln -s linux-2.6.2 linux
uncommented line in Makefile
edited lilo & run lilo
make mrproper
make menuconfig
make
su -c "make modules_install"
make install

Here are lilo.conf and Makefile:
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hda1
  label = slack
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking


image = /boot/vmlinuz.old

root = /dev/hda1

label = slack.old

read-only
# Linux bootable partition config ends
Code:
#
# INSTALL_PATH specifies where to place the updated kernel and system map
# images.  Uncomment if you want to place them anywhere other than root.
#

export  INSTALL_PATH=/boot

#
# INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory
# relocations required by build roots.  This is not defined in the
# makefile but the arguement can be passed to make if needed.
#
But after restarting, still the old kernel (2.4.22) is booted.

What did I wrong?
Based on what you posted, I see that you have no entry for the "current" kernel.

Here is a snip from my lilo.conf...

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdb1
label = Linux
read-only
image = /boot/vmlinuz.old
root = /dev/hdb1
label = Old-Kernel
read-only
#Bootable partition config ends

So, you need to keep the vmlinuz entry, and just add the vmlinuz.old entry...make sense?
 
Old 02-17-2004, 08:00 PM   #162
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 493

Original Poster
Rep: Reputation: 30
Sorry all...I have been very busy and haven't had a chance to see what's been going on here. I will try to read through this stuff and offer assistance where I can...
 
Old 02-18-2004, 02:05 PM   #163
c0rderr0y
Member
 
Registered: Feb 2004
Distribution: Kubuntu
Posts: 71

Rep: Reputation: 15
i've gotten everything to work perfectly except the last step make install the last few lines say:

Added Linux
Fatal: Duplicate Label "Linux"
make[1]: *** [install] Error 1
make: *** [install] Error 2

then when i restart it boots up my old kernel

Last edited by c0rderr0y; 02-18-2004 at 11:14 PM.
 
Old 02-19-2004, 02:09 AM   #164
bashrc2
Member
 
Registered: Feb 2004
Distribution: slackware 9.1
Posts: 106

Rep: Reputation: 15
Fatal: Duplicate Label "Linux" <-- this is your problem.

just change the labels and you will be ok.. remember to run lilo before you reboot.
heres my lilo.conf:

# This is my 2.6.2 kernel
image = /boot/vmlinuz
root = /dev/hda10
label = Slackware-9.1
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# This is my 2.4.22 kernel
image = /boot/vmlinuz.bak.old
root = /dev/hda10
label = Failsafe
read-only
other = /dev/hda1
label = Windows-XP
table = /dev/hda
image = /mnt/rh/vmlinuz
root = /dev/hda5
label = RedHat-9
read-only
 
Old 02-19-2004, 06:13 AM   #165
sneak
LQ Newbie
 
Registered: Feb 2004
Posts: 21

Rep: Reputation: 15
once i reboot and choose linux in lilo menu,
the screen goes black and nothing happens.

i can probably reinstall my old 2.4 kernel, running one of the slackware cdrom currently
but i would like to know if any of you has a clue whats i could have done wrong here.

i can not run menuconfig, gettting a whole bunch of errors like warning: assigment makes pointer from integer without a cast. closing with: make *** [menuconfig] Error 2

xconfig seems to work. so i used that.

once i get to "make" it stops in the middle and says something like: segmentation fault.
this apperantly happens with hot cpu's so i turned of my pc for a while, and later in the config i turned off a lot of stuff so there would be less to make.

when i got to make install it started to make a fuss that i have lilo on a boot disk. also it claimed it could not find /boot/vmlinuz.old so i installed lilo to the MBR. with slackware's pkgtool script.

booted, no entry in the lilo menu for using my old kernel. and when choosing linux it does nothing.

I now renamed the config file to tmp. i ran xconfig to generate a new .config and have changed nothing exept the proccessor family (it was set on P4 while i have p3).

when i use make it runs a little while and then i get segmentation fault once again....

using slackware 9.1, trying to install the 2.6.3 kernel
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - Need guide on how to (re)compile kernel in 9.2 timko Suse/Novell 1 02-17-2005 08:17 AM
re :kernel compile guide sh4d0w331 Slackware 1 10-02-2004 05:38 PM
Kernel re-compile guide marlor Slackware 6 08-08-2004 03:57 AM
What happened to the Newbie Compile Guide? boutrosboutros Slackware 6 07-14-2004 12:37 AM
mandrake specific kernel compile guide? e1000 Mandriva 4 01-09-2004 12:27 PM


All times are GMT -5. The time now is 12:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration