
In message c002eb610512280133q562c8e91w@mail.gmail.com you wrote:
1 where can i find the branch instruction "ba 0xfff80000" in u-boot-1.1.3 code? it seems it is not in start.s
As Stefan Roese already pointed out you should NOT use old code (U-Boot 1.1.3) for any current work. Please use CURRENT code (top of tree in the git repository), or at least the latest released version (1.1.4).
For the code please see cpu/ppc4xx/resetvec.S
2 As we know, before u-boot is written to flash the first time, there is nothing in flash. when we write u-boot in flash from addr 0xfff80000, how is the branch instruction written to addr 0xfffffffc which is not neigbour to u-boot code body?
It is part of the U-Boot image. In your case, the binary image will be exactly 512 kB in size, i. e. cover the whole area from 0xFFF80000 to 0xFFFFFFFF.
Best regards,
Wolfgang Denk