Comments (18)
You need to have a recent Linux kernel (possibly patched, I need to check this) because now PiFmRds needs the rpi-mailbox driver. I use a Raspbian from early August and it works out of the box.
from pifmrds.
I have this problem too, running Debian 9/testing (real debian, not raspbian) and latest 4.1 kernel
root@Raspberry-Pi:~/PiFmRds# mknod mbox c 100 0
mknod: ‘mbox’: File exists
from pifmrds.
What a fast reply!
'Just tried it on my other RspbB+, it works fine, so funny
Although I'm a mac gyver, this kind of code ilt's too difficult for me
Can't help you...
from pifmrds.
@SandPox: No need to run mknod, pi_fm_rds does this for you. But if it fails, it means your kernel lacks the required driver. I'm will update the message and doc when I figure out the specifics.
It works fine on my Raspbian with Linux 3.18.11 (but the kernel may have been patched with RPi-specific patches by the Raspbian team).
from pifmrds.
@SandPox: may you try to change the code here in pi_fm_rds.c?
if (mknod(MBFILE, S_IFCHR|0600, makedev(100, 0)) < 0)
Change 100 into 249.
May you also send me the output of ls -l /dev/vcio?
Thanks.
from pifmrds.
I get
crw-rw---T 1 root video 249, 0 janv. 1 1970 /dev/vcio
from pifmrds.
sorry i will change the value and retry
one minute
from pifmrds.
You will also need to change MAJOR_NUM 100 to 249 in mailbox.h.
from pifmrds.
i do this in 5 minutes
( the soft is able to run with the first change in pi_fm_rds.c)
from pifmrds.
Ah great :) Don't bother, I checked again, the change in mailbox.h will have no effect.
from pifmrds.
so:
first change on pi_fm_rds.c the soft run
second change on mailbox.h the rasp is blocked
i get:
Allocating physical memory: size = 3403776 ioctl_set_msg failed:-1
mem_ref = 3403776 ioctl_set_msg failed:-1
bus_addr = 33f000 virt_addr = 0x76813000
from pifmrds.
Ah interesting, I did not expect that, thanks :)
from pifmrds.
My test
I reset MAJOR_NUM at value 100 in mailbox.h
the soft run, i can hear stereo_44100.wav at good frequency with RDS on my radio
but it seems to be in mono
from pifmrds.
That's weird, stereo should not be affected by the issue we're discussing here. I'll do some tests later.
from pifmrds.
it's emmiting in stereo but the sound is in mono
anyway
good job, T Y.
from pifmrds.
I pushed a new version: hopefully it fixes the problems you reported with the device file. It tries to use /dev/vcio, then create a device 249 (new allocation), then create a file with major 100 (old allocation).
from pifmrds.
wow, new commit working... thanks
from pifmrds.
Hello,
Now Working fine for Raspberry Pi 2 ! Thanks!
from pifmrds.
Related Issues (20)
- Can I stream RDS to external FM+RDS transmitter? HOT 1
- Make file is making error HOT 1
- just blocking HOT 2
- Make doesn't make a nothing HOT 9
- Doesn't compile! HOT 3
- cant pipe audio on pi4 using pulseaudio HOT 1
- Gives error when i use the make command HOT 4
- While compiling I get this soxr.h missing HOT 1
- Support for non-ASCII characters (RDS codes > 0x80) HOT 3
- Hardware related issue with additional FM transmitter HOT 7
- compile issue HOT 2
- Audio too slow HOT 2
- Instant crash on launch on Pi 4 HOT 5
- Mp3 to Wav converter HOT 1
- lack fpu HOT 4
- hi! Could you also make it pi5 compatible too? HOT 5
- Audio signal loss during mouse inactivity with pifmrds on Raspberry Pi 4 HOT 1
- Make Raspberry Pi 5 (GPIO23) Compatible HOT 2
- 19k Signal and Increasing RDS Power HOT 2
- Add gui HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pifmrds.