Mandake 9.0 GPL a radio karta SF16FMR2 - nastaven? MAKEFILE

ca626947 na tiscali.cz ca626947 na tiscali.cz
Sobota Leden 4 16:04:15 CET 2003


Zdrav?m,

m?m takov? probl?m s moj? radio kartou SF16FMR2. Tuto kartu jsem
rozchodil v RedHatu 7.2 i  7.3, ale v Mandrake 9.0 GPL jsem m? to v?bec
neda??.

Probl?m bude v nastaven? Makefile. Na m?sto "linux" jsem zad?val j?dro,
ale takov?to adr struktura v MDK nen?"..... Nev?m co s t?m. D?le mo?n?
vid?m probl?m i v tom ?e m?m v MDK j?dro 2.4.19-16mdk a tyto ovlada?e
karty jsou pro verzi j?dra 2.4.20. Uv?d?m zde pod makefile i readme....
k driver?m :o)

*v?e sta?eno z http://freddy77.tripod.com/sf16fmr2.html*

D?ky za pomoc

-------------
radio-sf16fmr2.o: radio-sf16fmr2.c
     gcc -O2 -I/usr/src/linux/include -include
/usr/src/linux/include/linux/modversions.h -c -D__KERNEL__ -DMODULE
-Wall -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing
-pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=586 -DMODVERSIONS -o radio-sf16fmr2.o
radio-sf16fmr2.c

clean:
     rm -f radio-sf16fmr2.o sf16fmr2.tgz

dist:
     echo -e Makefile\\nMakefile.nomodver\\nradio-sf16fmr2.c\\nREADME |
tar zcvf sf16fmr2.tgz -T -

install: radio-sf16fmr2.o
     rmmod radio-sf16fmr2 || true
     cat /etc/modules.conf | grep -v "^alias \+char-major-81\(
\+videodev\|.\+radio-sf16fmr2\)" > __modules.conf
     echo alias char-major-81 videodev >> __modules.conf
     echo alias char-major-81-64 radio-sf16fmr2 >> __modules.conf
     mv -f __modules.conf /etc/modules.conf
     cp -f radio-sf16fmr2.o  /lib/modules/`uname
-r`/kernel/drivers/media/radio/radio-sf16fmr2.o
     depmod -a


.PHONY: clean dist
----------------

README:
26 December 2002
Use assigned video ID (35)
Module integrated in 2.4.21-pre2

01 December 2002
Start integrating directly in kernel (2.4.20)

04 October 2002
Tip for RedHat 8 user:
Use same method written below for RH 7.x...

26 December 2001
Fix for 2.4.7 kernel
For RedHat 7.x user: Makefile want kernel sources in /usr/src/linux, so
   after install package kernel-source do

  > cd /usr/src
  > ln -s linux-2.4 linux

15 December 2001
Fixed compilation with newer kernel

25 November 2001
Done make install

29 April 2001
Adapted to kernel version 2.4.2 (still work on 2.2.x kernels).

25 February 2001
This is my first driver for linux... but it should work without problem
(it's very simple).
I use kernel version 2.2.14 (from RedHat 6.2).
Now I upgraded the kernel to 2.2.18 and still continue to run.
Also I have increased a delay for some problem.

FEATURE
   set frequency
   mute handling
   detect stereo or mono

BUILD
   Simply type

  > make

   to build the module for the kernel
   (do a strip too if you don't want to debug :-) ).
   Your kernel must be configured for module and video4linux.
   I never tried to include into the kernel.

   If this doesn't work try to rename Makefile.nomodver to Makefile and
make

INSTALL
   Simply type

  > make install

   to install module on 2.4.x kernel (and compile if not)

   I above do not function try manual installation:

   copy radio-sf16fmr2.o to /lib/modules/xxxx/misc (where xxxx is your 2.2.x
   kernel version) or /lib/modules/xxxx/kernel/drivers/media/radio (where
xxxx
   is your 2.4.x kernel version) and do a

  > depmod -a

USE
   Do

  > modprobe radio-sf16fmr2

   and load your best tuner program!
   I added the line

  > alias radio radio-sf16fmr2

   to conf.modules (or modules.conf) to load it with a

  > modprobe radio

   If you have compiled with Makefile.nomodver add these two line to
   your conf.modules file

  > add below radio-sf16fmr2 videodev
  > alias radio radio-sf16fmr2

   If you want to autoload the driver on needed try adding these
   lines your conf.modules (or modules.conf) file
   It work fine on my PC. If it doesn't work use above instruction

  > alias char-major-81 videodev
  > alias char-major-81-64 radio-sf16fmr2

MISSING
   There is no signal handling (scanning do not function).

AUTHOR
   Frediano Ziglio, freddy77 na angelfire.com







____________________________________________________
Postete svym znamym vanocni prani a udelejte jim radost!
http://pohlednice.tiscali.cz





Další informace o konferenci Linux