From owner-freebsd-arm@FreeBSD.ORG Mon Nov 20 09:53:23 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 823B816A415 for ; Mon, 20 Nov 2006 09:53:23 +0000 (UTC) (envelope-from brewer.doug@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id A86D043D55 for ; Mon, 20 Nov 2006 09:53:07 +0000 (GMT) (envelope-from brewer.doug@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so956808uge for ; Mon, 20 Nov 2006 01:53:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=iaPZ2wjj5jLYeHCT4T3I8Gr/GyTNxxnuQsSIkkl7ncXiXFMdI+CUVMXo4zrwkKn2dAzIOh9lZPRQNHAWff+as0WDI4APf2XcO7+DtraruICxDl62HV0c4wgX/cLxNIjmPHmcf2yJRAuMHQ01hCGDYQIhcnYZPwiXDGgJGvaGEUI= Received: by 10.78.170.17 with SMTP id s17mr5002437hue.1164016401034; Mon, 20 Nov 2006 01:53:21 -0800 (PST) Received: by 10.78.140.7 with HTTP; Mon, 20 Nov 2006 01:53:20 -0800 (PST) Message-ID: Date: Mon, 20 Nov 2006 17:53:20 +0800 From: "Doug Brewer" To: mlfbsd@ci0.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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, 20 Nov 2006 09:53:23 -0000 Olivier Houchard wrote: > 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. Thanks for the reply. I tried to build the config file KB920X, I still got errors: ... echo "#define KERNNAME \"kernel.tmp\"" >opt_kernname.h sed s/0xc0000000/0x20000000/ ldscript.arm > ldscript.arm.tramp sed s/" + SIZEOF_HEADERS"// ldscript.arm.tramp > ldscript.arm.tramp.noheader /crossarm/usr/bin/objcopy --strip-symbol '$d' --strip-symbol '$a' -g --strip-symbol '$t' kernel.debug kernel.tmp eval $(stat -s kernel.tmp) && echo "#define KERNSIZE $st_size" >>opt_kernname.h /crossarm/usr/bin/gcc -O -nostdlib -I. -Xlinker -T -Xlinker ldscript.arm.tramp ../../../arm/arm/elf_trampoline.c ../../../arm/arm/inckern.S ../../../arm/arm/cpufunc_asm_arm7tdmi.S ../../../arm/arm/cpufunc_asm_arm8.S ../../../arm/arm/cpufunc_asm_arm9.S ../../../arm/arm/cpufunc_asm_sa1.S ../../../arm/arm/cpufunc_asm_arm10.S ../../../arm/arm/cpufunc_asm_xscale.S ../../../arm/arm/cpufunc_asm.S -o kernel.tramp ../../../arm/arm/elf_trampoline.c:25:23: sys/cdefs.h: No such file or directory ../../../arm/arm/elf_trampoline.c:26: error: syntax error before string constant ../../../arm/arm/elf_trampoline.c:28:23: sys/param.h: No such file or directory ../../../arm/arm/elf_trampoline.c:29:23: sys/elf32.h: No such file or directory ../../../arm/arm/elf_trampoline.c:30:25: sys/inflate.h: No such file or directory In file included from ../../../arm/arm/elf_trampoline.c:31: ./machine/elf.h:41:29: sys/elf_generic.h: No such file or directory .... Would you tell me how to fix this? Thanks in advance. > > Cheers, > > Olivier Warm regards, Doug.