LinuxQuestions.org
Help answer threads with 0 replies.
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 10-17-2005, 04:23 PM   #1
mdt1024
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
PXEboot problem - boots w/ 2.4.31, not 2.6.13.


I apologize in advance if I've posted this to the wrong forum.

I'm having difficulty upgrading a pxebooted (syslinux) linux kernel from
version 2.4.31 to 2.6.13. Any 2.4.x kernel works fine, but nothing in the
2.6.x line does.

Here's how my pxebooted system boots:

1. PXE client loaded off boot rom DHCPs, gets ip configuration,
TFTP server address, and pxelinux bootloader filename.

2. PXE client TFTPs pxelinux.0, loads it into memory and jumps to it.

3. pxelinux.0 TFTPs syslinux config file, reads it, TFTPs an initrd
image specified in the kernel append line, loads the kernel and the
initrd image into memory, does more magic, then boots the linux kernel.

4. The linux kernel mounts it's /usr filesystem off the exported
read-only Debian /usr filesystem served from an NFS server.

5. The linux kernel mounts the initrd image as it's root filesystem, then
execs /linuxrc. linuxrc, a bash script, creates a tmpfs filesystem,
mounts it, uncompresses/untars a tarball out of /usr called
root.tar.gz. This is the client's root filesystem.

6. pivot_root is called to make the new tmpfs (dynamically sizeable
ramdisk) the new root filesystem. It is mounted read-write.

7. Booting continues (init scripts are called, etc.).

Between steps six and seven, within the linuxrc script, the following
lines are run:

1. # Switch roots and run init
2. cd /ram
3. echo 1 > /ram/fastboot
4. pivot_root . initrd
5. exec sbin/init "$@" <> /dev/console 2>&1

After line five is run w/ kernel v. 2.6.13 it hangs with the
following message on the console:

/linuxrc: /dev/console: Device not configured
Kernel panic - not syncing: Attempted to kill init!

Both the `stub' dev filesystem in my initrd has a /dev/console and so
does the NFS mounted root filesystem. FWIW, I config'd the 2.6.13 kernel
using `make oldconfig' from my 2.4.31 kernel, all drivers are compiled
into the kernel, and the Debian distro is Sarge.

TIA!

-mt
 
  


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
another boots only to windows problem the1wraith Fedora - Installation 2 10-30-2005 10:54 AM
pxeboot kickstart with upgraded drivers warrensomebody Red Hat 1 09-23-2005 12:06 PM
Redhat 7.2 PxeBoot network card compatibility ? aandre Linux - Hardware 2 06-06-2005 09:11 AM
Problems with console login on newly created root filesystem (for PXEboot) holandes777 Linux - General 1 08-05-2004 05:11 PM
dual boots................rather have rubber boots metal_monster Linux - Newbie 1 01-13-2004 12:24 PM

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

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