LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-07-2006, 02:50 AM   #451
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90

Quote:
Originally Posted by purujit
Hi,
I am a linux newbie trying out my first kernel recompile.I downloaded the stable kernel 2.6.16.19 and compiled and made an image.But when I try to boot it I get the following error message

Uncompressig Linux.. Ok,booting the kernel
Red Hat nash version 4.1.18 starting
ata1:disabling port
ata2:disabling port
Enforcing mode requested but no policy loaded.Halting Now
Kernel Panic : No syncing : Attempted to kill init !

I have an IDE hdd and a P4 machine with 512MB ddr2 RAM.
Can anyone help me out here?Is more information needed?
Did you compile your kernel with support for your root file system? E.g. ext3 or ReiserFS?

Cheers, Leon.
 
Old 06-19-2006, 01:15 PM   #452
katayamma
Member
 
Registered: Jan 2006
Posts: 37

Rep: Reputation: 15
Quote:
Originally Posted by deggial
Hi! (may be my problem was alredy discussed but iīm lazy to read 30 page thread :-))
I tried to compiled my first kernel yesterday (unbzip2ed it to /root/linux-2.6.16), probably messed up configuration settings, so after īmake installī command and reboot i alsa couldnīt detect my sound and network card, ntfs partitions were unavailable. I had to go back. I tried renaming vmlinuz.old (backed up old boot) to vmlinuz but it didnīt bring any result which made me desperate, i also tried by analogue inputting make and make install command in the old kerrnel directory, which only worked after i inputted make clean command in the new kernel directory. can i always use such method to restore to previous kernel, is it safe?
When building kernels, I modify Lilo to allow for backups. I copy my known good kernel to vmlinuz.safe and then make the following mods to the lilo config:
Quote:
image = /boot/vmlinuz
root = /dev/hda1
label = Linux
read-only
image = /boot/vmlinuz.old
root = /dev/hda1
label = Old
read-only
image = /boot/vmlinuz.safe
root = /dev/hda1
label = Safe
read-only
This give me a boot prompt that will let me switch back to the previous kernel without having to do anything fancy. Once I have a kernel I know is good for what I need, pop it to .safe and run.

Oh.. and for the audio question: Did you build it as a module? If so, did you do a "make modules_install"?


Cheers

Last edited by katayamma; 06-19-2006 at 01:16 PM.
 
Old 07-26-2006, 07:54 AM   #453
knori
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
kernel upgrading

I created a new thread with this question, then I saw that probably was better to ask this question here....


I am trying to upgrade kernel of my old firewall (Slackware 9.1, 2.4.22) to new kernel.
After deflating tar, and after I changed the link, I tried make menuconfig, make xconfig and make oldconfig, always obtaining this answer.

HOSTCC scripts/fixdep
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.1/include/limits.h:122,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.1/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-slackware-linux/3.3.1/include/limits.h:11,
from scripts/fixdep.c:105:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
In file included from /usr/include/netinet/in.h:212, from scripts/fixdep.c:107:
/usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:193: error: (Each undeclared identifier is reported only once
scripts/fixdep.c:193: error: for each function it appears in.)
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts/fixdep] Error 2

I also tried to change gcc version and to find the files cited in the message, It seems that no real problem should raise.

Can someone help me?
 
Old 08-02-2006, 07:19 AM   #454
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
One note worthy of mention (now that it's blown up in my face)... There's a new option in the 2.6.x kernels which is on by default called "Optimize for code size (beware broken compilers!)".

PAY ATTENTION TO THE OUTPUT as the modules are built. If you see the word "Warning" appear referring to any kind of symbol mismatch, flush what you've built so far with `make clean` and then turn that option off or you will not be happy at all with what those modules will do. It appears that our gcc (3.3.6) is finally showing it's age.
 
Old 08-08-2006, 10:16 PM   #455
Cong Pham
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Hi, all
Can you help me?
I have a problem when I commanded "make" :

scripts/kconfig/conf -s arch/arm/Kconfig
# using defaults found in .config
#
SPLIT include/linux/autoconf.h -> include/config/*
CC scripts/mod/empty.o
fixdep: scripts/mod/.empty.o.d: No such file or directory
make[4]: *** [scripts/mod/empty.o] Error 2
make[3]: *** [scripts/mod] Error 2
make[2]: *** [scripts] Error 2
make[1]: *** [uImage] Error 2
make: *** [uImage] Error 2[/I]

And in my screen also many errors about "fixdep"
Do you think i don't have enough "tool compiling" or any thing else ?

Thank you very much.
 
Old 08-22-2006, 03:09 AM   #456
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
Can I omit make install?
Instead I want (and prefer) to manually copy kernel image,etc. to /boot
 
Old 08-22-2006, 03:48 AM   #457
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by hottdogg
Can I omit make install?
Instead I want (and prefer) to manually copy kernel image,etc. to /boot
yes, you can...
 
Old 08-22-2006, 08:04 AM   #458
nykey
Member
 
Registered: Nov 2003
Posts: 360

Rep: Reputation: 30
Quote:
Originally Posted by hottdogg
Can I omit make install?
Instead I want (and prefer) to manually copy kernel image,etc. to /boot
Actually I think that's the best way to go, by manually copying your kernel image, and the rest... at least I for one feel more comfortable and safe doing that :d.
 
Old 08-22-2006, 10:29 PM   #459
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
Ok ,tnx.
Is it ok that I already installed udev094 package(from http://slackware.it/pb/)
in my slackware 10.2?
Because linux kernel 2.6.17 Changes file says that udev071 is one of the minimum requirement.

btw, currently i use kernel 2.4.31.
 
Old 09-01-2006, 04:25 PM   #460
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
newbie to kernel compiling here.....

In all my years of using Linux, I have never compiled a kernel until now (I feel so dirty now! ). But anyways, I ran into a scenario with my Slack server that leaves me no choice to update the kernel. So I dug up some guides and stuff on how to compile the kernel (and even used some documentation from here) and now I am at a stand still. When I do a make bzlilo (someone recommended I do that over bzImage) I have been running into these sorts of errors:

Code:
net/ipv4/netfilter/ip_conntrack_core.c:1547: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [net/ipv4/netfilter/ip_conntrack_core.o] Error 1
make[2]: *** [net/ipv4/netfilter] Error 2
make[1]: *** [net/ipv4] Error 2
make: *** [net] Error 2
Any ideas?
 
Old 09-01-2006, 06:47 PM   #461
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
does the same error occur with bzImage??

BTW, what slackware version are you on?? what GCC version??

Last edited by win32sux; 09-01-2006 at 06:50 PM.
 
Old 09-01-2006, 08:13 PM   #462
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
Slack version is 10.2....not sure what the gcc version is, it's whatever came with it basically.

I should mention, and I don't know how, but I somehow managed to get through the compiling process without any errors, editted lilo, rebooted, tried selecting the new kernel (which did not show up in the lilo menu for some reason), and nothing happened but a nice big black screen. I am now back on the original Slack 10.2 kernel (2.4.31 ...yes I know...old), going to give this another go...and again, I can't seem to make it through any of the compiling process without some sort of error like I mentioned previously. I am about tempted to try it from a not as new kernel...like a 2.5 version or something to see if I may have better success with it. Or do you feel my gcc might need to be updated first?
 
Old 09-01-2006, 09:43 PM   #463
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
well, GCC in 10.2 was never updated after release, so what came on the CD is the most updated version for it... it's GCC 3.3.6 IIRC... so updating GCC shouldn't be necessary... maybe you can try reinstalling it...

i can confirm that 2.4 kernel compiles work fine for me on 10.2, though... been compiling 2.4 on 10.2 since 2.4.31 with no issues... i compiled 2.4.33.2 a few days ago on 10.2 with no problems... i'll be compiling 2.4.33.3 in a couple hours...

i'm not sure what's broken in your system, but something definitely is... do you get the same errors all the time, or do they vary?? i think segmentation faults can be a sign of bad RAM sometimes (anyone care to confirm that?)... is it possible for you to swap your RAM stick with a known-good one to see if it helps??

Last edited by win32sux; 09-01-2006 at 09:45 PM.
 
Old 09-01-2006, 10:10 PM   #464
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
A part of me wondered if there may have been some hardware issue.

The errors vary...previously it's like it would error on a certain file...then the next time it'd make it a little further then error...then one time it actually seemed to work. But something happened during the whole process and I had to reinstall. And then since the reinstall, I have been getting those errors again, except this time, it doesn't make it nearly as far as it used to.
 
Old 09-01-2006, 10:44 PM   #465
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
sounds like a RAM swapage (as a test) would be a good idea then...

and if you don't have extra RAM handy, then at the very least you could let memtest run a few passes and see how it goes: http://www.memtest.org/
 
  


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
Help - Need guide on how to (re)compile kernel in 9.2 timko SUSE / openSUSE 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

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

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