summaryrefslogtreecommitdiffstats
path: root/tools/test/tools_lpc_unittest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* tools: add progress implementationPatrick Venture2019-06-281-1/+10
| | | | | Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I9da1674d6cbc688efc7bab0e033788d6ee4694f7
* tools: implement lpc supportPatrick Venture2019-06-241-4/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| | | | | Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Ic7049ffc2a3c4e7dad3356e11f48f6e5ed8eeca1
* tool: LPC data handler needs an address and lengthPatrick Venture2019-06-191-1/+1
| | | | | | | | The host needs to have memory set aside for this purpose, and this enables the caller to provide those values. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: If40ec3b08bd1932cba91d3f770c7fde6f280463d
* test: cleanup by moving tool tests into subfolderPatrick Venture2019-06-191-0/+37
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I15b3514d095d9fc770a1b0fe125eb48d96ada2c8
OpenPOWER on IntegriCloud