NetBSD Problem Report #17568

Received: (qmail 21002 invoked by uid 605); 12 Jul 2002 03:07:32 -0000
Message-Id: <200207120307.g6C37TC00541@cyclops.waterside.net>
Date: Thu, 11 Jul 2002 23:07:29 -0400 (EDT)
From: rafal@netbsd.org
Sender: gnats-bugs-owner@netbsd.org
Reply-To: rafal@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: sgimips ECOFF bootblock not readable by early I2 proms
X-Send-Pr-Version: 3.95

>Number:         17568
>Category:       port-sgimips
>Synopsis:       sgimips ECOFF bootblock not readable by early I2 proms
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sgimips-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 12 03:08:00 +0000 2002
>Closed-Date:    Fri Jul 12 13:05:04 +0000 2002
>Last-Modified:  Fri Jul 12 13:05:04 +0000 2002
>Originator:     Rafal Boni
>Release:        NetBSD 1.6_BETA4
>Organization:
...or lack thereof...
>Environment:
	The build host is:
System: NetBSD cyclops 1.6D NetBSD 1.6D (CYCLOPS.mp) #16: Tue Jul 9 22:05:56 EDT 2002 rafal@cyclops:/extra/src-current/sys/arch/i386/compile/CYCLOPS.mp i386
Architecture: i386
Machine: i386

	The machine being installed is an R4400@150Mhz Indigo2 with the
	following PROM: "SGI Version 5.1 Rev B IP22 Sep 16, 1993 (BE)".

>Description:
	Attempting to boot the NetBSD/sgimips ECOFF bootloader/bootblock
	results in the following on the above Indigo2:

Cannot load scsi(0)disk(2)rdisk(0)partition(8)/boot.
Illegal a_magic number 0x10b, expected OMAGIC.
Unable to load scsi(0)disk(2)rdisk(0)partition(8)/boot: execute format error

	It looks like the ECOFF version is generated using objcopy, whereas
	the kernels (which this box has no problem grokking) use elf2ecoff
	to do the conversion.

	This is what file(1) says for `boot' (the original objcopy'd boot-
	block) and boot-elf2ecoff.ecoff (one generated using elf2ecoff on
	the same x86 build host):

boot:                 MIPSEB ECOFF executable (paged) stripped - version 0.0
boot-elf2ecoff.ecoff: MIPSEB ECOFF executable (impure) not stripped - version 2.10

	My guess is making the ecoff version via elf2ecoff will solve this
	problem.


>How-To-Repeat:
	Install ECOFF version of bootblock on above Indigo2, attempt to boot
	it.

>Fix:
	Use elf2ecoff to convert the ELF bootblock version to ECOFF?

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: rafal 
State-Changed-When: Fri Jul 12 06:04:42 PDT 2002 
State-Changed-Why:  
Fixed in the following checkin: 
Checking in Makefile; 
/cvsroot/syssrc/sys/arch/sgimips/stand/boot/Makefile,v  <--  Makefile 
new revision: 1.4; previous revision: 1.3 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.