LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-30-2003, 09:33 AM   #1
raid517
Member
 
Registered: Feb 2002
Posts: 393

Rep: Reputation: 30
2.6 kernel test 4


Hi, this is all slightly confusing. I have the new 2.6 kernel test 4 and I am very keen to try it as it seems to support digital sound out on my motherboard. Anyhoo. I can follow the first part of the instructions in the docs very easily on how to compile a kernel. (2.6 is slightly different from 2.4x). But since I'm still pretty new to linux some of the other things that were said don't make much sense to me yet. What does 'making a symlink to point to your new kernel' mean - and how do I do that? Also, what does 'You have to make the /sys directory manually' mean? Do I just have to makedir /sys ? (That is sys would be located in / directory?) Is that all I have to do, or is there something else?

Sorry for these dumb n00b questions, but once I know I won't forget.

Thanks in advance for any advice you can offer.

Q
 
Old 08-30-2003, 12:26 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Making a symlink to your new kernel probably means to just create a softlink in /usr/src that points "linux" to the actual directory you extracted the kernel to...

Example:

ln -s /usr/src/kernel-2.6.test4 linux

Not sure about the /sys, I would assume if its asking you to create the directory manually, then yah, just:

mkdir sys

From within your / directory.
 
Old 08-30-2003, 01:55 PM   #3
raid517
Member
 
Registered: Feb 2002
Posts: 393

Original Poster
Rep: Reputation: 30
Yeah thanks... I think that's what it wants... Not much works without that 'linux' symlink in /usr/src. so I was kind of wondering how to create it.

While we're on the subject.... I followed the instructions in the docs to the best of my ability I downloaded and installed the sources as directed (in Gentoo it's easy, it's just emerge development-sources) and then ran the following:

Code:
make menuconfig
make bzImage (no need for make dep any more). 
make modules
make modules_install

Then I did:

# pwd
    /usr/src/linux-2.6.0-test4
    # mv arch/i386/boot/bzImage /boot/bzImage-2.6.0-test4 
    # mv System.map /boot/System.map-2.6.0-test4 
    # cd /boot
    # rm System.map
    # ln -s System.map-2.6.0-test4 System.map
Then:

Code:
#nano -w grub.conf

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux
root (hd0,0) 
kernel (hd1,0)/bzImage-2.6.0-test4  root=/dev/hdb3
As per the instructions for the 2.6 kernel on the main pages of kernel trap. But I hit a couple of snags. Well one major one really... When I did this all I got when I rebooted was a blank screen. Just grub and then nothing...

What am I doing wrong?

I definately edited grub to point to my new kernel and have triple checked it since then, but nothing... just an empty screen...

Any suggestions?

Q

PS

I don't know if it's relevant, but I used a script called genkernel to compile my original working kernel. Genkernel set up an initrd which scanned for new hardware whenever the system rebooted. However Genkernel is not compatable with kernel 2.6 yet, so I did it the old way by hand. The gentoo install instructions say if you do things manually, you shouldn't set up an intrd - so I simply commented out the intrd line in grub in order that it wouldn't be looked for during boot. Also Genkernel gave instructions to install hotplug, so I wonder if this might cuase problems too? Any suggestions anyone has would be extremely welcome.
 
Old 09-07-2003, 02:14 PM   #4
kristocles
LQ Newbie
 
Registered: Aug 2003
Location: Lund, Sweden
Distribution: Red Hat
Posts: 1

Rep: Reputation: 0
Hi, when you mentioned 'blank screen' I remembered the doc: www.codemonkey.org.uk/post-halloween-2.5.txt

It has this to say about blank screens:

- Blank screen after decompressing kernel?
Make sure your .config has
CONFIG_INPUT=y, CONFIG_VT=y, CONFIG_VGA_CONSOLE=y and CONFIG_VT_CONSOLE=y
A lot of people have discovered that taking their .config from 2.4 and
running make oldconfig to pick up new options leads to problems, notably
with CONFIG_VT not being set.


hope that was the problem. Hotplug is discussed somewhat in http://thomer.com/linux/migrate-to-2.6.html and in http://www.fearthecow.net/index.pl?s...st&page=kernel aswell.

For RedHat9 users these
http://people.redhat.com/arjanv/2.5/RPMS.kernel/
rpms works beautyfully (I'm using them as I write).

Good luck!

Last edited by kristocles; 09-07-2003 at 02:23 PM.
 
Old 09-07-2003, 02:34 PM   #5
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Go to Slashdot.org and do a search for Kernel 2.6, there was a howto tutorial a week ago. I lost the link because of a total system reformat.
 
  


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
2.6.x test kernel failed DAChristen29 Slackware 5 12-09-2004 03:52 PM
same error message in every 2.6 test kernel apberzerk Linux - General 3 11-01-2003 06:16 PM
kernel 2.6 test-3 r3l4x Mandriva 5 08-23-2003 03:49 PM
2.6 test kernel is OUT!!! MasterC Linux - General 35 07-21-2003 03:15 PM
installing a new test kernel on redhat roskoo Linux - Newbie 2 07-21-2003 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:15 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