Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 2009 17:10:30 +0400
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        hpcharles@gmail.com
Cc:        freebsd-arm@freebsd.org
Subject:   Re: qemu / boot parameter
Message-ID:  <20090716171030.a0e7a3f0.stas@FreeBSD.org>
In-Reply-To: <4734a3ed0907150752g595b680frcacba26da7979479@mail.gmail.com>
References:  <4734a3ed0907150752g595b680frcacba26da7979479@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Thu__16_Jul_2009_17_10_30_+0400_guTENwVAxq1_al2G
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, 15 Jul 2009 16:52:40 +0200
Henri-Pierre Charles <hpcharles@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.
>=20
> 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
>=20
> And I get :
> qemu: fatal: Trying to execute code outside RAM or ROM at 0xc0200100
> (which is not far from KERNVIRTADDR)
>=20
> I miss something somewhere ? Any idea ?
>=20

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.

--=20
Stanislav Sedov
ST4096-RIPE

--Signature=_Thu__16_Jul_2009_17_10_30_+0400_guTENwVAxq1_al2G
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iQIcBAEBAgAGBQJKXybGAAoJEKN82nOYvCd0oFEP/0PEIVKyls+UHmHdjJhtjXlF
8mFOLeQgua+f5FxYgOymTXhh+3Jq6wq1p/DElL/Qf9LIB78A14p6iDzHjHGuJKOS
Q2RFEQpBkWIk1DeOlr2/g+wCOC+DLAtWnzxNYE2kmdjG9kxY4jQ0c0bGWTn7Omhg
3RhgwAlPmSEEyqy+1uNaXMsLXoVMIY1YmmEmylhMF/YlQU8JPknRPeCvGYAZHaWY
XSqxhZVrFY4kWOKQcytJT+Fh0HiE3AW0zCvPmO9pEILSjOpafwEx9MOC1FrKO+vQ
ea2uNMr4DWVg7oBHWl3hE44EkJ9u0i3uNiKPhRcEmkicX4Bb+IjcNFEXDX6YOnTv
PPFUD1RkgZXT9HIgrbRISanp2H+oOkoafUf4x5QoZzjydHbbfw+kCubkuKZM64ar
5VSFE62Cs0+QUCFlV+0yXVaAMFXvipRz1wDGWysVBwwUrCe/R7BUkuDoNpKpzbO9
W9PMAbCmRDK9hKi7Ejb4iUW7HTSZyV+6bM3oioBiAldPrwEmiggayxtCOZ/bkZTq
SFuWIXrPcpsVYKt6n3zjjbjFsLPvfV8fLX472PVDuScbrg0hd0lN8ZxfTVgTSquj
LtpiQDAM4+lVevHlvwTC7BNnj4sxWpV4ccUkn1Qt2by7dBJ5nZMay5z6xoilYRrz
WJJ7rep2r9HD314W0sCv
=y1kB
-----END PGP SIGNATURE-----

--Signature=_Thu__16_Jul_2009_17_10_30_+0400_guTENwVAxq1_al2G--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090716171030.a0e7a3f0.stas>