Code Monkey home page Code Monkey logo

ich7_gpio's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ictabc

ich7_gpio's Issues

Usage on N5550 with kernel 5.4

Just installed Open Media Vault on my N5550 and found the system leds and HDD leds are not working. Found this repo by chance that addresses similar issues.

I'm aware you've been working on this over 8 years ago, so you might have forgotten all about it. Was just wondering if you have a newer version that could be compiled for a more recent kernel, as the usage of create_proc_entry has been removed in kernel 3.10. Not sure if this would even get the HDD leds working again though, but had to ask.

The error I'm getting during compilation is:

root@N5550-OMV:~/download/ich7/ich7_gpio# make modules
make -C /lib/modules/5.4.0-0.bpo.4-amd64/build M=/root/download/ich7/ich7_gpio modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-0.bpo.4-amd64'
  CC [M]  /root/download/ich7/ich7_gpio/ich7_gpio.o
/root/download/ich7/ich7_gpio/ich7_gpio.c: In function ‘nas_gpio_init’:
/root/download/ich7/ich7_gpio/ich7_gpio.c:771:14: error: implicit declaration of function ‘create_proc_entry’; did you mean ‘remove_proc_entry’? [-Werror=implicit-function-declaration]
  ich7_proc = create_proc_entry(PROCFS_NAME, 0, NULL);
              ^~~~~~~~~~~~~~~~~
              remove_proc_entry
/root/download/ich7/ich7_gpio/ich7_gpio.c:771:12: warning: assignment to ‘struct proc_dir_entry *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  ich7_proc = create_proc_entry(PROCFS_NAME, 0, NULL);
            ^
/root/download/ich7/ich7_gpio/ich7_gpio.c:780:11: error: dereferencing pointer to incomplete type ‘struct proc_dir_entry’
  ich7_proc->proc_fops = &proc_ich7_operations;
           ^~
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.4.0-0.bpo.4-common/scripts/Makefile.build:271: /root/download/ich7/ich7_gpio/ich7_gpio.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.4.0-0.bpo.4-common/Makefile:1665: /root/download/ich7/ich7_gpio] Error 2
make[1]: *** [/usr/src/linux-headers-5.4.0-0.bpo.4-common/Makefile:179: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-0.bpo.4-amd64'
make: *** [Makefile:7: modules] Error 2

thank you for your time!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.