Portál AbcLinuxu, 10. května 2025 05:27

Dotaz: kompilace v4l proti krenelu 2.6.17

28.4.2009 23:29 mmm
kompilace v4l proti krenelu 2.6.17
Přečteno: 232×
Odpovědět | Admin

Pekne zdravim.

Dostal jsem se do takoveto neprijemne situace: vlastnim starsi notebook s grafickou kartou ati s jadrem r250.

S ubutnu verze 6.10 jsem pouzival digitalni tuner, ktery  se rozbeho po aplikaci patche na tehdy aktualni ovladace. Tuner jem nejaky cas nepouzival a po updatech poslednich verzi ubuntu jsem zacal mit potize s gfarickou kartou. K dispozici byl pouze os ovladac, jehoz vykon je s moji kartou i v te nejnovejsi vezi zhruba tretinovy.

Jal jsem se tedy instalovat pc tak abych rozbehl proprietalni ovaldac. Proprietalni ovladac je kompilovatelny s jadry 2.6.17, myslim ze i 2.6.18. S novejsimy jiz ne (alespon pokud se mi podarilo zjistit). Dostal jsem se do stavu, ze mi bezi X server na fglrx, s Xorg 7.1. Vsechno funguje jak ma ale nedari se mi zkompilovat ovladace pro dvb karty. Aktualni v4l ovladace jiz obsahuji podporu meho tuneru, ale nedari se mi je zkompilovat se starsim kernelem. Pri prvnim behu kompilace to vypise nekolik radku nesplnenych zavislosti na veze kernelu a pri dalsim jiz vyskoci pouze errory o neexistujicich makrech a hlavickovych knihovnach.

Nez sem budu psat konkretni logy.. tak bych se asi zeptal jestli jak vycheckoutovat starsi verzi tech ovladacu (respektive jak najit verzi kdy byla podpora me karty pridana). Je to MegaSky 580 a ovladac ktery ji obsluhuje je m920x. Aktualni kernel mam  2.6.17.

Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

29.4.2009 10:43 Roman DAVID | skóre: 24 | Brno
Rozbalit Rozbalit vše Re: kompilace v4l proti krenelu 2.6.17
Odpovědět | | Sbalit | Link | Blokovat | Admin

me se to podarilo tak, ze jsem veskere DMA_BIT_MASK(32) nahradil za DMA_32BIT_MASK.

Mel by to byt jediny rozdil.

Je to asi v 10 souborech.

29.4.2009 23:09 mmm
Rozbalit Rozbalit vše Re: kompilace v4l proti krenelu 2.6.17

Dekuji za radu.  Dostal jsem se o kousek dal, ale dostal jsem se k dalsimu kompilacnimu prolemu. Tentokrat to konci na teto hlasce (ze by podobny problem s makrem MODULE_FIRMWARE ?):

  CC [M]  /home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l/av7110_hw.o
/home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l/av7110_hw.c:295: error: expected declaration specifiers or '...' before string constant
/home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l/av7110_hw.c:295: warning: data definition has no type or storage class
/home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l/av7110_hw.c:295: warning: type defaults to 'int' in declaration of 'MODULE_FIRMWARE'
/home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l/av7110_hw.c:295: warning: function declaration isn't a prototype
make[3]: *** [/home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l/av7110_hw.o] Error 1
make[2]: *** [_module_/home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.17-12-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l'
make: *** [all] Error 2
 

29.4.2009 23:42 mmm
Rozbalit Rozbalit vše Re: kompilace v4l proti krenelu 2.6.17

Chvili jsemto zkoumal a zda se ze makro MODULE_FIRMWARE nikde v kernelu nemam. Nasel jsem jen nake diskuse a asi tak v dobe jadra 2.6.17  to bylo diskutovano... mozna je nekde nejaky patch... a nebo zkusim stahnout kernel 2.6.18 ... snad semi snim prelozi ovladace pro ati...

29.4.2009 23:59 mmm
Rozbalit Rozbalit vše Re: kompilace v4l proti krenelu 2.6.17

Nasel jsem tenhle mail: http://lkml.indiana.edu/hypermail/linux/kernel/0607.3/1938.html

a podle nej ten patch nevypada tak slozite... jestli je to on teda. Upravil jsem module.h a neco se kompiluje... o vysledku budu informovat.

30.4.2009 07:39 mmm
Rozbalit Rozbalit vše Re: kompilace v4l proti krenelu 2.6.17

Kompilace probehla v poradku.  Pri instalaci nastal problem (viz nize), ale zda se ze to nakonec nejak funguje.

Jeste jednou dik za radu s tim makrem.

 

/sbin/depmod -a 2.6.17-12-generic
make -C firmware install
make[2]: Entering directory `/home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l/firmware'
  CC  ihex2fw
../../linux/firmware/ihex2fw.c:12:20: error: stdint.h: No such file or directory
../../linux/firmware/ihex2fw.c:13:23: error: arpa/inet.h: No such file or directory
../../linux/firmware/ihex2fw.c:14:19: error: stdio.h: No such file or directory
../../linux/firmware/ihex2fw.c:15:19: error: errno.h: No such file or directory
../../linux/firmware/ihex2fw.c:16:23: error: sys/types.h: No such file or directory
../../linux/firmware/ihex2fw.c:17:22: error: sys/stat.h: No such file or directory
../../linux/firmware/ihex2fw.c:18:22: error: sys/mman.h: No such file or directory
../../linux/firmware/ihex2fw.c:19:19: error: fcntl.h: No such file or directory
../../linux/firmware/ihex2fw.c:20:20: error: string.h: No such file or directory
../../linux/firmware/ihex2fw.c:21:20: error: unistd.h: No such file or directory
../../linux/firmware/ihex2fw.c:22:20: error: stdlib.h: No such file or directory
../../linux/firmware/ihex2fw.c:24:20: error: getopt.h: No such file or directory
../../linux/firmware/ihex2fw.c:29: error: expected specifier-qualifier-list before 'uint32_t'
../../linux/firmware/ihex2fw.c:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nybble'
../../linux/firmware/ihex2fw.c:45: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'hex'
../../linux/firmware/ihex2fw.c:52: error: expected ')' before '*' token
../../linux/firmware/ihex2fw.c: In function 'usage':
../../linux/firmware/ihex2fw.c:61: warning: implicit declaration of function 'fprintf'
../../linux/firmware/ihex2fw.c:61: warning: incompatible implicit declaration of built-in function 'fprintf'
../../linux/firmware/ihex2fw.c:61: error: 'stderr' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:61: error: (Each undeclared identifier is reported only once
../../linux/firmware/ihex2fw.c:61: error: for each function it appears in.)
../../linux/firmware/ihex2fw.c: In function 'main':
../../linux/firmware/ihex2fw.c:72: error: storage size of 'st' isn't known
../../linux/firmware/ihex2fw.c:73: error: 'uint8_t' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:73: error: 'data' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:76: warning: implicit declaration of function 'getopt'
../../linux/firmware/ihex2fw.c:89: error: 'optind' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:92: warning: implicit declaration of function 'strcmp'
../../linux/firmware/ihex2fw.c:95: warning: implicit declaration of function 'open'
../../linux/firmware/ihex2fw.c:95: error: 'O_RDONLY' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:97: warning: incompatible implicit declaration of built-in function 'fprintf'
../../linux/firmware/ihex2fw.c:97: error: 'stderr' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:98: warning: implicit declaration of function 'strerror'
../../linux/firmware/ihex2fw.c:98: error: 'errno' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:98: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
../../linux/firmware/ihex2fw.c:101: warning: implicit declaration of function 'fstat'
../../linux/firmware/ihex2fw.c:102: warning: implicit declaration of function 'perror'
../../linux/firmware/ihex2fw.c:105: warning: implicit declaration of function 'mmap'
../../linux/firmware/ihex2fw.c:105: error: 'NULL' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:105: error: 'PROT_READ' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:105: error: 'MAP_SHARED' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:106: error: 'MAP_FAILED' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:114: error: 'O_TRUNC' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:114: error: 'O_CREAT' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:114: error: 'O_WRONLY' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:116: warning: incompatible implicit declaration of built-in function 'fprintf'
../../linux/firmware/ihex2fw.c:117: warning: format '%s' expects type 'char *', but argument 3 has type 'int'
../../linux/firmware/ihex2fw.c:120: warning: implicit declaration of function 'process_ihex'
../../linux/firmware/ihex2fw.c:72: warning: unused variable 'st'
../../linux/firmware/ihex2fw.c: At top level:
../../linux/firmware/ihex2fw.c:127: error: expected ')' before '*' token
../../linux/firmware/ihex2fw.c: In function 'file_record':
../../linux/firmware/ihex2fw.c:244: error: 'struct ihex_binrec' has no member named 'addr'
../../linux/firmware/ihex2fw.c:244: error: 'struct ihex_binrec' has no member named 'addr'
../../linux/firmware/ihex2fw.c: In function 'output_records':
../../linux/firmware/ihex2fw.c:257: error: 'uint16_t' undeclared (first use in this function)
../../linux/firmware/ihex2fw.c:257: error: expected ';' before 'writelen'
../../linux/firmware/ihex2fw.c:259: error: 'struct ihex_binrec' has no member named 'addr'
../../linux/firmware/ihex2fw.c:259: warning: implicit declaration of function 'htonl'
../../linux/firmware/ihex2fw.c:259: error: 'struct ihex_binrec' has no member named 'addr'
../../linux/firmware/ihex2fw.c:260: error: 'struct ihex_binrec' has no member named 'len'
../../linux/firmware/ihex2fw.c:260: warning: implicit declaration of function 'htons'
../../linux/firmware/ihex2fw.c:260: error: 'struct ihex_binrec' has no member named 'len'
../../linux/firmware/ihex2fw.c:261: warning: implicit declaration of function 'write'
../../linux/firmware/ihex2fw.c:261: error: 'struct ihex_binrec' has no member named 'addr'
../../linux/firmware/ihex2fw.c:261: error: 'writelen' undeclared (first use in this function)
make[2]: *** [ihex2fw] Error 1
make[2]: Leaving directory `/home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l/firmware'
make[1]: *** [firmware_install] Error 2
make[1]: Leaving directory `/home/martin/linux-tv/v4l-dvb-2a6d95947fa1/v4l'
make: *** [install] Error 2
martin@soustruhDell:~/linux-tv/v4l-dvb-2a6d95947fa1$     

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.