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 ... 11, 12, 13 ... 19, 20, 21  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Jerri
Guru
Guru


Joined: 03 Apr 2003
Posts: 353

PostPosted: Thu Mar 10, 2005 7:12 pm    Post subject: Reply with quote

MixMax, much obliged for you assistance...

but.. :)

I'm haing troubles with grub, after burning the cd, I reboot, grub loads, and then i'm left with a "Minimal BASH-like editing.."

I'm not quite sure how to procede, as it doesn't give me any errors, it doesn't crash, or hang, it just sits there. There are a number of help commands, but none of them do anything (like boot/kernel/ can't recall any of the others). Yeah, so, i'm not terribly familiar with grub (i have never used it before) but if anyone has any ideas on how I should go about diagnosing the problem.. i'm all ears.
Back to top
View user's profile Send private message
Farkenell
Tux's lil' helper
Tux's lil' helper


Joined: 05 Dec 2003
Posts: 88

PostPosted: Thu Mar 10, 2005 9:41 pm    Post subject: Reply with quote

its probably because of your linuxrc script off the initrd image ;)
/mnt/linuxrc (I think)

u can remount it without having to redo it which was what I was doin :oops:
mount -o loop /boot/initrd /mnt/linuxrc

the problem I think it is, its not finding the cdrom

/mnt/linuxrc
Code:

# CD not found
if [ "${CDROM}" == "" ]
then
  exec /bin/sh
  exit
fi


which is giving you a limited bash which have only the functions of the stuff you copied to /bin in the initrd ;)
you should check that
- you have the proper libraries copied over for each file in the /bin

Code:

ldd /bin/mount   
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/libc.so.6 (0x4002e000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
cp /lib/libc.so.6 /mnt/initrd/lib/
cp /lib/ld-linux.so.2 /mnt/initrd/lib/


then you would do it through each of the files you copied into /bin
Code:

ldd /bin/sh
etc


the other thing is it isn't finding the cdrom...
which is the problem I was having for a few days....if you check my post the previous page it has the fix that someone has already posted....
also it could be you haven't compiled iso9660 support into the kernel (then the kernel won't recognise the cdrom)
Back to top
View user's profile Send private message
MixMax
n00b
n00b


Joined: 28 Jan 2005
Posts: 73
Location: Finland

PostPosted: Thu Mar 10, 2005 10:36 pm    Post subject: Reply with quote

Try using grub version 0.95.20040823 ;)
Back to top
View user's profile Send private message
Jerri
Guru
Guru


Joined: 03 Apr 2003
Posts: 353

PostPosted: Fri Mar 11, 2005 3:36 am    Post subject: Reply with quote

ok... so it works (sort of)

I have made a little progress with grub, but i'm still having some serious issues trying to get this thing to work (properly). I guess it might be easiest to specify each problem in a list and then include all the appropriate config / scripts at the end. The two scripts are used to create the initrd image, and create ISO livecd image.

1) grub will not boot automatically, i have to manully specify the paramters. It always drops me into grubs command shell...
Code:
    GNU GRUB  version 0.94  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub>

2) I get a kernel panick if i try to specify init=/linuxrc, however, if i specify init=/bin/sh and then manually run 'sh linuxrc' it works... :roll:
Code:
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 344k freed
Kernel pnaic - not syncing: No init found.  Try passing init= option to kernel


Here is a peek at the initrd directory, so it appears that linuxrc is there... but, i dunno :(
Code:
[root][/mnt/storage/livecd/source/mnt/initrd]: ls -l
total 21
drwxr-xr-x  2 root root  1024 Mar 10 22:30 bin
drwxr-xr-x  2 root root  1024 Mar 10 22:30 cdrom
drwxr-xr-x  2 root root  1024 Mar 10 22:30 dev
drwxr-xr-x  2 root root  1024 Mar 10 22:30 etc
drwxr-xr-x  2 root root  1024 Mar 10 22:30 lib
-rwxr-xr-x  1 root root  1038 Mar 10 22:30 linuxrc
drwx------  2 root root 12288 Mar 10 22:30 lost+found
drwxr-xr-x  2 root root  1024 Mar 10 22:30 new
drwxr-xr-x  2 root root  1024 Mar 10 22:30 proc

3) I can't specify cdroot and the grub command shell when typing in the paramters for kernel, this results in a kernel panick (this happens with both init=/linuxrc and init=/bin/sh) and I'm not even sure what cdroot is supposed to do.. I haven't found any relevent documentation for that one...
Code:
cdroot: cdroot: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

4) I can't reboot or shutdown the system
Code:
sh-2.05b#shutdown-r now
init: /dev/initctl: No such file or directory

sh-2.05b#reboot
Wanring: could not determine runlevel doing soft reboot


5) The section in linuxrc that executes /sbin/init, doesn't do anything except this:
Code:
Usage: init 0123456SsQqAaBbCcUu


again, not sure why it is necessary, or what its intended for...

Any ideas on how to fix these, i'm all ears... for number 4, i thought of just copying /dev/initctl from my workingin system, to the livecd dev directory.. don't know if that is a good idea or not..

Oh, and i'm running version: GNU GRUB 0.96

configs:
Code:
# grub.conf
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
initrd (cd)/boot/initrd


linuxrc:
Code:

#!/bin/sh
export PATH=/bin

# Get kernel CMDLINE
mount -t proc none /proc
CMDLINE=`cat /proc/cmdline`
umount /proc

# Mount CD device
CDROM=""
for x in hda hdb hdc hdd
do
  mount -t iso9660 -r /dev/${x} /cdrom > /dev/null 2>&1
  if [ "$?" = "0" ]
  then
    CDROM="${x}"
    break
  fi
done

# CD not found
if [ "${CDROM}" == "" ]
then
  exec /bin/sh
  exit
fi

# Mount root and create read-write directories
mount -t squashfs -o loop /cdrom/files/source.img /new > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/var > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/etc > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/tmp > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/root > /dev/null 2>&1
cd /new/var && tar xpf /cdrom/files/var.tar > /dev/null 2>&1
cd /new/etc && tar xpf /cdrom/files/etc.tar > /dev/null 2>&1
cd /new/root && tar xpf /cdrom/files/root.tar > /dev/null 2>&1

# Pivot root and start real init
cd /new
pivot_root . newroot
exec chroot . /bin/sh <<- EOF >dev/console 2>&1
exec /sbin/init ${CMDLINE}




scripts:
Code:
#!/bin/bash
#
# Create initrd:


# Create initrd image
rm -f /boot/initrd
touch /boot/initrd
dd if=/dev/zero of=/boot/initrd bs=1024k count=8
losetup /dev/loop0 /boot/initrd
mke2fs /dev/loop0

rm -rf /mnt/initrd
mkdir /mnt/initrd
mount /dev/loop0 /mnt/initrd

# populate files in initrd
cd /mnt/initrd
mkdir etc dev lib bin proc new cdrom

rm -f linuxrc
touch linuxrc
chmod +x linuxrc
touch etc/mtab
touch etc/fstab

#
# Binaries and libraries
#

bin_directory="/mnt/initrd/bin/"
lib_directory="/mnt/initrd/lib/"

lookup="
/bin/sh
/bin/cat
/bin/mount
/bin/umount
/bin/mkdir
/bin/chroot
/bin/tar
/sbin/pivot_root"

echo -e "Copying files:\n"
for i in $lookup; do
        cp -v $i $bin_directory
        files="$files `ldd $i  | awk '{print $3}' | sed 's/(0xffffe000)//'`"
done

for i in $files; do
        cp -v $i $lib_directory
done

# Setup device nodes:

mknod /mnt/initrd/dev/console c 5 1
mknod /mnt/initrd/dev/null c 1 3
mknod /mnt/initrd/dev/tty c 4 0
mknod /mnt/initrd/dev/loop0 b 7 0

# Hard disks:
mknod /mnt/initrd/dev/sda b 8 0
mknod /mnt/initrd/dev/sdb b 8 16
mknod /mnt/initrd/dev/hda b 3 0

# CD drives:
mknod /mnt/initrd/dev/hdc b 22 0
mknod /mnt/initrd/dev/hdd b 22 64

# Create linuxrc file
cat > /mnt/initrd/linuxrc << "EOF"
#!/bin/sh
export PATH=/bin

# Get kernel CMDLINE
mount -t proc none /proc
CMDLINE=`cat /proc/cmdline`
umount /proc

# Mount CD device
CDROM=""
for x in hda hdb hdc hdd
do
  mount -t iso9660 -r /dev/${x} /cdrom > /dev/null 2>&1
  if [ "$?" = "0" ]
  then
    CDROM="${x}"
    break
  fi
done

# CD not found
if [ "${CDROM}" == "" ]
then
  exec /bin/sh
  exit
fi

# Mount root and create read-write directories
mount -t squashfs -o loop /cdrom/files/source.img /new > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/var > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/etc > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/tmp > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/root > /dev/null 2>&1
cd /new/var && tar xpf /cdrom/files/var.tar > /dev/null 2>&1
cd /new/etc && tar xpf /cdrom/files/etc.tar > /dev/null 2>&1
cd /new/root && tar xpf /cdrom/files/root.tar > /dev/null 2>&1

# Pivot root and start real init
cd /new
pivot_root . newroot
exec chroot . /bin/sh <<- EOF >dev/console 2>&1
exec /sbin/init ${CMDLINE}


Code:
#!/bin/bash
# Create ISO image and burn to cd

livecd_root="/mnt/storage/livecd"

livecd_target="$livecd_root/target"
livecd_source="$livecd_root/source"
livecd_output="$livecd_root/livecd.iso"

# Excluded directories from squashfs:
exclude_dir="/usr/portage /usr/src /mnt/initrd"

# unmount proc:
umount $livecd_source/proc > /dev/null 2>&1

# Delete old ISO image
rm  -f "$livecd_output"

# Remove old target directory
rm -rf "$livecd_target"
mkdir  "$livecd_target"
mkdir  "$livecd_target"/files

# Clean unecessary files
rm -rf "$livecd_source"/tmp/*
rm -rf "$livecd_source"/var/tmp/*
rm -rf "$livecd_source"/var/lock/*

cp -a  "$livecd_source"/boot "$livecd_target"

rm -f  "$livecd_source"/etc/mtab
touch  "$livecd_source"/etc/mtab

echo -e "\nCreating tarballs...\n"

# Create tarballs (etc/root/var):
cd "$livecd_source"/etc/
tar --ignore-failed-read -cpf "$livecd_target"/files/etc.tar  * .[[:alnum:]]*

cd ../var/
tar --ignore-failed-read -cpf "$livecd_target"/files/var.tar  * .[[:alnum:]]*

cd ../root/
tar --ignore-failed-read -cpf "$livecd_target"/files/root.tar * .[[:alnum:]]*


echo -e "\nCreating squashfs...\n"

for i in $exclude_dir; do
        exclude_sqfs="$exclude_sqfs $livecd_source$i"
done

mksquashfs "$livecd_source" "$livecd_target"/files/source.img -e $exclude_sqfs


echo -e "\nCreating ISO image...\n"

cd /

mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot -boot-load-size \
   4 -boot-info-table -iso-level 4 -hide boot.catalog -quiet \
   -o $livecd_output $livecd_target/ > /dev/null 2>&1


# Blank CD-RW & Burn image

echo -en "\nBlanking CD..  "

cdrecord dev=ATAPI:0,0,0 blank=fast gracetime=2 >/dev/null 2>&1
echo "done"

echo -en "\nBuring image..  "

cdrecord fs=8m -dao -data dev=ATAPI:0,0,0 speed=10 driveropts=burnfree -overburn -eject gracetime=2 $livecd_output >/dev/null 2>&1
echo "done"

exit 0
Back to top
View user's profile Send private message
MixMax
n00b
n00b


Joined: 28 Jan 2005
Posts: 73
Location: Finland

PostPosted: Fri Mar 11, 2005 8:15 am    Post subject: Reply with quote

Downgrade to the grub version I previously mentioned.

ps. you don't realy have to create a script for the initrd image. You can just mount it to a loop back device just like Farkenell mentioned and do the changes you need in there.
Back to top
View user's profile Send private message
Jerri
Guru
Guru


Joined: 03 Apr 2003
Posts: 353

PostPosted: Sat Mar 12, 2005 6:46 am    Post subject: Reply with quote

Ok, more problems.

I downgraded to grub 0.95, wich solved a number of them, however, things have gone a bit sour. The funny thing about all this is, I had it working at one point.. I then decided to add a number of packages, and things have gone completely screwy, and I can't quite retrace my steps backwards.

Anyways, problems I'm facing right now are more often one of the following examples:

1) Sometimes this happens, although not always... I'm having a real hard time recreating each error. They just sort of come and go..
Code:
Kernel panic - not syncing. VFS: Unable to mount root fs on unknown-block (1,0)


2) Again, same thing.
Code:
Kernel panic - not syncing: No init found try passing init= option to kernel


3) This one is always fun.. the system boots, init is loaded, and a login screen comes up, however, when you try and login, i get this:
Code:
FATAL: cannot change permissions of TTY: Read-only file system



I think i have reached the end of my rope, I might just have to start from scratch. Hell, I have probably borked it so well, that its well beyond repair. But if any one has any ideas why these problems keep popping up... i'm all ears.

One more thing, is it necessary that /dev be empty or populated when making a squashfs... I have tried both, and each one gives a me a different version of the above... usually dependent on whether i'm cranky or extra cranky..

linuxrc:
Code:
#!/bin/sh
export PATH=/bin

# Get kernel CMDLINE
mount -t proc none /proc
CMDLINE=`cat /proc/cmdline`
umount /proc

# Mount CD device
CDROM=""
for x in hdc hdd
do
  mount -t iso9660 -r /dev/${x} /cdrom > /dev/null 2>&1
  if [ "$?" = "0" ]
  then
    CDROM="${x}"
    break
  fi
done

# CD not found
#if [ "${CDROM}" == "" ]
#then
#  exec /bin/sh
#  exit
#fi

# Mount root and create read-write directories
mount -t squashfs -o loop /cdrom/files/source.img /new > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/var > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/etc > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/tmp > /dev/null 2>&1
mount -t tmpfs -o size=32m none /new/root > /dev/null 2>&1
cd /new/var && tar xpf /cdrom/files/var.tar > /dev/null 2>&1
cd /new/etc && tar xpf /cdrom/files/etc.tar > /dev/null 2>&1
cd /new/root && tar xpf /cdrom/files/root.tar > /dev/null 2>&1

# Pivot root and start real init
cd /new
pivot_root . newroot
exec chroot . /bin/sh << EOF
exec /sbin/init ${CMDLINE}
EOF


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

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

title=Gentoo Linux (/bin/sh)
root (cd)
kernel (cd)/boot/bzImage root=/dev/ram0 rw init=/bin/sh
initrd (cd)/boot/initrd
Back to top
View user's profile Send private message
Farkenell
Tux's lil' helper
Tux's lil' helper


Joined: 05 Dec 2003
Posts: 88

PostPosted: Sat Mar 12, 2005 11:36 am    Post subject: Reply with quote

try the cd thing that I mentioned before ;)
and uncomment the cd section of your linuxrc....

I was getting similar issues....
Back to top
View user's profile Send private message
Jerri
Guru
Guru


Joined: 03 Apr 2003
Posts: 353

PostPosted: Sun Mar 13, 2005 7:58 pm    Post subject: Reply with quote

Ok, well...

I feel stupid. Apparently i forgot to add livecd to the USE flags...
RTFM... yes yes. lesson learned :roll:

If your having trouble getting this working, have a peek at invalid account's livecd script

I made a substantial number of changes to get it working with my own system, but its a great place to start.
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 848
Location: PL

PostPosted: Wed Mar 16, 2005 4:41 pm    Post subject: Reply with quote

okay i've already tried building everything twice. first time, manually. second time from livecd making script, someone is linking in here (i forgot your name. sorry) but it does not work as well.

1. grub cannot find its config file (i had to type parameters in. now i switched to isolinux, so that's okay)
2. i cannot use MTRR in kernel with livecd somehow ("size and base must be multiples of 4Kib" error and halt, i disabled mtrr in kernel, but it sucks)
3. right after pivot_root command in linuxrc something bad happens and system does not go any further (what to do?)

so i guess i'm stuck for now. any suggestions?
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
MixMax
n00b
n00b


Joined: 28 Jan 2005
Posts: 73
Location: Finland

PostPosted: Wed Mar 16, 2005 9:07 pm    Post subject: Reply with quote

If you want to use grub you should be using version 0.95.20040823. newer won't work.

What does your emerge info say? (I'd like to know the kernel version and use flags)

Have you emerged the baselayout?

What do you get when you type "rc-status boot"?
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 848
Location: PL

PostPosted: Wed Mar 16, 2005 9:33 pm    Post subject: Reply with quote

MixMax wrote:
If you want to use grub you should be using version 0.95.20040823. newer won't work.
ahh i see now, but i'm now using syslinux anyway :D
Quote:
What does your emerge info say? (I'd like to know the kernel version and use flags)

kernel is gentoo-dev-sources 2.6.11-r3 and emerge info goes :

Code:
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 Intel(R) Celeron(R) CPU 1.70GHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 15 2005, 16:37:31)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.9.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r6
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i586 -O2 -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i586 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache cvs distlocks moo sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://src.gentoo.pl http://gentoo.prz.rzeszow.pl http://gentoo.oregonstate.edu http://gentoo.zie.pg.gda.pl http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LDFLAGS="-W1,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 apm arts avi berkdb bitmap-fonts cdr crypt cups emboss encode font-server foomaticdb fortran gdbm gif gpm imlib jpeg libg++ libwww livecd mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline sdl spell ssl svga tcpd truetype truetype-fonts type1-fonts userlocales xml2 xmms xv zlib linguas_en linguas_pl"
Unset:  ASFLAGS, CBUILD, CTARGET, PORTDIR_OVERLAY


Quote:
Have you emerged the baselayout?
of course i did

Quote:
What do you get when you type "rc-status boot"?
nothing is set yet, because i'm only trying to get the init to start

i turned mtrr off so that one is gone. grub problem is gone, but now it cannot find init (linuxrc) somehow :/
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
MixMax
n00b
n00b


Joined: 28 Jan 2005
Posts: 73
Location: Finland

PostPosted: Thu Mar 17, 2005 8:34 am    Post subject: Reply with quote

Your settings should be ok :)

Try emerging sysvinit.
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 848
Location: PL

PostPosted: Thu Mar 17, 2005 4:50 pm    Post subject: Reply with quote

MixMax wrote:
Your settings should be ok :)

Try emerging sysvinit.


ok i'll do that.

now i have cannot find init bug :/ even trough it's right there in parameters...:? i'm trying grub again. [sheesh]

[edit]gcc told me a funny thing - it cannot create 32bit code. i sent all the livecd source dir straight to hell. trying again. argh :evil:
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
Farkenell
Tux's lil' helper
Tux's lil' helper


Joined: 05 Dec 2003
Posts: 88

PostPosted: Mon Mar 21, 2005 10:23 pm    Post subject: Reply with quote

has anyone got xmms to properly work? I only get the cd writer plugin for output :/....

I've built it with the required flags (even though by default it should have oss I think - trying alsa flag now)

hrmm....what else....

I wish to make a rc-script for transparencies....someone able to point me in the right direction? I just want to make a basic script maybe a choice and a timeout whether to startx with xcomp :) (if chosen it will append the proper data to the files xorg, and the /etc/X11/Sessions/file :)) --nm found it on the wiki :)
Back to top
View user's profile Send private message
MixMax
n00b
n00b


Joined: 28 Jan 2005
Posts: 73
Location: Finland

PostPosted: Wed Mar 23, 2005 9:41 pm    Post subject: Reply with quote

Not sure what you've tryed to play with xmms.
If your trying to play stream remember to emerge xmms-mpg123 also.
Back to top
View user's profile Send private message
dirtbag
Guru
Guru


Joined: 18 Feb 2003
Posts: 508
Location: NC

PostPosted: Thu Mar 24, 2005 10:39 pm    Post subject: im trying to do this and getting emerge system error on perl Reply with quote

Finding dependencies for pp_pack.o.
Finding dependencies for pp_sort.o.
Finding dependencies for miniperlmain.o.
Finding dependencies for perlmain.o.
make[1]: Entering directory `/var/tmp/portage/libperl-5.8.5/work/perl-5.8.5'
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.5/work/perl-5.8.5'
Updating makefile...
test -s perlmain.c && touch perlmain.c
cd x2p; make depend
make[1]: Entering directory `/var/tmp/portage/libperl-5.8.5/work/perl-5.8.5/x2p'
makefile:157: *** target pattern contains no `%'. Stop.
make[1]: Leaving directory `/var/tmp/portage/libperl-5.8.5/work/perl-5.8.5/x2p'
make: *** [depend] Error 2

!!! ERROR: sys-devel/libperl-5.8.5 failed.
!!! Function src_compile, Line 217, Exitcode 2
!!! Couldn't make libperl.so depends
!!! If you need support, post the topmost build error, NOT this status message.

dellbox / #

when I do emerge system..

any idears? seems to have something to do with proc
but I did

mount -o bind /proc proc
mount -o bind /usr/portage/distfiles usr/portage/distfiles
Back to top
View user's profile Send private message
abasme
Guru
Guru


Joined: 04 Aug 2003
Posts: 398
Location: Guatemala

PostPosted: Mon Mar 28, 2005 8:16 am    Post subject: Reply with quote

hello to all:

I have had problems with the booteo of livecd especificamente when linuxrc does chroot requests to me to load I module binfmt-9653 which I have reviewed in kernel and this compiled not as I module.

I think that the problem was that the tapeworm that to put as I module but the problem persists, that if use zisofs, but if use squashfs does not mount the image to me although I put the support to him in kernel of squashfs and I did

emerge squashfs-tools.

I am using kernel gentoo-dev-sources-2.6.10-gentoo-r8 some idea to solve this problem.


Thanks.
_________________
"Un verdadero geek es un tipo que cree que en un kilómetro hay 1024 metros."

Abasme
Mayix Developer
http://abasme.gentoo-la.org
www.gentoo-la.org
www.mayix.net
linuxID # 315839
Back to top
View user's profile Send private message
Bonkie
Guru
Guru


Joined: 28 Oct 2002
Posts: 501
Location: Antwerpen, Belgium

PostPosted: Wed Mar 30, 2005 8:57 pm    Post subject: Reply with quote

wanted to say thanx for the howto, works like a charm here, got myself my own working live-cd :D
_________________
"I would say we have a 50% chance of survival, but I consider myself an optimist so I'll give us 50,5% ..."
~ Arthur C. Clarke [Physics PHD,SF Writer], when asked about the chances of the human race's survival
Back to top
View user's profile Send private message
MixMax
n00b
n00b


Joined: 28 Jan 2005
Posts: 73
Location: Finland

PostPosted: Thu Mar 31, 2005 11:04 am    Post subject: Reply with quote

Just a small idea. Since we pack the root, etc and var directories to a seperate tar file. It might be a good idea to exlude them when you make the squashfs image, since now you have them twice in the cd.

Now the hard part, It's not quite that simple as it might sound, since you need the directory for mount point. So you can't just add the hole directory to mksquashfs line (not like this mksquashfs ... -e root etc var).
It might be possible to use a file that has a list of all the files in those directories and then use the -ef option in mksquashfs command (if that makes any sense ;)). Oh well I don't realy have a good working solution for this yet. :(

I'll do some more work with this sometimes early next week (if no one has a working solution yet).
Back to top
View user's profile Send private message
mpalencia
n00b
n00b


Joined: 16 Feb 2005
Posts: 51
Location: Colombia

PostPosted: Fri Apr 01, 2005 9:01 am    Post subject: Great How to!! Reply with quote

Thanks Man!! this is a great how to!,
I ran into some problems, but most of them were dumb mistakes I made, exec for this part in the linuxrc script::
Code:

[color=green# Mount CD device
CDROM=""
for x in hda hdb hdc hdd cdroms/cdrom0 cdroms/cdrom1
do
  mount -t iso9660 -r /dev/${x} /cdrom > /dev/null 2>&1
  if [ "$?" = "0" ]
  then
    CDROM="${x}"
    break
  fi
done] [/color]

Changing that line worked for me, without it, my cd wouldnt boot.
Thanks again to everyone on this forum, reading about your solutions helped a lot.
:lol:
_________________
Lucky Livecd 32 and 64 bit versions (reiser4 suppport)
https://forums.gentoo.org/viewtopic-p-2986139.html#2986139

There are 2 things infinite: the universe and human stupidity, but I am not sure about the first one. (Einstein)
Back to top
View user's profile Send private message
Illissius
Guru
Guru


Joined: 31 Jul 2004
Posts: 395
Location: Hungary

PostPosted: Sun Apr 03, 2005 12:44 am    Post subject: Reply with quote

OK, I finally got around to completing the howto 8).

Unfortunately, I keep getting the kernel panic: no init found error, whether I pass init=/linuxrc or init=/bin/sh -- both of which most certainly exist. Any ideas why this could be happening?

(This is using the isolinux method and qemu, if it is relevant.)
_________________
Work is punishment for failing to procrastinate effectively.
last.fm
Back to top
View user's profile Send private message
MixMax
n00b
n00b


Joined: 28 Jan 2005
Posts: 73
Location: Finland

PostPosted: Sun Apr 03, 2005 7:30 am    Post subject: Reply with quote

Do you have sysvinit installed?
Back to top
View user's profile Send private message
Illissius
Guru
Guru


Joined: 31 Jul 2004
Posts: 395
Location: Hungary

PostPosted: Sun Apr 03, 2005 9:07 am    Post subject: Reply with quote

MixMax wrote:
Do you have sysvinit installed?

No. Do I need it? I don't remember seeing it mentioned in the howto... and this error is occurring right after loading the initrd, so it should be initing with linuxrc, not init.

EDIT - Never mind. Apparently I missed one of the libraries in /lib, after putting it in the initrd it works just fine now. Accurate error messages would've been a help...
Now I just need to troubleshoot all the errors in the post-pivot_root initing :/
bunch of stuff about no space left on device when writing to stdout (or something?), a segmentation fault in coldplug, atd and bootmisc don't start, duplicate id fields in inittab when starting xdm, nano says error opening terminal: linux, lots of stuff I've forgotten that's scrolled off screen already, etc., etc.... ugh.
Think I'll burn it first, to see what it does with actual hardware...
EDIT #2 - It seems at least part of the troubles was me misunderstanding the size argument for tmpfs... I thought it was the initial size, while it is actually the maximum size.
_________________
Work is punishment for failing to procrastinate effectively.
last.fm
Back to top
View user's profile Send private message
Illissius
Guru
Guru


Joined: 31 Jul 2004
Posts: 395
Location: Hungary

PostPosted: Sun Apr 03, 2005 8:00 pm    Post subject: Reply with quote

omfg, it works completely! 8) seems most if not all of the errors were due to the tmpfs thing... a few may have been to restrictive permissions on /dev/null and /dev/tty.
observations...
- qemu is slow as shit, even with the accelerator thingy. it takes like half a minute for kicker to slide on/off the screen, and several for things to actually start.
- KDE 3.4 :drool:
I updated stuff to use unionfs, and others I've forgotten, will prob. post about it tomorrow...
_________________
Work is punishment for failing to procrastinate effectively.
last.fm
Back to top
View user's profile Send private message
pi-cubic
Tux's lil' helper
Tux's lil' helper


Joined: 25 May 2003
Posts: 143

PostPosted: Tue Apr 05, 2005 11:47 am    Post subject: Reply with quote

hi guys,
i build myself a livecd and really like the approach of creating such a system. my intendency now is to create a CompactFlash system in this style for CF-based routers. since i want to reduce program/erase-cycles on the CF to increase the lifetime of the system, i want to push almost everything in the ram (except /etc). i don't want to lose the flexibility of this chroot though, that's why i want to start from this aproch. this is the main concept, now i still have some questions i like to debate about and would like to have some feedback about since this howto will be my base.

1) which filesystem would be suitable for the CF disk?
i read something about JFFS (journaling flash file system), but i don't know how widepread it has been used in practical enviroments yet and how it is supported by gentoo.

2) how would the boot process look like compared to a CD-ROM?
i have the following in my mind: initrd loads the necessary modules for the CF-controller. after that, the created tarballs (from a script) will be extracted and put into a ramdisk (ramfs?). just /etc will be directly on the CF to adjust some configuration settings without losing the changes.


thanks in advance for your opinions!

greetings,

pi-cubic
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 ... 11, 12, 13 ... 19, 20, 21  Next
Page 12 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