src/platform/*: use pkgs.writeText for custom.fmap files
parent
a499113a7a
commit
c72e1a55be
@ -1,18 +0,0 @@
|
||||
#
|
||||
# Note: on x86 platforms the SPI flash is mapped into or copied into
|
||||
# the topmost X bytes of memory, and the very topmost word of memory
|
||||
# is the "reset vector" which points to the BIOS entry point. Because
|
||||
# of this we must protect the TOPMOST half of memory; if an attacker
|
||||
# controls the reset vector and any other chunk of the flash, the game
|
||||
# is over.
|
||||
#
|
||||
FLASH@0 0x1000000 {
|
||||
BIOS@0 0x1000000 {
|
||||
# read-write zone
|
||||
NORMAL(CBFS) @ 0x400 0x7FFC00
|
||||
|
||||
# read-only zone (eventually)
|
||||
FMAP @ 0x800000 0x400
|
||||
FALLBACK(CBFS) @ 0x800400 0x7FFC00
|
||||
}
|
||||
}
|
@ -1,22 +0,0 @@
|
||||
# layout for firmware when flash address space matches used address layout
|
||||
# +-------------+ <-- 0
|
||||
# | unspecified |
|
||||
# +-------------+ <-- BIOS_BASE
|
||||
# | bootblock |
|
||||
# +-------------+ <-- BIOS_BASE + 128K
|
||||
# | FMAP |
|
||||
# +-------------+ <-- BIOS_BASE + 128K + FMAP_SIZE
|
||||
# | CBFS |
|
||||
# +-------------+ <-- ROM_SIZE
|
||||
|
||||
FLASH@0 0x1000000 {
|
||||
# read-only zone (eventually)
|
||||
BOOTBLOCK 128K
|
||||
FMAP @ 0x20000 0x400
|
||||
# gap here from 0x20400 to keep FALLBACK 4k-aligned
|
||||
FALLBACK(CBFS) @ 0x21000 0x7DF000
|
||||
|
||||
# read-write zone
|
||||
NORMAL(CBFS) @ 0x800000 0x7DF000
|
||||
MISC @ 0xFDF000 0x21000 # 132k
|
||||
}
|
@ -1,17 +0,0 @@
|
||||
#
|
||||
# Note: on x86 platforms the SPI flash is copied into the topmost X
|
||||
# bytes of memory, and the very topmost word of memory is the "reset
|
||||
# vector" which points to the BIOS entry point. Because of this we
|
||||
# must protect the TOPMOST half of memory; if an attacker controls the
|
||||
# reset vector and any other chunk of the flash, the game is over.
|
||||
#
|
||||
FLASH@0 0x1000000 {
|
||||
BIOS@0 0x1000000 {
|
||||
# read-write zone
|
||||
NORMAL(CBFS) @ 0x400 0x7FFC00
|
||||
|
||||
# read-only zone (eventually)
|
||||
FMAP @ 0x800000 0x400
|
||||
FALLBACK(CBFS) @ 0x800400 0x7FFC00
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue