Gateway AM-GZ80x: Update $board and meson-axg family conf#9533
Gateway AM-GZ80x: Update $board and meson-axg family conf#9533pyavitz merged 2 commits intoarmbian:mainfrom
Conversation
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
to the $board.conf and add a write_uboot_platform func. write_uboot_platform: To achieve the correct DDR freq requested by the manufacturer u-boot must be flashed a particular way. DDR3 chl: Rank0 16bit @ 792MHz dd if=$1/u-boot.bin of=$2 conv=fsync bs=512 seek=1 Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
📝 WalkthroughWalkthroughBoard-specific U-Boot configuration for the gateway-gz80x device is relocated from a family-level configuration file to a dedicated board-level configuration file, consolidating device-specific build settings and post-processing logic. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
config/boards/gateway-gz80x.conf (1)
25-27: Consider quoting variables and addingstatus=nonefor robustness.The
write_uboot_platform()implementation is functionally correct for achieving the manufacturer-specified DDR frequency. Two optional improvements for consistency with newer Armbian standards:
- Quote
$1and$2to handle paths with spaces- Add
status=noneto suppress dd's verbose output (per newer Rockchip family standard)🔧 Optional refinement
write_uboot_platform() { - dd if=$1/u-boot.bin of=$2 conv=fsync bs=512 seek=1 + dd if="$1/u-boot.bin" of="$2" conv=fsync bs=512 seek=1 status=none }Based on learnings: "the write_uboot_platform() function implementations follow different patterns across Rockchip family files. The newer standard (used in rockchip64_common.inc and rk3506) includes 'status=none' parameter in dd commands."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@config/boards/gateway-gz80x.conf` around lines 25 - 27, The dd call in write_uboot_platform() should quote the path variables and suppress dd output for robustness: change the dd invocation in write_uboot_platform() to quote $1 and $2 (to handle spaces) and add status=none to the dd options so the command becomes dd if="$1/u-boot.bin" of="$2" conv=fsync bs=512 seek=1 status=none.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@config/boards/gateway-gz80x.conf`:
- Around line 25-27: The dd call in write_uboot_platform() should quote the path
variables and suppress dd output for robustness: change the dd invocation in
write_uboot_platform() to quote $1 and $2 (to handle spaces) and add status=none
to the dd options so the command becomes dd if="$1/u-boot.bin" of="$2"
conv=fsync bs=512 seek=1 status=none.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: fc0e1e0f-d12d-4533-8e9e-85e813ffbe11
📒 Files selected for processing (2)
config/boards/gateway-gz80x.confconfig/sources/families/meson-axg.conf
💤 Files with no reviewable changes (1)
- config/sources/families/meson-axg.conf
|
✅ This PR has been reviewed and approved — all set for merge! |
To achieve the correct DDR freq "792MHz" requested by the manufacturer, u-boot must be flashed a particular way.
As this unit is the only one currently using the meson-axg family file, I moved all the important bits into the $board.conf.
Boot tested with armbian-config and usb flash tool.
FIP: LibreELEC/amlogic-boot-fip@48afbc0
log-build-9fa72316-e73f-42c8-ad4c-8d3ef01858f1.log
Summary by CodeRabbit