Trouble starting AP cpu's on all winner R40/V40 chip, help needed…

Søren Schmidt soren.schmidt at gmail.com
Tue Oct 15 11:49:20 UTC 2019


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



More information about the freebsd-arm mailing list