Hi Cris72,
Thank you very much for you reply. I guess I miss-understand the source code of small_boot_copier.s.
Besides, I think if I don't have the header in the image file, I can skip the header check by comment the following code directly:
// Check the boot image signature
nextpc return_address_less_4
br read_32b_from_flash
mov temp_data, return_value
movhi expected_value, %hi(VALID_BOOT_SIGNATURE)
ori expected_value, expected_value, %lo(VALID_BOOT_SIGNATURE)
bne temp_data, expected_value, error
// Now we can begin copying the boot record to RAM. This loop
// reads each individual record in the boot record, and copies it
// to the appropriate location in RAM. If the record is a JUMP
// record, the loop breaks and branches to the address indicated
// in the JUMP record.
// Increment flash_ptr by 28 to skip past the boot image header and into
// the real boot record (we already incremented it by 4 when we read the
// signature)
//
// You may wish to do more with the header information than just skip
// past it. If so, this is the place to do that.
addi flash_ptr, flash_ptr, 28
Am I right?
Thanks again.
Derek