Date: Tue, 15 Oct 2019 14:02:10 +0200 From: Emmanuel Vadot <manu@bidouilliste.com> To: =?ISO-8859-1?Q?S=F8ren?= Schmidt <soren.schmidt@gmail.com> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Trouble starting AP cpu's on all winner R40/V40 chip, help =?ISO-8859-1?Q?needed=3F?= Message-ID: <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> In-Reply-To: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> References: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi S=F8ren, On Tue, 15 Oct 2019 13:49:15 +0200 S=F8ren Schmidt <soren.schmidt@gmail.com> wrote: > Hi all >=20 > I found some time to wrestle the allwinner R40/v40 I?ve sitting around, b= ut I?m bashing my head against getting the AP?s booted properly. >=20 > I don?t seem to be able to get the CPU to run at all, or (more likely) I = don?t have a way to get them startet at ?mpentry? to get them going correct= ly. >=20 > I?m not sure I understand how those AP?s gets their starting address, the= only reference to ?mpentry? is aw_mp.c: >=20 >=20 > bus_space_write_4(fdtbus_bs_tag, cpucfg, CPUCFG_P_REG0, > pmap_kextract((vm_offset_t)mpentry)); >=20 > This is used on all all winner cpu?s (more or less) but according til the= R40/v40 docs that register doesn?t exist which would explain the failure? >=20 > Any help is most welcome. >=20 >=20 > PS: Board is BananaPi M2 berry, I?ve gotten USB, SATA etc running, missin= g SMP and network. >=20 > -S=F8ren >=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" R40 seems to use different registers for cpu bringup, so you will need to define a new platform for it in aw_machdep.c and defines some new function for ap bringup in aw_mp.c The User Manual section 3.2 of the R40 have all the needed info. Cheers, --=20 Emmanuel Vadot <manu@bidouilliste.com>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191015140210.82d406d7a7b86720e4771206>