Trouble starting AP cpu's on all winner R40/V40 chip, help needed?
Emmanuel Vadot
manu at bidouilliste.com
Tue Oct 15 12:02:13 UTC 2019
Hi Søren,
On Tue, 15 Oct 2019 13:49:15 +0200
Søren Schmidt <soren.schmidt at gmail.com> wrote:
> Hi all
>
> I found some time to wrestle the allwinner R40/v40 I?ve sitting around, but I?m bashing my head against getting the AP?s booted properly.
>
> 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 correctly.
>
> I?m not sure I understand how those AP?s gets their starting address, the only reference to ?mpentry? is aw_mp.c:
>
>
> bus_space_write_4(fdtbus_bs_tag, cpucfg, CPUCFG_P_REG0,
> pmap_kextract((vm_offset_t)mpentry));
>
> 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?
>
> Any help is most welcome.
>
>
> PS: Board is BananaPi M2 berry, I?ve gotten USB, SATA etc running, missing SMP and network.
>
> -Søren
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at 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,
--
Emmanuel Vadot <manu at bidouilliste.com>
More information about the freebsd-arm
mailing list