Kezdőlap › Fórumok › UHU Linux › Általános UHU problémák, javaslatok › UHU 1.2 alá kernel fordítás hibával elszáll…
- This topic has 6 hozzászólás, 4 résztvevő, and was last updated 19 years, 10 months telt el by
penztar.
-
SzerzőBejegyzés
-
2005-09-07-07:28 #2029213
Hello!
Annak idején én is megszívtam ezt a dolgot. Addig-addig próbálkoztam amíg meguntam és egy saját kernel forrást felraktam és szépen lefordítottam hiba nélkül. Szerintem te is ezt tedd. A „gyári” kernelt meg szerintem azért ne bántsd ,mert ,ha valami nagy gáz van akkor még avval bármikor bebootolhatsz!
Hello!
2005-09-07-08:01 #2029214Hello!
Annak idején én is megszívtam ezt a dolgot. Addig-addig próbálkoztam amíg meguntam és egy saját kernel forrást felraktam és szépen lefordítottam hiba nélkül. Szerintem te is ezt tedd. A „gyári” kernelt meg szerintem azért ne bántsd ,mert ,ha valami nagy gáz van akkor még avval bármikor bebootolhatsz!
Hello!
[align=right][snapback]148760[/snapback][/align]A gyári kernelt nem akarom bántani, csak a forrását akartam felhasználni! A saját kerneles dologgal az a gond, hogy az UHU kernele rengeteg patch-et tartalmaz, és azok nélkül nem tudom, hogy minden rendesen menne-e! Egyébként vki nem tudja milyen patch-eket tartalmaz a kernel???
2005-09-07-09:46 #2029215Hello!
Láttam idõközben a hup.hu is megpróbáltad a dolgot és ott megkaptad a tuti választ.
2005-09-07-11:56 #2029216Hello!
Láttam idõközben a hup.hu is megpróbáltad a dolgot és ott megkaptad a tuti választ.
2005-09-09-08:36 #2029217egy hálókártyadrivert próbálok felrakni – mert elmegy egy idõ után a linux alatt, xp alatt meg mûködik normálisan. (nem világít a ledje)
megkérdeztem egy linuxost, odadtam a linuxos driver leírását(csak .c kiterjesztésû állomány volt benne leírás mellett):ondjuk synapitc ban rakeresel a kernel szora
es a megtalalt csomagok koz felteszed a kernel-source csomagot
utanna a RE100TX.C fajlt bemasolod a /usr/src/linux konyvtarba
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c re100tx.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
aztan instalalod: install -m 644 re100tx.o/lib/modules/x.x.xx/net/ parancsal
az x.x.xx helyere a kernel verziod jon
az a konyvtar neve ahol a kernel modulok vannak
aztan megynitod szerkesztesre a /etc/conf.modules fajlt
es beleirod:
alias eth0 re100tx.o
nos ennyi a leiras szerint
de
itt .o kiterjesztest ir a fajlnevhez
ez meg a 2.4 es kernel sorozatban volt igy
2.6 tol mar .ko van
ha szerencsed van, lefordul es .ko lesz a kiterjesztes
az aliasos sorba lehet nem kell a modul nev utan kiterjesztest irni, nezd mejd meg a fajlba a tobbit hogy irtak bele
ha nem fordul le, akor valoszinu azert mert 2.4 es kernelhez van
az aliasos sorba lehet nem kell a modul nev utan kiterjesztest irni, nezd mejd meg a fajlba a tobbit hogy irtak bele
ha nem fordul le, akor valoszinu azert mert 2.4 es kernelhez van
ha az alias os dolog nem mukszik, de sikeresen felraktad a modult
probald manualissan betolteni igy:
insmod -o eth0 /lib/modules/x.x.xx/net/re100tx.ko
igy
-kernel source sikeresen felment
-bemásoltam a re100tx.c állomány a megfelelõ helyre
– kernel verzió: 2.6.9-21.1
és itt a GONDOM: (konzolból kimásolva)root:/usr/src/linux-2.6.9-19# gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c re100tx.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
In file included from /usr/include/asm/smp.h:18,
from /usr/include/linux/smp.h:17,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/module.h:10,
from re100tx.c:93:
/usr/include/asm/mpspec.h:6:25: mach_mpspec.h: Nem létezõ fájl vagy könyvtár
In file included from /usr/include/asm/smp.h:18,
from /usr/include/linux/smp.h:17,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/module.h:10,
from re100tx.c:93:
/usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES’ undeclared here (not in a function)
/usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES’ undeclared here (not in a function)
/usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES’ undeclared here (not in a function)
/usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES’ undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES’ undeclared here (not in a function)
/usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type’
/usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type’
/usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES’ undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES’ undeclared here (not in a function)
/usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus’
/usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus’
In file included from /usr/include/asm/smp.h:20,
from /usr/include/linux/smp.h:17,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/module.h:10,
from re100tx.c:93:
/usr/include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES’ undeclared here (not in a function)
/usr/include/asm/io_apic.h:160: error: conflicting types for `mp_irqs’
/usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs’
In file included from /usr/include/linux/smp.h:17,
from /usr/include/linux/sched.h:23,
from /usr/include/linux/module.h:10,
from re100tx.c:93:
/usr/include/asm/smp.h:72:26: mach_apicdef.h: Nem létezõ fájl vagy könyvtár
re100tx.c:103:26: linux/malloc.h: Nem létezõ fájl vagy könyvtár
In file included from /usr/include/linux/irq.h:20,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from re100tx.c:104:
/usr/include/asm/irq.h:16:25: irq_vectors.h: Nem létezõ fájl vagy könyvtár
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from re100tx.c:104:
/usr/include/linux/irq.h:70: error: `NR_IRQS’ undeclared here (not in a function)
In file included from /usr/include/linux/irq.h:72,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/hardirq.h:6,
from /usr/include/linux/interrupt.h:11,
from re100tx.c:104:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS’ undeclared here (not in a function)
/usr/include/asm/hw_irq.h:32: error: `NR_IRQS’ undeclared here (not in a function)
In file included from /usr/include/linux/if_ether.h:106,
from /usr/include/linux/netdevice.h:29,
from re100tx.c:106:
/usr/include/linux/skbuff.h:30:26: net/checksum.h: Nem létezõ fájl vagy könyvtár
re100tx.c:122:22: pci-scan.h: Nem létezõ fájl vagy könyvtár
re100tx.c:123:25: kern_compat.h: Nem létezõ fájl vagy könyvtár
re100tx.c:195: error: elements of array `pci_tbl’ have incomplete type
re100tx.c:196: warning: excess elements in struct initializer
re100tx.c:196: warning: (near initialization for `pci_tbl[0]’)
re100tx.c:196: error: extra brace group at end of initializer
re100tx.c:196: error: (near initialization for `pci_tbl[0]’)
re100tx.c:196: warning: excess elements in struct initializer
re100tx.c:196: warning: (near initialization for `pci_tbl[0]’)
re100tx.c:197: error: `PCI_USES_MASTER’ undeclared here (not in a function)
re100tx.c:197: error: `PCI_USES_IO’ undeclared here (not in a function)
re100tx.c:197: error: `PCI_ADDR0′ undeclared here (not in a function)
re100tx.c:197: warning: excess elements in struct initializer
re100tx.c:197: warning: (near initialization for `pci_tbl[0]’)
re100tx.c:197: warning: excess elements in struct initializer
re100tx.c:197: warning: (near initialization for `pci_tbl[0]’)
re100tx.c:197: warning: excess elements in struct initializer
re100tx.c:197: warning: (near initialization for `pci_tbl[0]’)
re100tx.c:198: warning: excess elements in struct initializer
re100tx.c:198: warning: (near initialization for `pci_tbl[1]’)
re100tx.c:198: error: extra brace group at end of initializer
re100tx.c:198: error: (near initialization for `pci_tbl[1]’)
re100tx.c:198: warning: excess elements in struct initializer
re100tx.c:198: warning: (near initialization for `pci_tbl[1]’)
re100tx.c:199: error: `PCI_USES_MASTER’ undeclared here (not in a function)
re100tx.c:199: error: `PCI_USES_IO’ undeclared here (not in a function)
re100tx.c:199: error: `PCI_ADDR0′ undeclared here (not in a function)
re100tx.c:199: warning: excess elements in struct initializer
re100tx.c:199: warning: (near initialization for `pci_tbl[1]’)
re100tx.c:199: warning: excess elements in struct initializer
re100tx.c:199: warning: (near initialization for `pci_tbl[1]’)
re100tx.c:199: warning: excess elements in struct initializer
re100tx.c:199: warning: (near initialization for `pci_tbl[1]’)
re100tx.c:200: warning: excess elements in struct initializer
re100tx.c:200: warning: (near initialization for `pci_tbl[2]’)
re100tx.c:203: error: variable `rtl8139_drv_id’ has initializer but incomplete type
re100tx.c:204: warning: excess elements in struct initializer
re100tx.c:204: warning: (near initialization for `rtl8139_drv_id’)
re100tx.c:204: error: `PCI_HOTSWAP’ undeclared here (not in a function)
re100tx.c:204: warning: excess elements in struct initializer
re100tx.c:204: warning: (near initialization for `rtl8139_drv_id’)
re100tx.c:204: warning: excess elements in struct initializer
re100tx.c:204: warning: (near initialization for `rtl8139_drv_id’)
re100tx.c:204: warning: excess elements in struct initializer
re100tx.c:204: warning: (near initialization for `rtl8139_drv_id’)
re100tx.c:205: warning: excess elements in struct initializer
re100tx.c:205: warning: (near initialization for `rtl8139_drv_id’)
re100tx.c:205: warning: excess elements in struct initializer
re100tx.c:205: warning: (near initialization for `rtl8139_drv_id’)
re100tx.c: In function `rtl8139_probe1′:
re100tx.c:363: warning: implicit declaration of function `init_etherdev’
re100tx.c:363: warning: assignment makes pointer from integer without a cast
re100tx.c:366: error: invalid use of undefined type `struct pci_id_info’
re100tx.c:389: error: invalid use of undefined type `struct pci_id_info’
re100tx.c:403: error: invalid use of undefined type `struct pci_id_info’
re100tx.c: In function `rtl8129_open’:
re100tx.c:623: warning: `MOD_INC_USE_COUNT’ is deprecated (declared at /usr/include/linux/module.h:572)
re100tx.c:624: warning: passing arg 2 of `request_irq’ from incompatible pointer type
re100tx.c:625: warning: `MOD_DEC_USE_COUNT’ is deprecated (declared at /usr/include/linux/module.h:584)
re100tx.c:640: warning: `MOD_DEC_USE_COUNT’ is deprecated (declared at /usr/include/linux/module.h:584)
re100tx.c:692: error: structure has no member named `tbusy’
re100tx.c:693: error: structure has no member named `interrupt’
re100tx.c:694: error: structure has no member named `start’
re100tx.c: In function `rtl8129_timer’:
re100tx.c:784: error: structure has no member named `interrupt’
re100tx.c:790: error: structure has no member named `tbusy’
re100tx.c: In function `rtl8129_tx_timeout’:
re100tx.c:911: warning: implicit declaration of function `dev_free_skb’
re100tx.c:917: error: structure has no member named `tbusy’
re100tx.c: In function `rtl8129_start_xmit’:
re100tx.c:948: error: structure has no member named `tbusy’
re100tx.c:971: error: structure has no member named `tbusy’
re100tx.c:975: error: structure has no member named `tbusy’
re100tx.c: In function `rtl8129_interrupt’:
re100tx.c:1000: error: structure has no member named `interrupt’
re100tx.c:1003: error: structure has no member named `interrupt’
re100tx.c:1080: error: structure has no member named `tbusy’
re100tx.c:1156: error: structure has no member named `interrupt’
re100tx.c: In function `rtl8129_close’:
re100tx.c:1278: error: structure has no member named `start’
re100tx.c:1279: error: structure has no member named `tbusy’
re100tx.c:1312: warning: `MOD_DEC_USE_COUNT’ is deprecated (declared at /usr/include/linux/module.h:584)
re100tx.c: In function `rtl8129_get_stats’:
re100tx.c:1345: error: structure has no member named `start’
re100tx.c: In function `set_rx_mode’:
re100tx.c:1405: warning: passing arg 2 of `set_bit’ from incompatible pointer type
re100tx.c: In function `rtl_pwr_event’:
re100tx.c:1424: error: `DRV_ATTACH’ undeclared (first use in this function)
re100tx.c:1424: error: (Each undeclared identifier is reported only once
re100tx.c:1424: error: for each function it appears in.)
re100tx.c:1425: warning: `MOD_INC_USE_COUNT’ is deprecated (declared at /usr/include/linux/module.h:572)
re100tx.c:1427: error: `DRV_SUSPEND’ undeclared (first use in this function)
re100tx.c:1435: error: `DRV_RESUME’ undeclared (first use in this function)
re100tx.c:1438: error: `DRV_DETACH’ undeclared (first use in this function)
re100tx.c:1445: error: invalid use of undefined type `struct pci_id_info’
re100tx.c:1459: warning: `MOD_DEC_USE_COUNT’ is deprecated (declared at /usr/include/linux/module.h:584)
re100tx.c: In function `init_module’:
re100tx.c:1555: warning: implicit declaration of function `pci_drv_register’
re100tx.c: In function `cleanup_module’:
re100tx.c:1566: warning: implicit declaration of function `pci_drv_unregister’
re100tx.c:1572: error: invalid use of undefined type `struct pci_id_info’
re100tx.c: At top level:
re100tx.c:203: error: storage size of `rtl8139_drv_id’ isn’t known2005-09-09-11:23 #2029218Sziasztok!
Grafománnak mondom ,hogy én vanilla kernelel próbálkoztam és csont nélkül felment és a következõ újraindításnál simán és gond nélkül és persze az uhu patchei nélkül is ment . Ha megnézed a patcheket olyanokat raknak bele ,hogy az audio cd kezelje meg a digi fényképezõ gépek drivereit . Ha erre szükséged van akkor jön a nagyobb bonyodalom.
Metre-nek meg azt kellene megnézni ,hogy a drivere támogatja-e a 2.6 kernelt és nincs-e véletlenül már benne a kernel forrásba. A másik meg szerintem ,ha lefordítod akkor ez egy külsõ kernel modul lesz valószínüleg ,amit nem biztos ,hogy be kell másolni a kernel forrás könyvtárába. Azon kívül a conf.modules való íráskor én úgy tudom ,hogy a *.ko kiterjesztés tényleg nem kell.
2009-12-04-19:57 #1880644Sziasztok..
Próbálgatom az 1.2-t, és szeretnék alá egy másik kernelt fordítani, mert ebben túl sok felesleges dolog van! Elsõ körben a saját kernel forrását szedtem le, és kiszedtem belõle a nekem nem kellõ részeket, majd make, és itt jött a hideg zuhany, olyan hibát dobot, amilyet még életemben nem láttam, íme a hiba:
Code:/usr/src/linux-2.6.9-19# make
…
…
CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s’ is up to date.
CHK include/linux/compile.h
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/i386/kernel/built-in.o(.text+0x205a): In function `restore_context’:
: undefined reference to `__per_cpu_offset’
make: *** [.tmp_vmlinux1] Error 1Már átírtam a configot, megváltoztattam néhány dolgot, de mindig ezt írja ki! M lehet a gond?
-
SzerzőBejegyzés
- Be kell jelentkezni a hozzászóláshoz.
legutóbbi hsz