From cytan299 at netzero.net  Mon Jan 23 09:32:21 2012
From: cytan299 at netzero.net (cytan299 at netzero.net)
Date: Mon, 23 Jan 2012 14:32:21 GMT
Subject: Does enc28j60 spi-ethernet driver work in ARM inux 2.6.39.4?
Message-ID: <20120123.083221.11425.1@webmail01.dca.untd.com>



I wired up the enc28j60 to my ARM board using the instructions from here: http://www.elinux.org/Hammer_How_to_Enc28j60

However, when I enable the enc28j60 driver and load it, ifconfig just doesn't see the enc28j60:
*************************************************************************
# lsmod                                                                                               
Module                  Size  Used by    Not tainted                                                  
enc28j60               13352  0                                                                       
unix                   16952  8                                                                       
# ifconfig -a                                                                                         
lo        Link encap:Local Loopback                                                                   
          inet addr:127.0.0.1  Mask:255.0.0.0                                                         
          UP LOOPBACK RUNNING  MTU:16436  Metric:1                                                    
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                                          
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                                        
          collisions:0 txqueuelen:0                                                                   
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)   
****************************************************************************

Looking at modinfo:
*********************************************
 # modinfo enc28j60                                                                                    
filename:       kernel/drivers/net/enc28j60.ko                                                        
description:    enc28j60 ethernet driver                                                              
author:         Claudio Lanconelli <lanconelli.claudio at eptar.com>                                     
license:        GPL                                                                                   
vermagic:       2.6.39.4 mod_unload ARMv4                                                             
parm:           debug:Debug verbosity level (0=none, ..., ffff=all)                                   
depends:    
*********************************************

I don't see any configuration options for spi or irq. How does the driver know how the enc28j60 is wired? 

My question is whether the enc28j60 is really supported by Linux on the ARM? If so, how do I get it working. 

Thanks for any help or info.

cytan      



From marek.vasut at gmail.com  Mon Jan 23 17:13:06 2012
From: marek.vasut at gmail.com (Marek Vasut)
Date: Mon, 23 Jan 2012 23:13:06 +0100
Subject: Does enc28j60 spi-ethernet driver work in ARM inux 2.6.39.4?
In-Reply-To: <20120123.083221.11425.1@webmail01.dca.untd.com>
References: <20120123.083221.11425.1@webmail01.dca.untd.com>
Message-ID: <201201232313.07173.marek.vasut@gmail.com>

> I wired up the enc28j60 to my ARM board using the instructions from here:
> http://www.elinux.org/Hammer_How_to_Enc28j60
> 
> However, when I enable the enc28j60 driver and load it, ifconfig just
> doesn't see the enc28j60:
> *************************************************************************
> # lsmod
> Module                  Size  Used by    Not tainted
> enc28j60               13352  0
> unix                   16952  8
> # ifconfig -a
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> ***************************************************************************
> *
> 
> Looking at modinfo:
> *********************************************
>  # modinfo enc28j60
> filename:       kernel/drivers/net/enc28j60.ko
> description:    enc28j60 ethernet driver
> author:         Claudio Lanconelli <lanconelli.claudio at eptar.com>
> license:        GPL
> vermagic:       2.6.39.4 mod_unload ARMv4
> parm:           debug:Debug verbosity level (0=none, ..., ffff=all)
> depends:
> *********************************************
> 
> I don't see any configuration options for spi or irq. How does the driver
> know how the enc28j60 is wired?
> 
> My question is whether the enc28j60 is really supported by Linux on the
> ARM? If so, how do I get it working.
> 
> Thanks for any help or info.

I suspect it's a platform driver so you need to attach it in your platform def. 
file
> 
> cytan
> 
> 
> _______________________________________________
> linux-arm mailing list
> linux-arm at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm


From cytan299 at netzero.net  Tue Jan 24 14:31:06 2012
From: cytan299 at netzero.net (cytan299 at netzero.net)
Date: Tue, 24 Jan 2012 19:31:06 GMT
Subject: How to get modules automatically loaded in linux 2.6.39.4
Message-ID: <20120124.133106.3222.0@webmail03.dca.untd.com>

Hi guys,

   I'm having problems automatically loading modules in linux 2.6.39.4. I've tried out the following methods to no avail:

************************
/etc/modules.conf

contents of modules.conf
 
spi_s3c24xx_gpio


***********************

**************************
/etc/modprobe.d/modprobe.conf

contents of modprobe.conf

options spi_s3c24xx_gpio


*************************

and
*********************************

/etc/conf.d/modules

The contents of modules

modules="spi_s3c24xx_gpio"

**********************************

does NOT load the spi_s3c24xx_gpio.


Any pointers?  Version of Linux is 2.6.39.4


Thanks!






