LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 03-11-2007, 06:38 PM   #1
NihilistMatt
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian GNU/Linux
Posts: 6

Rep: Reputation: 0
Problems making a livecd with kernel 2.6.20 (unable to open an initial console)


I'm trying to make my own LiveCD, from scratch, with little or no knowledge of Linux's internal workings. (Yeah, I know, a recipe for disaster ).

So far I've got a setup where I can make a bootable ISO with ISOLINUX, kernel 2.6.20, an initrd image containing busybox (and quite a bit of unneccessary stuff that I'd put on the CD proper if I knew how to find which device the CD was in and mount it) set as the root partition (read-writable), and test it with QEMU. What I don't have is a complete init script (what I do have is probably incorrect as it's a shell-script that echos and loads /bin/sh, not a SysV script) or any modules (though I compiled RAM, IDE and other stuff into the kernel).

When I load QEMU it seems to boot fine, until just after it loads the ramdisk, when it goes:

RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 224k freed
Warning: unable to open an initial console.


and hangs.
Setting init to /bin/sh doesn't do anything either.

I've googled this and found references to compiling Unix pty support into the kernel (which seems to be there), and devpts (which is in the source but I can't find it anywhere in the xconfig or menuconfig menus). That was for kernel 2.6.1 though (and I can't get menuconfig or xconfig to work with 2.6.1). I've also been told that I need /dev/console, /dev/tty0 and /dev/pts to be there in order for it to work, but I have no idea how to get this working or check it on a LiveCD which doesn't let me do anything upon booting.

Is there anything I've misssed (and there should be - I don't know anything about the way the kernel works, and I was hoping to learn by doing this LiveCD!)?

EDIT: Current fstab (in the initrd):

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/ram0       /               ext2    defaults        0       1
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/hdd        /media/cdrom1   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
none 		/dev/pts 	devpts 	mode=0620	0	0
#devpts          /dev/pts        devpts  gid=4,mode=620  0       0

Last edited by NihilistMatt; 03-11-2007 at 07:40 PM.
 
Old 03-12-2007, 12:01 PM   #2
NihilistMatt
LQ Newbie
 
Registered: Mar 2007
Distribution: Debian GNU/Linux
Posts: 6

Original Poster
Rep: Reputation: 0
I've uploaded the unfinished ISO should anyone want to look at it. It's at http://nihilistmatt.box43.net/dump/mzxlivecd.iso.tar.gz (and obviously in a tarball).

Don't waste any discs on this - it doesn't work, so just use bochs or something
 
  


Reply

Tags
console, kernel, livecd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic, Warning: unable to open an initial console while booting 2.6.16.40 prado Linux - Kernel 3 07-01-2009 04:00 PM
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Warning: unable to open an initial console, kernel panic aso blish_blash Linux - General 16 10-31-2004 03:45 PM
Kernel 2.6.0-test11 unable to open initial console graemec Debian 4 01-28-2004 12:26 PM
kernel probs 2.6.0-test6 unable to open initial console hollywoodb Linux - Newbie 0 10-07-2003 12:16 AM


All times are GMT -5. The time now is 11:46 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration