* cpm_enet_down and MAC address change.
@ 2000-09-01 6:09 Hyun-Joon Cha
2000-09-01 13:21 ` Daris A Nevil
0 siblings, 1 reply; 4+ messages in thread
From: Hyun-Joon Cha @ 2000-09-01 6:09 UTC (permalink / raw)
To: linuxppc-embedded
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 int
cpm_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/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: cpm_enet_down and MAC address change.
2000-09-01 6:09 cpm_enet_down and MAC address change Hyun-Joon Cha
@ 2000-09-01 13:21 ` Daris A Nevil
2000-09-01 15:24 ` Dan Malek
2000-09-04 1:03 ` Graham Stoney
0 siblings, 2 replies; 4+ messages in thread
From: Daris A Nevil @ 2000-09-01 13:21 UTC (permalink / raw)
Cc: linuxppc-embedded
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
Hyun-Joon Cha wrote:
>
> 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 int
> cpm_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.
>
--
Daris A Nevil
Simple Network Magic Corporation
401 Kentucky Lane
McKinney, TX 75069
214-793-7757
dnevil@snmc.com
www.snmc.com
quickstack.com
qslinux.org
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: cpm_enet_down and MAC address change.
2000-09-01 13:21 ` Daris A Nevil
@ 2000-09-01 15:24 ` Dan Malek
2000-09-04 1:03 ` Graham Stoney
1 sibling, 0 replies; 4+ messages in thread
From: Dan Malek @ 2000-09-01 15:24 UTC (permalink / raw)
To: Daris A Nevil; +Cc: linuxppc-embedded
Daris A Nevil wrote:
> 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.
> ........ 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cpm_enet_down and MAC address change.
2000-09-01 13:21 ` Daris A Nevil
2000-09-01 15:24 ` Dan Malek
@ 2000-09-04 1:03 ` Graham Stoney
1 sibling, 0 replies; 4+ messages in thread
From: Graham Stoney @ 2000-09-04 1:03 UTC (permalink / raw)
To: Daris A Nevil; +Cc: linuxppc-embedded
Daris A Nevil writes:
> 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-09-04 1:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-01 6:09 cpm_enet_down and MAC address change Hyun-Joon Cha
2000-09-01 13:21 ` Daris A Nevil
2000-09-01 15:24 ` Dan Malek
2000-09-04 1:03 ` Graham Stoney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).