Re: Kernel Panic Help

2011-06-01 Thread Mike McCarty
bsquared wrote:
> Hello,
> 
> Can anyone recommend some resources for troubleshooting a kernel panic.
> 
> I have been built LFS 6.8 on a USB stick, and moved it to a disk
> partition using 'dd'.  I modified the grub.cfg file and rebooted.
> Then got a kernel panic.

Usually, kernel panics have some explanatory text surrounding them.

One common cause of panics is not having a necessary driver built
into the kernel. When the kernel tries to look for files, and doesn't
have drivers enabling it to mount '/', it can't proceed.

It could be that you have the drivers necessary to read the USB
stick, but not the disc drive you have on your machine which
the kernel wants to be '/'.

Anyway, posting some information here about the panic is probably
a very good first step, because there are people here with
experience dealing with kernel boot panics and common causes.

Mac
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: setclock Question (lfs-bootscripts-21010424)

2011-06-01 Thread Nathan Coulson
On Thu, Apr 28, 2011 at 1:04 PM, bsquared  wrote:
> On Thu, Apr 28, 2011 at 10:56 AM,   wrote:
>> Apr 28, 2011 01:14:02 PM, Brian wrote:
>>> I may have the same problem,
>>> ...
>>> if I manually run 'setclock start' time is correct.
>>
>> You seem to go in the same direction as I;
>> setclock has to be activated automatically.
>> Check your /etc/rc.d/rcsysinit.d/
>> See if _you_ have something like
>> Sxxsetclock -> ../init/setclock
>>
>> Like I said, I no longer see this trigger symlink,
>> thus the puzzlement expressed in my OP,
>> and the implicit pleading for help and clarification.
>>
>> Before Easter (20110424) it had been there
>> (it still is, but added by me as a courtesy  to myself)
>>
>> Greetings,
>> -- Alex
>>
>> --
>> http://linuxfromscratch.org/mailman/listinfo/lfs-support
>> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
>> Unsubscribe: See the above information page
>>
>
> Your message reminded me to look into it and here's what I found...
>
> excerpt from "http://www.linuxfromscratch.org/hints/downloads/files/time.txt";
>
> ~   Next are the symlinks. The symlink to run the setclock script is already
> ~ present in /etc/rc.d/rc.sysinit.d, so the only symlinks we have to create 
> are
> ~ the ones to run setclock when the system shuts down:
> ~
> ~       # ln -s ../init.d/setclock /etc/rc.d/rc0.d/K45setclock &&
> ~       # ln -s ../init.d/setclock /etc/rc.d/rc6.d/K45setclock
> ~
> ~   At this point, the boot scripts are correctly set up and the only thing
> ~ that's left to configure is the TZ environment variable.
>
> However, I do not find " /etc/rc.d/rc.sysinit.d".  I do find
> /etc/rc.d/rcsysinit.d, but there is no link to setclock.  What is the
> value/run level for start?  Apparently this script was in LFS at some
> time, I wonder what happened.
> --
> Thank you,
> -Brian
> --

I believe it was modified to load via udev, when the /dev/rtc0 module
is loaded.  (not sure how it works when the rtc is builtin)

-- 
Nathan Coulson (conathan)
--
Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Kernel Panic Help

2011-06-01 Thread Nathan Coulson
On Wed, Jun 1, 2011 at 8:15 PM, bsquared  wrote:
> Hello,
>
> Can anyone recommend some resources for troubleshooting a kernel panic.
>
> I have been built LFS 6.8 on a USB stick, and moved it to a disk
> partition using 'dd'.  I modified the grub.cfg file and rebooted.
> Then got a kernel panic.
>
> --
> Thank you,
> -Brian
> --

usually the reason it would panic in this case, is a wrong boot
device, or that the boot device is not yet loaded, or the driver is
not builtin.

One gotcha, is usually usb is detected later in the kernel boot.
(after the part it mounds /)

When debugging (or usb booting) I usually add rootwait, which waits
until the root device is avaliable.  (And a bonus feature, since it
has yet to panic, you can scroll up/down using shift pageup/down).
You can read the log and find out what is detected, and where.

other commands can be found at
/usr/src/linux-*/Documentation/kernel-parameters.txt [or just grab a
kernel and extract it].

-- 
Nathan Coulson (conathan)
--
Location: British Columbia, Canada
Timezone: PST (-8)
Webpage: http://www.nathancoulson.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Kernel Panic Help

2011-06-01 Thread bsquared
Hello,

Can anyone recommend some resources for troubleshooting a kernel panic.

I have been built LFS 6.8 on a USB stick, and moved it to a disk
partition using 'dd'.  I modified the grub.cfg file and rebooted.
Then got a kernel panic.

-- 
Thank you,
-Brian
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page