Skip to content

Add board NanoPi R3S LTS #8300

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

Merged
merged 3 commits into from
Jun 15, 2025
Merged

Add board NanoPi R3S LTS #8300

merged 3 commits into from
Jun 15, 2025

Conversation

pyavitz
Copy link
Collaborator

@pyavitz pyavitz commented Jun 15, 2025

The LTS variant has an HDMI port.

pyavitz added 2 commits June 15, 2025 08:49
The LTS variant has an HDMI port.

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
Copy link
Contributor

coderabbitai bot commented Jun 15, 2025

"""

Walkthrough

A new board configuration file for the NanoPi R3S LTS device has been introduced. This file specifies board metadata, kernel targets, device tree information, partition table type, and boot scenario. It includes a function to configure the board to use the mainline U-Boot bootloader for certain branches, specifying the U-Boot version, adjusting bootloader settings, and defining how the U-Boot binary is written to the target device. The function also clears any custom post-processing hooks to ensure the mainline U-Boot build process is used as-is. Additionally, the Real-Time Clock (RTC) driver HYM8563 configuration was changed from built-in to module in the linux-rockchip64 kernel configs for both current and edge branches.

Possibly related PRs

Suggested labels

ready to merge

Suggested reviewers

  • amazingfate
  • igorpecovnik
  • catalinii
    """

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fa74a4c and bb71177.

📒 Files selected for processing (2)
  • config/kernel/linux-rockchip64-current.config (1 hunks)
  • config/kernel/linux-rockchip64-edge.config (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • config/kernel/linux-rockchip64-edge.config
🔇 Additional comments (1)
config/kernel/linux-rockchip64-current.config (1)

2697-2697: Align current config with edge for HYM8563
The switch of CONFIG_RTC_DRV_HYM8563 from built-in to module matches the change in linux-rockchip64-edge.config. Please verify that deferring this driver to a loadable module won’t prevent the board’s RTC from initializing early (e.g., during initramfs).

✨ Finishing Touches
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Commit Unit Tests in branch NPI-R3S-002
  • Post Copyable Unit Tests in Comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added size/large PR with 250 lines or more 08 Milestone: Third quarter release Needs review Seeking for review Hardware Hardware related like kernel, U-Boot, ... Patches Patches related to kernel, U-Boot, ... labels Jun 15, 2025
@coderabbitai coderabbitai bot added the Ready to merge Reviewed, tested and ready for merge label Jun 15, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (2)
config/boards/nanopi-r3s-lts.conf (2)

5-6: BOOTCONFIG is set twice – second assignment is redundant

BOOTCONFIG is given the same value on line 5 and again inside post_family_config__use_mainline_uboot (line 18). Duplicating the assignment is unnecessary and slightly obscures intent.

-BOOTCONFIG="nanopi-r3s-lts-rk3566_defconfig"

You can safely drop the first assignment and keep the one inside the conditional helper, or vice-versa, to reduce noise.


14-16: Quote variable in conditional to avoid accidental word-splitting

Even though BRANCH is expected to be a single token, quoting is a cheap guard-rail and keeps the style consistent with the rest of Armbian configs.

-if [[ "$BRANCH" != "current" && "$BRANCH" != "edge" ]]; then
+if [[ "${BRANCH}" != "current" && "${BRANCH}" != "edge" ]]; then
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e9b20c3 and fa74a4c.

⛔ Files ignored due to path filters (3)
  • patch/kernel/archive/rockchip64-6.12/dt/rk3566-nanopi-r3s-lts.dts is excluded by !patch/**
  • patch/kernel/archive/rockchip64-6.15/dt/rk3566-nanopi-r3s-lts.dts is excluded by !patch/**
  • patch/u-boot/v2025.04/board_nanopi-r3s-lts/Add-board-NanoPi-R3S-LTS.patch is excluded by !patch/**
📒 Files selected for processing (1)
  • config/boards/nanopi-r3s-lts.conf (1 hunks)
🔇 Additional comments (1)
config/boards/nanopi-r3s-lts.conf (1)

23-24: Verify that RKBIN_DIR, BL31_BLOB, and DDR_BLOB are always defined

UBOOT_TARGET_MAP depends on three family-level variables. If any of them are undefined for this new board, the build will fail late and confusingly.

Please double-check that:

  • config/sources/families/rk35xx.conf (or equivalent) sets these three vars, or
  • This board file sets fallbacks when they are missing.

Otherwise consider adding a guard:

: "${RKBIN_DIR:?RKBIN_DIR not set}"
: "${BL31_BLOB:?BL31_BLOB not set}"
: "${DDR_BLOB:?DDR_BLOB not set}"

Change from "y" to "m"

Before
[    2.423992] rtc-hym8563 1-0051: no valid clock/calendar values available
[    2.424718] rtc-hym8563 1-0051: registered as rtc0
[    2.425770] rtc-hym8563 1-0051: no valid clock/calendar values available
[    2.425789] rtc-hym8563 1-0051: hctosys: unable to read the hardware clock
[    3.817166] rk808-rtc rk808-rtc.5.auto: registered as rtc1

After
[    3.790107] rk808-rtc rk808-rtc.5.auto: registered as rtc0
[    3.801742] rk808-rtc rk808-rtc.5.auto: setting system clock to 2017-08-05T09:48:13 UTC (1501926493)
[    3.919628] rtc-hym8563 1-0051: registered as rtc1

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
@github-actions github-actions bot removed the Ready to merge Reviewed, tested and ready for merge label Jun 15, 2025
@EvilOlaf
Copy link
Member

add hdmi port and call it lts LOL

@pyavitz pyavitz merged commit ce02695 into armbian:main Jun 15, 2025
11 checks passed
@EvilOlaf
Copy link
Member

forums+tag added.
https://paste.armbian.com/uceperukes
sd/emmc, usb, lan, hdmi works. very nice

@igorpecovnik
Copy link
Member

@EvilOlaf
Copy link
Member

no, diy with both current and edge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
08 Milestone: Third quarter release Hardware Hardware related like kernel, U-Boot, ... Needs review Seeking for review Patches Patches related to kernel, U-Boot, ... size/large PR with 250 lines or more
Development

Successfully merging this pull request may close these issues.

3 participants