From owner-cvs-all@FreeBSD.ORG Wed Feb 27 14:03:06 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3FA81065672; Wed, 27 Feb 2008 14:03:05 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id B5A4D8FC26; Wed, 27 Feb 2008 14:03:05 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.14.0/8.14.0) with ESMTP id m1RE1gao027477 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Feb 2008 09:01:42 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id m1RE1DKG048219; Wed, 27 Feb 2008 09:01:13 -0500 (EST) (envelope-from gallatin) Date: Wed, 27 Feb 2008 09:01:13 -0500 From: Andrew Gallatin To: Sam Leffler Message-ID: <20080227090113.A48182@grasshopper.cs.duke.edu> References: <200802260302.m1Q32KOT081487@repoman.freebsd.org> <200802261133.00942.jhb@freebsd.org> <47C4A083.2050602@errno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <47C4A083.2050602@errno.com>; from sam@errno.com on Tue, Feb 26, 2008 at 03:27:40PM -0800 X-Operating-System: FreeBSD 4.9-RELEASE-p1 on an i386 Cc: src-committers@FreeBSD.org, Kip Macy , John Baldwin , Kip Macy , cvs-all@FreeBSD.org, cvs-src@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/cxgb bin2h.pl cxgb_main.c cxgb_t3fw.c cxgb_t3fw.h t3fw-5.0.0.bin.gz.uu src/sys/modules/cxgb Makefile src/sys/modules/cxgb/cxgb Makefile src/sys/modules/cxgb/cxgb_t3fw Makefile src/sys/conf NOTES files X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 14:03:06 -0000 Sam Leffler [sam@errno.com] wrote: > Huh? What does "static linking" mean? If you're looking for an example > of a firmware image being embedded in a kernel look at the npe firmware > used by xscale. Kip, Before spending time on this, be warned that I tried this for mxge last year, and I gave up because it was such a headache. The final straw was that building the firmware into a .fwo file via a files file rule doesn't work on platforms like ia64 due some toolchain problems. Specifically, there was no way to get the constant-gp flag set on an ld -b binary image, which caused the final kernel link command to explode. Rather than use the .fwo method, I committed some .c shims (see dev/mxge/mxge_eth_z8e.c) which just #include my firmware header files. This avoids the linking problems, and turns out to be much, much easier to work with than the fw_stub files file method. Drew