| From | Sent On | Attachments |
|---|---|---|
| Peter Grehan | Aug 4, 2002 2:53 am | |
| Garrett Rooney | Aug 4, 2002 8:06 am | |
| Andrew Gallatin | Aug 4, 2002 3:33 pm | |
| Peter Grehan | Aug 4, 2002 3:45 pm | |
| Peter Grehan | Aug 4, 2002 5:08 pm | |
| Benno Rice | Aug 4, 2002 5:16 pm | |
| Garrett Rooney | Aug 4, 2002 9:28 pm | |
| Peter Grehan | Aug 4, 2002 11:02 pm | |
| Garrett Rooney | Aug 5, 2002 5:41 am | |
| Andrew Gallatin | Aug 5, 2002 6:49 am | |
| Peter Grehan | Aug 5, 2002 7:07 am | |
| Peter Grehan | Aug 5, 2002 7:24 am |
| Subject: | Single-user | |
|---|---|---|
| From: | Peter Grehan (pet...@ptree32.com.au) | |
| Date: | Aug 4, 2002 2:53:02 am | |
| List: | org.freebsd.freebsd-ppc | |
I've put up kernel src mods and an ISO image containing kernels and a root filesystem. The README in ppc-1b.tgz describes the modifications.
http://www.ptree32.com.au/freebsd/PPC.ISO http://www.ptree32.com.au/freebsd/ppc-1b.tgz
Testing has only been done an an original iBook, but with luck, other NewWorld systems will also work. Instructions appended, please try and let me know how it goes.
later,
Peter.
To boot from CDROM: ===================
- Get to the OpenFirmware prompt (cmd-option-o-f at power-on) - Wait a few seconds for the CD drive to spin up - Check to see if it can be read
0 > dir cd:,\
'kernel' should show up in the listing
- Boot the kernel
0 > boot cd:,kernel
- At the mountroot prompt, mount the CD as root
mountroot> cd9660:acd0
- The system will then get to a standard single-user prompt
Mounting root from cd9660:acd0 cd9660: Rockridge Extension Jan 1 00:00:02 init: /etc/pwd.db: No such file or directory Enter full pathname of shell or RETURN for /bin/sh:
(/bin/csh can also be used)
- gem0 is the network interface, and ifconfig, ping and mount_nfs are in the root filesystem.
To boot via NFS ===============
This is a little more complicated. I've been using a Linux NFS server, and dhcpd.
- Set up the dhcpd config. This is from my /etc/dhcpd.conf, with the DHCP/TFTP/NFS server at 192.168.0.1:
host macfreebsd { hardware ethernet 00:30:65:A1:7B:AC; fixed-address 192.168.0.11; option host-name "macfbsd"; always-reply-rfc1048 on; option root-path "192.168.0.1:/export/client/macfbsd/root"; option routers 192.168.0.1; filename "kernel.ppc"; next-server 192.168.0.1; }
- Enable TFTP, and put kernel.nfs from the ISO image into the tftp directory
- Make sure the system is operating as an NFS server. Copy the files from the ISO image into the exported root directory (i.e. the same as in the root-path line in dhcpd.conf), and make sure NFS is exporting that directory. The line in my linux /etc/exports looks like:
/export/client/macfbsd/root macfbsd(rw,no_root_squash)
- On the Mac, get to the OpenFirmware prompt as above.
- Start a network boot:
0 > boot enet:0
- After the device probe has completed, with luck you will see lines similar to the following appear on the console:
Sending DHCP Discover packet from interface gem0 (00:30:65:a1:7b:ac)
Received DHCP Offer packet on gem0 from 192.168.0.1 (accepted) (no root path)
Sending DHCP Request packet from interface gem0 (00:30:65:a1:7b:ac)
Received DHCP Ack packet on gem0 from 192.168.0.1 (accepted) (got root path)
gem0 at 192.168.0.11 server 192.168.0.1 boot file kernel.ppc
subnet mask 255.255.255.0 router 192.168.0.1 rootfs
192.168.0.1:/export/client/macfbsd/root hostname macfbsd
Adjusted interface gem0
Mounting root from nfs:
NFS ROOT: 192.168.0.1:/export/client/macfbsd/root
Jan 1 00:00:02 init: /etc/pwd.db: No such file or directory
Enter full pathname of shell or RETURN for /bin/sh:
- If all the ISO binaries were copied, proceed as per the CDROM case !
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message





