Skip to content

feat: add Longan Pi3H#76

Open
meteyou wants to merge 5 commits intomasterfrom
chore/longan-pi3h
Open

feat: add Longan Pi3H#76
meteyou wants to merge 5 commits intomasterfrom
chore/longan-pi3h

Conversation

@meteyou
Copy link
Copy Markdown
Member

@meteyou meteyou commented Mar 13, 2026

No description provided.

Signed-off-by: Stefan Dej <meteyou@gmail.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 13, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7d02f4d5-2f54-46c6-88c5-4ded78b4aa08

📥 Commits

Reviewing files that changed from the base of the PR and between e84b2d7 and 84f6b2d.

📒 Files selected for processing (1)
  • configs/board-longan_pi3h_bookworm.conf
🚧 Files skipped from review as they are similar to previous changes (1)
  • configs/board-longan_pi3h_bookworm.conf

📝 Walkthrough

Walkthrough

Added a new board configuration file that declares three exported constants: BOARD=longanpi-3h, RELEASE=bookworm, and ARMBIAN_BRANCH=v24.11.

Changes

Cohort / File(s) Summary
Configuration File
configs/board-longan_pi3h_bookworm.conf
Added new static configuration file declaring BOARD, RELEASE, and ARMBIAN_BRANCH constants (values: longanpi-3h, bookworm, v24.11).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 I hopped a line of config bright,
BOARD and RELEASE tucked in tight,
ARMBIAN_BRANCH set to sing,
LonganPi waits for spring,
Small bytes, big delight!

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive No pull request description was provided by the author, making it impossible to assess whether it relates to the changeset. Add a description explaining the purpose and context of adding the Longan Pi3H board configuration to help reviewers understand the change.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'feat: add Longan Pi3H' directly and clearly describes the main change: adding a new board configuration for Longan Pi3H.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/longan-pi3h
📝 Coding Plan
  • Generate coding plan for human review comments

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can approve the review once all CodeRabbit's comments are resolved.

Enable the reviews.request_changes_workflow setting to automatically approve the review once all CodeRabbit's comments are resolved.

meteyou added 2 commits March 13, 2026 12:28
…lder 6.6 kernel

Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Copy link
Copy Markdown

@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

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@configs/board-longan_pi3h_bookworm.conf`:
- Around line 1-3: The ARMBIAN_BRANCH value is invalid; update the
ARMBIAN_BRANCH variable in the config (look for the ARMBIAN_BRANCH="v25.05" line
in the file) to a valid upstream tag such as "v25.5.1", "v25.8.1", or "v25.8.2"
(choose the appropriate release for your build), ensuring the string exactly
matches an existing tag in the armbian/build repo so the build can find the
correct upstream sources.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cd003237-943e-40ed-9767-11b99a539c7d

📥 Commits

Reviewing files that changed from the base of the PR and between 3d12ad6 and 49d80e5.

📒 Files selected for processing (1)
  • configs/board-longan_pi3h_bookworm.conf

Comment on lines +1 to +3
BOARD=longanpi-3h
RELEASE="bookworm"
ARMBIAN_BRANCH="v25.05"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

cfg="$(fd 'board-longan_pi3h_bookworm.conf' | head -n1)"
board="$(sed -nE 's/^BOARD="?([^"]+)"?$/\1/p' "$cfg")"
branch="$(sed -nE 's/^ARMBIAN_BRANCH="?([^"]+)"?$/\1/p' "$cfg")"

echo "Config file: $cfg"
echo "BOARD=$board"
echo "ARMBIAN_BRANCH=$branch"

# Expected: tag exists
git ls-remote --exit-code --tags https://github.com/armbian/build.git "refs/tags/$branch" >/dev/null
echo "OK: tag '$branch' exists in armbian/build"

# Expected: at least one board config path contains the board id
python - "$branch" "$board" <<'PY'
import json, sys, urllib.request
branch, board = sys.argv[1], sys.argv[2]
url = f"https://api.github.com/repos/armbian/build/git/trees/{branch}?recursive=1"
with urllib.request.urlopen(url) as r:
    data = json.load(r)
paths = [n.get("path","") for n in data.get("tree",[])]
matches = [p for p in paths if p.startswith("config/boards/") and board.lower() in p.lower()]
if not matches:
    print(f"FAIL: no board config containing '{board}' found under config/boards at {branch}")
    sys.exit(1)
print("OK: matching board config path(s):")
for m in matches[:10]:
    print(" -", m)
PY

Repository: mainsail-crew/armbian-builds

Length of output: 164


🏁 Script executed:

#!/bin/bash
# Check tag existence separately
echo "=== Checking if tag v25.05 exists in armbian/build ==="
git ls-remote --tags https://github.com/armbian/build.git 2>&1 | grep -E 'v25\.05|^fatal|^error' || echo "No match found or connection issue"

echo -e "\n=== Checking available tags near v25.05 ==="
git ls-remote --tags https://github.com/armbian/build.git 2>&1 | grep -E 'v25\.' | tail -20 || echo "Could not fetch tags"

Repository: mainsail-crew/armbian-builds

Length of output: 1552


🏁 Script executed:

#!/bin/bash
# Alternative: check the GitHub API directly for tag v25.05
python3 <<'PYEOF'
import json
import urllib.request
import urllib.error

try:
    # Check if the tag exists via GitHub API
    url = "https://api.github.com/repos/armbian/build/git/ref/tags/v25.05"
    req = urllib.request.Request(url)
    with urllib.request.urlopen(req) as response:
        data = json.load(response)
        print("Tag v25.05 EXISTS")
        print(f"SHA: {data.get('object', {}).get('sha', 'N/A')}")
except urllib.error.HTTPError as e:
    if e.code == 404:
        print("ERROR: Tag v25.05 NOT FOUND in armbian/build")
    else:
        print(f"HTTP Error {e.code}: {e.reason}")
except Exception as e:
    print(f"Error checking tag: {e}")
PYEOF

Repository: mainsail-crew/armbian-builds

Length of output: 219


Replace invalid ARMBIAN_BRANCH="v25.05" with a valid upstream tag.

The tag v25.05 does not exist in the armbian/build repository. Valid tags in the v25 series include v25.5.1, v25.8.0-trunk.*, v25.8.1, and v25.8.2. Choose an appropriate release tag before merge to prevent build failures.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@configs/board-longan_pi3h_bookworm.conf` around lines 1 - 3, The
ARMBIAN_BRANCH value is invalid; update the ARMBIAN_BRANCH variable in the
config (look for the ARMBIAN_BRANCH="v25.05" line in the file) to a valid
upstream tag such as "v25.5.1", "v25.8.1", or "v25.8.2" (choose the appropriate
release for your build), ensuring the string exactly matches an existing tag in
the armbian/build repo so the build can find the correct upstream sources.

meteyou added 2 commits March 13, 2026 20:23
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Signed-off-by: Stefan Dej <meteyou@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant