-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
ramips: Add support for Dlink DIR-878 R1 version #4994
Closed
lior-pugatch
wants to merge
1
commit into
openwrt:master
from
lior-pugatch:add_support_dlink_dir_878_R1
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
#include "mt7621_dlink_dir-8xx-r1.dtsi" | ||
|
||
/ { | ||
compatible = "dlink,dir-878-r1", "mediatek,mt7621-soc"; | ||
model = "D-Link DIR-878 R1"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -375,6 +375,15 @@ define Device/dlink_dir-878-a1 | |
endef | ||
TARGET_DEVICES += dlink_dir-878-a1 | ||
|
||
define Device/dlink_dir-878-r1 | ||
$(Device/dlink_dir-8xx-r1) | ||
DEVICE_MODEL := DIR-878 | ||
DEVICE_VARIANT := R1 | ||
DEVICE_PACKAGES += kmod-usb3 kmod-usb-ledtrig-usbport | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any reason for including USB packages for the DIR-878 R1 considering the device doesn't have working USB ports (at least not without modding the hardware)? |
||
IMAGE/factory.bin := append-kernel | append-rootfs | check-size | ||
endef | ||
|
||
TARGET_DEVICES += dlink_dir-878-r1 | ||
define Device/dlink_dir-882-a1 | ||
$(Device/dlink_dir-8xx-a1) | ||
DEVICE_MODEL := DIR-882 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this compile? It seems we don't have a file of this name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before compiling locally I ran the command:
"git checkout v21.02.1"
taken from the instructions of building openwrt:
https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem
It seems like branch 21.02.1 has these files.
interesting why these files are not here on the mirror branch.
any thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lior-pugatch Your PR is against master, right? You need to base it on master.
Master has mt7621_dlink_dir-8xx.dtsi (note: no '-r1' suffix), no
mt7621_dlink_dir-8xx-r1.dtsi
though as mans0n says.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When is it expected to have branch 21.02.1 merged to master?
is branch 21.02.1 considered "newer" than master?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is your interest in release 21.02?
Do you want see your DIR-878 R1 device supported by a 21.02 release?
Then do anything what the reviewers ask, and wait it for landing in
master
.After that, pick that commit on
master
and backport to theopenwrt-21.02
branch! Withgit cherry-pick -x
and resolve the conflict (like this.dtsi
mismatch).For example see another backporting PR #4630:
master
in commit 6c14811 from PR ath79: add support for Xiaomi AIoT Router AC2350 #4161,openwrt-21.02
branch as commit 06547e0 from PR [21.02] ath79: add support for Xiaomi AIoT Router AC2350 #4630.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lior-pugatch Device support PRs are only accepted against master. As @xabolcs explained you can then request a backport to a stable release like 21.02. But only then; it needs to be in master first since that's where development happens.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your work and test should be based on top of the master branch. Please do not just copy the patch based on the stable branch and say it's done.