Autor |
Sõnum |
laur
Vana Pingviin


Vanus: 39
Liitunud: 22.01.2006
Postitused: 1195
Asukoht: Tallinn
Distributsioon: Estobuntu, Kubuntu, Mandriva, OpenSUSE

|
|
Ostsin siis SCM'i SCR 243 PCMCIA ID-kaardi lugeja ja üritan draivereid paigaldada, aga kuna kaasasolev kernelimoodul on mõeldud 2.6.15 kernelile, siis peab selle kompileerima, ent kaasneb järgmine lugu:
[root@metalliline src]# make
make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
make[1]: Entering directory `/usr/src/linux-2.6.17-5mdv'
WARNING: Symbol version dump /usr/src/linux-2.6.17-5mdv/Module.symvers
is missing; modules will have no dependencies and modversions.
CC [M] /home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.o
In file included from /home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/includes.h:114,
from /home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:49:
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/pcsc.h:234: error: expected specifier-qualifier-list before %u2018dev_link_t%u2019
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:65: error: expected %u2018=%u2019, %u2018,%u2019, %u2018;%u2019, %u2018asm%u2019 or %u2018__attribute__%u2019 before %u2018*%u2019 token
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:128: error: expected %u2018)%u2019 before %u2018*%u2019 token
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c: In function %u2018Driver_Attach%u2019:
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:200: error: %u2018dev_link_t%u2019 undeclared (first use in this function)
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:200: error: (Each undeclared identifier is reported only once
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:200: error: for each function it appears in.)
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:200: error: %u2018pDeviceLink%u2019 undeclared (first use in this function)
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:201: warning: ISO C90 forbids mixed declarations and code
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:212: error: expected expression before %u2018)%u2019 token
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:220: error: %u2018DEVICE_EXTENSION%u2019 has no member named %u2018pucDeviceName%u2019
*lõige*
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:1999: error: %u2018struct _DEVICE_EXTENSION%u2019 has no member named %u2018bBootRomPresent%u2019
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:2004: error: %u2018struct _DEVICE_EXTENSION%u2019 has no member named %u2018bIsQueueSet%u2019
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c: In function %u2018PcdmCardStatusThread%u2019:
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:2017: error: %u2018struct _DEVICE_EXTENSION%u2019 has no member named %u2018IoBase%u2019
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:2021: error: %u2018struct _DEVICE_EXTENSION%u2019 has no member named %u2018bBootRomPresent%u2019
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:2039: error: %u2018struct _DEVICE_EXTENSION%u2019 has no member named %u2018tqsCardStatusWait%u2019
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:2054: error: %u2018struct _DEVICE_EXTENSION%u2019 has no member named %u2018bBootRomPresent%u2019
/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.c:2063: error: %u2018struct _DEVICE_EXTENSION%u2019 has no member named %u2018bBootRomPresent%u2019
make[2]: *** [/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src/scr241_main.o] Error 1
make[1]: *** [_module_/home/rein/Desktop/uuu/scr24x_v4.2.2/scr24x_2.6.x_v4.2.2/src] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.17-5mdv'
make: *** [default] Error 2
[root@metalliline src]#
Kernel source stripped on paigaldatud, kas sellest ei aita?
Kernel source on üle 200 mega lihtsalt
|
|
|
|
_________________
|
|
|
    |
laur
Vana Pingviin


Vanus: 39
Liitunud: 22.01.2006
Postitused: 1195
Asukoht: Tallinn
Distributsioon: Estobuntu, Kubuntu, Mandriva, OpenSUSE

|
|
Ma paigaldasin muidugi nüüd vahepeal täieliku kerneli source'i aga ikka ei midagi. Mis värk selle Module.symvers'iga on?
|
|
|
|
_________________
|
|
|
    |
imre
Vana Pingviin


Liitunud: 16.08.2005
Postitused: 2648
Asukoht: Saku kant
Distributsioon: Ubuntu

|
|
Hmm, kernel.org andmeil on tuuma sorts pelgalt ~40MB.
Mis asi see 200MB veel on, lahtipakitult?
|
|
|
|
_________________ Enne teema püstitamist kasutage OTSINGUT
Küsi targalt: Infot siit!
Kui aru ei saa, siis küsi.
|
|
|
  |
laur
Vana Pingviin


Vanus: 39
Liitunud: 22.01.2006
Postitused: 1195
Asukoht: Tallinn
Distributsioon: Estobuntu, Kubuntu, Mandriva, OpenSUSE

|
|
Mandriva täielik kernelisorts näitab oma suuruseks 204 mega
Ausalt.
|
|
|
|
_________________
|
|
|
    |
Mefistofeles
Pingviini aktivist


Vanus: 37
Liitunud: 15.03.2005
Postitused: 309
Asukoht: Tallinn
Distributsioon: Debian, Ubuntu, CentOS.

|
|
|
   |
sander85
Vana Pingviin


Vanus: 39
Liitunud: 08.08.2005
Postitused: 4359
Asukoht: Tallinn (vahel ka Virtsu)
Distributsioon: Mageia, Debian, CentOS

|
|
|
   |
laur
Vana Pingviin


Vanus: 39
Liitunud: 22.01.2006
Postitused: 1195
Asukoht: Tallinn
Distributsioon: Estobuntu, Kubuntu, Mandriva, OpenSUSE

|
|
Kuidas laadida lingiskirjeldatud freq_table ja longhaul mooduleid?
|
|
|
|
_________________
|
|
|
    |
sander85
Vana Pingviin


Vanus: 39
Liitunud: 08.08.2005
Postitused: 4359
Asukoht: Tallinn (vahel ka Virtsu)
Distributsioon: Mageia, Debian, CentOS

|
|
modprobe freq_table
insmod /asukoht/failile/longhaul
ja et kindlaks teha, et vastav moodul ka arvuti bootimisel üles laetaks, siis lisa freq_table faili /etc/modprobe.preload
kuidas insmod'iga laetavad moodulid automaatselt laaduma panna, seda päris täpselt öelda ei oska
|
|
|
|
_________________
|
|
|
   |
obundra
Vana Pingviin


Vanus: 50
Liitunud: 04.08.2005
Postitused: 1213
Asukoht: 127.0.0.1
Distributsioon: RHEL, Solaris, Debian, Gentoo

|
|
Kirjuta /etc/rc.d/rc.local lõppu see "insmod /asukoht/failile/longhaul" näiteks.
|
|
|
|
_________________ IT teenused
|
|
|
   |
laur
Vana Pingviin


Vanus: 39
Liitunud: 22.01.2006
Postitused: 1195
Asukoht: Tallinn
Distributsioon: Estobuntu, Kubuntu, Mandriva, OpenSUSE

|
|
Nii, modprobe freq_table mõjub probleemideta, aga:
[root@vplaptop laur]# insmod /usr/src/linux-2.6.17-5mdv/arch/i386/kernel/cpu/cpu freq/longhaul.c
insmod: error inserting '/usr/src/linux-2.6.17-5mdv/arch/i386/kernel/cpu/cpufreq /longhaul.c': -1 Invalid module format
[root@vplaptop laur]# insmod /usr/src/linux-2.6.17-5mdv/arch/i386/kernel/cpu/cpu freq/longhaul.h
insmod: error inserting '/usr/src/linux-2.6.17-5mdv/arch/i386/kernel/cpu/cpufreq /longhaul.h': -1 Invalid module format
[root@vplaptop laur]# insmod /usr/src/linux-2.6.17-5mdv/arch/i386/kernel/cpu/cpu freq/longhaul
insmod: can't read '/usr/src/linux-2.6.17-5mdv/arch/i386/kernel/cpu/cpufreq/long haul': No such file or directory
|
|
|
|
_________________
|
|
|
    |
sander85
Vana Pingviin


Vanus: 39
Liitunud: 08.08.2005
Postitused: 4359
Asukoht: Tallinn (vahel ka Virtsu)
Distributsioon: Mageia, Debian, CentOS

|
|
peaksid leidma faili longhaul.ko ehk aitavad updatedb + locate
|
|
|
|
_________________
|
|
|
   |
laur
Vana Pingviin


Vanus: 39
Liitunud: 22.01.2006
Postitused: 1195
Asukoht: Tallinn
Distributsioon: Estobuntu, Kubuntu, Mandriva, OpenSUSE

|
|
Mjaa, ma muidu otsisin rpmdrake kaudu kernel source failidest need välja.
|
|
|
|
_________________
|
|
|
    |
obundra
Vana Pingviin


Vanus: 50
Liitunud: 04.08.2005
Postitused: 1213
Asukoht: 127.0.0.1
Distributsioon: RHEL, Solaris, Debian, Gentoo

|
|
Need ju kompilleerimata sinu kerneli jaoks.Ehk siis, hetkel sa üritad lähtekoodi mooduli pähe laadida.Enne tarvis valmis ikka kompilleerida ka.
|
|
|
|
_________________ IT teenused
|
|
|
   |
revo
Uus kasutaja

Liitunud: 11.01.2007
Postitused: 1

|
|
Saad sa kopeerida siia /etc/reader.conf faili sisu. Ostsin ka sama kaardilugeja, kuid ei saa seda tööle. pccardctl tunneb lugeja ära, kuid pcscd vist jääb hätta.
Kummaline on ka see, et pcsclite paki installimisel ei tekitatud /etc/rc.d/pcscd faili, selle pidin ise tegema ja nüüd ma ei ole päris kindel, et see fail on korrektne. Kas on mingi võimalus testida kas pcscd töötab korralikult?
Kasutan ARCH linuxit (2.6.19)
|
|
|
|
|
|
|
  |
|