NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

it-guru's avatar
it-guru
Aspirant
Sep 11, 2015

Problems while creating the .config for 3.12.43 Kernel in ReadyNASOS 6.3.5 (for comp. USB Modules)

I am running 6.3.5 on my ReadyNAS Ultra 2 Plus and all works fine. My Problem ist, i need to add the OneWire USB Modules to my system for a Home-Automation solution.

 

This was my approach to get my target:

I open ...

http://kb.netgear.com/app/answers/detail/a_id/2649/~/gpl-open-source-code-for-programmers

... and found for "ReadyNAS OS 6(ReadyNAS 200)" the download link...

http://www.downloads.netgear.com/files/GPL/ReadyNASOS_V6.3.5_WW_src.zip

... and unpack this zip in a /usr/src/ReadyNAS/ReadyNASOS directory.
In this zip i found two posible directories (linux-3.12.43-52.6 and linux-3.12.43-52.6-alpine), which are seems to be the correct kernel source for ReadyNASOS 6.3.5 . I use linux-3.12.43-52.6 and so i do ...

 

cd /usr/src/ReadyNAS/ReadyNASOS/linux-3.12.43-52.6
make distclean      # seems to work fine
make olddefconfig   # seems also to work fine

 

... an now i try at first to compile the hole kernel without any modifications or additional modules with (to check, if .config is correct created) ...

 

make

 

This takes a longer time (>30 minutes) and multiple files can be correct compiled and linked but then i get the message ...

 

....
CC drivers/pci/msi.o
CC drivers/pci/htirq.o
CC drivers/pci/ats.o
drivers/pci/ats.c: In function 'pci_enable_ats':
drivers/pci/ats.c:68:52: error: 'struct pci_dev' has no member named 'physfn'
struct pci_dev *pdev = dev->is_physfn ? dev : dev->physfn;
^
drivers/pci/ats.c:70:19: error: 'struct pci_dev' has no member named 'sriov'
mutex_lock(&pdev->sriov->lock);
^
drivers/pci/ats.c:78:21: error: 'struct pci_dev' has no member named 'sriov'
mutex_unlock(&pdev->sriov->lock);
^
drivers/pci/ats.c: In function 'pci_disable_ats':
drivers/pci/ats.c:117:52: error: 'struct pci_dev' has no member named 'physfn'
struct pci_dev *pdev = dev->is_physfn ? dev : dev->physfn;
^
drivers/pci/ats.c:119:19: error: 'struct pci_dev' has no member named 'sriov'
mutex_lock(&pdev->sriov->lock);
^
drivers/pci/ats.c:123:21: error: 'struct pci_dev' has no member named 'sriov'
mutex_unlock(&pdev->sriov->lock);
^
make[2]: *** [drivers/pci/ats.o] Error 1
make[1]: *** [drivers/pci] Error 2
make: *** [drivers] Error 2

 

All Steps are done direct on my ReadyNAS (no crosscompile). I (think) i have all necessary build dependencies installed (build-essential, libncurses5-dev). My surmise is, the creation of .config is not correct. 

Where can i found/get the correct (and working) kernel .config for the 3.12.43 Kernel on ReadyNASOS 6.3.5 ???

 

BTW: Does anyone know, what are the difference between linux-3.12.43-52.6-alpine and linux-3.12.43-52.6 in the src zip-file and what is the purpose of the -alpine kernel?

2 Replies

Replies have been turned off for this discussion
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired

    6.3.5 was released for the 200 series (alpine arm).

    We have a newer kernel again in 6.4.0 beta.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More