Synology DSM on NSA320S

Marvell Kirkwood based
User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Synology DSM on NSA320S

Post by MrDini » Sun Mar 04, 2018 12:52 pm

Hi,

Another post from the 520 forum reminded me my old Synology DSM project, which was almost successful. Everything worked, except the network itself. Here are the bad parts:

Code: Select all

[   10.950000] ERROR: sflash_probe - Failed to initialize the SFlash.Loading Marvell Ethernet Driver:
[   10.960000]   o Cached descriptors in DRAM
[   10.960000]   o DRAM SW cache-coherency
[   10.970000]   o 2 Giga ports supported
[   10.970000]   o Single RX Queue support - ETH_DEF_RXQ=0
[   10.970000]   o Single TX Queue support - ETH_DEF_TXQ=0
[   10.980000]   o TCP segmentation offload (TSO) supported
[   10.980000]   o Receive checksum offload supported
[   10.990000]   o Transmit checksum offload supported
[   10.990000]   o SKB Recycle supported - (Enabled)
[   11.000000]   o Rx descripors: q0=128
[   11.000000]   o Tx descripors: q0=532
[   11.010000]   o Loading network interface(s):
[   11.010000]     o  register under mv88fx_eth platform
[   11.020000]     o eth0, ifindex = 2, GbE port = 0
[   11.020000]     o eth0, phy chipid = fffffff0, Support WOL = 0
[   11.030000] 
[   11.030000] Warning: Giga 1 is Powered Off

Code: Select all

cat: can't open '/proc/sys/kernel/syno_skip_vender_mac_interfaces': No such file or directory
[   21.930000] eth0: started
udhcpc (v1.16.1) started
eth0      Link encap:Ethernet  HWaddr <removed> 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:11 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
And I got a DiskStation login: screen where I don't know what the password is. So I Cannot setup the connection manually. What Can I do?

Thanks!
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Sun Mar 04, 2018 1:38 pm

I tried to compile the RTL8168 module, but seems like, the GPL SourceForge site is buggy... I Cannot access this link: https://sourceforge.net/projects/dsgpl/ ... -6.1.5.txz

Neither from pkgscripts-ng... :o

The files are completely unaccessible... :\

I have to wait some time.
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Thu Mar 08, 2018 1:24 pm

Okay, I got the toolchain, and I Can build the kernel and of course the kernel modules with the same magic number. :)

But I Cannot compile the r8168 module, because it throws an error:

Code: Select all

  CC [M]  /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o
In file included from /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.c:43:0:
/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/r8168.h: In function 'eth_hw_addr_random':
/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/r8168.h:42:9: error: implicit declaration of function 'random_ether_addr' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
scripts/Makefile.build:229: recipe for target '/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o' failed
make[3]: *** [/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o] Error 1
Makefile:1394: recipe for target '_module_/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src' failed
make[2]: *** [_module_/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src] Error 2
make[2]: Leaving directory '/home/kstudio/build/synology/GPL/kernel/linux-2.6.32'
Makefile:105: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src'
Makefile:40: recipe for target 'modules' failed
make: *** [modules] Error 2
:?:
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: Synology DSM on NSA320S

Post by barmalej2 » Thu Mar 08, 2018 8:46 pm

'random_ether_addr' is defined in include/linux/etherdevice.h, so make sure, that path to this header is included in last compile command before error occurs. Verbose output would be more informative.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Sat Mar 10, 2018 6:59 pm

I Couldn't found any debug parameter in the Makefile, so I simply changed its shell to debugger. I Could extract here the command, and I Could pass the header manually to see what Can be the exact problem. I got this:

Code: Select all

kstudio@kstudio-PC:~/build/synology/GPL/kernel/linux-2.6.32$ /toolkit/arm-marvell-linux-gnueabi/bin/arm-marvell-linux-gnueabi-gcc -Wp,-MD,/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/.rtl_eeprom.o.d -nostdinc -isystem /toolkit/arm-marvell-linux-gnueabi/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.4/include -Iinclude -I/home/kstudio/build/synology/GPL/kernel/linux-2.6.32/arch/arm/include -include include/linux/etherdevice.h -include include/linux/irqflags.h -include include/asm/rwsem.h -include include/linux/autoconf.h -include include/linux/syno.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-feroceon-kw/include -Iarch/arm/plat-feroceon/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -marm -ffunction-sections -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9e -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -Wno-error=unused-but-set-variable -DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN -DCONFIG_ASPM -DENABLE_S5WOL -DMODULE '-DKBUILD_STR(s)=#s' '-DKBUILD_BASENAME=KBUILD_STR(rtl_eeprom)' '-DKBUILD_MODNAME=KBUILD_STR(r8168)' -c -o /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.c
In file included from /home/kstudio/build/synology/GPL/kernel/linux-2.6.32/arch/arm/include/asm/system.h:320:0,
                 from /home/kstudio/build/synology/GPL/kernel/linux-2.6.32/arch/arm/include/asm/bitops.h:27,
                 from include/linux/bitops.h:17,
                 from include/linux/kernel.h:15,
                 from include/linux/skbuff.h:8,
                 from include/linux/if_ether.h:124,
                 from ./include/linux/etherdevice.h:27,
                 from <command-line>:0:
include/asm-generic/cmpxchg-local.h: In function '__cmpxchg_local_generic':
include/asm-generic/cmpxchg-local.h:23:2: error: implicit declaration of function 'local_irq_save' [-Werror=implicit-function-declaration]
include/asm-generic/cmpxchg-local.h:44:2: error: implicit declaration of function 'local_irq_restore' [-Werror=implicit-function-declaration]
In file included from include/linux/mm_types.h:11:0,
                 from include/linux/kmemcheck.h:4,
                 from include/linux/skbuff.h:9,
                 from include/linux/if_ether.h:124,
                 from ./include/linux/etherdevice.h:27,
                 from <command-line>:0:
include/linux/rwsem.h: At top level:
include/linux/rwsem.h:22:65: fatal error: asm/rwsem.h: No such file or directory
cc1: some warnings being treated as errors
compilation terminated.
The -Iinclude was here by default (I only added the -include include/linux/etherdevice.h -include include/linux/irqflags.h -include include/asm/rwsem.h flags manually). But I think, because of this error, the gcc simply skips it. And yes, we don't have this header inside the ARM folder... :( We have only these:

Code: Select all

./include/linux/rwsem.h
./arch/ia64/include/asm/rwsem.h
./arch/s390/include/asm/rwsem.h
./arch/x86/include/asm/rwsem.h
./arch/alpha/include/asm/rwsem.h
./arch/powerpc/include/asm/rwsem.h
./arch/xtensa/include/asm/rwsem.h
./arch/sparc/include/asm/rwsem.h
./arch/sh/include/asm/rwsem.h
./fs/aufs/rwsem.h
So, what Can I do? :?
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: Synology DSM on NSA320S

Post by barmalej2 » Sun Mar 11, 2018 4:09 pm

You mixing things. Instead of including headers, you need to include dirs using -I directive, where these required headers resides. As example, for theoretical location /home/kstudio/build/synology/GPL/kernel/linux-2.6.32/include/linux/etherdevice.h, -I/home/kstudio/build/synology/GPL/kernel/linux-2.6.32/include should be used. Headers in this case, should come from GPL source, not the host ones, as you are building driver for 2.6.32 kernel.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Sun Mar 11, 2018 7:07 pm

Look on the used flags. Here you Can see an important one: "-Iinclude". I think it is a relative import for the I/home/kstudio/build/synology/GPL/kernel/linux-2.6.32/include folder, where these headers are stored. But somehow these ones, that I had to include manually Can't work. Seems like, the gcc simply skips these includes by default, that's why I included them one-by-one to see what Can be the culprit.

One of the headers exactly says, its missing the asm/rwsem.h header for the ARM architecture. Which is true according to the find output. But what Can I do with that error? :o

Yes, maybe I am mix sg, but I Can't see what exactly.
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: Synology DSM on NSA320S

Post by barmalej2 » Mon Mar 12, 2018 10:26 am

MrDini wrote: Here you Can see an important one: "-Iinclude". I think it is a relative import for the I/home/kstudio/build/synology/GPL/kernel/linux-2.6.32/include folder, where these headers are stored.
Nope. It is subdirectory-include of current directory.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Mon Mar 12, 2018 12:03 pm

And the current working directory is the kernel source:
kstudio@kstudio-PC:~/build/synology/GPL/kernel/linux-2.6.32$
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: Synology DSM on NSA320S

Post by barmalej2 » Mon Mar 12, 2018 1:40 pm

Nope. It is not where you start from, but where compiler goes.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Mon Mar 12, 2018 4:23 pm

Well, I am still a bit confused, sorry...

So, I have the module source inside the /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08 folder and I have the vanilla Synology GPl source inside the /home/kstudio/build/synology/GPL/kernel/linux-2.6.32 folder. I ran here a make command, but it gave me this error:

Code: Select all

make KERNELDIR=/home/kstudio/build/synology/GPL/kernel/linux-2.6.32
<snip>
  CC [M]  /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o
In file included from /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.c:43:0:
/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/r8168.h: In function 'eth_hw_addr_random':
/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/r8168.h:42:9: error: implicit declaration of function 'random_ether_addr' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
scripts/Makefile.build:229: recipe for target '/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o' failed
make[3]: *** [/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o] Error 1
Makefile:1394: recipe for target '_module_/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src' failed
make[2]: *** [_module_/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src] Error 2
make[2]: Leaving directory '/home/kstudio/build/synology/GPL/kernel/linux-2.6.32'
Makefile:105: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src'
Makefile:40: recipe for target 'modules' failed
make: *** [modules] Error 2
Because I wanted to see the exact compiler command, I modified the shell a bit:

Code: Select all

make KERNELDIR=/home/kstudio/build/synology/GPL/kernel/linux-2.6.32 SHELL="sh -x"
<snip>
  CC [M]  /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o
+ /toolkit/arm-marvell-linux-gnueabi/bin/arm-marvell-linux-gnueabi-gcc -Wp,-MD,/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/.rtl_eeprom.o.d -nostdinc -isystem /toolkit/arm-marvell-linux-gnueabi/bin/../lib/gcc/arm-marvell-linux-gnueabi/4.6.4/include -Iinclude -I/home/kstudio/build/synology/GPL/kernel/linux-2.6.32/arch/arm/include -include include/linux/autoconf.h -include include/linux/syno.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-feroceon-kw/include -Iarch/arm/plat-feroceon/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -marm -ffunction-sections -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=5 -march=armv5te -mtune=arm9e -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack -Wno-error=unused-but-set-variable -DCONFIG_R8168_NAPI -DCONFIG_R8168_VLAN -DCONFIG_ASPM -DENABLE_S5WOL -DMODULE '-DKBUILD_STR(s)=#s' '-DKBUILD_BASENAME=KBUILD_STR(rtl_eeprom)' '-DKBUILD_MODNAME=KBUILD_STR(r8168)' -c -o /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.c
In file included from /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.c:43:0:
/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/r8168.h: In function 'eth_hw_addr_random':
/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/r8168.h:42:9: error: implicit declaration of function 'random_ether_addr' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
scripts/Makefile.build:229: recipe for target '/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o' failed
make[3]: *** [/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o] Error 1
Makefile:1394: recipe for target '_module_/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src' failed
make[2]: *** [_module_/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src] Error 2
make[2]: Leaving directory '/home/kstudio/build/synology/GPL/kernel/linux-2.6.32'
Makefile:105: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src'
Makefile:40: recipe for target 'modules' failed
make: *** [modules] Error 2
Seems like, this gcc command has been executed inside the kernel's folder. But I Couldn't found these flags in the module's Makefile, that's why I simply copied that long gcc command, and tried to execute it manually from my linux-2.6.32 folder. And here we have an include folder, So the default -Iinclude flag should be okay.

But when I tried to pass also manually these files (I already posted that output), I got a fatal error: asm/rwsem.h: No such file or directory output... That is actually true, because as I Can see there is no asm/rwsem.h header for our architecture... FInd output for the filename rwsem.h:

Code: Select all

./include/linux/rwsem.h
./arch/ia64/include/asm/rwsem.h
./arch/s390/include/asm/rwsem.h
./arch/x86/include/asm/rwsem.h
./arch/alpha/include/asm/rwsem.h
./arch/powerpc/include/asm/rwsem.h
./arch/xtensa/include/asm/rwsem.h
./arch/sparc/include/asm/rwsem.h
./arch/sh/include/asm/rwsem.h
./fs/aufs/rwsem.h
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: Synology DSM on NSA320S

Post by barmalej2 » Mon Mar 12, 2018 7:04 pm

Let's make a pause on your error and check my way.
Here you will find last eight r8168 releases:
https://github.com/mtorromeo/r8168/releases
Start with 8.041.00 version. Compile it simply:

Code: Select all

cd r8168-8.041.00
make modules KERNELDIR=/home/kstudio/build/synology/GPL/kernel/linux-2.6.32
Does it builds? If yes, then proceed with version 8.043.02 checking.
if builds-cool, if not-try to apply this patch:
https://sources.debian.org/data/non-fre ... 6.32.patch

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Mon Mar 12, 2018 9:18 pm

Wow. The 8.041.00 works. :) But the 8.043.02 throws this:

Code: Select all

  CC [M]  /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o
In file included from /home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.c:43:0:
/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/r8168.h: In function 'eth_hw_addr_random':
/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/r8168.h:42:9: error: implicit declaration of function 'random_ether_addr' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
scripts/Makefile.build:229: recipe for target '/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o' failed
make[3]: *** [/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src/rtl_eeprom.o] Error 1
Makefile:1394: recipe for target '_module_/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src' failed
make[2]: *** [_module_/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src] Error 2
make[2]: Leaving directory '/home/kstudio/build/synology/GPL/kernel/linux-2.6.32'
Makefile:105: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/kstudio/build/synology/GPL/kernel/r8168-8.045.08/src'
Makefile:40: recipe for target 'modules' failed
make: *** [modules] Error 2
After that, some patching failed:

Code: Select all

patching file src/r8168_n.c
Hunk #1 FAILED at 22941.
Hunk #2 succeeded at 25022 (offset 2068 lines).
Hunk #3 FAILED at 23376.
2 out of 3 hunks FAILED -- saving rejects to file src/r8168_n.c.rej
And the error is the same... :(
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: Synology DSM on NSA320S

Post by barmalej2 » Tue Mar 13, 2018 5:34 am

Patch is for r8168-8.043.02 version, not for 8.045.08 and applies cleanly.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Synology DSM on NSA320S

Post by MrDini » Tue Mar 13, 2018 6:25 pm

Ah, true. I Could patch it now, but it says this:

Code: Select all

  CC [M]  /home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.o
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c: In function 'OOB_mutex_unlock':
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c:2004:13: warning: variable 'ocp_reg_mutex_oob' set but not used [-Wunused-but-set-variable]
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c: In function 'rtl8168_csi_fun0_read_byte':
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c:2421:21: warning: variable 'RegAlignAddr' set but not used [-Wunused-but-set-variable]
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c: In function 'rtl8168_calc_efuse_dummy_bit':
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c:5673:17: warning: variable 'b' set but not used [-Wunused-but-set-variable]
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c: In function 'rtl8168_alloc_rx_skb':
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c:24408:25: error: implicit declaration of function 'netif_err' [-Werror=implicit-function-declaration]
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c:24408:39: error: 'drv' undeclared (first use in this function)
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c:24408:39: note: each undeclared identifier is reported only once for each function it appears in
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c: In function 'rtl8168_xmit_frags':
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c:24780:47: error: 'drv' undeclared (first use in this function)
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c: In function 'rtl8168_sw_padding_short_pkt':
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c:24924:39: error: 'drv' undeclared (first use in this function)
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c: In function 'rtl8168_start_xmit':
/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.c:25131:39: error: 'drv' undeclared (first use in this function)
cc1: some warnings being treated as errors
scripts/Makefile.build:229: recipe for target '/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.o' failed
make[3]: *** [/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src/r8168_n.o] Error 1
Makefile:1394: recipe for target '_module_/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src' failed
make[2]: *** [_module_/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src] Error 2
make[2]: Leaving directory '/home/kstudio/build/synology/GPL/kernel/linux-2.6.32'
Makefile:95: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/kstudio/build/synology/GPL/kernel/r8168-8.043.02/src'
Makefile:40: recipe for target 'modules' failed
make: *** [modules] Error 2
So I'm gonna use the previous one.
Thanks nas-central the lot of help! :)

Post Reply