-
Notifications
You must be signed in to change notification settings - Fork 5.2k
mcp3422.ko Kernel module #1330
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
Comments
CONFIG_MCP3422=m is the required setting. The module is only 10KB. |
Sounds okay. Will add. |
…YUV images See: #520 firmware: spdif: Allow compressed audio flag to be forced See: #561 kernel: vchiq_arm: Tweak the logging output kernel: bcm2835-sdhost: Only claim one DMA channel kernel: bcm2835-mmc: Only claim one DMA channel See: raspberrypi/linux#1327 kernel: Pi3 DT: Add pull-ups on the UART RX lines kernel: config: Add module for mcp3422 ADC See: raspberrypi/linux#1330 kernel: brcmfmac: Disable power management See: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=138312 kernel: serial: Take care starting a hung-up tty's port
…YUV images See: raspberrypi/firmware#520 firmware: spdif: Allow compressed audio flag to be forced See: raspberrypi/firmware#561 kernel: vchiq_arm: Tweak the logging output kernel: bcm2835-sdhost: Only claim one DMA channel kernel: bcm2835-mmc: Only claim one DMA channel See: raspberrypi/linux#1327 kernel: Pi3 DT: Add pull-ups on the UART RX lines kernel: config: Add module for mcp3422 ADC See: raspberrypi/linux#1330 kernel: brcmfmac: Disable power management See: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=138312 kernel: serial: Take care starting a hung-up tty's port
This is in latest rpi-update firmware. |
Hi, Wow that was quick! I'm probably doing something silly here, but have done rpi-update which ran sucessfully (still running on Wheezy at the moment) Can't get the modules to install : I'm using a crib from steps 10 & 11 here : https://github.com/angeloc/linux_iio_mcp3422 root@raspberrypi:/# uname -a root@raspberrypi:/# insmod /lib/modules/4.1.19+/kernel/drivers/iio/adc/mcp3422.ko root@raspberrypi:/# insmod /lib/modules/4.1.19+/kernel/drivers/iio/adc/mcp320x.ko Not sure why there are two different .ko files in that directory, was only expecting one - but then kernel modules is not my forte to be honest Just for fun I tried the other module area : root@raspberrypi:/# insmod /lib/modules/4.1.19-v7+/kernel/drivers/iio/adc/mcp3422.ko That's expected I guess as I'm not running that kernel This then didn't work (kind of expected as there's no driver module loaded) root@raspberrypi:/# echo mcp3424 0x6e > /sys/bus/i2c/devices/i2c-1/new_device This might be helpful : root@raspberrypi:/# dmesg | tail -15 The last 2 were generated by running : insmod /lib/modules/4.1.19+/kernel/drivers/iio/adc/mcp3422.ko Any ideas as to what's not happening here ? |
Does this work for you:
|
I assume you rebooted after running rpi-update? |
Yes I rebooted root@raspberrypi:/# modprobe mcp3422 root@raspberrypi:/# uname -a root@raspberrypi:/# dmesg | tail -5 |
I'm still running Wheezy if that has any bearing on things? |
Lets check with Pi1
still seems okay. What does this report:
|
I'm sorry about this, I didn't mean to cause trouble :( |
root@raspberrypi:/# md5sum /lib/modules/4.1.19+/kernel/drivers/iio/adc/mcp3422.ko |
Wheezy is no longer supported by us and I am on Jessie, but I can't think why that could cause a difference. Can you try running |
I already have a RTC present on the I2c root@raspberrypi:/# lsmod |
oh! we have a winner root@raspberrypi: root@raspberrypi: |
Did : depmod And then the above |
As fast as my little fingers can cut wires I'll hook up Chan0 to the 1.8v rail for a test of my hardware Thank-you very very much, I really appreciate the time and support |
rpi-update does run depmod, but perhaps it didn't complete. Looks like it's okay now (and worth remembering that depmod updates module dependencies if you have problems again). |
As Dracula would say...."Fangs" :-) |
…YUV images See: raspberrypi#520 firmware: spdif: Allow compressed audio flag to be forced See: raspberrypi#561 kernel: vchiq_arm: Tweak the logging output kernel: bcm2835-sdhost: Only claim one DMA channel kernel: bcm2835-mmc: Only claim one DMA channel See: raspberrypi/linux#1327 kernel: Pi3 DT: Add pull-ups on the UART RX lines kernel: config: Add module for mcp3422 ADC See: raspberrypi/linux#1330 kernel: brcmfmac: Disable power management See: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=138312 kernel: serial: Take care starting a hung-up tty's port
Hi
Would it be possible to include a mcp3422.ko file as part of the standard build (in a similar fashion to the can bus mcp251x.ko please?
The text was updated successfully, but these errors were encountered: