LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-22-2003, 07:13 AM   #31
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30

/dev/pts is no longer added by default, so you must select it (Device Drivers->FS->Pseudo FS)....
Unless you plan to never use a terminal.
 
Old 12-22-2003, 08:54 AM   #32
beyondzero
LQ Newbie
 
Registered: Jul 2003
Posts: 7

Rep: Reputation: 0
Compile Guide

Some excellent advice in the thread - got me up and running with the new kernel after I had a few problems first time round!

For my future reference I put together a quick guide from everyones advice and have posted it on my site - http://www.randomwire.com/articles.p...cle=kernel.php - hope it might be of help to someone else!


Last edited by beyondzero; 07-10-2004 at 10:30 AM.
 
Old 12-22-2003, 10:34 AM   #33
kc00l
Member
 
Registered: Oct 2003
Location: France/Italy
Distribution: Slackware Current
Posts: 83

Rep: Reputation: 15
Nice Compile Guide

I've read your compile guide for kernel 2.6.0, beyondzero.
That's a complete and quick guide to solve all those problems pointed out by a number of post in this forum.

I would suggest to put the kernel source tree in a home directory and then:

$su -c "ln -s /home/username/linux-2.6.0 /usr/src/linux"

This kind of procedure is even in the kernel source tree README
Quote:
INSTALLING the kernel:

- If you install the full sources, put the kernel tarball in a
directory where you have permissions (eg. your home directory) and
unpack it
Having the kernel source tree in your home directory has the following advantages:[list=1][*]Normal users stay root for a safe amount of time.[*]/usr directory doesn't grow too big in size.[*]Normal users can normally 'make xconfig' without the need of being root.[/list=1]

Feel free to add other advantages as indeed there are more.
 
Old 12-22-2003, 11:54 AM   #34
beyondzero
LQ Newbie
 
Registered: Jul 2003
Posts: 7

Rep: Reputation: 0
Compile Guide update

Good advice, I've updated the guide with your suggestions
 
Old 12-22-2003, 12:01 PM   #35
ZiGiE
Member
 
Registered: Oct 2003
Location: ex USSR, Canada
Posts: 58

Rep: Reputation: 15
Wink Instead of "make install"

Here's a little script I wrote and run everytime after I compile new kernel.
Note: You still need to edit lilo.conf and run lilo!!!

Code:
#!/bin/sh
BOOT=/boot ;

usage()
{
        echo "Usage: install_kernel <version>" 1>&2
        exit 1
}

if [ ! $# == 1 ]; then usage; fi

VERSION=$1 ;
cp -vi .config ${BOOT}/config-${VERSION} ;
cp -vi System.map ${BOOT}/System.map-${VERSION} ;
cp -vi arch/i386/boot/bzImage ${BOOT}/vmlinuz-${VERSION} ;

ln -siv ${BOOT}/config-${VERSION} ${BOOT}/config ;
ln -siv ${BOOT}/System.map-${VERSION} ${BOOT}/System.map ;
ln -siv ${BOOT}/vmlinuz-${VERSION} ${BOOT}/vmlinuz ;
So, after I compile my kernel like this:
Code:
cd /usr/src/linux
make mrproper
cp ~/kernelconfigs/.config .config
make menuconfig
make
su -c 'make modules_install'
I just run my script: su -c 'install_kernel 2.6.0', update my /etc/lilo.conf with something like this:
Code:
image = /boot/vmlinuz-2.6.0
  root = /dev/hda2
  label = Lin-2.6.0
  read-only
run su -c lilo and reboot.
 
Old 12-22-2003, 09:21 PM   #36
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Re: Compile Guide

Quote:
Originally posted by beyondzero
For my future reference I put together a quick guide from everyones advice and have posted it on my site - http://durham.randomwire.com/kernel.php - hope it might be of help to someone else!

How did you get the kernel built from the 2.6.0 sources without running into the problems described here:

http://www.linuxquestions.org/questi...hreadid=128144

The procedure you describe is basically the same procedure I've been following for years and I'm puzzled as to why I'm having problems with the "asm" directories and locating errno headers.

Thanks...

Peace...
 
Old 12-23-2003, 05:22 AM   #37
kc00l
Member
 
Registered: Oct 2003
Location: France/Italy
Distribution: Slackware Current
Posts: 83

Rep: Reputation: 15
Re: Instead of "make install"

Quote:
Originally posted by ZiGiE
[B]Here's a little script I wrote and run everytime after I compile new kernel.
Note: You still need to edit lilo.conf and run lilo!!!
(snip)
Nice script, I'll save it in my ~

Oh, and why don't you put something in the second line to get some credit?
Code:
#!/bin/bash
# Install Kernel Script by ZiGiE from LQ-Slackware

Last edited by kc00l; 12-23-2003 at 05:30 AM.
 
Old 12-25-2003, 10:50 AM   #38
IffikaS
Member
 
Registered: Sep 2003
Location: ESTONIA -Tallinn
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
i cant still hget rid of the blank screen problem ???
can someone help
 
Old 12-25-2003, 10:57 AM   #39
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally posted by IffikaS
i cant still hget rid of the blank screen problem ???
can someone help
Ok, here is something I did. It's not elegant, but it works. Boot your machine and let the blank screen appear and wait until the disk activity stops. Then login and _somehow_ get X started. On my system (Slackware 8), it boots to runlevel 3 which doesn't start X and I start X by manually switching to runlevel 4 (which is the way I just prefer to do things).

The main point is, boot the box and get X started. Once X is started login and open a shell window and edit your lilo.conf file and change the "vga =" line to "vga = ask". Save the file and reboot.

Now, when lilo starts it will prompt you for the video mode to use for the boot process.

Good luck!

Peace...
 
Old 12-25-2003, 11:30 AM   #40
IffikaS
Member
 
Registered: Sep 2003
Location: ESTONIA -Tallinn
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
thank you it really helps, but still is there some way to get vga console working ? Has anyone got it or not
 
Old 12-25-2003, 12:44 PM   #41
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally posted by IffikaS
thank you it really helps, but still is there some way to get vga console working ? Has anyone got it or not
I'm sure there is, but at this point having a low-res console is better than a blank screen.

If the "vga = ask" works for you, then you will at least NOT have a blank screen until you get your VGA frambuffer console issues worked out.

What kind of graphics card do you have and how do you have the kernel configured for framebuffer console support?

Peace...
 
Old 12-25-2003, 12:54 PM   #42
IffikaS
Member
 
Registered: Sep 2003
Location: ESTONIA -Tallinn
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
Quote:
Originally posted by tomdkat
I'm sure there is, but at this point having a low-res console is better than a blank screen.

If the "vga = ask" works for you, then you will at least NOT have a blank screen until you get your VGA frambuffer console issues worked out.

What kind of graphics card do you have and how do you have the kernel configured for framebuffer console support?

Peace...
of course it's better than blank one. I have on of those Nvidia GeForce 2 MX 400 . there is no drivers ment for geforce but i enabled the riva - but it doesnt help
 
Old 12-25-2003, 01:01 PM   #43
karthikrr
Member
 
Registered: Nov 2003
Location: India
Distribution: Slackware 13.0 32-bit
Posts: 129

Rep: Reputation: 16
dont bother with riva... just enable only vesa...
 
Old 12-25-2003, 01:33 PM   #44
IffikaS
Member
 
Registered: Sep 2003
Location: ESTONIA -Tallinn
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
ok but still - i have one major problem - i can't get my tv card working. It Leadtek winfast TV 2000 XP deluxe it ran very good with 2.4.23, but now it doesnt work .

I use tvtime and it says " Cannot open capture device /dev/video0 " ???
 
Old 12-25-2003, 01:36 PM   #45
IffikaS
Member
 
Registered: Sep 2003
Location: ESTONIA -Tallinn
Distribution: Ubuntu
Posts: 36

Rep: Reputation: 15
maybe the problem is that there is no option with kernel compiling because a i used to need this option:

Multimedia Devices -> Video For Linux -> V4L Information in the proc filesystem (Y)

But now there is no
 
  


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
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 01:40 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