Skip to content

Instantly share code, notes, and snippets.

@hanetzer
Created August 17, 2019 06:32
Show Gist options
  • Save hanetzer/24701e7beacf62d907452ecd78bc525f to your computer and use it in GitHub Desktop.
Save hanetzer/24701e7beacf62d907452ecd78bc525f to your computer and use it in GitHub Desktop.
stdin
# 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 0x4000000 {
part 0x8000
BIOS@0x8000 0x3ff0000 {
BOOTBLOCK 128K
FMAP@0x20000 0x1000
COREBOOT(CBFS)@0x29000 0x3fc0000
}
BACKUP_PART@0x3ff8000 0x8000
}
@ArthurHeymans
Copy link

ArthurHeymans commented Aug 17, 2019

# 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 0x4000000 {
	part 0x8000
	BIOS {
		BOOTBLOCK 128K
		FMAP 0x1000
		COREBOOT(CBFS)
	}
	BACKUP_PART 0x8000
}

likely works too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment