From owner-freebsd-arm@freebsd.org Sun Oct 8 06:26:33 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C35F6E293FA for ; Sun, 8 Oct 2017 06:26:33 +0000 (UTC) (envelope-from noname.esst@yahoo.com) Received: from sonic310-20.consmr.mail.gq1.yahoo.com (sonic310-20.consmr.mail.gq1.yahoo.com [98.137.69.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 710666CFD2 for ; Sun, 8 Oct 2017 06:26:32 +0000 (UTC) (envelope-from noname.esst@yahoo.com) X-YMail-OSG: KaclTk4VM1nBzcKImlSXvNG5IkMUo0IJaXrABxVDO5uCGww.wLdw07invjhikWc mVrqpRGzwmmph_vYeYMHJTgxTzwXUfoWOF6pPhaCs395dm0qknRxn8QeIdOpxpoWfMFJyvNCUCgt cNpxeQt37fnmpRJXP38nkCrzPV4KCtzfwlycuiXYZW5T2ZvJ6rZqJ9F8QZwwLzBgUqeyGwqSC.gZ 9w0zUtbiI8YpJ0J7YEXKl4NC791fZRKIlP55RtaLFUabL4Rd0gZ8Mv6GOuTGWY5U6PA5c8671VkE qGDxWuQIsCS93gni26kdv.67jCAm8Q8K42hyt2kodF1sMXl.Y8TgNFDihSuZ4dN7uRWMGYx95.XE FVS8WI6R9Pn4PteZ13yvkKG.8hfM3FkbVgqfoenMBi_da1PV27.U6o8pMW9e1tLafAbhbYIJcw7X FISNIrGnPpccLrx8axEqYgEMie2QINEW9iIuPpTcymV0h5kqxFPuAcg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Sun, 8 Oct 2017 06:26:26 +0000 Date: Sun, 8 Oct 2017 06:26:22 +0000 (UTC) From: Nomad Esst Reply-To: Nomad Esst To: Freebsd-arm Message-ID: <1564758201.3362939.1507443982550@mail.yahoo.com> Subject: BPi M3 awg interface soft reset timed out MIME-Version: 1.0 References: <1564758201.3362939.1507443982550.ref@mail.yahoo.com> X-Mailer: WebService/1.1.10668 YahooMailNeo Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Oct 2017 06:26:33 -0000 I'm facing with this problem that after each "reboot", I get this error fro= m awg driver and the interface is not created!=C2=A0 awg0: mem 0x1c30000-0x1c300ff irq 27 on simple= bus0awg0: soft reset timed outdevice_attach: awg0 attach returned 60 When I unplug the board, and plug it again, there is no problem at all. Jus= t after "reboot"s I face this problem. I've tested with FBSD 11 and FBSD 12= . Thanks in advance. From owner-freebsd-arm@freebsd.org Sun Oct 8 13:51:09 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0DA43E3688E for ; Sun, 8 Oct 2017 13:51:09 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from fry.fubar.geek.nz (fry.fubar.geek.nz [139.59.165.16]) by mx1.freebsd.org (Postfix) with ESMTP id 9DA286D462 for ; Sun, 8 Oct 2017 13:51:08 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from [10.0.0.68] (unknown [81.149.102.120]) by fry.fubar.geek.nz (Postfix) with ESMTPSA id E14B54EC94; Sun, 8 Oct 2017 13:51:01 +0000 (UTC) From: Andrew Turner Message-Id: <2D2A9368-489D-44AC-9CAA-2292025EA8F1@fubar.geek.nz> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: bhyve on ARMv8 - initarm() and struct arm64_bootparams Date: Sun, 8 Oct 2017 14:50:54 +0100 In-Reply-To: Cc: freebsd-arm@freebsd.org To: Alexandru Elisei References: X-Mailer: Apple Mail (2.3273) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Oct 2017 13:51:09 -0000 > On 7 Oct 2017, at 07:50, Alexandru Elisei = wrote: >=20 > Hello, >=20 > I am currently working on porting bhyve to ARMv8 and I've managed to > start a guest kernel inside bhyve. >=20 > I am having trouble getting past the initarm() function in the guest > and I think the problem is the fact that I am not sending the correct > boot parameter arm64_bootparams->modulep to the guest (the other > struct variables are computed in locore.S before calling initarm()). >=20 > As far as I can I can tell modulep is a pointer to the mapped kernel > image virtual address where module information is stored, but I don't > know how to get that information from the guest kernel when creating > the virtual machine. >=20 > Can anyone provide some help with this issue? It should be the virtual address the module data has been loaded into. = In loader.efi we handle this by searching for the virtual address of the = last module, and add on its size, then add on space for the environment = and dtb. I would strongly suggest you use UEFI boot. It would fix this, and allow = non-FreeBSD operating systems to also boot. There is an existing port of = EDK2 to bhyve, however it=E2=80=99s based on an old code base. = Alternatively u-boot now supports the required EFI parts. There are a = few extra patches for FreeBSD in the repo at [1]. Andrew [1] https://github.com/freebsd/u-boot/ =