25
votes
Accepted
How compile a loadable kernel module without recompiling kernel
First of all, make sure you use the proper kernel headers. I assume that your kernel headers and source code are more updated than the kernel you're running.
Try to do an apt-get update && ...
9
votes
Designing Raspberry Pi Compute Module with Ethernet capability
You can also use the ENC28J60 Module, which is only a few dollars from the usual places - ebay, aliexpress etc, and won't consume your USB port.
To do this, wire things up:
Pi ENC28J60
---...
8
votes
Accepted
Modular Raspberry Pi Model
No there's not - a fact that a quick look on the rather short list of models of the Raspberry Pi would reveal. I'd also assume that the intended audience of the Pi and the targeted cost structure of ...
7
votes
How compile a loadable kernel module without recompiling kernel
There is a much simpler version here, tested on jessie and stretch.
sudo apt-get install raspberrypi-kernel-headers
and then when your files are in place :
make -C /lib/modules/$(uname -r)/build M=...
6
votes
Accepted
RPI2 Kernel module compilation (kernel 3.18.11+ vs 3.18.11-v7+)
What is the difference between kernel "3.18.11" and "3.18.11-v7+"?
The -v7+ is tacked on to indicate this isn't from a vanilla source tree, and that it was compiled specifically for the Pi 2.
I'm ...
6
votes
Installed pyusb, still: 'ImportError: no module named core'
Try this, this worked for my on a Raspberry PI 3b+ for Python 3.5.3
sudo apt-get install python-usb python3-usb
after running that the code import usb.core worked
(Raspberry PI 3b+ - Python 3.5.3 - ...
6
votes
How to make PCM5102 DAC work on Raspberry Pi ZeroW?
On these purple PCBs there are 5 sets of bridging pads.
On the front (component side) there is one pair of pads which may be bridged to tie the SCK (system clock) low. This will force the PCM510x to ...
5
votes
Accepted
Can Compute Modules provide clustering and high availability?
There is no reason you couldn't design a custom PCB and stick a bunch of compute modules on them if you desired. There are a few "gotchas" though.
This wouldn't be particularly powerful. The chips ...
5
votes
How do I get the configuration and Module.symvers for a Raspbian kernel to compile a loadable module for my RPI 2?
This is a multi step proces:
Step 1: Get the git_hash from the firmware
First you need the commit id of the firmware (firmware-commit-id) from the raspberrypi-bootloader package:
zgrep '* firmware ...
5
votes
Accepted
How to make PCM5102 DAC work on Raspberry Pi ZeroW?
I was able to make this unit work with my Raspberry Pi 3 using volumio and osmc without the need of any software tweaking. I must say that it sounds very good on both distributions.
While using both ...
4
votes
Accepted
camera board colors issue
This is typical for a PiNoIR camera (or any camera with the IR filter removed): black appears as purple because although it's black to your eyes, the camera's still seeing a fair amount of red (from ...
4
votes
Where do I find the linux headers for an image?
See answer here
https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=154749
You can try sudo apt-get install raspberrypi-kernel-headers if you're running raspbian.
4
votes
Accepted
Why isn't gpio_set_debounce working in my Raspberry Pi Zero kernel module?
Looking at the header it appears gpio_set_debounce isnt actually implemented which would explain why your code changes didnt make a difference
static inline int gpio_set_debounce(unsigned gpio, ...
4
votes
How I can identify and set a needed display module which was missing on boot time?
There's three ways modules get loaded
With a device tree (for something like a RTC module)
When the kernel detects a new USB device being connected.
A list of modules to can be specified in: /etc/...
3
votes
Accepted
Verified 4G USB dongles
The elinux pages are sometimes out-of-date, but it is also worth noting that those lists are not exhauastive by nature, hopefully that does not require further explanation.
Whether a device will work ...
3
votes
Accepted
Can I use an FT232RL USB to TTL adapter with Raspberry Pi for a GPS module?
Yes, This should work with a few caveats (see below). To connect the USB to TTL you would connect a USB cable to the board and then the pins would connect to your GPS module.
This will not provide ...
3
votes
Accepted
Where do I find the linux headers for an image?
I started with Raspian 3.18.5 (Wheezy?) and did an apt-get update and ended up with 4.1.10 (Jessie?).
I don't think you can end up going from wheezy to jessie just with apt-get update. They will ...
3
votes
Accepted
Seeing "modprobe: not found" using nodejs and raspi-io
modprobe is not in a standard user's path as it is not runnable as a standard user. It requires superuser privileges to run.
If you use the command sudo modprobe the command will be found. sudo ...
3
votes
Can Compute Modules provide clustering and high availability?
While not doing this with compute modules, I have 6 PI3's running together to test HA setups (database cluster sometimes, load balanced nginx servers other times). It's way cheaper to buy 6 pi's (and ...
3
votes
Accepted
Magnet on gps module - will it harm?
The short answer is no, a magnet will not interfere with your GPS module.
The reason is that the electric field strength of the GPS signal will not be altered in any significant way by the relatively ...
3
votes
Accepted
How can I setup the video / graphics on the Raspberry Pi 3?
The options in order of decreasing age and stability :
1) The GPU 3D/Video BLOB which respects gpu_mem
2) The 2D framebuffer drivers fbdev / fbturbo
3) The in-kernel KMS/3D driver started by Eric ...
3
votes
ModuleNotFoundError: No module named 'PySide'
It looks like you installed pyside only for Python 2. There are two meta packages for pyside in the repository python-pyside and python3-pyside. You can see this for yourself with the following ...
3
votes
Python 3.11.0 Import sqlite not found
The module is named sqlite3, not sqlite.
sqlite3 is built into Python's standard library (https://docs.python.org/3/library/sqlite3.html), you should not try to install it using pip.
If import sqlite3 ...
2
votes
Enabling audible terminal bell/beep on wheezy
It's possible to make a shorter sound using:
( speaker-test -t sine -c 2 -s 2 -f 800 & TASK_PID=$! ; sleep 0.09 ; kill -s SIGKILL $TASK_PID ) > /dev/null
This sends a signal after 0.09 s (but ...
2
votes
Accepted
lens for raspberry pi 2 to expand the field of view
if you expand the field distortion will occur and it will make the process of pattern recognition much harder. I think you should stick to the original.
But if you have already decided to use a lens,...
2
votes
LIRC - Unable to load module
The configuration is wrong, MODULES should be separated with a space, not a comma.
Incorrect
MODULES="lirc_dev,mceusb"
Correct
MODULES="lirc_dev mceusb"
2
votes
How compile a loadable kernel module without recompiling kernel
in getKernel.sh file add
sudo modprobe configs
before
zcat /proc/config.gz >.config
(now in default rpi image /proc/config.gz not exist)
2
votes
raspberry camera module cannot be opened with device ID
Abdullah,
make sure you enable the camera module in raspi-config as Android Dev has suggested.
But also, in my experience, you need to run this in cmd line before the Raspi Camera can be used:
sudo ...
2
votes
Unable to install SimpleCV on Raspberry Pi 3
I succeed running SimpleCV on RPi3 without updating os from RPi2.
I just installed like following steps.
mkdir ~/Code
cd ~/Code
git clone git://github.com/sightmachine/SimpleCV.git
cd SimpleCV
sudo ...
2
votes
Accepted
How to set pull up/down resistors in a kernel module
Since the pull-up/pull-downs and device functions are pin-controller specific, there aren't general interfaces for them. What we do instead is define pin groups in the device tree, which have the ...
Only top scored, non community-wiki answers of a minimum length are eligible