NetBSD Problem Report #43057

From www@NetBSD.org  Thu Mar 25 11:14:03 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id F1A6A63B86C
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 25 Mar 2010 11:14:02 +0000 (UTC)
Message-Id: <20100325111402.8466A63B11D@www.NetBSD.org>
Date: Thu, 25 Mar 2010 11:14:02 +0000 (UTC)
From: lists@yazzy.org
Reply-To: lists@yazzy.org
To: gnats-bugs@NetBSD.org
Subject: evbarm kernel won't compile with Intel's NPE Microcode.
X-Send-Pr-Version: www-1.0

>Number:         43057
>Category:       port-evbarm
>Synopsis:       evbarm kernel won't compile with Intel's NPE Microcode.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-evbarm-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 25 11:15:01 +0000 2010
>Closed-Date:    Wed Aug 10 18:51:22 +0000 2011
>Last-Modified:  Wed Aug 10 18:51:22 +0000 2011
>Originator:     Marcin Jessa
>Release:        NetBSD CURRENT 5.99.24
>Organization:
>Environment:
NetBSD zeus.yazzy.org 5.0.2_PATCH NetBSD 5.0.2_PATCH (XEN3_DOM0Y) #6: Thu Mar 18 10:55:50 CET 2010  root@zeus.yazzy.org:/usr/obj-amd64/sys/arch/amd64/compile/XEN3_DOM0Y amd64

>Description:
Compiling IXDP425 kernel (current sources) with the IxNpeMicrocode.dat from Intel to enable onboard nics I get an error. This does not happen on 5.0.2
My command:
/build.sh -u -m evbarm -a armeb -O /usr/arm/obj-arm/ -T /usr/arm/tools-arm/ 

Result:

Build directory is /usr/arm/obj-arm/sys/arch/evbarm/compile/IXDP425
Don't forget to run "make depend"
depending the kern library objects
depending the compat library objects
making sure the compat library is up to date...
`libcompat.a' is up to date.
making sure the kern library is up to date...
`libkern.o' is up to date.
rm -f /usr/arm/obj-arm/sys/arch/evbarm/compile/IXDP425/IxNpeMicrocode.dat
ln -s /usr/src/sys/arch/arm/xscale/IxNpeMicrocode.dat /usr/arm/obj-arm/sys/arch/evbarm/compile/IXDP425Y
/usr/arm/tools-arm/bin/armeb--netbsdelf-ld -b binary -d -warn-common -r -d -o ixp425_fw.o IxNpeMicrocode.dat
/usr/arm/tools-arm/bin/armeb--netbsdelf-ld: BFD (NetBSD Binutils nb1) 2.19.1 internal error, aborting at /usr/src/tools/binutils/../../external/gpl3/binutils/dist/bfd/elf.c line 370 in bfd_elf_get_elf_syms

/usr/arm/tools-arm/bin/armeb--netbsdelf-ld: Please report this bug. 
>How-To-Repeat:
Download the Intel's NPE Microcode v2.4 - without crypto from:
http://www.intel.com/design/network/products/npfamily/download_ixp400.htm

Extract the microcode. cd ixp400_xscale_sw/src/npeDl
In this directory, create a file called IxNpeMicrocode.h, and populate it with the following two #defines:
#define IX_NPEDL_NPEIMAGE_NPEB_ETH
#define IX_NPEDL_NPEIMAGE_NPEC_ETH

Compile the code and create a dat fike:   cc ixNpeDlImageConverter.c -o foo : ./foo
Now copy "IxNpeMicrocode.dat" to the sys/arch/arm/xscale directory in your NetBSD source tree.

Build kernel 
./build.sh -u -m evbarm -a armeb -O /usr/obj-arm/ -T /usr/tools-arm/ kernel=IXDP425
>Fix:

>Release-Note:

>Audit-Trail:
From: "Jonathan A. Kollasch" <jakllsch@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43057 CVS commit: src/sys/arch/arm/xscale
Date: Fri, 26 Mar 2010 15:55:33 +0000

 Module Name:	src
 Committed By:	jakllsch
 Date:		Fri Mar 26 15:55:33 UTC 2010

 Modified Files:
 	src/sys/arch/arm/xscale: ixp425-fw.mk

 Log Message:
 Use objcopy rather than ld to copy Intel NPE firmware blob into ELF.
 Avoids internal error in newer binutils ld.
 Should fix PR/42864 and PR/43057.


 To generate a diff of this commit:
 cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/xscale/ixp425-fw.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 25 Oct 2010 02:15:43 +0000
State-Changed-Why:
Did thw commit in March fix things?


State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 10 Aug 2011 18:51:22 +0000
State-Changed-Why:
Feedback timeout.


>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.