Skip to content

bsp:Phytium开发板适配 #10533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

messigogogo
Copy link
Contributor

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

[

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

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

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

  • BSP:
  • .config:
  • action:

]

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

必须选择一项 Choose one (Mandatory):

  • 本拉取/合并请求是一个草稿版本 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:

我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:

  • 已经仔细查看过代码改动的对比 Already check the difference between PR and old code
  • 代码风格正确,包括缩进空格,命名及其他风格 Style guide is adhered to, including spacing, naming and other styles
  • 没有垃圾代码,代码尽量精简,不包含#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up
  • 所有变更均有原因及合理的,并且不会影响到其他软件组件代码或BSP All modifications are justified and not affect other components or BSP
  • 对难懂代码均提供对应的注释 I've commented appropriately where code is tricky
  • 代码是高质量的 Code in this PR is of high quality
  • 已经使用formatting 等源码格式化工具确保格式符合RT-Thread代码规范 This PR complies with RT-Thread code specification
  • 如果是新增bsp, 已经添加ci检查到.github/workflows/bsp_buildings.yml 详细请参考链接BSP自查

@CLAassistant
Copy link

CLAassistant commented Jul 24, 2025

CLA assistant check
All committers have signed the CLA.

适配Phytium开发板
@supperthomas supperthomas changed the title Phytium开发板适配 bsp:Phytium开发板适配 Jul 25, 2025
@messigogogo
Copy link
Contributor Author

可以合入吗?这个错误避免不了

@kurisaW kurisaW requested a review from Rbb666 August 5, 2025 13:46
@Rbb666 Rbb666 closed this Aug 5, 2025
@Rbb666 Rbb666 reopened this Aug 5, 2025
@Rbb666 Rbb666 requested a review from Copilot August 5, 2025 13:50
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adapts RT-Thread for Phytium development boards by updating the BSP (Board Support Package) configuration. The changes primarily focus on configuration file updates for the E2000D demo board and general Phytium board support improvements.

Key changes include:

  • Removal of specific board configuration files for E2000D demo RT-Smart mode
  • Updates to main application logic for different board types
  • Documentation improvements for board selection process
  • Configuration updates for aarch32 and aarch64 architectures

Reviewed Changes

Copilot reviewed 30 out of 117 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
bsp/phytium/aarch64/configs/e2000d_demo_rtsmart.h Removed complete configuration header file
bsp/phytium/aarch64/configs/e2000d_demo_rtsmart Removed complete configuration file
bsp/phytium/aarch64/applications/main.c Updated board type checks and added auto-test functionality
bsp/phytium/aarch64/README.md Updated documentation for board selection process
bsp/phytium/aarch64/.config Updated board configuration settings
bsp/phytium/aarch64/.ci/attachconfig/ci.attachconfig.yml Added CI configuration for multiple board types
bsp/phytium/aarch32/thread-env.sh Fixed architecture display message
bsp/phytium/aarch32/rtconfig.h.origin Updated board configuration
bsp/phytium/aarch32/rtconfig.h Updated board configuration
bsp/phytium/aarch32/makefile Simplified build configuration and file naming
bsp/phytium/aarch32/configs/phytium_pi_rtthread_pusb2_hc.h Removed configuration file
Comments suppressed due to low confidence (1)

bsp/phytium/aarch64/applications/main.c:29

  • The TARGET defines have been changed from TARGET_E2000D to TARGET_PE2202, but the comment on line 34 still refers to '4 cores at most' when TARGET_PD2408 should support 8 cores based on the configuration. This inconsistency should be corrected.
    #if defined(TARGET_PE2202)

@@ -5,7 +5,7 @@ export RTT_EXEC_PATH=$(pwd)/tools/gcc-arm-10.3-2021.07-x86_64-arm-none-eabi/bin
export RTT_CC_PREFIX=arm-none-eabi-
export PATH=$PATH:$RTT_EXEC_PATH

echo "arch => aarch64"
echo "arch => aarch32"
Copy link
Preview

Copilot AI Aug 5, 2025

Choose a reason for hiding this comment

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

The echo statement was corrected from 'aarch64' to 'aarch32', which is the correct fix for this aarch32 environment script.

Copilot uses AI. Check for mistakes.

@@ -614,7 +614,7 @@ tcpip_init(tcpip_init_done_fn initfunc, void *arg)
}
#endif /* LWIP_TCPIP_CORE_LOCKING */

sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO);
Copy link
Member

Choose a reason for hiding this comment

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

为啥要修改这地方?

Copy link
Contributor Author

@messigogogo messigogogo Aug 8, 2025

Choose a reason for hiding this comment

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

按照之前的优先级设置,会掉包

Copy link
Contributor Author

Choose a reason for hiding this comment

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

0880c4c80710e2eb962e

Copy link
Member

Choose a reason for hiding this comment

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

查了一下,TCPIP_THREAD_PRIO 的定义是:RT_LWIP_TCPTHREAD_PRIORITY
那直接修改 RT_LWIP_TCPTHREAD_PRIORITY 就行?,不建议去修改LWIP内部的代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants