bb-qq / r8152

Synology DSM driver for Realtek RTL8152/RTL8153/RTL8156 based adapters
GNU General Public License v2.0
2.02k stars 184 forks source link

DS920+ #31

Closed pmousarris closed 3 years ago

pmousarris commented 4 years ago

Will the driver work for the new nas DS920+ ?

davidgirard commented 4 years ago

Hello there - I have the same question for the DS220+. Both 920 and 220 sport Gemini Lake cores so I don’t think support is available yet, but it would be awesome if it could be added to a later release. I’ll stick to my DS216+II for now, the driver works great with it (front USB port).

Cheers, David

bb-qq commented 4 years ago

Currently, building packages for Geminilake architecture is not supported, because toolchains for them are not released by Synology yet. https://sourceforge.net/projects/dsgpl/files/DSM%206.2.2%20Tool%20Chains/

davidgirard commented 4 years ago

Gotcha. Thanks for the hard work!

randompasser commented 4 years ago

Geminilake toolchain is out: https://sourceforge.net/projects/dsgpl/files/DSM%206.2.2%20Tool%20Chains/Intel%20x86%20Linux%204.4.59%20%28GeminiLake%29/

davidgirard commented 4 years ago

Great news!

bb-qq commented 4 years ago

Toolchains for geminilake is certainly released, but the build environment including kernel sources is not yet...

pkgscripts-ng/EnvDeploy -v 6.2 --list
Available platforms: 6281 alpine alpine4k apollolake armada370 armada375 armada37xx armada38x armadaxp avoton braswell broadwell broadwellnk bromolow cedarview comcerto2k denverton dockerx64 evansport grantley hi3535 kvmx64 monaco qoriq rtd1296 x64
PatrickPTC commented 4 years ago

try on ds920+ can show the card, but can not transfer data even in direct link mode or bridge mode. Nas will drop link,shut down. May I ask when it could work. Thanks.

Will0822 commented 4 years ago

DS920+ report: it fails to work normally, DS920+ will crash, must restart the device and delete the driver to work normally

silverko2 commented 3 years ago

Hello bb-qq, after last toolkit update now available geminilake platform, please can You try to compile the driver for DS920+ Thank You

/toolkit/pkgscripts/EnvDeploy -v 6.2 --list
Available platforms: ........ geminilake ...........

Edit: compile when changed variables, default /usr/local/i686-pc-linux-gnu without kernel modules

vi /toolkit/source/r8152/SynoBuildConf/build
CROSS_COMPILE=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-
ARCH=x86_64
KSRC=/usr/local/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu/sys-root/usr/lib/modules/DSM-6.2/build

DS920+ change maxlanport="2" to maxlanport="3" vi /etc/synoinfo.conf vi /etc.defaults/synoinfo.conf reboot nas

3DClub 2.5Gbit MTU9000, work but not maximum on my test client Celeron N3450@1.1GHz :-)

[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   279 MBytes  2.34 Gbits/sec    2    298 KBytes
[  5]   1.00-2.00   sec   285 MBytes  2.39 Gbits/sec    8    149 KBytes
[  5]   2.00-3.00   sec   180 MBytes  1.51 Gbits/sec   24    210 KBytes
[  5]   3.00-4.00   sec   288 MBytes  2.42 Gbits/sec    2    210 KBytes
[  5]   4.00-5.00   sec   237 MBytes  1.99 Gbits/sec    9    245 KBytes
[  5]   5.00-6.00   sec   240 MBytes  2.02 Gbits/sec    6    219 KBytes
[  5]   6.00-7.00   sec   286 MBytes  2.40 Gbits/sec    3    158 KBytes
[  5]   7.00-8.00   sec   192 MBytes  1.61 Gbits/sec   12    210 KBytes
[  5]   8.00-9.00   sec   282 MBytes  2.36 Gbits/sec    5    306 KBytes
[  5]   9.00-10.00  sec   283 MBytes  2.37 Gbits/sec    2    219 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  2.49 GBytes  2.14 Gbits/sec   73             sender
[  5]   0.00-10.00  sec  2.49 GBytes  2.14 Gbits/sec                  receiver
bb-qq commented 3 years ago

Thank you for the information! I created the driver for the geminilake platform with following modification of pkgscript-ng.

diff --git a/include/pkg_util.sh b/include/pkg_util.sh
index 2ae8852..8208ad1 100755
--- a/include/pkg_util.sh
+++ b/include/pkg_util.sh
@@ -63,6 +63,7 @@ pkg_get_platform() { # [path of env.mak (default: /env.mak)]
                        DENVERTON)              arch="denverton" ;;
                        REALTEK_RTD1296)        arch="rtd1296" ;;
                        APOLLOLAKE)             arch="apollolake" ;;
+                       GEMINILAKE)             arch="geminilake" ;;
                        CEDARVIEW)              arch="cedarview" ;;
                        AVOTON)                 arch="avoton" ;;
                        BRASWELL)               arch="braswell" ;;
@@ -92,8 +93,8 @@ plat_to_unified_plat() {
        local unified_plat=

        case "$plat" in
-               x86 | bromolow | cedarview | avoton | braswell | broadwell | dockerx64 | kvmx64 | grantley | denverton | apollolake | broadwellnk)
-                       unified_plat="x86 bromolow cedarview avoton braswell broadwell dockerx64 kvmx64 grantley denverton apollolake broadwellnk"
+               x86 | bromolow | cedarview | avoton | braswell | broadwell | dockerx64 | kvmx64 | grantley | denverton | apollolake | broadwellnk | geminilake)
+                       unified_plat="x86 bromolow cedarview avoton braswell broadwell dockerx64 kvmx64 grantley denverton apollolake broadwellnk geminilake"
                        ;;
                # alpine and alpine4k use same define.
                alpine | alpine4k )
@@ -111,7 +112,7 @@ plat_to_family() {
        local family=

        case "$plat" in
-               x86 | bromolow | cedarview | avoton | braswell | broadwell | dockerx64 | kvmx64 | grantley | denverton | apollolake | broadwellnk)
+               x86 | bromolow | cedarview | avoton | braswell | broadwell | dockerx64 | kvmx64 | grantley | denverton | apollolake | broadwellnk | geminilake)
                        family="x86_64"
                        ;;
                evansport )
@@ -216,7 +217,7 @@ pkg_get_spk_unified_platform() { # [path of env.mak (default: /env.mak)]
                88f6281)
                        spk_unified_platform="88f628x"
                        ;;
-               x86 | bromolow | cedarview | avoton | braswell | broadwell | dockerx64 | kvmx64 | grantley | denverton | apollolake | broadwellnk)
+               x86 | bromolow | cedarview | avoton | braswell | broadwell | dockerx64 | kvmx64 | grantley | denverton | apollolake | broadwellnk | geminilake)
                        spk_unified_platform="x64"
                        ;;
                alpine | alpine4k )
diff --git a/include/platforms b/include/platforms
index b0372eb..bce4c89 100644
--- a/include/platforms
+++ b/include/platforms
@@ -47,7 +47,7 @@ AllPlatformOptions () {
 }

 Is64BitPlatform() {
-       local all64BitPlatforms="X64 BROMOLOW CEDARVIEW AVOTON BRASWELL BROADWELL DOCKERX64 KVMX64 GRANTLEY DENVERTON REALTEK_RTD1296 APOLLOLAKE BROADWELLNK"
+       local all64BitPlatforms="X64 BROMOLOW CEDARVIEW AVOTON BRASWELL BROADWELL DOCKERX64 KVMX64 GRANTLEY DENVERTON REALTEK_RTD1296 APOLLOLAKE BROADWELLNK GEMINILAKE"
        CheckInList $BUILD_TARGET $all64BitPlatforms && return 0 || return 1
 }
punkw800c commented 3 years ago

Downloaded the driver for geminilake platform。It worked on ds220+,but not very stable ![Uploading 9AC69924-F856-4681-A579-A60A09940F87.jpeg…]()

kleuter commented 3 years ago

What exactly you mean by "not stable"?

punkw800c commented 3 years ago

Sorry,I’m not a native speaker of English。 The network to my NAS was down while I am downloading a movie.

kleuter commented 3 years ago

Network can be down to reasons not related to the driver. Does it reproduce of did it happen only once?

punkw800c commented 3 years ago

It happened just once. But it was only used for less than 2 hours.

kleuter commented 3 years ago

You need to make sure it happens more than once and only when using the driver (doesn't happen with default 1GBe ethernet).

punkw800c commented 3 years ago

The driver was used only. The default 1GBe ethernet was not connected with my router.

punkw800c commented 3 years ago

And I will keep testing this driver.

bb-qq commented 3 years ago

Thank you for test the driver.

I would like to close this issue. And I would appreciate it if create a new issue using the template for bug reports if you have any problems. Thanks.