Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
diskless client
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
leod
n00b
n00b


Joined: 13 Aug 2005
Posts: 5

PostPosted: Sat Aug 13, 2005 10:41 am    Post subject: diskless client Reply with quote

I'm trying to get an old imac working as a diskless client.

so far i was able to get the imac retrieve the yaboot, yaboot.conf and kernel from the tftp server on my main main machine and then boot.

using a kernel from ppckernel.org (unfortunately is a 2.4 ) i was able to get a working nfs root filesystem, now my problem is what to install in that filesistem to get a working box.

right now i'm using a stage3 archive from the gentoo install 2005.1, (tar xjf of the achive with small modifications to the filesistem scripts ) unfortunatelly it does not work too well, short after the boot i get an error that it could not start devfsd (devfsd binary is not present on the archive), and after entering runlevel 3 it stops, after five minutes i get

INIT: Id "c1" respawning too fast: disabled for 5 minutes
INIT: Id "c2" respawning too fast: disabled for 5 minutes
INIT: Id "c3" respawning too fast: disabled for 5 minutes
INIT: Id "c4" respawning too fast: disabled for 5 minutes
INIT: Id "c5" respawning too fast: disabled for 5 minutes
INIT: Id "c6" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel

on the screen and the machine locks

booting the machine in single user mode works (i get a working shell and network connettivitiy)

at first i though that this devfs problem may have left me without /dev/tty* but booting in single user mode i see that they are there

any idea of what happens here?

many thanks in advance
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Aug 13, 2005 11:11 am    Post subject: Reply with quote

try emerging udev
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
leod
n00b
n00b


Joined: 13 Aug 2005
Posts: 5

PostPosted: Sat Aug 13, 2005 12:58 pm    Post subject: Reply with quote

nixnut wrote:
try emerging udev


unfortunately portege does not work :(. i didn't expected it to work, as this is not a real "install", but just an untar of the stage3 archive,( i did not found a way to boot form the network and install to the network at the same time)

i jus tried to boot with init=/bin/bash and execute

/sbin/agetty 38400 tty2 linux

it dies immediately with

FATAL: cannot change permissions of TTY: Read-only filesystem

but /dev is mounted as rw, although as devfs and i do not understand why
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Aug 13, 2005 5:32 pm    Post subject: Reply with quote

That stage3 should have udev in it I think. The problem could be that the kernel still has devfs enabled. Try booting by passing "gentoo=nodevfs" to the kernel in the append statement in yaboot.conf
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
leod
n00b
n00b


Joined: 13 Aug 2005
Posts: 5

PostPosted: Sun Aug 14, 2005 1:04 pm    Post subject: Reply with quote

nixnut wrote:
The problem could be that the kernel still has devfs enabled.

i reached the same conclusion, is the kernel that mounts devfs in dev
nixnut wrote:
Try booting by passing "gentoo=nodevfs" to the kernel in the append statement in yaboot.conf

i tried devfs=nomount as stated in the kernel documentation but no luck, will try this one too
Back to top
View user's profile Send private message
quatsch
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2005
Posts: 104
Location: New York, NY

PostPosted: Wed Aug 17, 2005 6:36 am    Post subject: Reply with quote

did you make any headway on this one? I'm curious.

I think if you are using a 2.4 kernel, you can't have udev. But if the prblem is devfsd, you should be able to get around the problem by editing the init scripts (/sbin/rc, maybe?) a bit so that it doesn't start devfsd (and also not udevd). You'll end up with a not very easy to use /dev because you'll see every single possible device whether or not there is any real device present, but it might work.
Back to top
View user's profile Send private message
leod
n00b
n00b


Joined: 13 Aug 2005
Posts: 5

PostPosted: Wed Aug 17, 2005 11:48 am    Post subject: Reply with quote

quatsch wrote:
did you make any headway on this one? I'm curious.

not really, my next move was compiling a new kernel with all the things i needed (nfs root, ip autoconf with dhcp ecc), so i downloaded a vanilla 2.6.12.4 and compiled it on that machine (all in single user mode), unfortunately I was not able to get a working kernel (obviously ppc kernles ar not that easy to build as the i386 ones)
I do not kow if it was for me not been able to configure it correctly (the most likely), a not working compiler or the fact that i used a nfs partition to build it, too many variables...
i will need to get a working ppc environment and then try to make a suitable kernel for netboot

quatsch wrote:
I think if you are using a 2.4 kernel, you can't have udev. But if the prblem is devfsd, you should be able to get around the problem by editing the init scripts (/sbin/rc, maybe?) a bit so that it doesn't start devfsd (and also not udevd). You'll end up with a not very easy to use /dev because you'll see every single possible device whether or not there is any real device present, but it might work.


devfs is mounted by the kernel before running init, and i havn't found a way to disable it afterwards
Back to top
View user's profile Send private message
quatsch
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2005
Posts: 104
Location: New York, NY

PostPosted: Wed Aug 17, 2005 10:55 pm    Post subject: Reply with quote

Quote:
devfs is mounted by the kernel before running init, and i havn't found a way to disable it afterwards

asfaik, it's okay to mount devfs. devfsd is a daemon that manages it and that's what you're missing. It should be one of the first things that gets started by the init scripts.
Back to top
View user's profile Send private message
ben_dash
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 239

PostPosted: Mon Oct 24, 2005 2:12 am    Post subject: Reply with quote

I was just woondering if you found a solution.

I'm currently in the middle of building a diskless Etherboot client and have run into the same problem.

Since I'm using a 2.4 kernel should I emerge udev? From what I read above I would think not...
_________________
Free Question Answerer
Back to top
View user's profile Send private message
janwolff
n00b
n00b


Joined: 04 Oct 2004
Posts: 12

PostPosted: Tue Oct 25, 2005 11:16 am    Post subject: bring up Loopback device before udev Reply with quote

I think, i have had the same issue after upgrading udev.
When launching udevstart, no device-nodes were created in /dev and the system hung and kept restarting the agettys.

I started a bash just before and after the "udevstart" line in /sbin/rc to troublehshoot the problem.
Assuming that the long delay when starting udev was a network timeout, i brought up the loopback device and with lo up, it worked.

So as a hotfix, I recommend modifying /sbin/rc and insert a line to bring up the loopback device before starting udev.

Code:
populate_udev() {
+       # hotfix for udev 70-r1 needing loopback
+       ifconfig lo 127.0.0.1
        # Now populate /dev
        /sbin/udevstart

        # Not provided by sysfs but needed
        ln -snf /proc/self/fd /dev/fd
        ln -snf fd/0 /dev/stdin
        ln -snf fd/1 /dev/stdout


Hope this is of help.
Back to top
View user's profile Send private message
ben_dash
Apprentice
Apprentice


Joined: 12 Aug 2003
Posts: 239

PostPosted: Fri Oct 28, 2005 3:47 am    Post subject: Reply with quote

I was having the same problem with my xbox.

It seems that I messed up my initial emerge system due to the fact that I had mounted, and exported, my nfs root "async". I switched it to "sync" and ran an emerge --emptytree system and now it's working great.
_________________
Free Question Answerer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
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