[Skiboot] [PATCH v2] external/gard: Print an error if run on an FSP system

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Mon Aug 7 14:51:43 AEST 2017


On 08/03/2017 12:38 PM, Cyril Bur wrote:
> Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
> ---
>  external/gard/gard.c | 15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)
>
> diff --git a/external/gard/gard.c b/external/gard/gard.c
> index 4b26a3b8..55e2a924 100644
> --- a/external/gard/gard.c
> +++ b/external/gard/gard.c
> @@ -43,7 +43,9 @@
>
>  #define CLEARED_RECORD_ID 0xFFFFFFFF
>
> -#define FDT_ACTIVE_FLASH_PATH "/proc/device-tree/chosen/ibm,system-flash"
> +#define FDT_PATH "/proc/device-tree"
> +#define FDT_FSP_NODE FDT_PATH"/fsps"

How about checking "ibm,system-flash" property and if that doesn't exist then 
throw an error?

-Vasant



More information about the Skiboot mailing list