How the file coreboot.rom is written on BIOS chip logically? Suppose our BIOS chip is 1 mega bytes. We should read first byte from the beginning of the file and write it to the address zero of BIOS chip and continue this way?
I checked the content of build/coreboot.rom and the last byte was 0x0a!! Which is written probably on the top of our EEPROM. Right? but src/arch/i386/init/ldscript.ld specifies the last byte as 0x00!! SECTIONS { _ROMTOP = 0xfffffff0; . = _ROMTOP; .resetvector . : { *(.reset) . = 15 ; BYTE(0x00); } }
Please help me with this puzzle. Thank you.