Date: Mon, 20 Nov 2006 17:53:20 +0800 From: "Doug Brewer" <brewer.doug@gmail.com> To: mlfbsd@ci0.org Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD/arm image question Message-ID: <b2ec5cad0611200153i719893a5mca76afe4930303ab@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b2ec5cad0611200153i719893a5mca76afe4930303ab>