1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980SPI NOR FlashFlash offset+--------------------------------------------------+| 0x000000 || TPL || || +----------------------------------------------+ || | 0x0000 | || | _start | || | | || | b reset | || | mtc0 ... | || +----------------------------------------------+ || || +----------------------------------------------+ || | 0x0040 | || | TPL_INFO | || | | || | magic = TPL_INFO_MAGIC | || | size = __image_copy_len | || +----------------------------------------------+ || || +----------------------------------------------+ || | 0x0200 ~ 0x04ff | || | MIPS Exception Vector | || +----------------------------------------------+ || || +----------------------------------------------+ || | 0x0500 | || | reset: | || | | || | TPL真正的初始化代码 | || | DDR初始化等 | || | ... | || +----------------------------------------------+ || || TPL结束位置 = tpli->size |+--------------------------------------------------++--------------------------------------------------+| || 64 Bytes || || ih_magic || ih_size || ih_load = 0x80100000 || ih_ep = 0x80100000 || ih_os || ih_comp || ... |+--------------------------------------------------++--------------------------------------------------+| SPL Payload || || u-boot-spl-ddr.bin || |+--------------------------------------------------++--------------------------------------------------+| U-Boot proper Legacy Image Header || 64 Bytes || || ih_magic || ih_size || ih_load = 0x80200000 || ih_ep = 0x80200000 || ih_os = IH_OS_U_BOOT || ih_comp = IH_COMP_LZMA || ... |+--------------------------------------------------++--------------------------------------------------+| U-Boot proper Payload || || 压缩后的 U-Boot || u-boot.bin.lzma || |+--------------------------------------------------+