WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@retro98boy
Copy link
Contributor

@retro98boy retro98boy commented Nov 16, 2025

Description

Because the previous version of repk/gxlimg had some issues when handling bl3x, I forked the repository and made a simple fix. The implementation used in extensions/gxlimg.sh is also mine.

After this PR is merged, the fix in my repository becomes meaningless, so the URL can be switched to repk/gxlimg.

How Has This Been Tested?

./compile.sh BOARD=cainiao-cniot-core BRANCH=current RELEASE=noble, then update U-Boot and test

Summary by CodeRabbit

  • Chores
    • Updated the source repository for gxlimg to a new upstream source.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 16, 2025

Walkthrough

This pull request updates the source repository for the gxlimg fetch step from retro98boy/gxlimg to repk/gxlimg and adds a descriptive comment, while keeping the target resource name and commit reference unchanged.

Changes

Cohort / File(s) Change Summary
Repository Reference Update
extensions/gxlimg.sh
Changed gxlimg source repository from retro98boy/gxlimg to repk/gxlimg with updated descriptive comment

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested labels

Ready to merge

Suggested reviewers

  • igorpecovnik
  • catalinii
  • joekhoobyar

Poem

🐰 The gxlimg hops to a new home so fine,
From retro98boy's branch to repk's design,
With a note to explain this repository dance,
Our tooling takes yet another sweet prance!

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'extensions: gxlimg: Update repo URL' clearly and accurately reflects the main change: updating the repository URL for the gxlimg extension from retro98boy/gxlimg to repk/gxlimg.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

@github-actions github-actions bot added size/small PR with less then 50 lines 11 Milestone: Fourth quarter release Needs review Seeking for review Framework Framework components labels Nov 16, 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

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between d30f8d0 and 711ef75.

📒 Files selected for processing (1)
  • extensions/gxlimg.sh (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: EvilOlaf
Repo: armbian/build PR: 8428
File: config/boards/lckfb-taishanpi.csc:5-9
Timestamp: 2025-07-25T03:51:50.830Z
Learning: When reviewing PRs in the Armbian build system, U-Boot defconfig files and patches may be added as part of the PR changes but might not be visible in the current repository clone state during review. It's important to check the actual PR file changes directly via GitHub API (https://api.github.com/repos/armbian/build/pulls/{pr_number}/files) to get the complete picture of what files are being added or modified, especially for U-Boot patches that will be applied during the build process.
Learnt from: EvilOlaf
Repo: armbian/build PR: 8428
File: config/boards/lckfb-taishanpi.csc:5-9
Timestamp: 2025-07-25T03:51:50.830Z
Learning: When reviewing PRs in the Armbian build system, U-Boot defconfig files and patches may be added as part of the PR changes but might not be visible in the current repository clone state during review. It's important to check the actual PR file changes directly via GitHub or the PR API to get the complete picture of what files are being added or modified.
🧬 Code graph analysis (1)
extensions/gxlimg.sh (1)
lib/functions/general/git.sh (1)
  • fetch_from_repo (80-300)
🔇 Additional comments (1)
extensions/gxlimg.sh (1)

4-5: No lingering references to the fork found—verification complete.

Confirmed that the codebase contains no references to retro98boy/gxlimg. The file correctly uses the official repk/gxlimg repository via ${GITHUB_SOURCE}. Other retro98boy references in the codebase are legitimate copyright attributions, maintainer names, and contributions to unrelated projects (e.g., amlogic-fip-blobs).

Comment on lines +4 to +5
# Branch: master, Commit date: Nov 10, 2025 (please update when updating commit ref)
fetch_from_repo "${GITHUB_SOURCE}/repk/gxlimg" "gxlimg" "commit:37a3ea072ca81bb3872441a09fe758340fd67dcb"
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

Verify the commit hash exists in repk/gxlimg and includes the upstream fix.

The PR reverts to the official repk/gxlimg repository, which is appropriate given that upstream PR #26 is now merged. However, the commit hash needs validation to ensure it includes the bl3x handling fix mentioned in the PR objectives.


🏁 Script executed:

#!/bin/bash
# Description: Verify the commit hash exists in repk/gxlimg and contains the bl3x fix
# Expected: Commit 37a3ea072ca81bb3872441a09fe758340fd67dcb exists in repk/gxlimg repo
#           and includes changes related to bl3x handling

# Check if commit exists in the official repk/gxlimg repository
curl -s "https://api.github.com/repos/repk/gxlimg/commits/37a3ea072ca81bb3872441a09fe758340fd67dcb" \
  | jq '{sha: .sha, message: .commit.message, author: .commit.author.name, date: .commit.author.date}'

Length of output: 147


🏁 Script executed:

#!/bin/bash
# Get details about what files/changes are in this commit
curl -s "https://api.github.com/repos/repk/gxlimg/commits/37a3ea072ca81bb3872441a09fe758340fd67dcb" \
  | jq '.files[] | {filename: .filename, status: .status, additions: .additions, deletions: .deletions, patch: .patch}'

Length of output: 642


🏁 Script executed:

#!/bin/bash
# Search codebase for references to retro98boy/gxlimg
rg -n "retro98boy" --type sh --type bash

Length of output: 28


🏁 Script executed:

#!/bin/bash
# Search codebase for references to retro98boy
rg -n "retro98boy"

Length of output: 2592


🏁 Script executed:

#!/bin/bash
# Get info about recent commits in repk/gxlimg to find the actual bl3x fix
curl -s "https://api.github.com/repos/repk/gxlimg/commits?per_page=20" \
  | jq '.[] | {sha: .sha[0:12], message: .commit.message, date: .commit.author.date, author: .commit.author.name}' | head -60

Length of output: 4925


Correct the commit hash and date - current commit is cleanup code, not the bl3x fix.

The commit date in the comment (Nov 10, 2025) does not match the actual commit date (Oct 3, 2025 — a 37-day discrepancy). Additionally, commit 37a3ea0 ("Remove topad") is cleanup code that removes an unused field; it is not the bl3x handling fix mentioned in the PR objectives.

The actual bl3x fix appears to be commit f157d7b ("amlsblk: Don't assume topad is aligned to file block") from Sep 29, 2025, which contains the bl3x-related padding bug corrections. Verify and use the correct commit hash.

🤖 Prompt for AI Agents
In extensions/gxlimg.sh around lines 4 to 5, the script references commit
37a3ea072ca81bb3872441a09fe758340fd67dcb with a comment date of Nov 10, 2025,
but that commit is a cleanup ("Remove topad") and the date is incorrect; update
the fetch_from_repo call to use the correct commit that contains the bl3x fix
(f157d7b, commit message "amlsblk: Don't assume topad is aligned to file block")
and set the comment date to the actual commit date (Sep 29, 2025), verifying the
hash against the upstream repo before changing the line.

@rpardini
Copy link
Member

Hey @retro98boy I recently noticed some unrelated meson64 boards pulling those due to

enable_extension "gxlimg"
enable_extension "amlogic-fip-blobs"

being in meson64_common. Could we maybe move it to the specific family/boards that require it?

@retro98boy
Copy link
Contributor Author

Hey @retro98boy I recently noticed some unrelated meson64 boards pulling those due to

enable_extension "gxlimg"
enable_extension "amlogic-fip-blobs"

being in meson64_common. Could we maybe move it to the specific family/boards that require it?

Sure, I'll submit the PR tomorrow.

@github-actions github-actions bot added the Ready to merge Reviewed, tested and ready for merge label Nov 16, 2025
@github-actions
Copy link
Contributor

✅ This PR has been reviewed and approved — all set for merge!

@github-actions github-actions bot removed the Needs review Seeking for review label Nov 16, 2025
@igorpecovnik igorpecovnik merged commit dbc7b23 into armbian:main Nov 16, 2025
12 checks passed
@retro98boy retro98boy deleted the extension-gxlimg-url branch November 17, 2025 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

11 Milestone: Fourth quarter release Framework Framework components Ready to merge Reviewed, tested and ready for merge size/small PR with less then 50 lines

Development

Successfully merging this pull request may close these issues.

3 participants