Dennis.Yxun wrote:
just curious about what u wana do? test nand?

I'm also interested in the low level bootstrap procedure
so I pull the serial.c code from u-boot, but don't test it through

here is the patch~

before doing, must correct following error
since i don't how to fix it
(either replace get_PLLCLK function? or find a proper compile method?...)

~/src/speed.c:72: undefined reference to `__aeabi_uidiv'
~/src/speed.c:75: undefined reference to `__aeabi_uidiv'

hope helps

i change code
from:
   if (pllreg == MPLL) {
     return ( 2 * m * (CONFIG_SYS_CLK_FREQ / (p << s)) );
   }
   else
     return ( m * (CONFIG_SYS_CLK_FREQ / (p << s) ) );

to:
   if (pllreg == MPLL) {
     return ( 2 * m * (CONFIG_SYS_CLK_FREQ >> ((p << s) >> 1)) );
   }
   else
     return ( m * (CONFIG_SYS_CLK_FREQ >> ((p << s) >> 1)) );

then there are no error,
i don't know how to receive the serial output,
how to config my OS to  receive the serial output?

On Tue, Jul 22, 2008 at 6:29 PM, Andy Green <[EMAIL PROTECTED]> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Somebody in the thread at some point said:
| in serial.c file there use :
| --S3C24X0_UART
| --gd
| --get_PCLK()
|
| use :
| [EMAIL PROTECTED]:~/cworkspace/u-boot$ find  -type f |xargs grep
| S3C24X0_UART
| try to find where "S3C24X0_UART" declare. but i find nothing :-(
|
| i want know where them declare.


S3C24X0_UART: include/s3c24x0.h

gd:  funny one it seems type declared gd_t in
include/asm-arm/global_data.h and instantiation as #define using
arch-dependent register for speed.

get_PCLK: cpu/arm920t/s3c24x0/speed.c

to grep around I use like

~ grep get_PCLK * -R <--------------------------------this is more usefull :-)

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiFtogACgkQOjLpvpq7dMoeJQCfShKgdx4itnLrrHMWxp093C0N
ggwAni1U1I+CQTDbzVxSbiB1cQf26CS3
=y0WQ
-----END PGP SIGNATURE-----





Reply via email to