some question about serial.c

xiangfu xiangfu at openmoko.org
Tue Jul 22 17:43:11 CEST 2008


i want write a kboot-stage1 to load the kboot kernel  from NAND to RAM.
then run the kboot kernel .
about kboot you can see http://kboot.sourceforge.net/ done by Werner.


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
>
>
> On Tue, Jul 22, 2008 at 6:29 PM, Andy Green <andy at openmoko.com> 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 :
>> | xiangfu at xiangfu-laptop:~/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
>>
>> - -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-----
>>
>>
>>     
>
>   





More information about the openmoko-kernel mailing list