Date: Fri, 30 Dec 2016 11:55:27 +0100 From: Michael Tuexen <tuexen@fh-muenster.de> To: Oleksandr Tymoshenko <gonzo@bluezbox.com> Cc: Jason Harmening <jason.harmening@gmail.com>, freebsd-arm@freebsd.org Subject: Re: loading 'VIRT' kernel in qemu Message-ID: <7950ED7A-4A64-4A88-A0DA-8A0D6E54D6B8@fh-muenster.de> In-Reply-To: <272ABF9C-4735-44C4-8EB8-FBCCDE37785A@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>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_56B43687-8FCC-4E89-928B-30F14C8EBB75 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > 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? Best regards Michael >=20 > You also need to provide 256M memory to qemu, because > loader.efi allocates 64Mb heap and 128Mb is just not enough > for UEFI firmware and loader.efi. Message below is an > indication of such error: > Failed to start image provided by UFS (9) >=20 > I used following command line to test nanobsd image: > qemu-system-arm -M virt -serial stdio -bios QEMU_EFI.fd \ > -m 256M -nographic -monitor none \ > -drive = if=3Dnone,file=3D_.disk.image.qemu-armv7.qcow2,id=3Dhd0 \ > -device virtio-blk-device,drive=3Dhd0 >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" --Apple-Mail=_56B43687-8FCC-4E89-928B-30F14C8EBB75 Content-Disposition: attachment; filename=smime.p7s Content-Type: application/pkcs7-signature; name=smime.p7s Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIQkDCCBNUw ggO9oAMCAQICCFBOxvU9EbRkMA0GCSqGSIb3DQEBCwUAMHExCzAJBgNVBAYTAkRFMRwwGgYDVQQK ExNEZXV0c2NoZSBUZWxla29tIEFHMR8wHQYDVQQLExZULVRlbGVTZWMgVHJ1c3QgQ2VudGVyMSMw IQYDVQQDExpEZXV0c2NoZSBUZWxla29tIFJvb3QgQ0EgMjAeFw0xNDA3MjIxMjA4MjZaFw0xOTA3 MDkyMzU5MDBaMFoxCzAJBgNVBAYTAkRFMRMwEQYDVQQKEwpERk4tVmVyZWluMRAwDgYDVQQLEwdE Rk4tUEtJMSQwIgYDVQQDExtERk4tVmVyZWluIFBDQSBHbG9iYWwgLSBHMDEwggEiMA0GCSqGSIb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FAASCAQC/sBKVbu6c/Fdrd/zsI2xO0w1pnSl0TtRk 8jJtAzWQGPrFnCNnVk8Z6WPRfECAWIWnAxVZEtBrYsQyrx6YQvpmTUDp4UnWwXKNo0cRyV0TF0Su KKn67+SBYmnneL2dBbYjxI8wKlVcs0Had6GhspN1Y+Xt42BcjdbXbGo25T1prg96GqEen5vavidZ 4+BU4Zav0POibaXiX5MPTSGNzc6yqkN+3ewRJzLqmJaHaB8ZP2zazFEbBeCAFIjHsj2aXPUFVkBr M7LA9A1CsedTKjGeImQYMAy0rV4SPOnqIi2ke8Kzzkg5YPPv9swBeRSzw8YnSUAbjvJansw07kGx zdZdAAAAAAAA --Apple-Mail=_56B43687-8FCC-4E89-928B-30F14C8EBB75--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7950ED7A-4A64-4A88-A0DA-8A0D6E54D6B8>