Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is possible to compile in kernel 4.4.3 to support DSM 7.2 #17

Open
ikeooo opened this issue Mar 6, 2024 · 4 comments
Open

Is possible to compile in kernel 4.4.3 to support DSM 7.2 #17

ikeooo opened this issue Mar 6, 2024 · 4 comments

Comments

@ikeooo
Copy link

ikeooo commented Mar 6, 2024

Is possible to compile in kernel 4.4.3 to support DSM 7.2 for install DMS 7.2 in asustor model?

@ikeooo
Copy link
Author

ikeooo commented Mar 6, 2024

When i try it on DSM 7.2. it shows several error

/volume1/linux/asustor/asustor-platform-driver# make CROSS_COMPILE=/volume1/linux/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-
CC [M] /volume1/linux/asustor/asustor-platform-driver/asustor.o
/volume1/linux/asustor/asustor-platform-driver/asustor.c:37:18: error: ‘struct gpio_led’ has no member named ‘panic_indicator’
37 | .panic_indicator = 1,
| ^~~~~~~~~~~~~~~
/volume1/linux/asustor/asustor-platform-driver/asustor.c:37:36: warning: initialization of ‘struct gpio_desc *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
37 | .panic_indicator = 1,
| ^
/volume1/linux/asustor/asustor-platform-driver/asustor.c:37:36: note: (near initialization for ‘asustor_leds[3].gpiod’)
/volume1/linux/asustor/asustor-platform-driver/asustor.c: In function ‘asustor_init’:
/volume1/linux/asustor/asustor-platform-driver/asustor.c:324:34: error: ‘const struct gpiod_lookup’ has no member named ‘key’
324 | for (; keys_table->key != NULL; keys_table++) {
| ^~
/volume1/linux/asustor/asustor-platform-driver/asustor.c:328:69: error: ‘const struct gpiod_lookup’ has no member named ‘key’
328 | find_chip_by_name(keys_table->key);
| ^~
make[2]: *** [scripts/Makefile.build:287: /volume1/linux/asustor/asustor-platform-driver/asustor.o] Error 1
make[1]: *** [Makefile:1467: module/volume1/linux/asustor/asustor-platform-driver] Error 2
make: *** [Makefile:24: modules] Error 2

@frankol
Copy link

frankol commented May 24, 2024

same here. cant compile it. Even if i disable the warnings and let compile it, i cant use it in DSM since it throw the same errors in dmesg.

@mafredri
Copy link
Owner

Are you running DSM on ASUSTOR hardware, or trying use this project with Synology hardware? I ask because the latter doesn't really make sense for this driver.

Either way, I'm happy to accept PRs for this but not something I'm planning to work on myself as I don't have any way to test it.

@frankol
Copy link

frankol commented May 29, 2024

Im running DSM on ASUSTOR hardware. For compile i have a ubuntu with [(https://help.synology.com/developer-guide/getting_started/prepare_environment.html)] prepared. Many modules i can compile without errors or warning, just this one makes me some trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants