PCS Electronics PCS Electronics - home page PCS Electronics  
RegisterSearchFAQAM & FM Radio transmitters shop UsergroupsLog in
linux kernel 2.6.36+ ioctl

 
Reply to topic    PCS-Electronics Forum Index » PCI MAX transmitters View previous topic
View next topic
linux kernel 2.6.36+ ioctl
Author Message
hamsandwich
New registered user
New registered user


Joined: 02 May 2012
Posts: 1

Post linux kernel 2.6.36+ ioctl Reply with quote
Does anyone have a fix to make the code from http://code.google.com/p/pcimaxfm/ work with 2.6.36+ kernels? Apparently ioctl went away:
/usr/local/src/pcimaxfm/src/driver/linux/main.c:477: error: unknown field 'ioctl' specified in initializer
/usr/local/src/pcimaxfm/src/driver/linux/main.c:477: warning: initialization from incompatible pointer type

I tried just changing it to unlocked_ioctl as is suggested in some forums, and this allows it to compile with just the warning:
/usr/local/src/pcimaxfm/src/driver/linux/main.c:477: warning: initialization from incompatible pointer type
But the bin produced doesn't work, when trying to display or set any setting it just says Killed

The last commit to the google code was 3 years ago
Sun May 06, 2012 8:26 pm View user's profile Send private message
pcs
Site master
Site master


Joined: 18 Jan 2002
Posts: 3063
Location: Radio Land

Post Reply with quote
I think the work on the linux driver stopped with 2007+ model cards.

That is a pity since the new PCIMAX 3000+ cards are much easier to program. I hope someone will pick up the work and move to the new pcimax 3000+ model.

_________________
Best regards,
Marko - PCS Electronics
--------------------------------------------------------
Turn your PC into a FM radio station!
http://www.pcs-electronics.com
fax +386 4 2316 128
Mon May 07, 2012 9:20 am View user's profile Send private message Visit poster's website
pcs
Site master
Site master


Joined: 18 Jan 2002
Posts: 3063
Location: Radio Land

Post Reply with quote
Someone picked up the work on the linux driver for the card so you may want to tune in for news in the coming weeks.

_________________
Best regards,
Marko - PCS Electronics
--------------------------------------------------------
Turn your PC into a FM radio station!
http://www.pcs-electronics.com
fax +386 4 2316 128
Thu May 24, 2012 9:57 am View user's profile Send private message Visit poster's website
w3rn
New registered user
New registered user


Joined: 24 Jul 2009
Posts: 10

Post Reply with quote
This may help!!!


Special Notes:
If you receive this error: "rds.c:1:0: error: code model ‘kernel’ not supported in the 32 bit mode" here is what you need to do!! The issue has to do with a cflag in the /src/common/Makefile.am. Delete this on the cflag line "-mcmodel=kernel" and then you will be able to compile on 32bit linux. You do not have to do this on 64bit linux systems. On stock debian 5 systems the driver fragged the kernel with of panics and traces. But it stable on current ubuntu systems and seems to work fine without fault.

Newer Kernels may produce this error: "main.c:477:2: error: unknown field ‘ioctl’ specified in initializer". To solve this problem change ".ioctl = radioModIoctl" to ".unlocked_ioctl = radioModIoctl" in main.c line 477. Remove this prototype from the ioctl function handler "struct inode *inode,". Also change "int" to "long" for return type for the ioctl function. Lastly, you may have to do a "sudo depmod".

As of ubuntu v11.10 the radio module may load using modprobe but cards may not be FOUND. This is because of a netjet driver loaded at startup/bootup. You can remove this module by issuing the command "sudo rmmod netjet". For a permenet fix edit the file "/etc/modprobe.d/blacklist" and add "blacklist netjet" "and blacklist hisax".
Sat Sep 08, 2012 7:15 am View user's profile Send private message
Dan
New registered user
New registered user


Joined: 06 Feb 2007
Posts: 6

no.gif

Post Reply with quote
The driver is updated to work with modern kernels (tested with 3.8.1). The repo have changed to Git, so you will have to re-checkout the code: https://code.google.com/p/pcimaxfm/source/checkout

Transmitters newer than 2007+ are probably not supported, but patches are of course welcome.
Fri Mar 08, 2013 2:55 am View user's profile Send private message Visit poster's website
pcs
Site master
Site master


Joined: 18 Jan 2002
Posts: 3063
Location: Radio Land

Post Reply with quote
Too bad you're not supporting 3000+, it is a much better product than the old 2007.

But thanks for the great work nevertheless.

_________________
Best regards,
Marko - PCS Electronics
--------------------------------------------------------
Turn your PC into a FM radio station!
http://www.pcs-electronics.com
fax +386 4 2316 128
Sat Mar 09, 2013 7:11 pm View user's profile Send private message Visit poster's website
Display posts from previous:    
Reply to topic    PCS-Electronics Forum Index » PCI MAX transmitters All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group