[Linux-Biella] Re: Scheda di rete a 10 Mbit

Paul TT linux@ml.bilug.linux.it
Sat, 13 Dec 2003 01:40:11 +0100


Alessandro Pastore wrote:

>On Fri, 12 Dec 2003 15:13:27 +0100
>"Alberto R." <alus.r@tiscali.it> wrote:
>
>  
>
>>Bene, se sai come si fa a settare sta scheda a 10 Mbit me lo puoi dire
>>per favore?
>>Grazie    Alberto
>>
>>
>>    
>>
>Non lo so, te l'avrei detto.
>Sicuramente qualcosa tipo:
>
># /sbin/modprobe nomemodulo opzione
>
>Dal sorgente del modulo (pcnet32.h) vedo:
>-------------
>#define PCNET32_PORT_AUI      0x00
>#define PCNET32_PORT_10BT     0x01
>#define PCNET32_PORT_GPSI     0x02
>#define PCNET32_PORT_MII      0x03
>                                                                        
> 
>#define PCNET32_PORT_PORTSEL  0x03
>#define PCNET32_PORT_ASEL     0x04
>#define PCNET32_PORT_100      0x40
>#define PCNET32_PORT_FD       0x80
>                                                                        
> 
>#define PCNET32_DMA_MASK 0xffffffff
>---
>.. poco dopo
>---
>static unsigned char options_mapping[] = {
>    PCNET32_PORT_ASEL,                     /*  0 Auto-select      */
>    PCNET32_PORT_AUI,                      /*  1 BNC/AUI          */
>    PCNET32_PORT_AUI,                      /*  2 AUI/BNC          */
>    PCNET32_PORT_ASEL,                     /*  3 not supported    */
>    PCNET32_PORT_10BT | PCNET32_PORT_FD,   /*  4 10baseT-FD       */
>    PCNET32_PORT_ASEL,                     /*  5 not supported    */
>    PCNET32_PORT_ASEL,                     /*  6 not supported    */
>    PCNET32_PORT_ASEL,                     /*  7 not supported    */
>    PCNET32_PORT_ASEL,                     /*  8 not supported    */
>    PCNET32_PORT_MII,                      /*  9 MII 10baseT      */
>    PCNET32_PORT_MII | PCNET32_PORT_FD,    /* 10 MII 10baseT-FD   */
>    PCNET32_PORT_MII,                      /* 11 MII (autosel)    */
>    PCNET32_PORT_10BT,                     /* 12 10BaseT          */
>    PCNET32_PORT_MII | PCNET32_PORT_100,   /* 13 MII 100BaseTx    */
>    PCNET32_PORT_MII | PCNET32_PORT_100 | PCNET32_PORT_FD, /* 14 MII
>100BaseTx-FD */    PCNET32_PORT_ASEL                      /* 15 not
>supported    */
>  
>
che per me e' una risposta, ok, ma per altri non so....
prova, da utente root:
rmmod pcnet32
modprobe pcnet32 options=12
e vedi se cosi' funge.
se funge, dovresti aggiungere "options=12" ai parametri da passare al 
modulo quando viene caricato, che in mdk, non so dove.
solitamente dovresti aggiungere una riga in /etc/modules.conf, fattta cosi':

alias eth0 pcnet32
options pcnet32 options=12

sempre che si l'interfaccia eth0... :-)

-- 
It was software, in cyberspace...
There was no system core.
It can not be shut down.
The attack began on 6:18 PM...