Skip to content

增加全志 V861 E907 异构板级支持 - #12078

Open
cms19859230182-lang wants to merge 2 commits into
RT-Thread:masterfrom
cms19859230182-lang:bsp/avaota-f2-e907
Open

cms19859230182-lang wants to merge 2 commits into
RT-Thread:masterfrom
cms19859230182-lang:bsp/avaota-f2-e907

Conversation

@cms19859230182-lang

Copy link
Copy Markdown
Contributor

拉取/合并请求描述:(PR description)

为什么提交这份PR (why to submit this PR)

为全志 V861(Avaota F2)增加 E907 侧板级支持,并提供与 C907 的最小异构演示(DRAM 门铃,非 OpenAMP)。

你的解决方案是什么 (what is your solution)

新增 bsp/allwinner/avaota-f2-e907;更新 avaota-f2 的 DRAM ping 应答样例与 board.dtb 跟踪;并在 bsp/README.md 登记。

依赖/关联:#12077

请提供验证的bsp和config (provide the config and bsp)

  • BSP: bsp/allwinner/avaota-f2-e907(配合 bsp/allwinner/avaota-f2)
  • .config: 各 BSP 目录下 rtconfig.h(本地已能 scons 编过)
  • action: (待补充)

板上关键字:HETERO-OK、RPMSG-OK(非 OpenAMP;非硬件 MSGBOX)

当前拉取/合并请求的状态 Intent for your PR

  • 本拉取/合并请求是一个草稿版本 This PR is for a code-review and is intended to get feedback
  • 本拉取/合并请求是一个成熟版本 This PR is mature, and ready to be integrated into the repo

代码质量 Code Quality:

  • 已经仔细查看过代码改动的对比
  • 代码风格正确,包括缩进空格,命名及其他风格
  • 没有垃圾代码,代码尽量精简,不包含#if 0代码,不包含已经被注释了的代码
  • 所有变更均有原因及合理的,并且不会影响到其他软件组件代码或BSP
  • 对难懂代码均提供对应的注释
  • 代码是高质量的
  • 已经使用 clang-format …
  • 如果是新增bsp, 已经添加ci检查到 .github/ALL_BSP_COMPILE.json

@github-actions

Copy link
Copy Markdown

👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread!

为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。
To ensure your code complies with RT-Thread's coding style, please run the code formatting workflow by following the steps below (If the formatting of CI fails to run).


🛠 操作步骤 | Steps

  1. 前往 Actions 页面 | Go to the Actions page
    点击进入工作流 → | Click to open workflow →

  2. 点击 Run workflow | Click Run workflow

  • Use workflow from 保持默认分支(通常为 master)
    Keep the default branch (usually master) in Use workflow from
  • 在 branch 输入框填写 PR 分支 bsp/avaota-f2-e907
    Enter PR branch bsp/avaota-f2-e907 in the branch field
  • 设置需排除的文件/目录(目录请以"/"结尾)
    Set files/directories to exclude (directories should end with "/")
  1. 等待工作流完成 | Wait for the workflow to complete
    格式化后的代码将作为独立提交推送至你的分支。
    The formatting changes will be pushed to your branch as a separate commit.

完成后,提交将自动更新至 bsp/avaota-f2-e907 分支,关联的 Pull Request 也会同步更新。
Once completed, commits will be pushed to the bsp/avaota-f2-e907 branch automatically, and the related Pull Request will be updated.

如有问题欢迎联系我们,再次感谢您的贡献!💐
If you have any questions, feel free to reach out. Thanks again for your contribution!

''')
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = [cwd])

dtb = os.path.join(cwd, 'board.dtb')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这版又把 C907 和 E907 的 board.dtb 提交进来了。这里的 Depends() 只跟踪已有文件,设备树源变了也不会重新生成。请在构建中从源生成两份 DTB,和 #12077 一起处理。

This commit tracks binary DTBs for both C907 and E907. Depends() only tracks the existing file, so changing the source will not regenerate it. Please generate both DTBs from source during the build and address this together with #12077.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okok

新增 bsp/allwinner/avaota-f2(UART/msh 最小 BSP),并在 bsp/README.md 登记。
按 review 删除 ACCEPTANCE.md,编译说明改为推荐 Env 2.x / sdk。

board.dtb 不再假设树里已有:board/SConscript 调用 board/gen_board_dtb.py 在构建时生成,
builtin_fdt.o 显式依赖该产物,源变化会重新生成。生成需要 python3 + fdt 模块,
README 写明了这一步;board/board.dtb 作为构建产物加入 .gitignore。
amp_write(AMP_SLOT_E907_STEP, AMP_STEP_RELEASED);

busy_delay_loops(500000U);
rt_hw_uart_init();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

板级初始化已注册 uart0。这里再次注册会重置在用串口的锁和回调,随后因重名失败。请把恢复硬件的操作拆出,设备只注册一次。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@Rbb666

Rbb666 commented Nov 24, 2026

Copy link
Copy Markdown
Member

BSP 构建矩阵为空,E907 没有进入编译。请在 .github/ALL_BSP_COMPILE.json 登记 allwinner/avaota-f2-e907,同步 C907 的矩阵修复后重跑。 失败运行

- 新增 bsp/allwinner/avaota-f2-e907(异构主核)并在 bsp/README.md 登记。
- 同步 C907/E907:board.dts + dtc 生成 board.dtb(删 gen_board_dtb.py)、
  uart0 走 PLIC INT_RX、trap 分发 M 外部中断、rtconfig.h 由 Kconfig/.config 生成。
- driver 用 RTT_ROOT 定位 libfdt,scons --dist 项目也能编。
- CI:riscv-none leg 加入 allwinner/avaota-f2 与 avaota-f2-e907,并安装 dtc。
- 未上板验证;本机只做干净构建(含 --dist 项目)。

Co-Authored-By: DeepSeek Flash 1017
Co-Authored-By: Gemini 3.8 Flash
@github-actions

Copy link
Copy Markdown

📌 Code Review Assignment

🏷️ Tag: workflow

Reviewers: @Rbb666 @kurisaW @supperthomas

Changed Files (Click to expand)
  • .github/ALL_BSP_COMPILE.json
  • .github/workflows/bsp_buildings.yml

📊 Current Review Status (Last Updated: 2026-11-25 04:42 CST)


📝 Review Instructions

  1. 维护者可以通过单击此处来刷新审查状态: 🔄 刷新状态
    Maintainers can refresh the review status by clicking here: 🔄 Refresh Status

  2. 确认审核通过后评论 LGTM/lgtm
    Comment LGTM/lgtm after confirming approval

  3. PR合并前需至少一位维护者确认
    PR must be confirmed by at least one maintainer before merging

ℹ️ 刷新CI状态操作需要具备仓库写入权限。
ℹ️ Refresh CI status operation requires repository Write permission.

@github-actions github-actions Bot added the action github action yml imporve label Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action github action yml imporve BSP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants