Hot answers tagged

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 && ...
Aloha's user avatar
  • 7,106
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 ---...
Élie's user avatar
  • 191
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 ...
Ghanima's user avatar
  • 15.7k
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=...
pim's user avatar
  • 622
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 ...
goldilocks's user avatar
  • 57.9k
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 - ...
Eamon's user avatar
  • 61
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 ...
riban's user avatar
  • 61
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 ...
Jacobm001's user avatar
  • 11.9k
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 ...
Diederik de Haas's user avatar
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 ...
Kamran Sethi's user avatar
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 ...
Dave Jones's user avatar
  • 3,968
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.
Dip's user avatar
  • 101
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, ...
Shreyas Murali's user avatar
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/...
Dougie's user avatar
  • 5,170
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 ...
goldilocks's user avatar
  • 57.9k
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 ...
Steve Robillard's user avatar
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 ...
goldilocks's user avatar
  • 57.9k
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 ...
joan's user avatar
  • 69.7k
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 ...
Michael's user avatar
  • 326
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 ...
Edward's user avatar
  • 951
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 ...
flakeshake's user avatar
  • 6,155
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 ...
Steve Robillard's user avatar
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 ...
tttapa's user avatar
  • 961
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 ...
mobluse's user avatar
  • 181
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,...
Tolga Varol's user avatar
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"
spuder's user avatar
  • 1,153
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)
Igor Nikolaev's user avatar
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 ...
Myg0t's user avatar
  • 111
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 ...
neosarchizo's user avatar
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 ...
Emma Anholt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible