LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-03-2004, 12:18 PM   #1
azul79
Member
 
Registered: Jul 2004
Location: Argentina
Distribution: slackware
Posts: 39

Rep: Reputation: 15
Angry Kernel Panic @booting !


hi!!
i just compiled kernel 2.2.26 on my slck 9.0..
i also have a 2.4.27 kernel version... but i need 2.2.26 to use the rarp support..
after compiling the new kernel (2.2.26) i rebooted and KERNEL PANIC occured..
this is the message i get:

Unable to handle kernel NULL pointer deference of virtual address [ ... couple of things.. ]
...
Kernel panic : attempted to kill the idle task!
In swapper task - not synicing.

googling aroound.. i found lot of threads saying that it is a hardware problem.. though mi 2.4.27 kernel version doesnt get panic at booting time!! thats why i thing it might be sth misconfigured...
im a newbie so to configure 2.2.26 kernel.. i just copied the .config file of 2.4.27 kernel into linux-2.2.26 and made
make oldconfig
it asked me for a couple of things that the other kernel didnt have.. and i selected the default answer there..


any idea what can be wrong?
thanks!
__________
 
Old 09-06-2004, 08:14 AM   #2
azul79
Member
 
Registered: Jul 2004
Location: Argentina
Distribution: slackware
Posts: 39

Original Poster
Rep: Reputation: 15
any idea?
 
Old 09-06-2004, 08:20 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I never tried to use oldconfig when downgrading a kernel (from 2.4.27 to 2.2.26 in your case).
Could be that this will not work.

Try setting the options 'by hand' (make menuconfig) without the make oldconfig step. Ok, you need to do a bit more, but the end result might be a bootable kernel that will not panic.

Just out of curiousity: Why are you going back to a 2.2.26 kernel?

Hope this helps.
 
Old 09-06-2004, 08:33 AM   #4
azul79
Member
 
Registered: Jul 2004
Location: Argentina
Distribution: slackware
Posts: 39

Original Poster
Rep: Reputation: 15
hi! thanks for answer!
the thing is that i need to netboot a sparc station.. so i need rarpd ..
2.4.x kernels dont support rarp any more.. apparently is userland..
i tried that by downloading rarpd.. but it gives me an error that i couldnt fix.. ( rarpd needs libpcap and libnet.. i downloaded both of them.. but when i run ./configure for rarpd it doesnt find libnet libraries.. despite they are there!! its quite strange.. i got crazy with that...so i decided to downgrade to kernel 2.2.x which supports rarp)..
i'm gonna tried what u said and let u know..
thanks!

Last edited by azul79; 09-06-2004 at 09:58 AM.
 
Old 09-06-2004, 08:54 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Mmmm........ I think you can keep your current 2.4.X kernel, take a look at these options (from a 2.4.26 kernel, don't know if 2.4.27 has these):

Kernel level IP autoconfiguration
CONFIG_IP_PNP
This enables automatic configuration of IP addresses of devices and
of the routing table during kernel boot, based on either information
supplied on the kernel command line or by BOOTP or RARP protocols.
You need to say Y only for diskless machines requiring network
access to boot (in which case you want to say Y to "Root file system
on NFS" as well), because all other machines configure the network
in their startup scripts.

BOOTP support
CONFIG_IP_PNP_BOOTP
If you want your Linux box to mount its whole root file system (the
one containing the directory /) from some other computer over the
net via NFS and you want the IP address of your computer to be
discovered automatically at boot time using the BOOTP protocol (a
special protocol designed for doing this job), say Y here. In case
the boot ROM of your network card was designed for booting Linux and
does BOOTP itself, providing all necessary information on the kernel
command line, you can say N here. If unsure, say Y. Note that if you
want to use BOOTP, a BOOTP server must be operating on your network.
Read <fileocumentation/nfsroot.txt> for details.

RARP support
CONFIG_IP_PNP_RARP
If you want your Linux box to mount its whole root file system (the
one containing the directory /) from some other computer over the
net via NFS and you want the IP address of your computer to be
discovered automatically at boot time using the RARP protocol (an
older protocol which is being obsoleted by BOOTP and DHCP), say Y
here. Note that if you want to use RARP, a RARP server must be
operating on your network. Read <fileocumentation/nfsroot.txt> for
details.

Your current 2.4.X kernel should be able to use RARP/BOOTP.

Hope this helps.
 
Old 09-06-2004, 09:55 AM   #6
azul79
Member
 
Registered: Jul 2004
Location: Argentina
Distribution: slackware
Posts: 39

Original Poster
Rep: Reputation: 15
hi !
my networking options are set as u said..

# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
CONFIG_NETLINK_DEV=m
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
CONFIG_FILTER=y
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y
CONFIG_NET_IPIP=m
CONFIG_NET_IPGRE=m
CONFIG_ARPD=y
# CONFIG_INET_ECN is not set
CONFIG_SYN_COOKIES=y


the snag was that everytime i run rarp -a it told me this:

azul@dodo:~$ /sbin/rarp -a
This kernel does not support RARP.

see? despite being set.. kernel does not support it..
i read that @2.4.27 rarp is part of the tcpip pck.. but i dont know where to find it.. and how to use it..
i' m a newbie getting crazy!

is there sth i can do to fix this?
thanks for your help!
 
Old 09-06-2004, 10:16 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Just tried out the rarp -a command and I get the same result (not supported).

Also read (man rarp) that you need libnet. You also mention it, but not if you actually installed it (the ./configure - make - make install bit). They also mention that you need libnet 1.1 (or better).

Could you post the output (the part that goes wrong) that ./configure (from rarp) produces?

Just in case:

First install:
libnet1.1.2.1 (stable) - http://www.packetfactory.net/libnet/

Then:
rarpd1.1 - ftp://ftp.dementia.org/pub/net-tools/

You might end up missing some other tools, 'just' get them, install them and (re)install rarpd.

Another tip: Always start with a fresh (rarpd) install after you changed things. These 'things' could be: different ./configure options and/or newly installed dependencies for rarpd.

Run make clean or remove the rarpd source dir and unpack again before you do a .configure
 
Old 09-06-2004, 10:30 AM   #8
azul79
Member
 
Registered: Jul 2004
Location: Argentina
Distribution: slackware
Posts: 39

Original Poster
Rep: Reputation: 15
hi!!
yes i did installed libnet 1.1.2.1 and also libpcap..
both of them ( i run ./configure , make , make install) everything!
then i run rarpd and this is what happens

root@dodo:/usr/local/src/rarpd-1.1# ./configure
..
checking for libnet library in /usr/ng/lib... not found
checking for libnet library in /usr/lib... not found
checking for libnet library in /usr/local/lib... not found
checking for libnet header in /usr/ng/include... not found
checking for libnet header in /usr/include... found
checking whether to include libnet... no
updating cache ./config.cache
creating ./config.status
creating Makefile

as u can see rarpd decides not to include libnet 'cause it doesnt find it library (libnet.a) which is @/usr/local/lib and i also copied it to /usr/lib.. to see if that works.. but nop
so when i run make for rarpd it gives me this output:

root@dodo:/usr/local/src/rarpd-1.1# make
gcc -g -O2 -I/usr/include -DPACKAGE=\"\" -DVERSION=\"\" -DSTDC_HEADERS=1 -DHAVE_NET_IF_ARP_H=1 -DHAVE_PCAP_NAMEDB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_PATHS_H=1 -c rarpd.c -o rarpd.o
rarpd.c: In function `process_arp':
rarpd.c:341: structure has no member named `ar_sha'
rarpd.c:342: structure has no member named `ar_spa'
rarpd.c:343: structure has no member named `ar_tha'
rarpd.c:344: structure has no member named `ar_tpa'
rarpd.c: In function `main':
rarpd.c:456: warning: assignment makes pointer from integer without a cast
make: *** [rarpd.o] Error 1

i looked for "ar_sha" and it is @ /usr/include/net/if_arp.h
rarpd script includes this library
the path to this library is also @/etc/ld.so.conf .. so the problem is not there..

i tried by telling libpcap libnet and rarp the option of installing independencies @/usr with the option
./configure -prefix=/usr
and every time i changed sth.. i removed rarpd's config.cache file to read for new changes..
so after trying a lot of different options.. and pahts.. for libraries.. i gave up and decided to compile 2.2.26 which is supposed to support rarpd..
but.. it gave me a kernel panic as i told u..
and there.. . we go back to the top

thanks for your help!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to compile 2.6.8 getting Kernel Panic when booting Tristor Red Hat 2 01-13-2005 01:35 AM
Kernel Panic during Debian booting xterminator890i Linux - Laptop and Netbook 1 06-03-2004 06:30 PM
Problem booting up new kernel. Kernel panic error... RHLinuxGUY Red Hat 2 04-11-2004 04:59 AM
Kernel panic while booting with 2.6.3 duzhenhuan Debian 2 03-15-2004 06:50 AM
kernel panic when booting 2.4.22 doncrawley Linux - Newbie 1 09-28-2003 11:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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