Closed zhouxinyu0723 closed 1 year ago
Keep working on sperate branch until fullt integrated in MLonMCU (including automatic installation of verilator etc.)
Do not forget lint issues
Here is my patched fork of the ara repo: https://github.com/PhilippvK/ara/tree/patch-mcounteren
Some of the Ara-specific ELF sections are not handled by https://github.com/tum-ei-eda/mlonmcu/blob/main/mlonmcu/target/elf.py yet:
WARNING - ignored: .bss.app_workspace / size: 24
WARNING - ignored: .bss.g_aot_memory / size: 160
WARNING - ignored: .l2 / size: 8
I think .l2
can be ignored, while everything starting with .bss
should go into ram_zdata
.
You you also resolve the merge confict please?
Followup tasks:
clone
utility in mlonmcu/setup/utils.py
to accept an optional submodule_paths
argument.mlonmcu/setup/tasks/ara.py
implementing _validate_ara
and clone_ara
(do not build HW here, just clone and apply patches, only clone relevant submodules!)mlonmcu/setup/tasks/verilator.py
implementing _validate_verilator
, clone_verilator
and build_verilator
resources/templates/ara.yml.j2
where clone urls for ara
and verilator
repo are defined and ara
target and vext
feature is enabled.TODOs for me:
RVVTarget
and RVPTarget
Base classes to move extension handling out of actual targets.out
return value of get_metrics function and create output Artifacts instead
Currently the crt0.s in ara/apps/common folder is assumed to be patched.