Date: Sun, 04 Aug 2002 19:53:24 +1000 From: Peter Grehan <peterg@ptree32.com.au> To: freebsd-ppc@freebsd.org Subject: Single-user Message-ID: <3D4CF994.7478E7D0@ptree32.com.au>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D4CF994.7478E7D0>