Skip to content

apm821xx: NETGEAR WNDR4700: Fix compat version #17741

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 1 commit into from
Jan 27, 2025

Conversation

hauke
Copy link
Member

@hauke hauke commented Jan 27, 2025

The definition for the netgear_wndr4700 had two different DEVICE_COMPAT_VERSION definitions.
First it was moved to version 3.0 in commit 5815884 ("apm821xx: migrate to DSA"), the it was later changed to version 2.0 by an additional definition at the end of the board definition in commit 82c8c38 ("apm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env access").

Move it to version 4.0 now.

Fixes: 82c8c38 ("apm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env access")

This was reported in the forum: https://forum.openwrt.org/t/openwrt-24-10-0-rc6-sixth-release-candidate/222466/43

@hauke hauke requested a review from chunkeey January 27, 2025 00:15
@hauke
Copy link
Member Author

hauke commented Jan 27, 2025

@chunkeey and @neheb Please have a look.
@chunkeey If you think it is fine feel free to merge it and backport it to 24.10.

@github-actions github-actions bot added the target/apm821xx pull request/issue for apm821xx target label Jan 27, 2025
@hauke hauke force-pushed the apm821xx-wndr4700 branch from 1567102 to afbaad4 Compare January 27, 2025 01:12
@chunkeey
Copy link
Member

So the issue is that there are two conflicting DEVICE_COMPAT_VERSION* for the WNDR4700 .

First it was moved to version 3.0 in commit 5815884 ("apm821xx: migrate to DSA"), the it was later changed to version 2.0 by an additional definition at the end of the board definition in commit 82c8c38 ("apm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env access").

I think the timeline/order is reversed?! My understanding is:

commit 82c8c38 ("apm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env access") is from April 2024.
commit 5815884 ("apm821xx: migrate to DSA") is from September 2024.

commit 82c8c38 ("apm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env access") added the DEVICE_COMPAT_VERSION at the end with the value 2.0 . 5815884 ("apm821xx: migrate to DSA") added the second one at the top with value 3.0 instead of updating the existing DEVICE_COMPAT_VERSION definitions... Now there are two DEVICE_COMPAT_VERSION and the one at the bottom with the value 2.0 just overwrites the first.

Ideally, 5815884 ("apm821xx: migrate to DSA") would have just updated the the 2.0 value for the WNDR4700 with 3.0 in the same way as it did for the MX60, no?

In any case: Yeah, I can see that setting DEVICE_COMPAT_VERSION to 4.0 and removing the second DEVICE_COMPAT_VERSION will resolve the issue. +1

@hauke hauke force-pushed the apm821xx-wndr4700 branch from afbaad4 to e46b089 Compare January 27, 2025 21:57
@hauke
Copy link
Member Author

hauke commented Jan 27, 2025

So the issue is that there are two conflicting DEVICE_COMPAT_VERSION* for the WNDR4700 .

I think the timeline/order is reversed?! My understanding is:

commit 82c8c38 ("apm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env access") is from April 2024. commit 5815884 ("apm821xx: migrate to DSA") is from September 2024.

commit 82c8c38 ("apm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env access") added the DEVICE_COMPAT_VERSION at the end with the value 2.0 . 5815884 ("apm821xx: migrate to DSA") added the second one at the top with value 3.0 instead of updating the existing DEVICE_COMPAT_VERSION definitions... Now there are two DEVICE_COMPAT_VERSION and the one at the bottom with the value 2.0 just overwrites the first.

Ideally, 5815884 ("apm821xx: migrate to DSA") would have just updated the the 2.0 value for the WNDR4700 with 3.0 in the same way as it did for the MX60, no?

In any case: Yeah, I can see that setting DEVICE_COMPAT_VERSION to 4.0 and removing the second DEVICE_COMPAT_VERSION will resolve the issue. +1

Yes you are right, I mixed up the order of commits. I updated the PR to update the DEVICE_COMPAT_VERSION to 3.0 like it was done for the MX60.

@hauke hauke force-pushed the apm821xx-wndr4700 branch from e46b089 to 5c00c11 Compare January 27, 2025 22:01
The definition for the netgear_wndr4700 had two different
DEVICE_COMPAT_VERSION definitions.

In commit 5815884 ("apm821xx: migrate to DSA"), an additional
DEVICE_COMPAT_VERSION := 3.0 attribute was added to the device
definition. The old one with version 2.0 stayed and was defined later
overwriting the new one.

Replace the old version 2.0 with the new version 3.0

Fixes: 5815884 ("apm821xx: migrate to DSA")
Link: https://forum.openwrt.org/t/openwrt-24-10-0-rc6-sixth-release-candidate/222466/43
Link: openwrt#17741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
@hauke hauke force-pushed the apm821xx-wndr4700 branch from 5c00c11 to dab52c0 Compare January 27, 2025 22:37
@openwrt-bot openwrt-bot merged commit dab52c0 into openwrt:main Jan 27, 2025
5 checks passed
@hauke hauke deleted the apm821xx-wndr4700 branch January 27, 2025 22:43
openwrt-bot pushed a commit that referenced this pull request Jan 27, 2025
The definition for the netgear_wndr4700 had two different
DEVICE_COMPAT_VERSION definitions.

In commit 5815884 ("apm821xx: migrate to DSA"), an additional
DEVICE_COMPAT_VERSION := 3.0 attribute was added to the device
definition. The old one with version 2.0 stayed and was defined later
overwriting the new one.

Replace the old version 2.0 with the new version 3.0

Fixes: 5815884 ("apm821xx: migrate to DSA")
Link: https://forum.openwrt.org/t/openwrt-24-10-0-rc6-sixth-release-candidate/222466/43
Link: #17741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit dab52c0)
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Feb 8, 2025
The definition for the netgear_wndr4700 had two different
DEVICE_COMPAT_VERSION definitions.

In commit 5815884 ("apm821xx: migrate to DSA"), an additional
DEVICE_COMPAT_VERSION := 3.0 attribute was added to the device
definition. The old one with version 2.0 stayed and was defined later
overwriting the new one.

Replace the old version 2.0 with the new version 3.0

Fixes: 5815884 ("apm821xx: migrate to DSA")
Link: https://forum.openwrt.org/t/openwrt-24-10-0-rc6-sixth-release-candidate/222466/43
Link: openwrt#17741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
M3m3M4n pushed a commit to M3m3M4n/openwrt that referenced this pull request Feb 16, 2025
The definition for the netgear_wndr4700 had two different
DEVICE_COMPAT_VERSION definitions.

In commit 5815884 ("apm821xx: migrate to DSA"), an additional
DEVICE_COMPAT_VERSION := 3.0 attribute was added to the device
definition. The old one with version 2.0 stayed and was defined later
overwriting the new one.

Replace the old version 2.0 with the new version 3.0

Fixes: 5815884 ("apm821xx: migrate to DSA")
Link: https://forum.openwrt.org/t/openwrt-24-10-0-rc6-sixth-release-candidate/222466/43
Link: openwrt#17741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
maurerr pushed a commit to maurerr/openwrt that referenced this pull request Apr 9, 2025
The definition for the netgear_wndr4700 had two different
DEVICE_COMPAT_VERSION definitions.

In commit 5815884 ("apm821xx: migrate to DSA"), an additional
DEVICE_COMPAT_VERSION := 3.0 attribute was added to the device
definition. The old one with version 2.0 stayed and was defined later
overwriting the new one.

Replace the old version 2.0 with the new version 3.0

Fixes: 5815884 ("apm821xx: migrate to DSA")
Link: https://forum.openwrt.org/t/openwrt-24-10-0-rc6-sixth-release-candidate/222466/43
Link: openwrt#17741
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target/apm821xx pull request/issue for apm821xx target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants