Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[mini-HowTo] Gentoo Linux LiveCD for Dummies!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 19, 20, 21  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Mon Nov 29, 2004 4:53 pm    Post subject: Reply with quote

'new' is in the initrd image. 'newroot' is in source folder, it's used to pivot the root (the last few lines in linuxrc script).

Coming to think of it, it's a bit confusing. I should have used names like 'newroot' and 'oldroot' instead of 'newroot' and 'new'. :oops:

Good luck
Back to top
View user's profile Send private message
neilhwatson
l33t
l33t


Joined: 06 Feb 2003
Posts: 719
Location: Canada

PostPosted: Tue Nov 30, 2004 3:52 pm    Post subject: Reply with quote

My live CD works. I now have a working router on CD (an alpha version anyway). I still notice an error at boot:
Code:

can't open /etc/fstab: input/output error


Still the system boots and seems to run fine. I just don't understand the error.
_________________
The true guru is a teacher.
Neil Watson
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Tue Nov 30, 2004 5:28 pm    Post subject: Reply with quote

This error is created by the mount program in the initrd. In the initrd is no fstab needed, but to hide the error you can make an empty one. (just using "touch fstab")

Good luck,
Frank
_________________
http://techfield.org
Back to top
View user's profile Send private message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Wed Dec 01, 2004 10:12 pm    Post subject: Reply with quote

Did anyone figure out how to keep the cd spinning to make it more responsive?

Thanks,
Back to top
View user's profile Send private message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Wed Dec 01, 2004 10:27 pm    Post subject: Reply with quote

I added 'touch etc/fstab' and 'touch etc/mtab' to the initrd building section. This should suppress mount messages.

Also added a small tip about using 'init=/bin/sh' instead of 'init=/linuxrc' for troubleshooting.

I don't think the mini-HowTo should cover any issues related to installing Gentoo since it's just the standard way which is covered everywhere :)

Haven't tried GCC 3.4 with this yet. If anyone tried and has some tips to work around errors, please let me know so I can add it.

Any other tips to improve are appreciated.
Back to top
View user's profile Send private message
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1143
Location: Williamsburg Virginia

PostPosted: Thu Dec 02, 2004 3:39 pm    Post subject: Reply with quote

vezzi wrote:
Quote:
Haven't tried GCC 3.4 with this yet. If anyone tried and has some tips to work around errors, please let me know so I can add it.


seems to be fine... i used nptl in USE and after bootstrap from a stage1 added "~x86" to make.conf and am using gcc-3.4.3 and linux26-headers.... but then i've used "~x86" or "~amd64" on all my boxen since ~arch was created.

the trouble i had earlier with gcc-config was fixed upstream so it should all be ok now.

vezzi i am however having trouble getting past the linuxrc script after recompiling the kernel to add splash... passing init=/bin/sh is failing too.

the errors are,
Code:
linuxrc: line 34: cd: /new/var: No such file or directory
linuxrc: line 35: cd: /new/etc: No such file or directory
linuxrc: line 36: cd: /new/root: No such file or directory
linuxrc: line 41: dev/console: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
any clue what i need to do differently after compling a new kernel?
Back to top
View user's profile Send private message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Thu Dec 02, 2004 5:45 pm    Post subject: Reply with quote

Nice to hear that gcc 3.4 is fine. Guess I have to try it :D

For splash, if it's the old bootsplash you're using, then it should be no problem. Just append the splash image to your initrd (a simple cat).

I haven't tried the newer gensplash from spock (http://dev.gentoo.org/~spock/. But, my understanding is that the initrd image in this case is not just a simple splash, but rather a fs image just like the one we create for the livecd. So, you'd need to figure out how to merge both. More details in spock's web site.

Cheers,
Back to top
View user's profile Send private message
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1143
Location: Williamsburg Virginia

PostPosted: Thu Dec 02, 2004 11:56 pm    Post subject: Reply with quote

well i am using the splashutils pkg since anything after 2.6.7 or 8 no longer uses bootsplash.... but that isnt the problem i am having. it loads the splash image just fine but i get the errors i posted above which result in a kernel panic.. when you recompile your kernel and add a new feature do you recreate the initrd image?
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Sat Dec 04, 2004 6:56 am    Post subject: Libperl Reply with quote

I had trouble with a
Code:
test -s perlmain.c && touch perlmain.c
cd x2p; make depend
make[1]: Entering directory `/var/tmp/portage/libperl-5.8.3/work/perl-5.8.3/x2p'
makefile:157: *** target pattern contains no `%'. Stop.
make[1]: Leaving directory `/var/tmp/portage/libperl-5.8.3/work/perl-5.8.3/x2p'
make: *** [depend] Error 2
error while doing this with a 2004.3 stage 2 tarball.

The solution was to
Code:
cd livecd/source
mount -o bind /dev dev
before chrooting. I hope that helps others.
Back to top
View user's profile Send private message
BodOrange
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2003
Posts: 132

PostPosted: Sun Dec 05, 2004 4:24 pm    Post subject: grub error [solved] Reply with quote

This is my first attempt at creating a livecd. I have two problems so far. One is compiling acx100 drivers whilst in the chroot environment but first is booting the livecd. I'm testing using vmware using the livecd.iso as a virtual cdrom. After selecting the entry in grub menu, I get
Code:
Error 2: Bad file or directory type


My grub.conf
Code:
default 0
timeout 5
splashimage=(cd)/boot/grub/splash.xpm.gz

title Gentoo Linux
        root (cd)
        kernel (cd)/boot/vmlinuz root=/dev/ram0 rw init=/linuxrc cdroot
        initrd (cd)/boot/initrd


I think the initrd is ok. I can mount it ok and check the contents at any rate. I have default ramdisk size as 8192 in the kernel config and initrd is 8MB and is 2.5MB full when mounted.

Any idea what I need to check?

Thanks for any help.

[EDIT]
I had symlinked vmlinuz to the kernel in boot. Having specified the actual kernel rather than the symlink, it now works.
Back to top
View user's profile Send private message
TanNewt
Retired Dev
Retired Dev


Joined: 26 Mar 2004
Posts: 340
Location: Seattle, WA

PostPosted: Mon Dec 06, 2004 4:58 am    Post subject: Reply with quote

I'm having trouble with booting the cd. It gives me an error saying that dev/console is read-only and then a kernel panic saying its not syncing and attempted to kill init.

Any advice would be greatly appreciated.
Back to top
View user's profile Send private message
Gatta
n00b
n00b


Joined: 28 Mar 2004
Posts: 53

PostPosted: Mon Dec 06, 2004 4:20 pm    Post subject: Questions Reply with quote

What percentage of system RAM should the ramdisks (the four 32MB ones) be?
How much does SquashFS compress the system by (aka-how large can the livecd/ directory be)?
What modifications do you need to make a LiveDVD (if you can)? Just change iso9660 support to DVD support?
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Mon Dec 06, 2004 11:44 pm    Post subject: Reply with quote

Would this method work for a CD I want to create ... I want to create a super small CD that just contains DHCP and TFTP. I don't want X, I don't want portage, I don't want cd burners, music players, text based browsers, gui anything, etc...

I just want a bootable DHCP+TFTP server that also has a directory for some other files I need. I have some headless (no video card, keyboard, or mouse), embedded computers that can only boot via the network for their initial setup. Once they are setup, they boot from their own internal media. I only need to set one of these boxes up every now and then so I don't really want to have an extra DHCP and TFTP server running on my Desktop.

It would be awesome to have a CD that I could just stick in my laptop, and then use a cross over network cable to the embedded box so I could boot it up and install the image files.

But in following your directions, the first thing I notice is the enormity of the build directory. I don't see a point in the instructions where I create an empty /mnt/mydistro directory tree, and then populate it with only the stuff I want.

I don't mind starting with a 5 or 10 megabyte base system that gives me a sane starting point. Such as common /bin and /sbin files the necessary /libs and other files to go along with them. And then from there I add the DHCP server and TFTP server.

But I don't want to start with a multi gigabyte "build" system and then cut out what I don't need. That would take forever.

Am I barking up the wrong tree with these directions? Should I look elsewhere?

Also, while attempting to follow your directions anyway ... hoping that I would get to a point of understanding where I could then adapt your directions to fit my own needs ... I run into this problem when I do an emerge system.

Code:
Finding dependencies for perlmain.o.
make[1]: Entering directory `/var/tmp/portage/libperl-5.8.4-r1/work/perl-5.8.4'
echo Makefile.SH cflags.SH config_h.SH makeaperl.SH makedepend.SH makedir.SH myconfig.SH writemain.SH pod/Makefile.SH | tr ' ' '\n' >.shlist
make[1]: Leaving directory `/var/tmp/portage/libperl-5.8.4-r1/work/perl-5.8.4'
Updating makefile...
test -s perlmain.c && touch perlmain.c
cd x2p; make depend
make[1]: Entering directory `/var/tmp/portage/libperl-5.8.4-r1/work/perl-5.8.4/x2p'
makefile:157: *** target pattern contains no `%'.  Stop.
make[1]: Leaving directory `/var/tmp/portage/libperl-5.8.4-r1/work/perl-5.8.4/x2p'
make: *** [depend] Error 2

!!! ERROR: sys-devel/libperl-5.8.4-r1 failed.
!!! Function src_compile, Line 218, Exitcode 2
!!! Couldn't make libperl.so depends
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Tue Dec 07, 2004 12:01 am    Post subject: Reply with quote

Count up 4 post before yours blixel for the libperl fix :wink:
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Tue Dec 07, 2004 3:52 am    Post subject: Reply with quote

hielvc wrote:
Count up 4 post before yours blixel for the libperl fix :wink:


did that ... more errors followed ... bah ... I don't think this is what I'm looking for. It just has a weird vibe about it. For what I want, this howto feels like I'm trying to repair a loose shingle on my roof by tearing the house down and building a 10 story hotel in its place. Overkill.
Back to top
View user's profile Send private message
_SkeLeToN_
Guru
Guru


Joined: 12 Sep 2002
Posts: 506
Location: Montreal,Canada

PostPosted: Wed Dec 08, 2004 6:14 am    Post subject: Reply with quote

Hi,

I'm in the proces of making a livecd using this nice howto. What I'm trying to do is more a maintenance livecd and I need to have the auto-probing hardware like knoppix or Gentoo livecd.

I searched gentoo forum but didn't found what I was looking for. I looked at detect for hardware probing but the on in portage segfault when I try running it ...

Anyone can point me out where I could have more info ?
Back to top
View user's profile Send private message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Wed Dec 08, 2004 6:33 pm    Post subject: Reply with quote

_SkeLeToN_ wrote:
Hi,

I'm in the proces of making a livecd using this nice howto. What I'm trying to do is more a maintenance livecd and I need to have the auto-probing hardware like knoppix or Gentoo livecd.

I searched gentoo forum but didn't found what I was looking for. I looked at detect for hardware probing but the on in portage segfault when I try running it ...

Anyone can point me out where I could have more info ?

You could start with the initrd image used in Gentoo's LiveCD. Look at the scripts inside it. You might find something useful.
Back to top
View user's profile Send private message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Wed Dec 08, 2004 6:37 pm    Post subject: Reply with quote

blixel wrote:
hielvc wrote:
Count up 4 post before yours blixel for the libperl fix :wink:


did that ... more errors followed ... bah ... I don't think this is what I'm looking for. It just has a weird vibe about it. For what I want, this howto feels like I'm trying to repair a loose shingle on my roof by tearing the house down and building a 10 story hotel in its place. Overkill.

You might find Dman Small Linux (DSL) usefull http://www.damnsmalllinux.org.
Back to top
View user's profile Send private message
skipsargent
n00b
n00b


Joined: 15 Nov 2004
Posts: 11

PostPosted: Thu Dec 09, 2004 5:49 pm    Post subject: Reply with quote

_SkeLeToN_ wrote:
Hi,

I'm in the proces of making a livecd using this nice howto. What I'm trying to do is more a maintenance livecd and I need to have the auto-probing hardware like knoppix or Gentoo livecd.

I searched gentoo forum but didn't found what I was looking for. I looked at detect for hardware probing but the on in portage segfault when I try running it ...

Anyone can point me out where I could have more info ?



Try using Coldplug for your hardware detection. For detecting things like your monitor and video take a look at the ddcxinfo-knoppix package.
Back to top
View user's profile Send private message
videoman
n00b
n00b


Joined: 20 Dec 2004
Posts: 1

PostPosted: Mon Dec 20, 2004 5:32 am    Post subject: framebuffer Reply with quote

Hi,
I have created a bootable CD based on these instructions.
I can't get framebuffers to work.
I can get a splashscreen, but I can't seem to set a videomode.
I tried adding
vga= (various modes)
and
video= (various settings)
to the end of the kernel line
but no matter what I put the setting seems to be ignored.
Any ideas?
thanks
Back to top
View user's profile Send private message
BodOrange
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2003
Posts: 132

PostPosted: Thu Dec 23, 2004 2:52 pm    Post subject: Building external kernel modules in chroot environment Reply with quote

I'm trying to build a livecd image and all works fine apart from when I try to build acx100 drivers. I can build these when booted up in the livecd but want to build them in the chroot environment.

The kernel on the system on which I am creating the livecd is different to the one I have chosen for the livecd. Whilst chrooted in the livecd directory, when I try to compile the acx100 module I get the warning about kernel source not matching the running kernel, so the prebuild checks and compile won't work. How would I make the acx100 build use the livecd kernel config?

Thanks for any help.
Back to top
View user's profile Send private message
Kampi
n00b
n00b


Joined: 05 Apr 2003
Posts: 20
Location: Vienna, Austria, Europe

PostPosted: Tue Dec 28, 2004 3:57 pm    Post subject: Reply with quote

to build the bin and lib directory for the initrd, is use the following script, because finding the libs is painstaking. its a bit dirty, but it works for me. in the chroot environment:

Code:

#!/bin/sh

for x in sh ls cat mount umount mkdir chroot tar
do
   cp -v /bin/${x} /mnt/initrd/bin
done

cp -v /sbin/pivot_root /mnt/initrd/bin

cd /lib
for x in sh ls cat mount umount mkdir chroot tar
do
   cp -v `ldd /bin/${x}|egrep lib|cut -d "=" -f1` /mnt/initrd/lib
done

cp -v `ldd /sbin/pivot_root|egrep lib|cut -d "=" -f1` /mnt/initrd/lib
Back to top
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Wed Dec 29, 2004 6:58 pm    Post subject: Reply with quote

Hello and thanks to Veezi .
That's a very good job you done :P

Well I sucess to build an image and boot on it , but durçing the boot process I get this error :

Code:

RAMDISK : Could'nt find calid RAM disk image Starting at 0
freeing initrd 8192 K freed
Kernel panic : VFS Unable to mount root fs on 01:00


And the unit hang .
Could somebody give me some advises ?

my grub
Code:

default 0
timeout 5
splashimage=(cd)/boot/grub/splash.xpm.gz

title=Boot CD Linux-2.4.26
root (cd)
kernel (cd)/boot/vmlinuz video=vesafb:800x600-16 root=/dev/ram0 rw init=/linuxrc cdroot
initrd (cd)/boot/initrd
Back to top
View user's profile Send private message
veezi
Apprentice
Apprentice


Joined: 10 Nov 2003
Posts: 226

PostPosted: Sat Jan 01, 2005 6:07 pm    Post subject: Reply with quote

vibidoo wrote:
Hello and thanks to Veezi .
That's a very good job you done :P

Well I sucess to build an image and boot on it , but durçing the boot process I get this error :

Code:

RAMDISK : Could'nt find calid RAM disk image Starting at 0
freeing initrd 8192 K freed
Kernel panic : VFS Unable to mount root fs on 01:00


And the unit hang .
Could somebody give me some advises ?

my grub
Code:

default 0
timeout 5
splashimage=(cd)/boot/grub/splash.xpm.gz

title=Boot CD Linux-2.4.26
root (cd)
kernel (cd)/boot/vmlinuz video=vesafb:800x600-16 root=/dev/ram0 rw init=/linuxrc cdroot
initrd (cd)/boot/initrd

Check your initrd image. Mount it on a loop device just to make sure it works. Check it's size (your kernel has a max 8MB initrd size set). Check that its filesystem type (ext2 in the howto) is compiled in your kernel (The one you boot the CD with).
Back to top
View user's profile Send private message
vibidoo
Guru
Guru


Joined: 27 Nov 2002
Posts: 409

PostPosted: Sun Jan 02, 2005 1:46 pm    Post subject: Reply with quote

Hello Veezi

and thanks for your help for this new year :lol:

Well I have done modification .
That resolve somme issue but other issue are comming .

Now on boot I get :


Code:

RAMDISK : ext2 filesystem found at block 0
RAMDISK : Loading 8192 blocks [1 disk] into ramdisk... done
Freeing initrd memory : 8192 freed
VFS: Mounted root (ext2 filesystem)
freeing unused Kernel memory : 112k freed
Kernel panic : No init found try passing init= option to kernel .



I have mount the initrd file in a loop device :
Code:

ls /mnt/loop0 -l
total 21
drwxr-xr-x    2 root     root         1024 Dec 29 22:15 bin
drwxr-xr-x    2 root     root         1024 Dec 29 22:03 cdrom
drwxr-xr-x    2 root     root         1024 Dec 29 22:18 dev
drwxr-xr-x    2 root     root         1024 Dec 29 22:03 etc
drwxr-xr-x    2 root     root         1024 Dec 29 22:12 lib
-rwxr-xr-x    1 root     root         1072 Dec 29 22:20 linuxrc
drwx------    2 root     root        12288 Dec 29 22:01 lost+found
drwxr-xr-x    2 root     root         1024 Dec 29 22:03 new
drwxr-xr-x    2 root     root         1024 Dec 29 22:03 proc



:? [/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 19, 20, 21  Next
Page 6 of 21

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum