From owner-freebsd-arm@FreeBSD.ORG Mon Nov 13 12:03:15 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C617416A407 for ; Mon, 13 Nov 2006 12:03:15 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08E3D43D45 for ; Mon, 13 Nov 2006 12:03:14 +0000 (GMT) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.7/8.13.4) with ESMTP id kADCGpEC020782; Mon, 13 Nov 2006 13:16:51 +0100 (CET) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.7/8.13.4/Submit) id kADCGoqp020781; Mon, 13 Nov 2006 13:16:50 +0100 (CET) (envelope-from mlfbsd) Date: Mon, 13 Nov 2006 13:16:50 +0100 From: Olivier Houchard To: Doug Brewer Message-ID: <20061113121650.GA20731@ci0.org> References: <20061112.184546.514366287.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD/arm image question X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 12:03:15 -0000 On Mon, Nov 13, 2006 at 10:05:43AM +0800, Doug Brewer wrote: > On 11/13/06, M. Warner Losh wrote: > >In message: > > "Doug Brewer" writes: > >: Hello, > >: > >: I have an i80321 customized board and I'm new to FreeBSD/arm. > >: My bootloader loads Linux zImage. My question is FreeBSD kernel.bin = > >: Linux zImage? > >: I think FreeBSD kernel.bin is a raw binary with no program headers. > > > >That is correct. > > > >You can do a 'make kernel.tramp' and get a kernel.gz.bin as well, > >which more closely matches zImage. > > You mean I can run "make kernel.tramp KERNCONF=mykernel" ? > I used gzip -c kernel.bin > kernel.bin.gz to generate compressed raw binary. > > Thank you very much. > > >Warner > Hi Doug, The real target is "make trampoline", which will generate kernel.tramp, kernel.tramp.bin, kernel.gz.tramp and kernel.gz.tramp.bin. kernel.gz.tramp.bin will be I think what look the most like zImage, as it's a raw binary, able to uncompress the gzipped kernel embedded. Unfortunately, you can't, afaik, do it with the "buildkernel/installkernel" method, so you'll have to use the old config + make depend all method. Cheers, Olivier