summaryrefslogtreecommitdiffstats
path: root/tools/lpc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* tools: add progress implementationPatrick Venture2019-06-281-0/+10
| | | | | Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I9da1674d6cbc688efc7bab0e033788d6ee4694f7
* tools: remove phosphor-ipmi-blobs dependencyPatrick Venture2019-06-271-0/+5
| | | | | | | | | | The host tool depended on the BMC header: firmware_handler.hpp because it defined the flags. This header depends on phosphor-ipmi-blobs, therefore the host-tool depends on this. Move the flags into a separate common header file and snip this dependency. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Id2ad33a1611c02605a1ed5c695429d0451eb98d4
* tools: implement lpc supportPatrick Venture2019-06-241-13/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tested: Verified this works for a Nuvoton BMC. EXTRA_OECONF_append_xxx = " \ --enable-static-layout \ --enable-lpc-bridge \ --enable-nuvoton-lpc \ --enable-reboot-update \ MAPPED_ADDRESS=0xc0008000 \ " /tmp/phosphor_ipmi_flash_tool \ --command update \ --interface ipmilpc \ --image image-bmc \ --sig image-bmc.sig \ --type static \ --address 0xfedc1000 \ --length 0x1000 Sending over the firmware image. trying to open blob sending writeMeta caught exception EFBIG returned! sending writeMeta writemeta sent Sending over the hash file. trying to open blob sending writeMeta caught exception EFBIG returned! sending writeMeta writemeta sent Opening the verification file Committing to /flash/verify to trigger service Calling stat on /flash/verify session to check status other success Returned success succeeded Opening the update file Committing to /flash/update to trigger service Calling stat on /flash/update session to check status running Opening the cleanup blob Exception received: blob exception received: Received IPMI_CC: 255 Signed-off-by: Patrick Venture <venture@google.com> Change-Id: If866303e95e9b6a19dc8b20a99bb89fd66f95eeb
* tools: specify parameter size limits for LPCPatrick Venture2019-06-201-2/+2
| | | | | Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Ic7049ffc2a3c4e7dad3356e11f48f6e5ed8eeca1
* tools: lpc: start implementation, send metadataPatrick Venture2019-01-221-0/+23
| | | | | | | | | | With the LPC interface, send the window information to the BMC. Tested: Ran on test system and verified window mapped via ioctl to driver as expected. Change-Id: I7ffac6b52205b215fd698a574d098b505091c3d4 Signed-off-by: Patrick Venture <venture@google.com>
* tools: put all host-side code into host_tool namespacePatrick Venture2019-01-041-0/+5
| | | | | | | | To avoid confusion and organize the code itself more cleanly, place the host-side code into its own namespace. Change-Id: I573eb0494eb59874adb1d1eadc502499e928e396 Signed-off-by: Patrick Venture <venture@google.com>
* tools: start implementing data interfacePatrick Venture2018-12-111-0/+23
The host must provide multiple data interfaces. Each data interface is responsible for configuring its data pathway and sending the contents via this pathway, as well as any flow control. Change-Id: If856519536d01043e69c45044fcd0ad525592486 Signed-off-by: Patrick Venture <venture@google.com>
OpenPOWER on IntegriCloud