Skip to contentSkip to conversation

LL_TEMAC on Avnet MiniModule-FX12

U-Boot-Users llandre 2 participants 4 messages Jun 5, 2008 – Jun 20, 2008 1 message not in the archive

lore
Share & tools
lore

llandre

author
#0 lore raw

Hi all,

I ported U-Boot 1.3.1 on Avnet MiniModule-FX12 (the repository I'm working with has been patched previously with ML403 patch). Here is my first dirty patch:

http://www.dave.eu/download/misc/mmfx12/mmfx12-0.8.3.patch

U-Boot works fine and it boots correctly from flash, however ethernet interface (LL_TEMAC) does not work.
For example, when I try to perform a TFTP download, the XEmac_PollSend function never returns because the following loop never ends:

/*
* Loop on the MAC's status to wait for the transmit to complete. The
* transmit status is in the FIFO when the XMIT_DONE bit is set. */

do {
     IntrStatus = XIIF_V123B_READ_IISR(InstancePtr->BaseAddress);
}

while ((IntrStatus & XEM_EIR_XMIT_DONE_MASK) == 0);

Please note that the FPGA bitstream is ok because the linux kernel works fine and can mount root file system via NFS so I pretty sure something is wrong in my U-Boot port.

Anybody experienced similar problems?

TIA,
llandre

DAVE Electronics System House - R&D Department

web:   http://www.dave.eu
email: r&d2 at dave-tech.it
#1 lore raw

Hi Llandre,

that's why you use opb_emac driver for ll_temac. That's all. Different driver and different ip_core.

Regards,
Michal

Quoted 46 lines

Hi all,

I ported U-Boot 1.3.1 on Avnet MiniModule-FX12 (the repository I'm working with has been patched previously with ML403 patch). Here is my first dirty patch:

http://www.dave.eu/download/misc/mmfx12/mmfx12-0.8.3.patch

U-Boot works fine and it boots correctly from flash, however ethernet interface (LL_TEMAC) does not work.
For example, when I try to perform a TFTP download, the XEmac_PollSend function never returns because the following loop never ends:

/*
* Loop on the MAC's status to wait for the transmit to complete. The
* transmit status is in the FIFO when the XMIT_DONE bit is set. */

do {
     IntrStatus = XIIF_V123B_READ_IISR(InstancePtr->BaseAddress);
}

while ((IntrStatus & XEM_EIR_XMIT_DONE_MASK) == 0);

Please note that the FPGA bitstream is ok because the linux kernel works fine and can mount root file system via NFS so I pretty sure something is wrong in my U-Boot port.

Anybody experienced similar problems?

TIA,
llandre

DAVE Electronics System House - R&D Department

web:   http://www.dave.eu
email: r&d2 at dave-tech.it

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

author
#2 lore raw
Quoted 2 lines

that's why you use opb_emac driver for ll_temac. That's all. Different driver and different ip_core.

I see. I erroneously understood that this driver supports every (t)emac flavours.

Thanks for your help,
llandre

DAVE Electronics System House - R&D Department

web:   http://www.dave.eu
email: r&d2 at dave-tech.it
Quoted 49 lines
Quoted 46 lines

Hi all,

I ported U-Boot 1.3.1 on Avnet MiniModule-FX12 (the repository I'm working with has been patched previously with ML403 patch). Here is my first dirty patch:

http://www.dave.eu/download/misc/mmfx12/mmfx12-0.8.3.patch

U-Boot works fine and it boots correctly from flash, however ethernet interface (LL_TEMAC) does not work.
For example, when I try to perform a TFTP download, the XEmac_PollSend function never returns because the following loop never ends:

/*
* Loop on the MAC's status to wait for the transmit to complete. The
* transmit status is in the FIFO when the XMIT_DONE bit is set. */

do {
     IntrStatus = XIIF_V123B_READ_IISR(InstancePtr->BaseAddress);
}

while ((IntrStatus & XEM_EIR_XMIT_DONE_MASK) == 0);

Please note that the FPGA bitstream is ok because the linux kernel works fine and can mount root file system via NFS so I pretty sure something is wrong in my U-Boot port.

Anybody experienced similar problems?

TIA,
llandre

DAVE Electronics System House - R&D Department

web:   http://www.dave.eu
email: r&d2 at dave-tech.it

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#4 lore raw
Quoted 1 line

What repository are you working from?

U-Boot 1.3.1 cloned last February.

Quoted 1 line

What ML403 patch are you referencing?

http://www.dave.eu/download/misc/mmfx12/ml403.patch
This derives directly from this old patch that has been around since 2005:
http://www.dave.eu/download/misc/mmfx12/4-ml403.2005-10-01.patch
This patch has been applied by my colleague. Then I put my hands on repository and started working on MiniModule port.

Quoted 2 lines

I'm working on a ML403 board at the moment and would be willing to help debug / share fixes for u-boot.

Thanks for your availability.

Quoted 2 lines

I have just started looking at a u-boot port but have been working lots with the 2.6 kernel (using the ACE support).

We did the same. First we worked on the ML403, then we ported our project to MiniModule that will be the base for the final application.

Signature · 5 lines
llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave.eu
email: r&d2 at dave-tech.it
Quoted 55 lines

-----Original Message-----
From: u-boot-users-bounces at lists.sourceforge.net [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of llandre
Sent: Thursday, June 05, 2008 12:15 AM
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] LL_TEMAC on Avnet MiniModule-FX12

Hi all,

I ported U-Boot 1.3.1 on Avnet MiniModule-FX12 (the repository I'm working with has been patched previously with ML403 patch). Here is my first dirty patch:

http://www.dave.eu/download/misc/mmfx12/mmfx12-0.8.3.patch

U-Boot works fine and it boots correctly from flash, however ethernet interface (LL_TEMAC) does not work.
For example, when I try to perform a TFTP download, the XEmac_PollSend function never returns because the following loop never ends:

/*
* Loop on the MAC's status to wait for the transmit to complete. The
* transmit status is in the FIFO when the XMIT_DONE bit is set. */

do {
     IntrStatus = XIIF_V123B_READ_IISR(InstancePtr->BaseAddress);
}

while ((IntrStatus & XEM_EIR_XMIT_DONE_MASK) == 0);

Please note that the FPGA bitstream is ok because the linux kernel works fine and can mount root file system via NFS so I pretty sure something is wrong in my U-Boot port.

Anybody experienced similar problems?

TIA,
llandre

DAVE Electronics System House - R&D Department

web:   http://www.dave.eu
email: r&d2 at dave-tech.it

------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users