RE: [U-Boot-Users] UBoot hangs in serial_putc on mpc8xx

I have just flashed U-Boot.
Which board configuration?
it is a custom board with a mpc8xx. I think that most of the config is board independant. ( Prog of the BRG, Prog of the CPM ... ) U-Boot finds 9600 for the baudrate in the env. So I wonder where board specific items can make it hang.
It starts but it seems it hangs in serial_putc ( in the while at the end
of
the function ). Any idea about what to look ?
With that little information you provide? Sorry...
Well, I thought ( and hoped ) that I made a standard mistake somewhere ...
Chris

In message D96E2AFA0DF3D211B13900902745494803736272@helios.gnv.tcc.thomson-csf.com you wrote:
it is a custom board with a mpc8xx.
Then the answer to your question is simple: you made some errors in your port of U-Boot to your hardware. I know, this is just an anwer to your question, not a solution to your problem.
I think that most of the config is board independant. ( Prog of the BRG, Prog of the CPM ... )
You are wrong. A LOT of the configuration parameters are hardware specific.
U-Boot finds 9600 for the baudrate in the env. So I wonder where board specific items can make it hang.
Basicly anything. Bad clock configuration for example.
With that little information you provide? Sorry...
Well, I thought ( and hoped ) that I made a standard mistake somewhere ...
You did: not providing enough information.
Wolfgang Denk

The 8xx BRG code is has an interesting side effect if the cpu clock rate is not properly detected... the divisor will overflow the allowed bitwidth and an invalid value will get put brgc1
Hardcode CONFIG_8xx_GCLK_FREQ and/or brgc1 in speed.c and serial.c
I am working on putting together a fairly extensive 8xx patch to address this and many other problems.
participants (3)
-
Christophe.LINDHEIMER@fr.thalesgroup.com
-
nyet@mrv.com
-
Wolfgang Denk