[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] opb_ethernetlite on Memec Spartan 3 board



Hi, Raul:

I've been through the same exercises you were. Nothing provides reliable solution. Finally I've resorted to hack - I send out ping to arbitrary IP during booting (Destination even doesn't need to exist). This is my change:

==== //depot/LM125/uClinux/petalinux-v0.10-rc1/software/petalinux-dist/vendors/PetaLogix/common/common.mak#17 (text) ====

266a267,270
> # Emaclite Issue workaround.
>       $(ROMFSINST) -e CONFIG_PLATFORM_AKA_LM125 \
>                       -a "/sbin/ping 1.2.3.4 -c 1 -i 1 > /dev/null" /etc/rc
>

Regards,

Leonid.

-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of Raul Camaras
Sent: Tuesday, May 29, 2007 6:51 AM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: AW: [microblaze-uclinux] opb_ethernetlite on Memec Spartan 3 board

Hello,

Additionally to file xemaclite_g.c, in the Petalinux archive in the file
adapter.c it's left line 595:
> memcpy(dev->dev_addr, ether_table[index].macaddr, IFHWADDRLEN);
directly before setting the MAC address. Without this line MAC address
is not set.

I tried to slolve the problem with the emaclite not answering before
sending something, by writing next line in adapter.c:
> XemacLite(&lp->Emaclite);
directly before setting MAC address, as suggested by Per-Henrik... but
it was not the solution.

Rgds, 
Raul Camaras

-----Ursprüngliche Nachricht-----
Von: owner-microblaze-uclinux@xxxxxxxxxxxxxx
[mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] Im Auftrag von
Per-Henrik Lundblom
Gesendet: Freitag, 25. Mai 2007 08:35
An: microblaze-uclinux@xxxxxxxxxxxxxx
Betreff: Re: [microblaze-uclinux] opb_ethernetlite on Memec Spartan 3
board

* John Williams <jwilliams@xxxxxxxxxxxxxx> [070525 00:55]:
 
> I'm not sure that the emaclite driver in uClinux CVS is actually up to

> date.  I suggest you try grabbing the one from PetaLinux, which we
know 
> works.  If they are indeed different, I'll make sure to push the
working 
> one back to uClinux CVS.

Actually the Petalinux archive isn't up to date. In the file
xemaclite_g.c, the init of XEmacLite_ConfigTable is missing one
element compared to the uClinux CVS =)

Otherwise all files are identical.

/PH

--
Per-Henrik Lundblom           epost: ph@xxxxxxxxxxx
telefon: 0733-20 71 26        hemsida: www.whatever.nu

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/