Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PPC netboot help
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Tue Oct 03, 2006 6:33 pm    Post subject: PPC netboot help Reply with quote

hi there!
I am trying a netboot from a PC to a PPC. The PC runs linux , the PPC has nothing.
I should install gentoo on the PPC from the PC, but I can not compile kernel (?) under a PC Athlon64 platform to a PPC 32bit New World machine.
As I have figured out
1. the kernel of install CD can not be used via tftp netboot. (?)
2. I am trying to gt yaboot via tftp - but i have read that
a. yaboot is not "ideal" for netbooting
b. it leans on some ofboot file interpreting yaboot device names eg. changing the yaboot devices i should recompile this file (?)

So:
1. is there precompiled kernel - initrd etc. for netboot/netinstall a PPC (PowerBook G4 in my case)?
2. it there a precompiled yaboot - ofboot for this process?

Thanx!!!!!!!!!
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Oct 03, 2006 7:18 pm    Post subject: Reply with quote

Netboot isn't a supported install method for Gentoo at the moment, sorry. We're planning it for perhaps the next release. Why can't you use the existing install media?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Gerk
Retired Dev
Retired Dev


Joined: 07 May 2002
Posts: 435

PostPosted: Wed Oct 04, 2006 6:21 am    Post subject: Reply with quote

yaboot is your best choice. It's not for the faint of heart, but it's possible (not with stuff supplied by the distro).

I used to netboot my Apple Network Server this way for several years with a (very very hacked up) Gentoo installation.
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Wed Oct 04, 2006 7:59 am    Post subject: Reply with quote

JoseJX:
Because the PwrBook has no optical device and only netboot-net install is possible.
If you mean why I do not use the install CD - i am working hard on it, but maybe I am wrong. Somewhere I met the opinion that the kernel of the install CD can not be used to netboot.
I hope it is wrong.

Gerk:
So, I can use yaboot. Fine. If not the one shipped with the distro which one? Could you help a bit?



It is important to note that I have one PwrBook (diskless) and a PC and i know how to compile a kernel for a PPC (if it is possible at all). I need some premade stuff and then I can start to install gentoo manually probably - but your advise first.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Wed Oct 04, 2006 8:54 am    Post subject: Reply with quote

I have to add also that I try to solve the problem with using Anvin's tftp as a tftp and bootp, and dnsmasq as a dns server.
dnsmasq gives the address propery.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


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

PostPosted: Wed Oct 04, 2006 10:40 am    Post subject: Reply with quote

Here is a howto that may be of use. While it is for a specific purpose and based on fedora it should explain the process and what files and services you need for netbooting your machine.
_________________
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
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Wed Oct 04, 2006 11:35 am    Post subject: Re Reply with quote

"On ppc there should be no need for the scratchbox binaries anyway, you can edit the script a bit to disable the scratchbox parts (if you do this with the proper conditionals, I'll take over the changes in my script)."
Well, this part of the story is not clear at all... i know not how to do this.

I understand that

1. I need a ppc kernel. should i use the Netboot Linux Power PC at PowerPC kernel archives? Or can i use the kernel packed on the install CD? If not all work is in vain.

2. I have to set yaboot as described at many places. that is ok.
3. I have to set a DHCP server (in my case DNSmasq - OK.)
4. A tftp - OK.

The point I am stuck is that typing at OF path: boot enet:[serverIP],yaboot
i receive the server and client IP-s (OK:), a message stating that file transfer of yaboot started, then a long nothing, and
LOAD-SIZE is too small - message.

Possible reasons:
1. some parameter is missing in one .conf file.
2. yaboot is not starting properly (as one source writes yaboot can loop infinite ? but many others succeed, so....)
3. yaboot can not find the kernel (again one source states it as a point behind the message)
4. the kernel is too big. i checked the tftp server and no size limit is set as default.
One fellow had a similar problem to mine with this error message, but unfortunately his monologue has no conclusion.
5. ?????????
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Thu Oct 05, 2006 12:56 pm    Post subject: Slow step ahead Reply with quote

Now, I have reached a point to load the kernel and the ramdisk to the PPC.
The kernel loads, runs and finds things on, then comes a point saying:

>>Loading modules
>>Activating mdev
>>Determining root device...

!! The root device is unspecified or not detected.
Please specify a device to boot, or "shell" for a shell...

boot() ::

Now i have the boot Cd image in the tftpbood directory. I have an NFS demon running.
What command (syntax etc.) shall i use to find a device to boot?

Shall I symling the PC's DVD to the tftpboot directory and give some command? ????

Absolutely helpless..... :(
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


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

PostPosted: Thu Oct 05, 2006 1:18 pm    Post subject: Reply with quote

append="real_root=/dev/nfs rw nfsroot=12.345.67.89:/path/on/server/to/nfs_root ip=dhcp console=tty1 init=/linuxrc"
change the part in red with settings that match your setup. No idea if this actually works, having never netbooted anything or used an nfs root.
_________________
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
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Thu Oct 05, 2006 4:52 pm    Post subject: Reply with quote

nixnut wrote:
append="real_root=/dev/nfs rw nfsroot=12.345.67.89:/path/on/server/to/nfs_root ip=dhcp console=tty1 init=/linuxrc"
change the part in red with settings that match your setup. No idea if this actually works, having never netbooted anything or used an nfs root.


Thank you, i really appreciate Your help here.

Well, there is still some problem, for it ends up with kernel panic.
So what i did:
i made an image from the install CD with dd (PPC 2006.1.minimal) and i try to mount it.
i think i should make an image of a filesystem but i know it not much how-to.
OR: what is loaded after the kernel and the ramdisk? what is the device the install cd tries to mount? maybe i could mount it via nfs - that is i am trying to imitate a CD install via a network.

without nfs is there a way to do it?
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Fri Oct 06, 2006 5:57 am    Post subject: Reply with quote

I had a similar problem a while back where I had to net-boot my TiBook. Here's the thread: https://forums.gentoo.org/viewtopic-t-472593-start-0-postdays-0-postorder-asc-highlight-.html.

Scroll down to the posting from Mon Jun 19, 2006 1:11 pm, and the last posting.
_________________
Jens Troeger
http://savage.light-speed.de/
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Fri Oct 06, 2006 5:04 pm    Post subject: Reply with quote

"This booted the Gentoo image, spewed a few error messages, and ended up in a BB prompt."

Somewhere i still miss the point.
OK:
my yaboot.conf is here:

Quote:
default apple
timeout 300
device=enet:
partition=0
root=/dev/ram
fgcolor=white
bgcolor=black
message=boot.msg

image=enet:apple
laber=apple
initrd=enet:apple.igz
read-write
append="root=/dev/ram0 init=/bin/bb nokeymap looptype=squashfs loop=/image.squashfs cdroot"


the i inserted the line:
append="real_root=/dev/nfs rw nfsroot=12.345.67.89:/path/on/server/to/nfs_root ip=dhcp console=tty1 init=/linuxrc" modified according to my path. (NOTE:the nfsroot path is absolute path?)

What i tried in different combnations:
1. an image of the install cd.
2. symlink to the install cd, mounted at /mnt/dvd
3. inserted "init=/bin/bb"replacing init=/linuxrc
These attempt ended up in the following messages:

Quote:
NET: Registered protocol family 1
NET: Registered protocol family 17
XFS: bad magic number
XFS: SB validate failed
No filesystem could mount root, tried: reiserfs ext3 ext2 squashfs iso9660 xfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)

And it reboots.

1. What should be expected at nfs_root ? What kind of file exactly?
2. What about the path of nfs_root? Absolute?

Thanx beforehand!
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


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

PostPosted: Fri Oct 06, 2006 5:22 pm    Post subject: Reply with quote

1. nfs_root should have a linux installation (i.e. a root filesystem), an extracted ppc stage3 tarball might work.
2. nfs_root path should be what you defined in /etc/exports on the nfs server
_________________
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
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Fri Oct 06, 2006 6:44 pm    Post subject: Reply with quote

nixnut wrote:
1. nfs_root should have a linux installation (i.e. a root filesystem), an extracted ppc stage3 tarball might work.
2. nfs_root path should be what you defined in /etc/exports on the nfs server


Thanx, i give it a try.
Meanwhile just one question:
minimal install cd has no tarball as i have seen. what is moounted then?
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


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

PostPosted: Fri Oct 06, 2006 6:49 pm    Post subject: Reply with quote

the install cd mounts a file that contains a populated squashfs filesystem
_________________
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
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Fri Oct 06, 2006 7:04 pm    Post subject: Reply with quote

nixnut wrote:
the install cd mounts a file that contains a populated squashfs filesystem


i tried to load the image.squashfs file guessing that it is the one i might need but i failed. (as with points 1- above)
theoretcally should it work?
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


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

PostPosted: Fri Oct 06, 2006 7:19 pm    Post subject: Reply with quote

salmonix wrote:
nixnut wrote:
the install cd mounts a file that contains a populated squashfs filesystem


i tried to load the image.squashfs file guessing that it is the one i might need but i failed. (as with points 1- above)
theoretcally should it work?


Quote:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)
That one you mean? That seems to indicate that your kernel doesn't support ram disks.
_________________
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
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Fri Oct 06, 2006 7:32 pm    Post subject: Reply with quote

Ram disk? or NFS?

The yaboot conf has this line:
initrd=enet:apple.igz
and with the original setting i can end up in a shell - see my post above " Post subject: Slow step ahead".
If i enter the shell It offers a file system but rather restricted.
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Oct 06, 2006 9:51 pm    Post subject: Reply with quote

The LiveCD works by pivot mounting the LiveCD root after uncompressing the image.squashfs. The initrd is a ramdisk that loads the initial system before the pivot. That said, I don't really know what you're doing wrong, it's hard to tell from your posts exactly what you've got setup there. As an example, I've sucessfully booted a PPC machine from an NFS root created from a stage3, but I needed to chroot into that to set it up correctly (root password, etc.), which requires another PPC machine.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sat Oct 07, 2006 5:36 am    Post subject: Reply with quote

Neither do i.
Well, if i uncompress a stage3 tarball on an different ppc , then this thread is not working for me because i have only one ppc and one pc around.

if you say you can bootload with the initrd it means the initrd supports NFS, so it should work.

i use only yaboot as bootloader.

what else info should be given?
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Oct 07, 2006 2:02 pm    Post subject: Reply with quote

I created my own kernel to do the netboot, you can certainly do this on an x86 machine if you need to.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Sun Oct 08, 2006 5:37 am    Post subject: Reply with quote

JoseJX wrote:
I created my own kernel to do the netboot, you can certainly do this on an x86 machine if you need to.


So, i can compile a kernel to a 32bit PPC on a 64bi PC? How?
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Oct 08, 2006 2:44 pm    Post subject: Reply with quote

crossdev will help you set up an environment. Googling for cross compiling will bring up a number of pages with intstructions for building things like the kernel for a ppc target on x86.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
salmonix
Guru
Guru


Joined: 16 Jul 2006
Posts: 410

PostPosted: Mon Oct 09, 2006 7:41 am    Post subject: Reply with quote

OK. If there is nothing else i give it a try.
But odes it mean that the kernel of the install cd does not support netboot and it is the root of this evil?

Thanks for your concern!
_________________
Quis custodiet ipsos, custodes?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Oct 09, 2006 9:27 am    Post subject: Reply with quote

Yes, like I said before, netboot isn't a supported install method on PPC. Afaik, the kernel isn't configured for NFS root.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
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
Goto page 1, 2  Next
Page 1 of 2

 
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