Merge pull request #2873 from freifunk-gluon/backport-2707-to-v2022.1.x

[Backport v2022.1.x] realtek-rtl838x: add support for D-Link DGS-1210-10P
This commit is contained in:
Jan-Niklas Burfeind 2023-04-21 00:07:49 +02:00 committed by GitHub
commit e9dcefee59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 1 deletions

9
.github/filters.yml vendored
View File

@ -147,6 +147,15 @@
"targets/generic", "targets/generic",
"targets/targets.mk" "targets/targets.mk"
], ],
"realtek-rtl838x": [
"targets/realtek-rtl838x",
"modules",
"Makefile",
"patches/**",
"scripts/**",
"targets/generic",
"targets/targets.mk"
],
"rockchip-armv8": [ "rockchip-armv8": [
"targets/rockchip-armv8", "targets/rockchip-armv8",
"modules", "modules",

View File

@ -434,6 +434,13 @@ ramips-mt76x8
- Xiaomi Mi Router 4A (100M International Edition) - Xiaomi Mi Router 4A (100M International Edition)
- Xiaomi Mi Router 4C - Xiaomi Mi Router 4C
realtek-rtl838x
---------------
* D-Link
- DGS-1210-10P (F1)
rockchip-armv8 rockchip-armv8
-------------- --------------

View File

@ -67,6 +67,10 @@ elseif platform.match('ramips', 'mt7621', {
'netgear,wac104', 'netgear,wac104',
}) then }) then
lan_ifname, wan_ifname = 'lan2 lan3 lan4', 'lan1' lan_ifname, wan_ifname = 'lan2 lan3 lan4', 'lan1'
elseif platform.match('realtek', 'rtl838x', {
'd-link,dgs-1210-10p',
}) then
lan_ifname, wan_ifname = 'lan2 lan3 lan4 lan5 lan6 lan7 lan8 lan9 lan10', 'lan1'
end end
if wan_ifname and lan_ifname then if wan_ifname and lan_ifname then

View File

@ -38,7 +38,7 @@ config('TARGET_ROOTFS_INITRAMFS', false)
config('DEVEL', true) config('DEVEL', true)
config('ALL_NONSHARED', true) config('ALL_NONSHARED', true)
config('PACKAGE_usbip', false) -- fails to build try_config('PACKAGE_usbip', false) -- fails to build
try_config('PACKAGE_ATH_DEBUG', true) try_config('PACKAGE_ATH_DEBUG', true)

5
targets/realtek-rtl838x Normal file
View File

@ -0,0 +1,5 @@
-- D-Link
device('d-link_dgs-1210-10p', 'd-link_dgs-1210-10p', {
factory = '-squashfs-factory_image1',
})

View File

@ -14,6 +14,7 @@ $(eval $(call GluonTarget,mpc85xx,p1020))
$(eval $(call GluonTarget,ramips,mt7620)) $(eval $(call GluonTarget,ramips,mt7620))
$(eval $(call GluonTarget,ramips,mt7621)) $(eval $(call GluonTarget,ramips,mt7621))
$(eval $(call GluonTarget,ramips,mt76x8)) $(eval $(call GluonTarget,ramips,mt76x8))
$(eval $(call GluonTarget,realtek,rtl838x))
$(eval $(call GluonTarget,rockchip,armv8)) $(eval $(call GluonTarget,rockchip,armv8))
$(eval $(call GluonTarget,sunxi,cortexa7)) $(eval $(call GluonTarget,sunxi,cortexa7))
$(eval $(call GluonTarget,x86,generic)) $(eval $(call GluonTarget,x86,generic))