Hola, fa un parell de dies em vaig baixar la versió estable del kernel 2.6. També tinc una targeta gràfica (una 3d prophet kyro 2) de la qual no hi ha els drivers ni en el kernel 2.4 ni en el 2.6, per tant havia de baixar el codi de la web http://www.powervr.com/Downloads.asp i compilar-los com a modul. Fins ara no havia tingut problema amb el meu anterior kernel (2.4) però ara, al canviar-me a la versió 2.6 tinc uns quants problemes.
M'he baixat el codi del kernel, l'he compliat i totes akestes coses, m'he baixat els module-init-tools i els he instal·lat tal i com diu a les instruccions. Amb els moduls que instalo a partir del kernel no hi tinc cap mena de problemes, però alhora de compilar el modul per la meva targeta gràfica em dona un seguit d'errors que no he conseguit sol·lucionar, la sortida és la següent: [EMAIL PROTECTED]:/usr/src/linux/powervr-2.01.21-7# make cc -O2 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.6.0/include/linux/modversions.h -D__KERNEL__ -I/usr/src/linux-2.6.0/include -DLINUX -DGCC_IA32 -DSUPPORT_AGP -Idrm -DHAVE_VMA=1 -c -o hostfunc.o hostfunc.c hostfunc.c:103: error: parse error before "agp_memory" hostfunc.c:103: warning: no semicolon at end of struct or union hostfunc.c:106: error: parse error before '}' token hostfunc.c:107: warning: data definition has no type or storage class hostfunc.c:110: error: parse error before "agpInfo" hostfunc.c:110: warning: data definition has no type or storage class hostfunc.c:112: error: parse error before '*' token hostfunc.c:112: warning: data definition has no type or storage class hostfunc.c:116: error: parse error before '*' token hostfunc.c:116: warning: data definition has no type or storage class hostfunc.c:117: error: parse error before '*' token hostfunc.c:117: error: parse error before '*' token hostfunc.c:118: warning: data definition has no type or storage class hostfunc.c:119: error: parse error before '*' token hostfunc.c:121: error: parse error before '*' token hostfunc.c:121: warning: data definition has no type or storage class hostfunc.c:122: error: parse error before '*' token hostfunc.c:123: error: parse error before '*' token hostfunc.c: In function `HostCommitLinBuf': hostfunc.c:1164: error: `agp_memory' undeclared (first use in this function) hostfunc.c:1164: error: (Each undeclared identifier is reported only once hostfunc.c:1164: error: for each function it appears in.) hostfunc.c:1164: error: `tmp' undeclared (first use in this function) hostfunc.c:1165: error: `mem' undeclared (first use in this function) hostfunc.c:1169: error: parse error before ')' token hostfunc.c:1169: error: parse error before ')' token hostfunc.c:1179: error: request for member `aper_base' in something not a structure or union hostfunc.c: In function `HostFreeLinBuf': hostfunc.c:1232: error: `agp_memory' undeclared (first use in this function) hostfunc.c:1232: error: parse error before ')' token hostfunc.c: In function `InitializeAGP': hostfunc.c:1591: warning: passing arg 1 of pointer to function from incompatible pointer type hostfunc.c:1594: error: request for member `mode' in something not a structure or union hostfunc.c:1609: error: request for member `aper_base' in something not a structure or union hostfunc.c:1610: error: request for member `aper_size' in something not a structure or union hostfunc.c: In function `ShutdownAGP': hostfunc.c:1621: error: request for member `mappedAddr' in something not a structure or union hostfunc.c:1621: error: request for member `length' in something not a structure or union hostfunc.c:1624: error: request for member `aper_base' in something not a structure or union hostfunc.c:1624: error: request for member `aper_size' in something not a structure or union hostfunc.c: At top level: hostfunc.c:1652: error: parse error before '*' token hostfunc.c: In function `pvr_agp_reserve': hostfunc.c:1654: error: `rv' undeclared (first use in this function) hostfunc.c:1654: error: `mem' undeclared (first use in this function) hostfunc.c:1663: error: request for member `aper_size' in something not a structure or union hostfunc.c:1671: error: request for member `aper_base' in something not a structure or union hostfunc.c:1692: error: request for member `aper_base' in something not a structure or union hostfunc.c: At top level: hostfunc.c:1707: error: parse error before '*' token hostfunc.c:1708: error: parse error before '*' token hostfunc.c: In function `pvr_agp_commit': hostfunc.c:1710: error: `agp_memory' undeclared (first use in this function) hostfunc.c:1710: error: `mem' undeclared (first use in this function) hostfunc.c:1717: error: `slot' undeclared (first use in this function) hostfunc.c:1717: error: `dwOffset' undeclared (first use in this function) hostfunc.c:1717: error: `dwPages' undeclared (first use in this function) hostfunc.c: At top level: hostfunc.c:1782: error: parse error before '*' token hostfunc.c: In function `pvr_agp_decommit': hostfunc.c:1784: error: `agp_memory' undeclared (first use in this function) hostfunc.c:1784: error: `mem' undeclared (first use in this function) hostfunc.c:1789: error: `slot' undeclared (first use in this function) hostfunc.c:1789: error: `dwOffset' undeclared (first use in this function) hostfunc.c:1789: error: `dwPages' undeclared (first use in this function) hostfunc.c: At top level: hostfunc.c:1826: error: parse error before '*' token hostfunc.c: In function `pvr_agp_alloc': hostfunc.c:1829: error: `slot' undeclared (first use in this function) hostfunc.c: At top level: hostfunc.c:1841: error: parse error before '*' token hostfunc.c: In function `pvr_agp_free_list': hostfunc.c:1843: error: `agp_memory' undeclared (first use in this function) hostfunc.c:1843: error: `tmp' undeclared (first use in this function) hostfunc.c:1843: error: `mem' undeclared (first use in this function) hostfunc.c:1843: error: `mem_list' undeclared (first use in this function) hostfunc.c:1844: error: `slot' undeclared (first use in this function) hostfunc.c: At top level: hostfunc.c:1865: error: parse error before '*' token hostfunc.c: In function `pvr_agp_unreserve': hostfunc.c:1867: error: `agp_memory' undeclared (first use in this function) hostfunc.c:1867: error: `mem' undeclared (first use in this function) hostfunc.c:1867: error: `tmp' undeclared (first use in this function) hostfunc.c:1868: error: `tmap' undeclared (first use in this function) hostfunc.c:1870: error: `slot' undeclared (first use in this function) hostfunc.c: In function `HostGARTReserve': hostfunc.c:1919: error: `agp_memory' undeclared (first use in this function) hostfunc.c:1919: error: `agpMem' undeclared (first use in this function) hostfunc.c:1921: error: `map_entry' undeclared (first use in this function) hostfunc.c:1943: error: request for member `aper_base' in something not a structure or union hostfunc.c: In function `HostGARTRelease': hostfunc.c:1977: error: `tmp' undeclared (first use in this function) hostfunc.c:1977: error: `map' undeclared (first use in this function) hostfunc.c:1977: error: parse error before ')' token hostfunc.c:1978: error: `agp_memory' undeclared (first use in this function) hostfunc.c:1978: error: `mem' undeclared (first use in this function) hostfunc.c: In function `HostGARTAlloc': hostfunc.c:2008: error: `agp_memory' undeclared (first use in this function) hostfunc.c:2008: error: `agpMem' undeclared (first use in this function) hostfunc.c:2008: error: `mem' undeclared (first use in this function) hostfunc.c: In function `HostGARTFree': hostfunc.c:2042: error: `agp_memory' undeclared (first use in this function) hostfunc.c:2042: error: `mem' undeclared (first use in this function) hostfunc.c:2042: error: parse error before ')' token hostfunc.c: In function `HostGARTReserveMax': hostfunc.c:2071: error: request for member `aper_size' in something not a structure or union hostfunc.c: In function `HostGARTCommit': hostfunc.c:2092: error: `map' undeclared (first use in this function) hostfunc.c:2092: error: parse error before ')' token hostfunc.c:2093: error: `agp_memory' undeclared (first use in this function) hostfunc.c:2093: error: `agp' undeclared (first use in this function) hostfunc.c: In function `HostGARTDecommit': hostfunc.c:2124: error: `map' undeclared (first use in this function) hostfunc.c:2124: error: parse error before ')' token hostfunc.c:2125: error: `agp_memory' undeclared (first use in this function) hostfunc.c:2125: error: `mem' undeclared (first use in this function) make: *** [hostfunc.o] Error 1 He copiat les primeres linies al google i no hi he trobat gens d'informació. També he vist que en la nova versió del kernel hi ha diferències alhora de treballar amb els moduls, i nose si tinc que fer-hi alguna cosa per a que em funcioni... Bé qualsevol ajuda serà benvinguda. Gràcies Isart Montané Mogas _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web!