From owner-freebsd-alpha@FreeBSD.ORG Sat Aug 9 09:45:33 2003 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8208937B401 for ; Sat, 9 Aug 2003 09:45:33 -0700 (PDT) Received: from mgr6.xmission.com (mgr6.xmission.com [198.60.22.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7638F43FBF for ; Sat, 9 Aug 2003 09:45:32 -0700 (PDT) (envelope-from glewis@eyesbeyond.com) Received: from mail by mgr6.xmission.com with spam-scanned (Exim 3.35 #1) id 19lWqR-0002B7-06 for freebsd-alpha@freebsd.org; Sat, 09 Aug 2003 10:45:31 -0600 Received: from [207.135.128.145] (helo=misty.eyesbeyond.com) by mgr6.xmission.com with esmtp (Exim 3.35 #1) id 19lWqP-00025z-06 for freebsd-alpha@FreeBSD.org; Sat, 09 Aug 2003 10:45:30 -0600 Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.12.9/8.12.9) with ESMTP id h79GrGC5026798 for ; Sat, 9 Aug 2003 10:53:26 -0600 (MDT) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.12.9/8.12.9/Submit) id h79Gq1VV026764 for freebsd-alpha@FreeBSD.org; Sat, 9 Aug 2003 10:52:01 -0600 (MDT) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Sat, 9 Aug 2003 10:51:59 -0600 From: Greg Lewis To: freebsd-alpha@FreeBSD.org Message-ID: <20030809165159.GA26726@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Spam-Status: No, hits=-7.9 required=8.0 tests=BAYES_10,USER_AGENT_MUTT,X_AUTH_WARNING autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: Netboot cross-compiled kernel X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2003 16:45:33 -0000 Hi all, I have a couple of Alphas at home, and I'd like to get at least one booting FreeBSD. One is a BX/UX without SRM, so that appears to be stuck with Linux. The other is an EB164 which looks to me like it should work. It currently has Digital UNIX on it (4.x). As I didn't want to blow that away I decided to try netbooting. I grabbed the 4.8 miniiso and unpacked it in a suitable directory and put in an fstab with just a root NFS mount (for now). After setting up bootp and tftp the machine does boot, only to have the GENERIC kernel panic trying to mount root: Mounting root from nfs:10.0.0.1:/diskless/FreeBSD/alpha/4.8 missing device name setrootbyname failed panic: nfs_mountroot: socreate(0000): 43 Looking through the archives, I saw a post from Drew which mentions I need the following options in my kernel: options BOOTP options BOOTP_NFSROOT options BOOTP_WIRED_TO=de0 Since I haven't got an Alpha running FreeBSD, I cross built the kernel (after copying the GENERIC config and adding those lines) on my x86 box (running 4.8): make TARGET_ARCH=alpha buildworld make TARGET_ARCH=alpha buildkernel KERNCONF=OMEGA make TARGET_ARCH=alpha DESTDIR=/diskless/FreeBSD/alpha/4.8 installkernel KERNCONF=OMEGA This appears to work and produce an Alpha kernel: file /usr/obj/alpha/usr/src/sys/OMEGA/kernel /usr/obj/alpha/usr/src/sys/OMEGA/kernel: ELF 64-bit LSB executable, Alpha (unofficial), version 1 (FreeBSD), dynamically linked (uses shared libs), not stripped However, if I try and boot this new kernel it panics immediately after printing the copyright with: fatal kernel trap: trap entry = 0x2 (memory management fault) a0 = 0x0 a1 = 0x1 a2 = 0x0 pc = 0xfffffc000041d07c ra = 0xfffffc000041d9fc curproc = 0 panic: trap Is there something else I need to do when cross building, or does it not work in 4.x? I did notice the cross-build compiles code with -mcpu=ev4 where the CPU identifies during boot as: CPU: EV56 (21164A) Is this a problem? I.e. should I do the build with -mcpu=ev56? If its pertinent the machine identifies itself as: Digital AlphaPC 164 432 Mhz Its running SRM 4.8, although that seems to be working fine in terms of the netbooting getting going and I'm loathe to upgrade unless I need to after having bad experience trying to get SRM working on an LX board. Any help appreciated :). -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org