* [U-Boot] LXT972 issue on MPC8247: tx error
@ 2009-03-16 8:39 Sauce.Cheng
2009-03-16 12:15 ` Jerry Van Baren
0 siblings, 1 reply; 3+ messages in thread
From: Sauce.Cheng @ 2009-03-16 8:39 UTC (permalink / raw)
To: u-boot
my code run on the board reveal the info as following:
Board: Motorola MPC8272ADS
DRAM: 32 MB
FLASH: 512 kB
In: serial
Out: serial
Err: serial
Net: FCC1 ETHERNET
bb_miiphy_write()
Hit any key to stop autoboot: 0
=>
after i enter words like "ping 192.168.0.100",show something like this
PS. the line start as "chengmo" are debug infos
chengmo : fec_init
chengmo 0 : rtx.txbd[0].cbd_sc : 00004c00
chengmo 1 : rtx.txbd[1].cbd_sc : 00004c00
Using FCC1 ETHERNET device
chengmo : fec_send
chengmo_b : rtx.txbd[0].cbd_sc : 00004c00
chengmo_a : rtx.txbd[0].cbd_sc : 0000ec00
fec: tx error
chengmo : fec_send
fec: tx buffer not ready
ping failed; host 192.168.0.100 is not alive
eventually, show me that "fec: tx buffer not ready."
this prompt is in fec_send() in ether_fcc.c
i am not sure that at which the mistake happened, because the flow of
initializing is:
eth_initialize() => phy_reset()
in eth_initialize(), insert the struct into the list of devices.
phy_reset(), emulates MII transmit something to PHY, is it right? here i am
not sure about it.
after i input PING command, it will run by sequence fec_init(), fec_send()
in fec_init(), configure some register about FCC, and setup ethernet buffer
discriptors and allocate space for buffer used by Tx and Rx, then initialize
Parameter RAM. that' all, something wrong ?
where the mistakes could happen ? i really cant find it.
--
View this message in context: http://www.nabble.com/LXT972-issue-on-MPC8247%3A-tx-error-tp22533735p22533735.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] LXT972 issue on MPC8247: tx error
2009-03-16 8:39 [U-Boot] LXT972 issue on MPC8247: tx error Sauce.Cheng
@ 2009-03-16 12:15 ` Jerry Van Baren
2009-04-03 2:54 ` Sauce.Cheng
0 siblings, 1 reply; 3+ messages in thread
From: Jerry Van Baren @ 2009-03-16 12:15 UTC (permalink / raw)
To: u-boot
Hi Sauce.Cheng,
Sauce.Cheng wrote:
> my code run on the board reveal the info as following:
>
> Board: Motorola MPC8272ADS
> DRAM: 32 MB
> FLASH: 512 kB
> In: serial
> Out: serial
> Err: serial
> Net: FCC1 ETHERNET
> bb_miiphy_write()
> Hit any key to stop autoboot: 0
> =>
>
> after i enter words like "ping 192.168.0.100",show something like this
> PS. the line start as "chengmo" are debug infos
>
> chengmo : fec_init
> chengmo 0 : rtx.txbd[0].cbd_sc : 00004c00
> chengmo 1 : rtx.txbd[1].cbd_sc : 00004c00
> Using FCC1 ETHERNET device
> chengmo : fec_send
> chengmo_b : rtx.txbd[0].cbd_sc : 00004c00
> chengmo_a : rtx.txbd[0].cbd_sc : 0000ec00
> fec: tx error
> chengmo : fec_send
> fec: tx buffer not ready
> ping failed; host 192.168.0.100 is not alive
>
> eventually, show me that "fec: tx buffer not ready."
> this prompt is in fec_send() in ether_fcc.c
[snip]
> where the mistakes could happen ? i really cant find it.
Your FEC (Tx) most likely is not being clocked. Check your QE clock
configurations, verify that your PHY/MAC/??? is generating the correct
clocks, etc.
FWIIW, I had this happen on my board because the H/W designer strapped
the PHY to power up with the clocks disabled (lowers power). I have to
flip a bit in a PHY register to enable clocks. (I'm using a different
processor and different PHY, YMMV.)
HTH,
gvb
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] LXT972 issue on MPC8247: tx error
2009-03-16 12:15 ` Jerry Van Baren
@ 2009-04-03 2:54 ` Sauce.Cheng
0 siblings, 0 replies; 3+ messages in thread
From: Sauce.Cheng @ 2009-04-03 2:54 UTC (permalink / raw)
To: u-boot
thanks Jerry Van Baren-7
sorry about my postpone replying
the problem have solved some days ago, thanks for your suggestion about
clocks configurate, though it's
not clocks' bussiness.
the register cmx_uar is mistake, i have fixed it up by manual. everything is
done
later i will take the details of this problem:s
best regards
thanks!
Sauce
--
View this message in context: http://www.nabble.com/LXT972-issue-on-MPC8247%3A-tx-error-tp22533735p22861063.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-03 2:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-16 8:39 [U-Boot] LXT972 issue on MPC8247: tx error Sauce.Cheng
2009-03-16 12:15 ` Jerry Van Baren
2009-04-03 2:54 ` Sauce.Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox