Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Question] Install a driver for a NIC?
#16
you right,

main HP products are OEM products, may be a chance it is a Qlogic on based...
Stéphane Guérithault

In a world without walls and fences, who needs Windows and Gates

PayPal Donation: https://www.paypal.me/qoolbox

My apps

##########################################################################

rolling now for competitor, i do not support anymore Thecus apllications due to lack of time

##########################################################################


voyance - Sophrologue Hypnothérapeute Essonne 
Reply
#17
By the way, which linux is the Thecus OS based on?
Or is it specific for each Thecus NAS? Can I see it somehow?

Is got this:
N8850:/# cat /proc/version
Linux version 3.4.45 (root@FC12-27) (gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC) ) #1 SMP Wed Jun 5 16:18:30 CST 2013

Does it mean that is it Red Hat?
Reply
#18
By the way, which linux is the Thecus OS based on?
Or is it specific for each Thecus NAS? Can I see it somehow?

Is got this:
N8850:/# cat /proc/version
Linux version 3.4.45 (root@FC12-27) (gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC) ) #1 SMP Wed Jun 5 16:18:30 CST 2013

Does it mean that is it Red Hat?
Reply
#19
Hi Qoolbox

I finally got some time to research a little bit on this matter.
I tried plugging the NIC in my N8850 and did a lspci -vv:

Code:
02:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10 Gigabit Server Adapter (rev 42)
        Subsystem: Hewlett-Packard Company NC522SFP Dual Port 10GbE Server Adapter
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at 94000000 (64-bit, non-prefetchable) [size=2M]
        Region 4: Memory at 90000000 (64-bit, non-prefetchable) [size=32M]
        Expansion ROM at 7fa00000 [disabled] [size=64K]
        Capabilities: [40] MSI-X: Enable- Count=64 Masked-
                Vector table: BAR=0 offset=00090000
                PBA: BAR=0 offset=00090800
        Capabilities: [80] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [a0] MSI: Enable- Count=1/32 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [c0] Express (v2) Endpoint, MSI 00
                DevCap:        MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl:        Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 256 bytes
                DevSta:        CorrErr+ UncorrErr+ FatalErr- UnsuppReq+ AuxPwr- TransPend-
                LnkCap:        Port #0, Speed 5GT/s, Width x8, ASPM unknown, Latency L0 <64ns, L1 <1us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl:        ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta:        Speed 5GT/s, Width x8, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB
        Capabilities: [100 v1] Advanced Error Reporting
                UESta:        DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:        DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt:        DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:        RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                CEMsk:        RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                AERCap:        First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
        Capabilities: [140 v1] Device Serial Number 59-69-46-61-6e-48-73-75

Now as for the source code; nothing conclusive have come up, but my experience with Linux is also very limited especially in regards to drivers and compiling them.

In the Qlogic manual for the NIC (Qlogic QLE3142 is the Qlogic version of the HP NC522SFP which I have) you can see the following http://filedownloads.qlogic.com/Files/Te...0_RevC.pdf:

Quote:Build the Linux Driver Source Code
Linux kernel source/headers are required to compile the drivers provided in
source code format. Some Linux operating system (OS) distributions may not
install the kernel source/headers by default. The headers can be added from the
Linux OS Distribution disk using the RPM package manager.

Enable the Inbox Kernel GPL and Commercial Drivers
The inbox kernel GPL and commercial drivers are included in the Linux kernels
available from kernel.org.

NOTE:
The commercial GPL version of the driver (nx_nic.ko) contains the most
recent updates.

To determine which driver to use:
1. The driver name is:
netxen_nic.ko

2. Type the following command to identify the netxen_nic.ko driver:
% lsmod | grep netxen_nic
NOTE:
The netxen_nic.ko file is automatically blacklisted when the Linux
commercial GPL driver RPM is installed.

3. To disable the inbox kernel GPL driver (netxen_nic.ko):
a. Type the following command to remove the driver from the OS
memory:
% rmmod netxen_nic
b. Remove or rename the netxen_nic.ko file from the
/lib/modules/<uname -r>/kernel/drivers/net/netxen
directory.
The commercial GPL driver (nx_nic.ko) can be enabled after the inbox kernel
GPL driver module is disabled.

Does any of this mean anything to you and is the following source files of any use?
http://www.cs.fsu.edu/~baker/devices/lxr...et/netxen/

I tried downloading the recent stable kernel v3.13.9 from kernel.org and found similar files at linux-3.13.9.tar.xz\linux-3.13.9\drivers\net\ethernet\qlogic\netxen
I also extracted the x64 RedHat RPM and got files that I think is useful, but I cannot see how to attach a file to this response.

I hope that you are willing to look at it and let me know if you think there is a chance of getting a driver compiled and installed Smile

Best regards
Dfir
Reply
#20
Hi Qoolbox

I finally got some time to research a little bit on this matter.
I tried plugging the NIC in my N8850 and did a lspci -vv:

Code:
02:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10 Gigabit Server Adapter (rev 42)
        Subsystem: Hewlett-Packard Company NC522SFP Dual Port 10GbE Server Adapter
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at 94000000 (64-bit, non-prefetchable) [size=2M]
        Region 4: Memory at 90000000 (64-bit, non-prefetchable) [size=32M]
        Expansion ROM at 7fa00000 [disabled] [size=64K]
        Capabilities: [40] MSI-X: Enable- Count=64 Masked-
                Vector table: BAR=0 offset=00090000
                PBA: BAR=0 offset=00090800
        Capabilities: [80] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [a0] MSI: Enable- Count=1/32 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [c0] Express (v2) Endpoint, MSI 00
                DevCap:        MaxPayload 128 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl:        Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 256 bytes
                DevSta:        CorrErr+ UncorrErr+ FatalErr- UnsuppReq+ AuxPwr- TransPend-
                LnkCap:        Port #0, Speed 5GT/s, Width x8, ASPM unknown, Latency L0 <64ns, L1 <1us
                        ClockPM- Surprise- LLActRep- BwNot-
                LnkCtl:        ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta:        Speed 5GT/s, Width x8, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
                LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB
        Capabilities: [100 v1] Advanced Error Reporting
                UESta:        DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:        DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt:        DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:        RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                CEMsk:        RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                AERCap:        First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
        Capabilities: [140 v1] Device Serial Number 59-69-46-61-6e-48-73-75

Now as for the source code; nothing conclusive have come up, but my experience with Linux is also very limited especially in regards to drivers and compiling them.

In the Qlogic manual for the NIC (Qlogic QLE3142 is the Qlogic version of the HP NC522SFP which I have) you can see the following http://filedownloads.qlogic.com/Files/Te...0_RevC.pdf:

Quote:Build the Linux Driver Source Code
Linux kernel source/headers are required to compile the drivers provided in
source code format. Some Linux operating system (OS) distributions may not
install the kernel source/headers by default. The headers can be added from the
Linux OS Distribution disk using the RPM package manager.

Enable the Inbox Kernel GPL and Commercial Drivers
The inbox kernel GPL and commercial drivers are included in the Linux kernels
available from kernel.org.

NOTE:
The commercial GPL version of the driver (nx_nic.ko) contains the most
recent updates.

To determine which driver to use:
1. The driver name is:
netxen_nic.ko

2. Type the following command to identify the netxen_nic.ko driver:
% lsmod | grep netxen_nic
NOTE:
The netxen_nic.ko file is automatically blacklisted when the Linux
commercial GPL driver RPM is installed.

3. To disable the inbox kernel GPL driver (netxen_nic.ko):
a. Type the following command to remove the driver from the OS
memory:
% rmmod netxen_nic
b. Remove or rename the netxen_nic.ko file from the
/lib/modules/<uname -r>/kernel/drivers/net/netxen
directory.
The commercial GPL driver (nx_nic.ko) can be enabled after the inbox kernel
GPL driver module is disabled.

Does any of this mean anything to you and is the following source files of any use?
http://www.cs.fsu.edu/~baker/devices/lxr...et/netxen/

I tried downloading the recent stable kernel v3.13.9 from kernel.org and found similar files at linux-3.13.9.tar.xz\linux-3.13.9\drivers\net\ethernet\qlogic\netxen
I also extracted the x64 RedHat RPM and got files that I think is useful, but I cannot see how to attach a file to this response.

I hope that you are willing to look at it and let me know if you think there is a chance of getting a driver compiled and installed Smile

Best regards
Dfir
Reply
#21
Hello,

unfortunately, R&D didnt published yet the last GPL code to cross compil the drivers Sad

I will try to relaunch, when i have some time...

you cant use the kernel from kernel.org, you need the one published in the GPL code from Thecus.

Wink
Stéphane Guérithault

In a world without walls and fences, who needs Windows and Gates

PayPal Donation: https://www.paypal.me/qoolbox

My apps

##########################################################################

rolling now for competitor, i do not support anymore Thecus apllications due to lack of time

##########################################################################


voyance - Sophrologue Hypnothérapeute Essonne 
Reply
#22
Hello,

unfortunately, R&D didnt published yet the last GPL code to cross compil the drivers Sad

I will try to relaunch, when i have some time...

you cant use the kernel from kernel.org, you need the one published in the GPL code from Thecus.

Wink
Stéphane Guérithault

In a world without walls and fences, who needs Windows and Gates

PayPal Donation: https://www.paypal.me/qoolbox

My apps

##########################################################################

rolling now for competitor, i do not support anymore Thecus apllications due to lack of time

##########################################################################


voyance - Sophrologue Hypnothérapeute Essonne 
Reply
#23
Hi Qoolbox

Oh okay, too bad then. Undecided

Would it be possible to use the commercial drivers-source to compile instead of the GPL (i might have misunderstood the commercial/GPL concept)?
I tried to extract the .rpm for the Redhat distro and there I found what seems to be the source files needed to compile the commercial drivers.
But perhaps they are only good for Redhat.

I can provide you the file, if you want to take a look?

Thank you for all your time and help.

Best regards
Dfir
Reply
#24
Hi Qoolbox

Oh okay, too bad then. Undecided

Would it be possible to use the commercial drivers-source to compile instead of the GPL (i might have misunderstood the commercial/GPL concept)?
I tried to extract the .rpm for the Redhat distro and there I found what seems to be the source files needed to compile the commercial drivers.
But perhaps they are only good for Redhat.

I can provide you the file, if you want to take a look?

Thank you for all your time and help.

Best regards
Dfir
Reply
#25
.. but on the other hand, i don't think that i've found the source for the commercial drivers, that seems to me like I found the source for Windows; not going to happen.
Reply
#26
.. but on the other hand, i don't think that i've found the source for the commercial drivers, that seems to me like I found the source for Windows; not going to happen.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Question] Install a driver for a NIC? 0 5,235 Less than 1 minute ago
Last Post:

Forum Jump:


Users browsing this thread: 1 Guest(s)