From owner-freebsd-alpha Wed May 10 15:59:23 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id A7FF637B6DA; Wed, 10 May 2000 15:59:20 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id QAA29126; Wed, 10 May 2000 16:59:13 -0600 (MDT) (envelope-from ken) Date: Wed, 10 May 2000 16:59:13 -0600 From: "Kenneth D. Merry" To: Doug Rabson Cc: Mike Smith , obrien@freebsd.org, Matthew Jacob , alpha@freebsd.org Subject: Re: borked Alpha boot loader? Message-ID: <20000510165913.A29033@panzer.kdm.org> References: <200005092359.QAA21039@mass.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from dfr@nlsystems.com on Wed, May 10, 2000 at 09:28:41AM +0100 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I appreciate all the suggestions for fixing my botched loader. For those reading the archives, here is what I did to fix it: - downloaded the 4.0 bindist and boot floppies - untarred the bindist into a directory - got netbooting up and running: in /etc/inetd.conf: tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /a/ken/dl/freebsd/4.0 / bootps dgram udp wait root /usr/libexec/bootpd bootpd -d 4 -c /a/ken/dl/freebsd/4.0 /etc/bootptab in /etc/bootptab: subway.plutotech.com: \ :ht=ethernet:ha=0000f8757c14: \ :ip=206.168.67.172:sm=255.255.255.128: \ :sa=206.168.67.147:bf=boot/netboot:rp=/a/ken/dl/freebsd/4.0: \ :vm=rfc1048 - vnconfig and mounted boot.flp from the 4.0 distribution - copied the kernel.gz from boot.flp out into the root directory of the untarred bindist, and decompressed it - 'boot ewa0' on the PWS 433 - go into fixit and start the emergency holographic shell - mount_nfs the filesystem with the 4.0 bindist - set the PATH so I can use ls, df, etc. - use 'mount' from the 4.0 bindist to mount the root FreeBSD parition on the 433au box. I had to use the da1a device node from the /dev directory in the bindist. - go into /boot on the root FreeBSD partition and copy the working loader (/boot/loader.old) on top of the broken loader (/boot/loader) - reboot, and everything works! Of course I've now done a 'disklabel -B da1' so I can specify another loader and won't have this problem again. Along the way, I tried to netboot the 'kernel.GENERIC' from the 4.0 bindist, but I discovered that it setting the boot_askname variable in the loader doesn't work on Alpha boxes, or at least not from the netboot loader. So every time I booted up with that kernel, it would panic because it couldn't find init. (Since I couldn't tell it where the root device was. Setting rootdev in the loader didn't seem to help either, and lsdev only found net0, nothing else.) I did get a set of CDs from Justin, but unfortunately they were the i386 CDs, and so they wouldn't help in this situation. That's probably the easiest way to fix the problem, if you've got access to Alpha CDs. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message