[ELDK] confused with the bdt structure
林志平
solyn123 at gmail.com
Fri Nov 13 11:11:11 CET 2009
I am porting uboot2009.08 under ELDK4.2 to our custom mpc85xx board.
everything goes on well until:
bd->bi_intfreq = gd->cpu_clk; /* Internal Freq, in Hz */
bd->bi_busfreq = gd->bus_clk; /* Bus Freq, in Hz */
in lib_ppc/board.c
and I disregard this by
// bd->bi_intfreq = gd->cpu_clk; /* Internal Freq, in Hz */
// bd->bi_busfreq = gd->bus_clk; /* Bus Freq, in Hz */
But the output of the console changes to garbled, which I can not read.
And later I inserted a dead loop by:
while(1)
{}
bd->bi_intfreq = gd->cpu_clk; /* Internal Freq, in Hz */
bd->bi_busfreq = gd->bus_clk; /* Bus Freq, in Hz */
And the console can work correctly, and I am a little confused by the
result;
I know the board info struct bdt is used to offer info to the linux kernel,
I tried a lot and it seems that value bd->bi_intfreq and bd->bi_busfreq will
cause problems.
Because I am not sure if my ddr2 memory can work or not, so I wonder if it
has anything to do with my memory.
More information about the eldk
mailing list