[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Compile error
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] Compile error |
Date: |
Mon, 10 Feb 2003 16:33:22 -0800 |
User-agent: |
Mutt/1.4i |
On Mon, Feb 10, 2003 at 04:54:35PM -0500, Ravi Palaniappan wrote:
> Hello,
> i connected the PCIDAS 4020 board and the RF-IF 4937 tuner.when i
> run
>
> ./givelp1 ./fm_demod2 102.5 103.9
>
> i get an error
>
> could not load logo file '/dev/null'
The warning above is normal...
> Input Sampling Rate: 20000000
> Complex FIR decimation factor: 125
> QuadDemod Sampling Rate: 160000
> Real FIR decimation factor: 5
> Audio Sampling Rate: 32000
> can't set GrMC4020Source configuration (GIOCSETCONFIG):
> Inappropriate ioctl for device
>
> any ideas?
>
> thanks,
> -Ravi
Hmmm,
Sounds like the device file doesn't match the assigned device number.
To rule out the obvious, do you have the mc4020 driver code built and
installed?
Try this:
$ cat /proc/devices
$ ls -l /dev/mc4020*
On my system, they give these results:
address@hidden home]$ cat /proc/devices
Character devices:
1 mem
2 pty/m%d
3 pty/s%d
4 tts/%d
5 cua/%d
6 lp
7 vcs
10 misc
14 sound
29 fb
109 lvm
116 alsa
127 mc4020 <<--- this is the one we care about
128 ptm
136 pts/%d
162 raw
180 usb
226 drm
Block devices:
1 ramdisk
2 fd
3 ide0
8 sd
9 md
11 sr
22 ide1
58 lvm
65 sd
66 sd
address@hidden home]$ ls -l /dev/mc4020*
cr--r--r-- 1 root root 127, 0 Feb 10 00:52 /dev/mc4020_0
cr--r--r-- 1 root root 127, 1 Feb 10 00:52 /dev/mc4020_1
cr--r--r-- 1 root root 127, 16 Feb 10 00:52 /dev/mc4020aux0
cr--r--r-- 1 root root 127, 17 Feb 10 00:52 /dev/mc4020aux1
Note that in each, the character major number is 127.
Do you get a stream of ascii integers when you try:
$ /usr/local/bin/mc4020-read-adc --ch3 --1v
As root, take a look at the tail of /var/log/messages for any messages
put out by the mc4020 driver. When the module is first loaded, you
should get messages like this:
# tail -100 /var/log/messages
...
Feb 10 01:06:48 hanbo kernel: mc4020_init_module
Feb 10 01:06:48 hanbo kernel: mc4020: found board at ed000000, irq = 19
...
Eric