Date: Sun, 8 Jan 2017 14:40:30 -0500 From: Jason Harmening <jason.harmening@gmail.com> To: Oleksandr Tymoshenko <gonzo@bluezbox.com> Cc: Michael Tuexen <tuexen@fh-muenster.de>, freebsd-arm@freebsd.org Subject: Re: loading 'VIRT' kernel in qemu Message-ID: <CAM=8qakEMUmhXhR-yessLaHuYz4=GowoKaoTndxhDYXcRgm-Dg@mail.gmail.com> In-Reply-To: <5124EA24-BD02-41CA-87ED-DFB5732685E1@bluezbox.com> 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> <5124EA24-BD02-41CA-87ED-DFB5732685E1@bluezbox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 30, 2016 at 12:52 PM, Oleksandr Tymoshenko <gonzo@bluezbox.com> wrote: > > On Dec 30, 2016, at 2:55 AM, Michael Tuexen <tuexen@fh-muenster.de> wrote= : > > On 30 Dec 2016, at 09:14, Oleksandr Tymoshenko <gonzo@bluezbox.com> wrote= : > > > On Dec 29, 2016, at 5:25 PM, Oleksandr Tymoshenko <gonzo@bluezbox.com> > wrote: > > > On Dec 29, 2016, at 5:12 AM, Jason Harmening <jason.harmening@gmail.com> > wrote: > > > .. skipped .. > > > 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 > > 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 th= e > pc comes from yet. > > > 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= . > > > > Hi Jason, > > 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 c= ommitted to > HEAD when/if it passes the review. > To close the loop (sorry, I was traveling for the last week & couldn't test until now): applying this patch & passing -m 256M fixes things and I can boot reliably. Thanks for all your help!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM=8qakEMUmhXhR-yessLaHuYz4=GowoKaoTndxhDYXcRgm-Dg>