From owner-freebsd-alpha@FreeBSD.ORG Mon Jul 16 14:31:24 2007 Return-Path: X-Original-To: freebsd-alpha@freebsd.org Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 93EAE16A5AC for ; Mon, 16 Jul 2007 14:31:24 +0000 (UTC) (envelope-from lausts@acm.org) Received: from ms-smtp-05.ohiordc.rr.com (ms-smtp-05.ohiordc.rr.com [65.24.5.139]) by mx1.freebsd.org (Postfix) with ESMTP id 125F913C4DA for ; Mon, 16 Jul 2007 14:31:23 +0000 (UTC) (envelope-from lausts@acm.org) Received: from [192.168.1.100] (cpe-71-79-254-61.woh.res.rr.com [71.79.254.61]) by ms-smtp-05.ohiordc.rr.com (8.13.6/8.13.6) with ESMTP id l6GEVLrA015780 for ; Mon, 16 Jul 2007 10:31:21 -0400 (EDT) From: "Thomas Laus" Organization: ABB To: freebsd-alpha@freebsd.org Date: Mon, 16 Jul 2007 10:31:20 -0400 Message-ID: <469B48F8.28247.E00D79@lausts.acm.org> Priority: normal X-mailer: Pegasus Mail for Windows (4.31) X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Cross-Building Alpha on i386 X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lausts@acm.org List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 14:31:24 -0000 Group: Since RELENG_4 is has lost support, I wanted to install something from the RELENG_6 tree. I installed the latest .iso (RELENG_6_2) that was on the mirrors, but the libpam libraries had problems. The library libpam.so.3 was missing on my system and even root can not login after installation. I used the following script: ================ #!/bin/sh ### makerelease Mike Patterson ## from makecd originally by ## Author: Gregory Neil Shapiro # Error exit EX_UNAVAILABLE=69 # Set this! buildname=RELENG6-TSL-13JULY2007 # chrootdir, where everything gets built to chrootdir=/usr/buildworld # FreeBSD release area rel=/usr/release # Boot blocks boot=boot/cdboot # CD-ROM root dir=cdrom/disc1 #cvsroot cvsroot=/home/ncvs cd /usr/src/release make release CHROOTDIR=${chrootdir} \ BUILDNAME=${buildname} \ CVSROOT=${cvsroot} \ RELEASETAG=RELENG_6 \ NODOC=YES \ NOPORTS=YES \ ALLLANG=no \ NOPORTREADMES=YES \ TARGET_ARCH=alpha \ TARGET=alpha # set NOSRC=YES if you don't want the sources either # Move into the area cd ${rel} || exit ${EX_UNAVAILABLE} # Read CD_VERSION from cdrom.inf if [ ! -f ${dir}/cdrom.inf ] then echo "$0: ${dir}/cdrom.inf missing" exit ${EX_UNAVAILABLE} fi read version < ${dir}/cdrom.inf cd_version=${version##CD_VERSION = } if [ "${cd_version}" = "" ] then echo "$0: cd_version not defined" exit ${EX_UNAVAILABLE} fi # CD Parameters appid="FreeBSD ${cd_version}" pubid="Thomas Laus " # Where to save the backup iso=/home/lausts/iso/disc1.iso # Create the ISO file /usr/local/bin/mkisofs -A "${appid}" -P "${pubid}" -p "${pubid}" \ -no-emul-boot \ -o ${iso} -b ${boot} -R -J ${dir} echo echo echo ISO is in ${iso} echo ============ I changed the `TARGET_ARCH=alpha & TARGET=alpha' in the script as well as the location of enough filespace to build the system. The result was an un- bootable cdrom. Is there a script that the Release Team uses that might be a little better for me to use? Are the mkisofs switches correct for the Alpha architecture? Since my AlphaStation is a lot slower than my PC's in the i386 family, I would prefer to update by cross-compiling binaries instead of building on my Alpha. Tom -- Public Keys: PGP KeyID = 0x5F22FDC1 GnuPG KeyID = 0x620836CF