jncronin / ich7_gpio Goto Github PK
View Code? Open in Web Editor NEWLinux kernel module for the ich7_gpio + scripts to create linux led_class objects for the leds of devices with LEDs connected to it
License: Other
Linux kernel module for the ich7_gpio + scripts to create linux led_class objects for the leds of devices with LEDs connected to it
License: Other
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.