ath79/nand: profile glinet_gl-ar300m-nand silently overridden to glinet_gl-ar300m-nor during image build
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
Research direction
Start by reproducing the request against the /api/v1/build endpoint and inspect how the ath79/nand target resolves the requested profile before assembling build_cmd. Trace the profile selection for glinet_gl-ar300m-nand; done means the response uses that NAND profile and produces a NAND image, or clearly reports an invalid substitution.
Written by the indexing model from the issue text.
Description
Description
When requesting a build for target: ath79/nand with profile: glinet_gl-ar300m-nand, the ASU server silently substitutes the profile with glinet_gl-ar300m-nor in the resulting build_cmd, producing a NOR image instead of the requested NAND image. No error or warning is returned to indicate the profile was changed.
Steps to Reproduce
curl -X POST https://sysupgrade.openwrt.org/api/v1/build \
-H "Content-Type: application/json" \
-d '{
"target": "ath79/nand",
"version": "25.12.0",
"profile": "glinet_gl-ar300m-nand",
"packages": ["luci"]
}'
Expected Behavior
The build should use PROFILE=glinet_gl-ar300m-nand and produce a NAND sysupgrade image.
Actual Behavior
The build_cmd in the response contains:
PROFILE=glinet_gl-ar300m-nor
The resulting image is built for NOR flash, not NAND. Flashing this image on a NAND device would be incorrect and potentially dangerous.
Environment
- ASU server:
sysupgrade.openwrt.org - Target:
ath79/nand - Version:
25.12.0 - Profile requested:
glinet_gl-ar300m-nand - Profile used by server:
glinet_gl-ar300m-nor - Device: GL.iNet GL-AR300M (NAND variant)
Additional Context
The GL-AR300M is a dual-flash device with both a NOR (16MB) and NAND (128MB) variant. The two profiles are distinct and not interchangeable. The NAND profile should be available under the ath79/nand target.
- Dominant language
- Python
- Stars
- 461
- Forks
- 116
- Avg merge
- 8d 30m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openwrt/asu
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
marketcalls/openalgo#2502 ·
Maintainers usually reply within 1 day
-
test_a_503_raises_unavailable_error fails on macOS about one run in sixPossibly taken @naman-modi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Deltakit/deltakit-compile#27 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
vllm-project/vllm#69791 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100