Update FW entitlement message to reflect IBM preferred wordings.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
On a ppc64 f18 machine, I see the following error during make install:

 make[3]: Entering directory `powerpc-utils/scripts'
 make[3]: Nothing to be done for `install-data-am'.
  /usr/bin/mkdir -p '/usr/bin'
  /usr/bin/mkdir -p '/usr/bin'
  /usr/bin/mkdir -p '/usr/sbin'
  /usr/bin/mkdir -p '/usr/sbin'
  /usr/bin/install -c amsstat '/usr/bin'
  /usr/bin/install -c amsstat '/usr/bin'
  /usr/bin/install -c update_flash hvcsadmin rtas_dump snap bootlist ofpathname lsdevinfo ls-veth ls-vscsi ls-vdev '/usr/sbin'
 /usr/bin/install: cannot create regular file ‘/usr/bin/amsstat’: File exists
 make[3]: *** [install-dist_binSCRIPTS] Error 1

We seem to have duplicate install rules due to the separate dist_ rules
in scripts/Makefile.am.

Since the dist_*_SCRIPTS rule also implies *_SCRIPTS, we can remove the
non-dist_ versions.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Reviewed-by: <hegdevasant@linux.vnet.ibm.com>
f we're only interested in building the OF tools (nvram, lsprop, etc),
then requiring librtas is a little unnecessary.

This change adds --without-librtas to allow building without librtas
present.

Requires an autoreconf.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

Since this required an autoreconf I am including the diffstat from the
original patch to hopefully make picking out the code changes (and
not updates to to sutoreconf) easier.

 configure.ac          |   19 ++++++++++++++++++-
 src/Makefile.am       |   15 +++++++++------
 src/drmgr/Makefile.am |    2 ++
 3 files changed, 29 insertions(+), 7 deletions(-)
From: Cedric Le Goater <clg@fr.ibm.com>

The nvram is in big endian order. The partition length needs to be
byte-swapped when it is read or written on little endian machines.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
The function keyword is a bashism and it will not be recognized by
other POSIX complaint shell. POSIX syntax does not use function and
mandates the use of parenthesis. Hence change all function definations
in update_flash tool to follow POSIX standard.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
This patch adds support for PowerNV platform.

Code update procedure in both pSeries and PowerNV platform is same.
But return codes and interface to pass image to kernel differs. Also
in PowerNV by default inband code update is allowed. Hence I have
introduced new file (update_flash_nv) rather than updating existing
update_flash command.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
This patch checks for running paltform and if system is in PowerNV
mode it calls update_flash_nv tool.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Update Makefile and spec file to pickup update_flash_nv tool.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Man page update for PowerNV platform.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
snap command uses open call to open the input file and
then uses sysread call to copy content from soure file
to destination. Command hangs if input file is blocked.
This patch uses sysopen with NONBLOCK flag instead of
regular open call so that we don't hang.

Signed-off-by: Bharani C.V. <bharanve@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
From: Paul Mackerras <paulus@samba.og>

Add the ability to convert a logical device path for
a virtio block device to its Open Firmware device path.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Add -h flag to update_flash and update_flash_nv tool.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Fix oops_log_info header in the oops record to ensure the header
size is same across all processors.

Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Presently update_flash_nv is not executable. So if we try to
execute this script we hit "Permission denied" error. This
patch makes update_flash_nv as executable.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>