Forums Rue-Montgallet.com
Rue-Montgallet.comRue-Hardware.comRue-Occasion.comRue-DVD.comRue-Jeuxvideo.comRue-AudioVideo.comRue-Telephone.comForums
S'inscrire | S'identifier |
| Recherche avancée | Aide
 
 

Matériel : rufus Achat - Vente Informatique : nakata91000 Achat - Vente Divers : jonaten92, woody 75, 2 utilisateurs anonymes et 79 utilisateurs inconnus

 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet :

PCMCIA sur Compaq R3000

 
n°19262
colonelhat​i
Profil : Jeune recrue
Posté le 04-04-2006 à 16:48:55  profilanswer
 

Bonjour a tous,
 
j'ai besoin d'un coup de main de votre part. Mon port PCMCIA ne fonctionne pas du tout sur mon portable Compaq série R3000. J'ai trouvé la solution a mon problème ici: http://www1.pacific.edu/~khughes/presario-r3120us/
mais la solution donnée n'a pas eu l'air de fonctionner chez moi:
En fait je n'ai pas de fichier /etc/rc.d/rc.pcmcia , par contre j'ai plusieurs répertoires /etc/rc0.d jusqu'a /etc/rc6.d dans lesquels se trouvent les fichiers K20pcmcia ou S20pcmcia . J'ai donc ajouté la ligne

Code :
  1. CORE_OPTS="probe_io=0"


comme demandé dans chacun de ces fichiers, au début (il n'est pas précisél'endroit ou insérer la ligne), mais sans succès.
J'ai aussi essayé les deux lignes différentes pour le fichier /etc/pcmcia/config.opts , mais sans résultat.
 
A la fin de l'explication, il y a un lien vers un "patch": http://bugzilla.kernel.org/show_bug.cgi?id=2944
 
mais je n'ai pas compris ce qu'il fallait en faire... Si je clique sur le lien correspondant au patch, j'obtiens ceci:

Code :
  1. --- a/drivers/pci/probe.c 2004-07-09 10:36:51.000000000 +0000
  2. +++ b/drivers/pci/probe.c 2004-07-09 10:39:38.000000000 +0000
  3. @@ -326,6 +326,16 @@
  4.  return child;
  5. }
  6. +static void __devinit pci_fixup_parent_subordinate_busnr(struct pci_bus *child, int max)
  7. +{
  8. + struct pci_bus *parent = child->parent;
  9. + while (parent->parent && parent->subordinate < max) {
  10. +  parent->subordinate = max;
  11. +  pci_write_config_byte(parent->self, PCI_SUBORDINATE_BUS, max);
  12. +  parent = parent->parent;
  13. + }
  14. +}
  15. +
  16. unsigned int __devinit pci_scan_child_bus(struct pci_bus *bus);
  17. /*
  18. @@ -407,7 +417,13 @@
  19.  
  20.   if (!is_cardbus) {
  21.    child->bridge_ctl = PCI_BRIDGE_CTL_NO_ISA;
  22. -
  23. +   /*
  24. +    * Adjust subordinate busnr in parent buses.
  25. +    * We do this before scanning for children because
  26. +    * some devices may not be detected if the bios
  27. +    * was lazy.
  28. +    */
  29. +   pci_fixup_parent_subordinate_busnr(child, max);
  30.    /* Now we can scan all subordinate buses... */
  31.    max = pci_scan_child_bus(child);
  32.   } else {
  33. @@ -417,6 +433,7 @@
  34.     * inserted later.
  35.     */
  36.    max += CARDBUS_RESERVE_BUSNR;
  37. +   pci_fixup_parent_subordinate_busnr(child, max);
  38.   }
  39.   /*
  40.    * Set the subordinate bus number to its real value.


mais je ne sais pas quoi faire de ce code, ni où l'insérer.
 
Pourriez vous m'éclairer?
Merci d'avance!

n°19264
P-Y
Intermittent du troll
Profil : Vieux de la vieille
Posté le 04-04-2006 à 18:37:44  profilanswer
 

c'est un patch pour le kernel linux.
Tu as deja recompile ton kernel? si oui, ca ne devrait pas trop poser de probleme, en gros tu deplaces le fichiers a l'endroit approprie (/usr/src/linux) et tu fais "patch -p1 < ton_fichier.patch", tu verifies qu'il ne sort pas de message d'erreur, puis tu recompiles, et t'esperes que ca marche :D
Sinon, faut que tu apprennes d'abord comment recompiler un kernel, c'est pas tres complique, suffit de suivre un bon howto ;)


---------------
"Comme la Hongrie, le monde informatique a une langue qui lui est propre. Mais il y a une différence. Si vous restez assez longtemps avec des Hongrois, vous finirez bien par comprendre de quoi ils parlent."
[:zzzinv][url=http://www.mozilla-europe.
n°19265
colonelhat​i
Profil : Jeune recrue
Posté le 04-04-2006 à 19:15:48  profilanswer
 

Ben non, j'ai jamais fait ça encore, mais bon je vais bien pouvoir me débrouiller, je suis pas une buse ;)
Si quelqu'un a un bon tuto a me conseiller, je suis preneur!
 
Et je dois installer un nouveau kernel ou juste le patcher?

n°19266
spy
Secure by design
Profil : Habitué
Posté le 04-04-2006 à 20:06:20  profilanswer
 

tout depend de celui que tu vas installer.
 
Avec le dernier 2.6.x cela devrait ok, meme sans le patch.

n°19267
P-Y
Intermittent du troll
Profil : Vieux de la vieille
Posté le 04-04-2006 à 20:07:13  profilanswer
 

apparement il est pas tout a fait a jour, mais ca devrait faire l'affaire: http://www.digitalhermit.com/linux [...] HOWTO.html


---------------
"Comme la Hongrie, le monde informatique a une langue qui lui est propre. Mais il y a une différence. Si vous restez assez longtemps avec des Hongrois, vous finirez bien par comprendre de quoi ils parlent."
[:zzzinv][url=http://www.mozilla-europe.
n°19271
colonelhat​i
Profil : Jeune recrue
Posté le 05-04-2006 à 09:22:39  profilanswer
 

merki merki !

n°19278
colonelhat​i
Profil : Jeune recrue
Posté le 05-04-2006 à 16:57:58  profilanswer
 

Bon alors, j'ai essayé mais sans résultats... Je me suis appuyé sur ces 2 tutos: tuto1 et tuto2
Je vous fait un petit résumé:
- en regardant dans le gestionnaire de paquets synaptic, j'ai installé les sources "linux-sources-2.6.12"
- puis j'ai suivi les instructions:

Code :
  1. en root:
  2. cd /usr/src
  3. tar jxvf linux-source-2.6.12.tar.bz2
  4. ln -s linux-source-2.6.12 linux
  5. cd linux-source-2.6.12
  6. make menuconfig


j'ai tout laissé par défaut, ne sachant pas trop quoi prendre, comme dit dans le tuto1
puis:

Code :
  1. patch -p1 < monpatch


là j'ai des lignes comme quoi tout c'est bien passé

Code :
  1. make


quelques avertissemnts défilent, mais tout a l'air ok

Code :
  1. make modules_install
  2. make install


puis j'ai créé l'image de boot:

Code :
  1. mkinitrd -o /boot/initrd.img-2.6.12 2.6.12


et j'ai modifié le fichier /boot/grub/menu.lst comme il faut en ajoutant

Code :
  1. title  Ubuntu, kernel 2.6.12
  2. root  (hd0,4)
  3. kernel  /boot/vmlinuz-2.6.12 root=/dev/hda5 ro quiet splash
  4. initrd  /boot/initrd.img-2.6.12
  5. savedefault
  6. boot


 
Je redémarre, je sélectionne le nouveau noyau et toujours rien, ma carte wifi pcmcia n'est toujours pas reconnue, les voyants ne s'allument même pas... Ai je oublié quelque chose?
 
Merci d'avance

n°19280
P-Y
Intermittent du troll
Profil : Vieux de la vieille
Posté le 05-04-2006 à 20:49:18  profilanswer
 

Euh si t'as tout laisse par defaut, tu risque de ne pas avoir le support du PCMCIA, donc faut que tu l'actives et que tu recompiles.


---------------
"Comme la Hongrie, le monde informatique a une langue qui lui est propre. Mais il y a une différence. Si vous restez assez longtemps avec des Hongrois, vous finirez bien par comprendre de quoi ils parlent."
[:zzzinv][url=http://www.mozilla-europe.
n°19281
colonelhat​i
Profil : Jeune recrue
Posté le 05-04-2006 à 23:24:07  profilanswer
 

Voici ce que j'ai mis dans mon "make menuconfig":

Code :
  1. ┌─────────────── Bus options (PCI, PCMCIA, EISA, MCA, ISA) ───────────────┐
  2.   │  Arrow keys navigate the menu.  <Enter> selects submenus --->.          │
  3.   │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, │
  4.   │  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help, </> │
  5.   │  for Search.  Legend:

    • built-in  [ ] excluded  <M> module  < >       │
    •   │ ┌─────────────────────────────────────────────────────────────────────┐ │
    •   │ │[*] PCI support                                                      │ │
    •   │ │      PCI access mode (Any)  --->                                    │ │
    •   │ │[*]   PCI Express support                                            │ │
    •   │ │<M>     PCI Express Hotplug driver                                   │ │
    •   │ │[ ]       Use polling mechanism for hot-plug events (for testing purp│ │
    •   │ │[ ]   Message Signaled Interrupts (MSI and MSI-X)                    │ │
    •   │ │[ ]   Legacy /proc/pci interface                                     │ │
    •   │ │[*]   PCI device name database                                       │ │
    •   │ │[ ]   PCI Debugging                                                  │ │
    •   │ │[*] ISA support                                                      │ │
    •   │ │[ ]   EISA support                                                   │ │
    •   │ │[ ] MCA support                                                      │ │
    •   │ │<M> NatSemi SCx200 support                                           │ │
    •   │ │    PCCARD (PCMCIA/CardBus) support  --->                            │ │
    •   │ │    PCI Hotplug Support  --->                                        │ │
    •   │ └─────────────────────────────────────────────────────────────────────┘ │


Code :
  1. ┌──────────────────── PCCARD (PCMCIA/CardBus) support ────────────────────┐
  2.   │  Arrow keys navigate the menu.  <Enter> selects submenus --->.          │
  3.   │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, │
  4.   │  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help, </> │
  5.   │  for Search.  Legend:

    • built-in  [ ] excluded  <M> module  < >       │
    •   │ ┌─────────────────────────────────────────────────────────────────────┐ │
    •   │ │           <M> PCCard (PCMCIA/CardBus) support                       │ │
    •   │ │           [ ]   Enable PCCARD debugging                             │ │
    •   │ │           <M>   16-bit PCMCIA support                               │ │
    •   │ │           [*]   32-bit CardBus support                              │ │
    •   │ │           ---   PC-card bridges                                     │ │
    •   │ │           <M>   CardBus yenta-compatible bridge support             │ │
    •   │ │           <M>   Cirrus PD6729 compatible bridge support             │ │
    •   │ │           <M>   i82092 compatible bridge support                    │ │
    •   │ │           <M>   i82365 compatible bridge support                    │ │
    •   │ │           <M>   Databook TCIC host bridge support                   │ │
    •   │ └─────────────────────────────────────────────────────────────────────┘ │
    •   ├────────────────────────────────────────────────────────────────────────


Code :
  1. ┌────────────────────────── PCI Hotplug Support ──────────────────────────┐
  2.   │  Arrow keys navigate the menu.  <Enter> selects submenus --->.          │
  3.   │  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, │
  4.   │  <M> modularizes features.  Press <Esc><Esc> to exit, <?> for Help, </> │
  5.   │  for Search.  Legend:

    • built-in  [ ] excluded  <M> module  < >       │
    •   │ ┌─────────────────────────────────────────────────────────────────────┐ │
    •   │ │<M> Support for PCI Hotplug (EXPERIMENTAL)                           │ │
    •   │ │<M>   Fake PCI Hotplug driver                                        │ │
    •   │ │<M>   Compaq PCI Hotplug driver                                      │ │
    •   │ │[*]     Save configuration into NVRAM on Compaq servers              │ │
    •   │ │<M>   IBM PCI Hotplug driver                                         │ │
    •   │ │<M>   ACPI PCI Hotplug driver                                        │ │
    •   │ │<M>     ACPI PCI Hotplug driver IBM extensions                       │ │
    •   │ │[*]   CompactPCI Hotplug driver                                      │ │
    •   │ │<M>     Ziatech ZT5550 CompactPCI Hotplug driver                     │ │
    •   │ │<M>     Generic port I/O CompactPCI Hotplug driver                   │ │
    •   │ │<M>   SHPC PCI Hotplug driver                                        │ │
    •   │ │[ ]     Use polling mechanism for hot-plug events (for testing purpos│ │
    •   │ │                                                                     │ │
    •   │ │                                                                     │ │
    •   │ │                                                                     │ │
    •   │ └─────────────────────────────────────────────────────────────────────┘ │


Dois je rajouter des trucs?  
De nombreux champs sont sélectionnés avec "M" --> construits comme des modules. Comment m'assurer que ces modules sont bien chargés au démarrage et actif?
Ne devrais je pas mettre " PCCard (PCMCIA/CardBus) support " en "Y" plutot qu'en "M" ?
 
 
Je vais finir par le mettre le wifi, je vous jure :pfff:  :)


Message édité par colonelhati le 05-04-2006 à 23:36:23
n°19286
spy
Secure by design
Profil : Habitué
Posté le 06-04-2006 à 11:28:52  profilanswer
 

Pour voir les modules chargés: lsmod
 
Pour charger un module donné: modprobe "nom-du-module"


---------------
"There is a diference between knowing the path and walking the path"
OpenBSD reloaded
MCP Exchange2003
Cisco CCNA
n°19287
colonelhat​i
Profil : Jeune recrue
Posté le 06-04-2006 à 11:55:53  profilanswer
 

Voici ce qu ça me donne:

Code :
  1. lsmod
  2. Module                  Size  Used by
  3. nls_utf8                2112  2
  4. rfcomm                 40092  0
  5. l2cap                  25668  5 rfcomm
  6. bluetooth              49732  4 rfcomm,l2cap
  7. powernow_k8            12680  0
  8. cpufreq_userspace       4444  1
  9. cpufreq_stats           5380  0
  10. freq_table              4484  2 powernow_k8,cpufreq_stats
  11. cpufreq_powersave       1792  0
  12. cpufreq_ondemand        6236  0
  13. cpufreq_conservative     7204  0
  14. pcmcia                 27272  4
  15. video                  15812  0
  16. tc1100_wmi              6788  0
  17. sony_acpi               5388  0
  18. pcc_acpi               11200  0
  19. i2c_acpi_ec             5568  0
  20. hotkey                  9380  0
  21. dev_acpi               11268  0
  22. container               4480  0
  23. button                  6544  0
  24. battery                 9412  0
  25. ac                      4804  0
  26. ipv6                  257920  8
  27. af_packet              22408  2
  28. sd_mod                 19472  2
  29. ide_cd                 42500  0
  30. cdrom                  40544  1 ide_cd
  31. rtc                    12600  0
  32. pcspkr                  3524  0
  33. acx_pci               147520  0
  34. firmware_class         10368  1 acx_pci
  35. yenta_socket           25868  3
  36. rsrc_nonstatic         13824  1 yenta_socket
  37. pcmcia_core            50628  3 pcmcia,yenta_socket,rsrc_nonstatic
  38. 8139cp                 20224  0
  39. 8139too                26112  0
  40. mii                     5824  2 8139cp,8139too
  41. shpchp                 98724  0
  42. pci_hotplug            28340  1 shpchp
  43. sata_nv                 9540  0
  44. libata                 55492  1 sata_nv
  45. snd_intel8x0           33920  1
  46. snd_ac97_codec         86012  1 snd_intel8x0
  47. snd_pcm_oss            54496  0
  48. snd_mixer_oss          19648  1 snd_pcm_oss
  49. snd_pcm                91720  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
  50. snd_timer              25092  1 snd_pcm
  51. snd                    56900  8 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixe r_oss,snd_pcm,snd_timer
  52. soundcore               9824  1 snd
  53. snd_page_alloc         10888  2 snd_intel8x0,snd_pcm
  54. tsdev                   7936  0
  55. ehci_hcd               35016  0
  56. usbhid                 36128  0
  57. usb_storage            76160  2
  58. scsi_mod              138376  3 sd_mod,libata,usb_storage
  59. ohci_hcd               21252  0
  60. usbcore               120892  5 ehci_hcd,usbhid,usb_storage,ohci_hcd
  61. i2c_nforce2             6848  0
  62. i2c_core               21776  2 i2c_acpi_ec,i2c_nforce2
  63. amd64_agp              12424  1
  64. agpgart                35656  1 amd64_agp
  65. nls_iso8859_1           4096  1
  66. nls_cp437               5760  3
  67. vfat                   13888  3
  68. fat                    53980  1 vfat
  69. dm_mod                 60348  1
  70. evdev                   9792  0
  71. psmouse                30980  0
  72. mousedev               11936  1
  73. parport_pc             35844  1
  74. lp                     12164  0
  75. parport                36808  2 parport_pc,lp
  76. md                     46544  0
  77. ext3                  139976  2
  78. jbd                    56280  1 ext3
  79. mbcache                 9476  1 ext3
  80. ide_disk               18944  5
  81. ide_generic             1472  0
  82. amd74xx                14108  1
  83. ide_core              142036  5 ide_cd,usb_storage,ide_disk,ide_generic,amd74xx
  84. unix                   27696  688
  85. thermal                13064  0
  86. processor              22908  2 powernow_k8,thermal
  87. fan                     4548  0


 
Le module PCMCIA est donc bien activé...

n°19288
spy
Secure by design
Profil : Habitué
Posté le 06-04-2006 à 12:11:12  profilanswer
 

Yes il est actif.
Se passe t'il quelque chose lorsque tu insère une carte dans le slot PCMCIA, affichage de messages sur la console par exemple?


---------------
"There is a diference between knowing the path and walking the path"
OpenBSD reloaded
MCP Exchange2003
Cisco CCNA
n°19289
colonelhat​i
Profil : Jeune recrue
Posté le 06-04-2006 à 12:11:27  profilanswer
 

Sur la page concernant ce bug, le sujet a l'air chaud et je viens de tomber sur ce message:

Citation :

Unfortunately, the function which has been added by the patch needed to be
deactivated because it does not check against creating overlapping bus numbers
and that caused problems with some laptops:
 
Ivan Kokshaysky (Continuing PCI and Yenta troubles in 2.6.13.1 and 2.6.14-rc1):
http://lkml.org/lkml/2005/9/20/114
 
It seems that we can only renumber all busses or fixup the parent's subordinate
numbers after we completed scanning so what we can do checks to prevent
overlapping bus numbers when fixing up the parent subordinate numbers.
 
I created a kernel module which does the latter and it would not hurt if it
gets some more testing. I want to turn it into a patch which gets called
after scanning the PCI root bridge(s) is completed to fix the currently known
issues with BIOSes which were too lazy to reserve bus numbers for Cardbus
bridges.
 
As a lot of machines are affected, seems better than an approach to do a full
bus renumbering on all affected machines, as this would require getting DMI
values for all of them and side effects to Graphic cards already happened:
https://bugzilla.novell.com/show_bug.cgi?id=146438
 
This is the list of currently known affected sytems:
* ASUS Z71V and L3s
* Samsung X20 (fixed in latest BIOS, but older BIOSes are affected)
* Compaq R3140us and all Compaq R3000 series laptops with TI1620 Controller,
  also Compaq R4000 series  
* HP zv5000z (AMD64 3700+, known that fixup_parent_subordinate_busnr fixes it)
* HP zv5200z
* IBM ThinkPad 240
* An IBM ThinkPad (1.8 GHz Pentium M) debugged by Pavel Machek
  gives the correspondig message which detects the breakage.
* MSI S260 / Medion SIM 2100 MD 95600
 
I'll attach the patch now.


 
Dois je essayer ce nouveau patch?
Comment faire pour supprimer le noyau que j'ai compilé hier mais qui ne change rien?
 
Merci

n°19290
colonelhat​i
Profil : Jeune recrue
Posté le 06-04-2006 à 12:15:45  profilanswer
 

spy a écrit :

Yes il est actif.
Se passe t'il quelque chose lorsque tu insère une carte dans le slot PCMCIA, affichage de messages sur la console par exemple?


Non rien du tout du tout...

n°19292
colonelhat​i
Profil : Jeune recrue
Posté le 07-04-2006 à 10:20:12  profilanswer
 

Bonjour a tous,
 
une nouvelle version du patch est sortie hier.
J'ai essayé de l'installer en utilisant la commande patch:

Code :
  1. romain@ubuntu:/usr/src/linux-source-2.6.12$ patch -p1 < patch_ub2


mais j'obtiens un message d'erreur:

Code :
  1. patching file pci/fixup-parent-busses.c
  2. can't find file to patch at input line 162
  3. Perhaps you used the wrong -p or --strip option?
  4. The text leading up to this was:
  5. --------------------------
  6. |--- drivers/pci/Makefile
  7. |+++ drivers/pci/Makefile
  8. --------------------------


 
C'est peut être du au fait qu'apparemment il ne fallait pas utiliser la commande patch:

Citation :

What you need to compile it is the kernel source for the kernel which you
run and the packages patch and gcc. The you do the following as root:
 

Code :
  1. cd /usr/src/linux
  2. zcat /proc/config.gz >.config
  3. make oldconfig include/asm include/linux/version.h scripts
  4. make SUBDIRS=drivers/pci modules
  5. insmod drivers/pci/fixup-parent-busses.ko
  6. lspci -v | grep -e ^0 -e subordinate| grep -B1 subordinate >prior.lspci
  7. tail -f /var/log/messages
  8. sync
  9. echo > /sys/module/fixup_parent_busses/parameters/fixup_parent_subord
  10. lspci -v | grep -e ^0 -e subordinate| grep -B1 subordinate >after.lspci



 
...  
je suis un peu perdu là. Dans quel fichier dois je copier les lignes du patch?  
 
Merci d'avance.

n°19294
01iv'
Profil : Membre
Posté le 07-04-2006 à 12:11:19  profilanswer
 

salut,
 
d'instinct je te dirais de faire un "patch -p0" ;)
 
Oliv'

n°19295
colonelhat​i
Profil : Jeune recrue
Posté le 07-04-2006 à 14:31:17  profilanswer
 

c'est ce que vient de me répondre le créateur du patch auquel j'avais envoyé un mail ;)
Merci

n°19296
colonelhat​i
Profil : Jeune recrue
Posté le 07-04-2006 à 14:39:28  profilanswer
 

Bon, la commande patch a fonctionné cette fois ci, la recompilation est en cours... Je vous tiens au courant et je croise les doigts ;)


Aller à :
Ajouter une réponse