cros_bundle_firmware: Add default flashmap for link
Provide a default flashmap for link.
This has just two sections: the coreboot region and the ME firmware
region.
BUG=chromium-os:36112
TEST=manual
Build and boot upstream U-Boot on link. See that it creates a valid
image which boots on link.
Change-Id: If54c11c2a99083d6b75c99e4b27e1ef109998153
Reviewed-on: https://gerrit.chromium.org/gerrit/38402
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Commit-Ready: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
diff --git a/host/lib/bundle_firmware.py b/host/lib/bundle_firmware.py
index 310535c..016cfe7 100644
--- a/host/lib/bundle_firmware.py
+++ b/host/lib/bundle_firmware.py
@@ -60,7 +60,8 @@
# These are used when no fdt is provided (e.g. upstream U-Boot with no
# fdt. Each is a list of nodes.
default_flashmaps = {
- 'tegra' : [{
+ 'tegra' : [
+ {
'node' : 'ro-boot',
'label' : 'boot-stub',
'size' : 512 << 10,
@@ -94,6 +95,22 @@
'type' : "blob boot,dtb",
'required' : True,
}
+ ],
+ 'link' : [
+ {
+ 'node' : 'si-all',
+ 'label' : 'si-all',
+ 'reg' : '%d %d' % (0x00000000, 0x00200000),
+ 'type' : 'ifd',
+ 'required' : True,
+ }, {
+ 'node' : 'ro-boot',
+ 'label' : 'boot-stub',
+ 'reg' : '%d %d' % (0x00700000, 0x00100000),
+ 'read-only' : True,
+ 'type' : 'blob coreboot',
+ 'required' : True,
+ }
]
}