Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 2016 09:52:54 -0800
From:      Oleksandr Tymoshenko <gonzo@bluezbox.com>
To:        Michael Tuexen <tuexen@fh-muenster.de>
Cc:        Jason Harmening <jason.harmening@gmail.com>, freebsd-arm@freebsd.org
Subject:   Re: loading 'VIRT' kernel in qemu
Message-ID:  <5124EA24-BD02-41CA-87ED-DFB5732685E1@bluezbox.com>
In-Reply-To: <7950ED7A-4A64-4A88-A0DA-8A0D6E54D6B8@fh-muenster.de>
References:  <CAM=8qa=pSRphmsbvy1L7fgPFDDK4xhozfrr3tj5fojd8w7fFjg@mail.gmail.com> <BA5B89E5-9187-4BD3-A036-554F3CF6F671@bluezbox.com> <CAM=8qa=RZJvRXX1H3hWS%2BSnOv_Hxnp=6P71SE%2Bt6d6D9Kbxx8A@mail.gmail.com> <58C0D791-3D3C-4DE2-9EAF-93DA40ED620D@bluezbox.com> <272ABF9C-4735-44C4-8EB8-FBCCDE37785A@bluezbox.com> <7950ED7A-4A64-4A88-A0DA-8A0D6E54D6B8@fh-muenster.de>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Dec 30, 2016, at 2:55 AM, Michael Tuexen <tuexen@fh-muenster.de> =
wrote:
>=20
>> On 30 Dec 2016, at 09:14, Oleksandr Tymoshenko <gonzo@bluezbox.com> =
wrote:
>>=20
>>=20
>>> On Dec 29, 2016, at 5:25 PM, Oleksandr Tymoshenko =
<gonzo@bluezbox.com> wrote:
>>>=20
>>>=20
>>>> On Dec 29, 2016, at 5:12 AM, Jason Harmening =
<jason.harmening@gmail.com> wrote:
>>>>=20
>>>>=20
>> .. skipped ..
>>>>=20
>>>> Ah, thanks!  That should make things a good deal easier.
>>>> Using the nanobsd-generated images and the qemu invocation from =
qemu-armv7.cfg, I get a bit further but end up with a repeating prefetch =
abort:
>>>> Prefetch Abort Exception PC at 0xFF176790  CPSR 0x80000113
>>>>=20
>>>> This is either in UEFI or very early in kernel bootstrap, since the =
copyright hasn't printed yet...haven't poked at it to figure out where =
the pc comes from yet.
>>>=20
>>> Looks like it's boot1.efi. After upgrading to clang 3.9.0 -fPIC is =
required to  build loader. In addition to this problem there seems to be =
some error when calculating value for relocation. Looks like it=E2=80=99s =
going to take a bit of time to track down, I can=E2=80=99t identify it =
immediately. =20
>>=20
>>=20
>> Hi Jason,
>>=20
>> I think I fixed the PIC problem along with FDT-related one:
>> https://people.freebsd.org/~gonzo/arm/patches/arm-uefi.diff
> Any plan to get this into head?

Yes, I=E2=80=99ll submit this patch to Phabricator and it=E2=80=99ll be =
committed to
HEAD when/if it passes the review.=20=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5124EA24-BD02-41CA-87ED-DFB5732685E1>