Giter Site home page Giter Site logo

Comments (18)

ChristopheJacquet avatar ChristopheJacquet commented on July 18, 2024

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.

 avatar commented on July 18, 2024

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.

clotaireFrance avatar clotaireFrance commented on July 18, 2024

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.

ChristopheJacquet avatar ChristopheJacquet commented on July 18, 2024

@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.

ChristopheJacquet avatar ChristopheJacquet commented on July 18, 2024

@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.

clotaireFrance avatar clotaireFrance commented on July 18, 2024

I get

crw-rw---T 1 root video 249, 0 janv. 1 1970 /dev/vcio

from pifmrds.

clotaireFrance avatar clotaireFrance commented on July 18, 2024

sorry i will change the value and retry

one minute

from pifmrds.

ChristopheJacquet avatar ChristopheJacquet commented on July 18, 2024

You will also need to change MAJOR_NUM 100 to 249 in mailbox.h.

from pifmrds.

clotaireFrance avatar clotaireFrance commented on July 18, 2024

i do this in 5 minutes
( the soft is able to run with the first change in pi_fm_rds.c)

from pifmrds.

ChristopheJacquet avatar ChristopheJacquet commented on July 18, 2024

Ah great :) Don't bother, I checked again, the change in mailbox.h will have no effect.

from pifmrds.

clotaireFrance avatar clotaireFrance commented on July 18, 2024

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.

ChristopheJacquet avatar ChristopheJacquet commented on July 18, 2024

Ah interesting, I did not expect that, thanks :)

from pifmrds.

clotaireFrance avatar clotaireFrance commented on July 18, 2024

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.

ChristopheJacquet avatar ChristopheJacquet commented on July 18, 2024

That's weird, stereo should not be affected by the issue we're discussing here. I'll do some tests later.

from pifmrds.

clotaireFrance avatar clotaireFrance commented on July 18, 2024

it's emmiting in stereo but the sound is in mono

anyway
good job, T Y.

from pifmrds.

ChristopheJacquet avatar ChristopheJacquet commented on July 18, 2024

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.

 avatar commented on July 18, 2024

wow, new commit working... thanks

from pifmrds.

clotaireFrance avatar clotaireFrance commented on July 18, 2024

Hello,

Now Working fine for Raspberry Pi 2 ! Thanks!

from pifmrds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.