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 08-18-2003, 05:21 PM   #1
Obscure
Member
 
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Rep: Reputation: 32
Kernel Compiling Simple Question


Hi

I've compiled few days ago the 2.4.21 and all works well!
Now I need to recompile it but using the same .config file (with a very very minimum difference) the compiling doesn' t finish!!
So I've done a thing by myself and I want to know if is correct:
I've removed the linux-2.4.21 directory and reinstalled the same kernel as the first time!
All worked well!

But...typing this the result is:
[root@thor:~]# dmesg | head -1
Linux version 2.4.21 (root@thor) (gcc version 3.2.2) #2 Sun Aug 10 19:53:03 CEST 2003

Ok, but the date of 10 August is when I compiled the 1st time not this last.

BTW I've recompiled 'cause I think to forget something in scsi section 'cause I got this error:
[root@thor:~]# cdrecord -scanbus
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.

Using my original 2.4.20 there insn't this error!

Any1 should help please??
 
Old 08-18-2003, 05:41 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
What type of CD writer do you have ? ( SCSI or IDE )

If it is IDE, you will need to enable SCSI emulation.
 
Old 08-18-2003, 09:30 PM   #3
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
your explination is largely void of usefull information and I find it highly unsensical, however, it seems to me that you want to burn cd's, but it cannot find your drive, so you recompiled your kernel did it wrong but it booted, you tried again to recompile in what you thaught was the right way and it failed to compile. here is what you need to do:
in the kernel config directory:
make mrproper
make menuconfig (or xconfig if you are a gui whore)
leave everything at defaults except what you KNOW to change like cpu, etc. then in the ide section enable scsi emulation
then in the scsi section enable cd-rom and generic device
then exit and type (all in one line)
"make dep && make clean && make bzImage && make modules && make modules_install && cat arch/i386/boot/bzImage > /boot/vmlinuz && cp System.map /boot/System.map"
now edit the /etc/lilo.conf
if there is a line named append edit it otherwise create it, but make it look something like this
append="hdX(cdrom device)=scsi"
then make sure the kernel image area at the bottom points to /boot/vmlinuz and not some other one like vmlinuz-2.x.x.x.x
then exit and type lilo
then reboot
 
Old 08-19-2003, 01:52 AM   #4
Obscure
Member
 
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Original Poster
Rep: Reputation: 32
Tnx VM to all!!
I got a ide cd-rw that works with scsi emulation with 2.4.20 default kernel!!
My problem is how to enable scsi emulation into the 2.4.21 kernel...
Tnx exodist but I know how to recompile the kernel and making cd-rw working and all works with 2.4.20
My question was: I got a kernel but I want to use another one destroing the old kernel
Can I simply erase the old kernel directory??
I compiled the 2.4.21 the first time without finding the scsi emulation and I want to compile it again (not recompiling the same but starting from source) with scsi emulation...so I delete the entire dir /usr/src/linux-2.4.21 and re-extracting the kernel file linux-2.4.21.tar.bz2.
Then I have compiled it adding scsi but the header says the the kernel was compiled the 10 of august...and it is wrong!!
TNXVM

Last edited by Obscure; 08-19-2003 at 01:55 AM.
 
Old 08-19-2003, 11:51 AM   #5
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you want to clean the directory with the Kernel sources, type:
Code:
make clean
make mrproper
To use an IDE CD-RW, you will have to enable the following in the kernel:
In the ATA/IDE support section, enable SCSI emulation support
In the SCSI Support section, enable SCSI Support, SCSI CD-ROM support and SCSI generic support
 
Old 08-19-2003, 01:19 PM   #6
Obscure
Member
 
Registered: Apr 2003
Location: Milan
Distribution: Slackware 10 / FreeBSD 5.3
Posts: 175

Original Poster
Rep: Reputation: 32
Tnx VM!!!
I will try!!!
Tnx again
 
  


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
simple question about compiling Xiangbuilder Programming 3 07-24-2004 10:58 PM
Simple kernel question zalmox Programming 4 04-19-2004 11:33 PM
simple kernel compile question Zerodark Slackware 2 09-08-2003 10:23 PM
simple kernel question qwijibow Linux - Newbie 1 05-20-2003 05:33 PM
Simple compiling question??? cameronknives Linux - General 5 02-10-2002 10:58 AM

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

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