qemu / boot parameter

Stanislav Sedov stas at FreeBSD.org
Thu Jul 16 13:10:33 UTC 2009


On Wed, 15 Jul 2009 16:52:40 +0200
Henri-Pierre Charles <hpcharles at gmail.com> mentioned:

> Hello list, I try to do my first FreeBSD/arm installation. I plan to
> use qemu. I've started with this page
> http://people.freebsd.org/~cognet/freebsd_arm.txt for kernel/world
> build. For my personnal teaching, I've summarized these instructions
> in the attached script.
> 
> Now, I'm stuck with qemu. I've tried many invocation, and the best
> result I get is with qemu-system-arm hda.img -boot n 		\
>     -tftp $ARMFS/boot/kernel/ -bootp /kernel 	\
>     -kernel $ARMFS/boot/kernel/kernel 		\
>     -m 300 					\
>     -M integratorc
> 
> And I get :
> qemu: fatal: Trying to execute code outside RAM or ROM at 0xc0200100
> (which is not far from KERNVIRTADDR)
> 
> I miss something somewhere ? Any idea ?
> 

As far as I know we don't currently support qemu ARM/intergrator platform.
However, current versions of qemu can emulate XScale devices (gumstix,
for example), so you may want to try this type of emulation with your
XScale kernel.

Please note, however, that qemu usually emulate specific memory layouts
that may not match what FreeBSD kernel which was configured to run
on the different hardware would expect.  So a bit of hand-tweaking might
be required.  You should study where qemu maps memory and onboard devices,
and how it passes the control to FreeBSD kernel and make the appropriate
modifications to the code/kernel config.

Hope that helps.

-- 
Stanislav Sedov
ST4096-RIPE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20090716/89087a08/attachment.pgp


More information about the freebsd-arm mailing list