This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Some simple questitions


On Tue, Sep 05, 2006 at 01:10:16PM +0400, Dmitry Varakin wrote:
> >Are you asking about registers in memory-mapped peripherals?
> >Anything that's memory-mapped is just "there".  eCos only has a
> >single address space.
> 
> Thanks, it's ok.
> 
> I've got a problem with changing MAC:
> When I change MAC, my debug via GDB goes down, I think it's ok, it
> should be so. But after changing MAC, my board becomes unreachable for
> all network connections, even for pings. ARP table is clear, but
> nothing works. The example
> ecos/packages/net/common/current/tests/set_mac_address.c has the same
> problem.
> The last string I see in GDB:
> "MAC Adress for 'eth0' set to 08:88:12:34:56:77'in server test/nstream ok"
> or
> "Setting MAC of eth0 to 00:90:27:8c:57:dd
> eth0 socket is 3:
> Mac addr 00:90:27:8c:57:dd
> eth0 ioctl(SIOCSIFHWADDR) succeeded"
> in case of using an example
> 
> When I try to set the same MAC as current, my program doesn't "fails".
> So the procedure of changing MAC is OK. Have you any ideas?

You need to flush the arp entry in your host. It has no idea the MAC
address has changed and it will continue to use the old one. use 

arp -d my_ecos_devices_ip_address

The host will then do the arp process again and get the new MAC
address.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]