Suggestions for arm build for qemu?

Mark Tinguely marktinguely at gmail.com
Sat Jul 9 12:15:55 UTC 2011


On 7/8/2011 9:25 PM, Brian J. McGovern wrote:
> While I'm waiting to get real HW, I wanted to play with qemu's arm
> emulation. I've built binaries and a kernel with "make TARGET=arm
> TARGET_ARCH=arm DESTDIR=/usr/tmp/armbuild" and the buildworld,
> installworld, buildkernel, and installkernel targets. For the moment,
> I'm trying to use the GUMSTIX kernel configuration file.
>
> I'm getting hung up, apparently, on turning the resulting binary set in
> to something which can be booted. I've played with a number of settings
> for mkimage, but can't seem to get it right. When I go to boot the
> result, at best, I get a ":" in the emulation window. At worst, the
> emulator crashes.
>
> Any pointers to web documents that does a good job of describing the
> process? Google for obvious search terms (e.g. FreeBSD arm mkimage)
> turns up some older pages, none of which seem to result in a working
> kernel.
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>

I had a problem starting the boot with GUMSTIX kernel and qemu. I 
finally traced it to the change in arm/arm/elf_trampoline.c revision 
*194609. * 
<http://svnweb.freebsd.org/base?view=revision&revision=194609> I kept a 
copy of that file with that change, but manually added the changes that 
followed it.

Also you need to disable the "ARM_CACHE_LOCK_ENABLE" option in 
arm/xscale/std.h because qemu does not emulate every feature of the GUMSTIX.

--Mark Tinguely.

.


More information about the freebsd-arm mailing list