From owner-freebsd-alpha@FreeBSD.ORG Mon Jul 4 20:27:19 2005 Return-Path: X-Original-To: alpha@freebsd.org 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 D286316A41C for ; Mon, 4 Jul 2005 20:27:19 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from smtp-vbr1.xs4all.nl (smtp-vbr1.xs4all.nl [194.109.24.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A06B43D45 for ; Mon, 4 Jul 2005 20:27:19 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr1.xs4all.nl (8.13.3/8.13.3) with ESMTP id j64KRH5L023189; Mon, 4 Jul 2005 22:27:17 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.3/8.13.3) with ESMTP id j64KRHLa049753; Mon, 4 Jul 2005 22:27:17 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.3/8.13.1/Submit) id j64KRGCE049752; Mon, 4 Jul 2005 22:27:16 +0200 (CEST) (envelope-from wb) Date: Mon, 4 Jul 2005 22:27:16 +0200 From: Wilko Bulte To: Marcel Moolenaar Message-ID: <20050704202716.GA49737@freebie.xs4all.nl> References: <27190.1120379420@phk.freebsd.dk> <20050704190131.GA49126@freebie.xs4all.nl> <8fe809bd5c24373ce1cd95c4fcdcea88@xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8fe809bd5c24373ce1cd95c4fcdcea88@xcllnt.net> X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.9i X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Poul-Henning Kamp , alpha@freebsd.org Subject: Re: GENERIC doesn't boot AlphaServer 1000 X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2005 20:27:20 -0000 On Mon, Jul 04, 2005 at 01:08:48PM -0700, Marcel Moolenaar wrote.. > On Jul 4, 2005, at 12:01 PM, Wilko Bulte wrote: > > >DS10 on booting the latest SNAP CD I produced: > > > >Timecounter "i8254" frequency 1193182 Hz quality 0 > >Timecounter "alpha" frequency 616519676 Hz quality 800 > >Timecounters tick every 0.976 msec > >Waiting 5 seconds for SCSI devices to settle > >md0: Preloaded image 4423680 bytes at > >0xfffffc00009fb128 > >acd0: CDROM at ata0-master PIO4 > >ad0: 39093MB at ata1-master UDMA33 > >da0 at isp0 bus 0 target 0 lun 0 > >da0: Fixed Direct Access SCSI-2 device > >da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing > >Enabled > >da0: 8678MB (17773500 512 byte sectors: 255H 63S/T 1106C) > > > >fatal kernel trap: > > > > trap entry = 0x4 (unaligned access fault) > > cpuid = 0 > > faulting va = 0xfffffc00010d7dc2 > > opcode = 0x28 > > register = 0x1 > > pc = 0xfffffc00004c732c > > ra = 0xfffffc00004c7598 > > sp = 0xfffffe001a35dbd0 > > curthread = 0xfffffc003eac1500 > > pid = 2, comm = g_event > > > >[thread pid 2 tid 100003 ] > >Stopped at is_pmbr+0x4c: and t0,#0xff,t0 > > > >db> > > The only alignment sensitive statement in is_pmbr() (in file geom_gpt.c) > is a 16-bit load from an address that is guaranteed to be aligned by > virtue of alignment guarantees of malloc(3) and kernel equivalents. > The faulting VA is in fact sufficiently aligned for a 16-bit load. > > Could you post the assembly of is_pmbr(). It might be bad code. Well, I tried multiple things in the meantime. 'dd' of /dev/zero onto this SCSI disk stopped the panic alright. Unfortunately sysinstall does not allow it to be partitioned/newfs-ed (??). The DS10 also has a ATA disk, an install onto that one succeeds but: ds10>>>boot dqb0 (boot dqb0.0.1.13.0 -flags a) block 0 of dqb0.0.1.13.0 is a valid boot block reading 15 blocks from dqb0.0.1.13.0 bootstrap code read in base = 200000, image_start = 0, image_bytes = 1e00(7680) initializing HWRPB at 2000 initializing page table at 3ff2a000 initializing machine state setting affinity to the primary CPU jumping to bootstrap code Loading /boot/loader Consoles: SRM firmware console VMS PAL rev: 0x1005300010162 OSF PAL rev: 0x100490002015c Switch to OSF PAL code succeeded. FreeBSD/alpha SRM disk boot, Revision 1.2 (root@ds10.freebie.xs4all.nl, Sat Jul 2 15:01:22 UTC 2005) Memory: 1048576 k \ halted CPU 0 halt code = 5 HALT instruction executed PC = 20018a9c ds10>>> -- Wilko Bulte wilko@FreeBSD.org