OpenCores
no use no use 1/1 no use no use
problem in tboot
by heyongzhen on Feb 23, 2012
heyongzhen
Posts: 2
Joined: May 24, 2010
Last seen: Aug 15, 2016
hi all,
My board is Ordb2a-ep4ce22,bootloader is orpmon,when i use tboot ,it works well sometimes and i am sure my tftpserver works well. But in most cases,it stop at:
NetTxPacket begin setup
eth_init: monitor disabled at startup
ARP broadcast 1

My steps:
eth_conf 192.168.3.222 255.255.255.0 192.168.3.1
tftp_conf vmlinux.bin 192.168.3.188
tboot

Thanks for helping
RE: problem in tboot
by heyongzhen on Feb 28, 2012
heyongzhen
Posts: 2
Joined: May 24, 2010
Last seen: Aug 15, 2016
Who can explain this:(in function eth_send() /orpmon/drivers/eth.c)

BUG with current implementation - constantly getting carrier sense
lost, and deferred indication, so ignore it for now.
if ( bd[tx_last].len_status & 0xf)
{
printf("eth_send: carrier sense lost (txbd: 0x%x), deferred, retrying\n",
bd[tx_last].len_status);
sleep(1);
goto retry_eth_send;
}
Thanks for helping
RE: problem in tboot
by yannv on Mar 1, 2012
yannv
Posts: 20
Joined: Feb 6, 2009
Last seen: Jan 14, 2021
I have found an issue in the ORDB2A board where the Ethernet Phy (KSZ8021RNL) does not always reset in the autonegotiation / 100Mbps mode. Luckily this only affects the default values of some phy registers and the registers can be reconfigured from orpmon.

These commands should reenable autonegotiation of 100Mbps mode:
set_phy_reg 4 0x1e1
set_phy_reg 0 0x3300
Register 4 enables the 100Mbps modes in autonegotiation, while register 0 enables negotiation itself.

After running those two commands, eth_conf, tftp_conf and tboot should work normally. Sorry for the trouble.
RE: problem in tboot
by derRichard on Mar 1, 2012
derRichard
Posts: 3
Joined: Feb 29, 2012
Last seen: May 27, 2012
I have found an issue in the ORDB2A board where the Ethernet Phy (KSZ8021RNL) does not always reset in the autonegotiation / 100Mbps mode. Luckily this only affects the default values of some phy registers and the registers can be reconfigured from orpmon.

These commands should reenable autonegotiation of 100Mbps mode:
set_phy_reg 4 0x1e1
set_phy_reg 0 0x3300
Register 4 enables the 100Mbps modes in autonegotiation, while register 0 enables negotiation itself.

After running those two commands, eth_conf, tftp_conf and tboot should work normally. Sorry for the trouble.

At least on my boards the above commands are invalid.

set_phy_reg 0x4 481
set_phy_reg 0x0 13056

...make tftp function! :-)

Thanks,
//richard
no use no use 1/1 no use no use
© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.