cpm_enet_down and MAC address change.
Hello.
In shell, I can't do down ethernet interface.
======================================
# ifconfig eth0 down dev_close: bug eth0 still running
I checked ethernet driver and found that there are empty code for it.
At cpm_enet_close of arch/ppc/8xx_io/enet.c
===========================================
static intcpm_enet_close(struct device *dev)
{
/* Don't know what to do yet.
*/
return 0;
}So, I can't down ethernet interface on Linux for MPC850 and can't change MAC addr at runtime also.
Then how can I make it possible? or do someone make module for ethernet and serial driver for MPC?
Maybe it's a good idea to modularize it and make a configuration header file for parallel IO pins to SCCs and SMCs to port Linux easy.
If anybody know it or have a idea please answer.
Thanks in advance.
Have a nice day.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Hyun-Joon,
I have been promising myself that I would re-work the ethernet driver for use in QSLinux (qslinux.org), but have never gotten around to it. The driver performs initialization in the init() function, rather than the first call to open(). Another problem with the driver is that it will only work with a single enet port. I wanted to modify it so that it would work with multiple ports. A good example of how this can be found is the HDLC driver (hdlcppp.c) from the QSLinux source. This is the source I will use (eventually) to rewrite the enet driver, as it already has all of the buffer descriptor handling, and the open and close handling setup correctly. That driver allows you to open one or more HDLC channels, and also allows you to close arbitrary channels.
Regards,
Daris
Quoted 23 lines · Hyun-Joon Cha
Hello.
In shell, I can't do down ethernet interface.
======================================# ifconfig eth0 down dev_close: bug eth0 still runningI checked ethernet driver and found that there are empty code for it.
At
cpm_enet_closeofarch/ppc/8xx_io/enet.c
===========================================
static intcpm_enet_close(struct device *dev){ /* Don't know what to do yet. */ return 0; }So, I can't down ethernet interface on Linux for MPC850 and can't change MAC addr at runtime also.
Quoted 9 lines
Then how can I make it possible? or do someone make module for ethernet and serial driver for MPC?
Maybe it's a good idea to modularize it and make a configuration header file for parallel IO pins to SCCs and SMCs to port Linux easy.
If anybody know it or have a idea please answer.
Thanks in advance.
Have a nice day.
--
Daris A Nevil
Simple Network Magic Corporation
401 Kentucky Lane
McKinney, TX 75069
214-793-7757
[email protected]
www.snmc.com
quickstack.com
qslinux.org
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 1 line · Daris A Nevil
I have been promising myself that I would re-work the ethernet driver
So have lots of people. Unfortunately, there haven't been any embedded systems I have worked on that needed this, so it keeps dropping down the list.
Quoted 2 lines
........ Another problem with the driver is that it will only work with a single enet port.
I am correcting that now. Keep in mind that most 8xx processors won't work with more that one SCC Ethernet......I finally have someone providing hardware that will prove this ability.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 1 line · Daris A Nevil
I have been promising myself that I would re-work the ethernet driver ...
If you do, I think it would be good to integrate similar changes to those I made to the FEC driver, in the patch at:
http://members.xoom.com/greyhams/linux/patches/2.2/fecdmaskb.patch
In particular, DMA directly into the skbuf avoids a copy, and received packets that get dropped should only be counted in rx_dropped -- not counted again in rx_packets. Also, it's good to avoid reading the buffer descriptor status bits multiple times, especially since they're uncached.
Regards,
Graham
--
Graham Stoney
Principal Hardware/Software Engineer
Canon Information Systems Research Australia
Ph: +61 2 9805 2909 Fax: +61 2 9805 2929
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/