diff options
author | Joel Stanley <joel@jms.id.au> | 2015-02-03 09:51:00 +1030 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-05 12:29:51 +1100 |
commit | 698044a77116bff651da24b30a773f8b963839f0 (patch) | |
tree | 877b601dfe9dc12a7bf923a358ada1b23ecf6885 /platforms/astbmc/habanero.c | |
parent | 31e6f3938b0789b0c9457979f422dfd675c4c2d4 (diff) | |
download | skiboot-698044a77116bff651da24b30a773f8b963839f0.zip skiboot-698044a77116bff651da24b30a773f8b963839f0.tar.gz skiboot-698044a77116bff651da24b30a773f8b963839f0.tar.bz2 |
astbmc: Allow loading of payload from flash
To date BMC platforms have had their payload built in to the skiboot
binary. This patch adds the option of loading from a flash partition
instead.
This has been tested on palmetto with a separate skiboot and
kernel+rootfs partition. In the future we may have separate kernel and
rootfs, which should just work. For now this is what we see when booting:
[10648940943,5] INIT: Kernel loaded, size: 15728640 bytes (0 = unknown
preload)
[10649094578,5] INIT: 32-bit kernel entry at 0x2001015c
[10649170607,3] PLAT: No ROOTFS partition in PNOR
If the partition named cannot be found, the core loading logic will fall
back to using the built-in payload. In this case, the user gets the
following messages:
[2214557191,3] PLAT: No KERNEL partition in PNOR.
[2220486159,5] INIT: platform kernel load failed.
[2221293286,5] Using built-in kernel.
[2265861935,5] INIT: Kernel loaded, size: 14706638 bytes (0 = unknown
preload).
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms/astbmc/habanero.c')
-rw-r--r-- | platforms/astbmc/habanero.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platforms/astbmc/habanero.c b/platforms/astbmc/habanero.c index d442d1f..a19aafd 100644 --- a/platforms/astbmc/habanero.c +++ b/platforms/astbmc/habanero.c @@ -49,4 +49,5 @@ DECLARE_PLATFORM(habanero) = { .external_irq = astbmc_ext_irq, .cec_power_down = astbmc_ipmi_power_down, .cec_reboot = astbmc_ipmi_reboot, + .load_resource = pnor_load_resource, }; |