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

No /dev/spidev and Unknown symbols warnings in 'dmesg' #17

Open
quyphamdev opened this issue Oct 31, 2020 · 1 comment
Open

No /dev/spidev and Unknown symbols warnings in 'dmesg' #17

quyphamdev opened this issue Oct 31, 2020 · 1 comment

Comments

@quyphamdev
Copy link

After I installed the driver, I don't see any /dev/spidev and I got these warnings in 'dmesg':
[11212.412026] spi_ch341_usb: Unknown symbol spi_unregister_device (err 0)
[11212.412046] spi_ch341_usb: Unknown symbol spi_finalize_current_transfer (err 0)
[11212.412075] spi_ch341_usb: Unknown symbol spi_unregister_controller (err 0)
[11212.412098] spi_ch341_usb: Unknown symbol __spi_alloc_controller (err 0)
[11212.412116] spi_ch341_usb: Unknown symbol spi_register_controller (err 0)

There were errors when compiling the driver. There was no definition of at least a function in spi.h. So I replaced it with another spi.h file. Then the compilation went through.
How can I fix this ?
I am on CentOS 7 (3.10.0-1127.19.1.el7.x86_64). I am using this board https://www.amazon.com/dp/B082KQ75QM/ref=cm_sw_em_r_mt_dp_-3cNFb8VTDVM3?_encoding=UTF8&psc=1

Thanks

@UncleGrumpy
Copy link

The error is because the header you supplied had the needed definition, but that is not the header compiled into the kernel so the kernel had no idea what to do with it. The problem will be fixed if pull request #20 is approved. I have verified that it will work :)

mr-nice pushed a commit to mr-nice/spi-ch341-usb that referenced this issue Oct 19, 2023
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

2 participants