some question about phase2.c
xiangfu
xiangfu at openmoko.org
Tue Aug 19 07:37:21 CEST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andy Green wrote:
> Somebody in the thread at some point said:
> |
> |
> | Andy Green wrote:
> |> Somebody in the thread at some point said:
> |> | Hi Andy:
> |> |
> |> | void (*phase2)(void) = (void
> |> (*)(void))((int)bootloader_second_phase +
> |> | TEXT_BASE);
> |> | where here add TEXT_BASE? i don't understand.
> |> | i see the new patch there is no "+ TEXT_BASE"
> |
> |> TEXT_BASE is where we copy the qi image to in SDRAM, 0x33000000. Before
> |
> | i can not find where the code that we move the QI from steppingstone 4K
> | to SDRAM.
>
> We don't, we read it all again from the NAND, same as the CPU read it
> from NAND to get the 4KBytes into the steppingstone for us to start.
>
> /*
> * We got the first 4KBytes of the bootloader pulled into the
> * steppingstone SRAM for free. Now we pull the whole bootloader
> * image into SDRAM.
>
> ...
>
> /* We randomly pull 24KBytes of bootloader */
> if (nand_read_ll((unsigned char *)TEXT_BASE, 0, 24 * 1024) < 0)
> goto unhappy;
>
i should read the code you write more carefully, thanks Andy.
ignore my last reply.
> currently we pull fixed 24KByte area from start of NAND into TEXT_BASE
> in start_qi.c.
>
> -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEVAwUBSKpcERFuNemPXNFjAQLcMgf/YuXeF1ZeyqMwFFFBF1H1KbKvuWYacjSz
pb5ovhMNyQevbAYhjmUKQwxvHXksnDDjvCxQG2t0TzpMZkfhXcV3Dq2KxbIVeobf
s+vyVDDGgr4O/h7XteCZNOMxHm0HFiGou4J1WMxLvpABwnGnwthfgrMm6m4PwHEy
C+Mio6ydlPQjzaq41C0ALps31XE674rwEriscUNKm4pl/mkxjDPVrGQoCEPxhl8z
vZpSlGtlWoIImt/pRgikiXLSiieWTgYVnjDMmQOO0ZNQUX9H64+V4Z0HuMKzNlQz
05E27ssOFquuOO5yqCFDKfIi4iqth6Nsx/0870u1JoUQRrr1sGOKTw==
=g2cY
-----END PGP SIGNATURE-----
More information about the openmoko-kernel
mailing list