summaryrefslogtreecommitdiffstats
path: root/utils/bcmflash/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Build: Cleanup additional static analysis issues. (#230)Evan Lojewski2021-06-191-2/+0
|
* build: Fix a number of compiler issues when building utils with gcc. (#208)Evan Lojewski2021-02-061-6/+6
|
* bcmflash: Print additional information about the firmware configuration. (#182)Evan Lojewski2020-11-271-13/+50
|
* bcmflash: Fix a regression that disabled the eth target. (#167)Evan Lojewski2020-11-081-1/+1
|
* build: Enable builds under FreeBSD (#164)Evan Lojewski2020-11-071-1/+5
| | | | | This fixes build related issues when attempting to compile firmware and tools under FreeBSD. Note: Host tools have not been ported for raw register access. Note: The Linux specific ethtool APIs are not available under FreeBSD, and so -t eth is not supported under FreeBSD.
* build: Cleanup various include files. (#163)Evan Lojewski2020-11-071-8/+0
|
* bcmflash: Print SMBus information. (#159)Evan Lojewski2020-11-011-0/+4
|
* bcmflash: Create fully valid firmware images for supported targets. (#158)Evan Lojewski2020-11-011-16/+6
| | | | - Use captured Info and Info2 sections for real firmware images. - Include valid VPD information when creating full fw images.
* bcmflash: Allow specifying a new MAC address for each port. (#157)Evan Lojewski2020-11-011-4/+78
|
* bcmflash: Enable extracting raw vpd information. (#156)Evan Lojewski2020-11-011-0/+16
|
* bcmflash: Parse VPD data in the code directory if it exists. (#138)Evan Lojewski2020-10-111-2/+14
|
* bcmflash: Add ability to create full firmware images. (#135)Evan Lojewski2020-10-091-26/+110
| | | | | * bcmflash: Add ability to create full firmware images. Co-authored-by: Richard Hughes <richard@hughsie.com>
* bcmflash: Refactor bcmflash to cleanup IO code. (#127)Evan Lojewski2020-10-041-84/+103
|
* bcmflash: Enable reading/writing firmware using the ethtool apis. (#126)Evan Lojewski2020-10-031-3/+26
|
* bcmflash: Autodetect flash size. (#125)Evan Lojewski2020-10-031-10/+14
|
* bcmflash: Initial refactor of bcmflash to simplify code (#121)Evan Lojewski2020-09-301-377/+300
| | | | | | * bcmflash: refactor stage1 dumping code. * bcmflash: refactor stage2 dumping code. * bcmflash: refactor ape, info and cd dumping code. * bcmflash: refactor io code.
* stage1: Add a fixed-location version string and version number. (#118)Evan Lojewski2020-09-261-1/+37
| | | | | | | | Similar to the proprietary firmware, add a version string pointer 8 bytes into the firmware image. Unlike the proprietary firmware, the version number is also stored 12 bytes into the firmware image. This closes GH-114
* ape: Fix ape on-disk format to match NVM endianness. (#115)Evan Lojewski2020-09-251-3/+6
| | | This closes GH-113
* bcmflash: Fix APE endianness when writing to a file. (#110)Evan Lojewski2020-09-221-50/+35
| | | | | | | | | Ensure that a newly-updated APE image is swapped as required when writing to a file in addition to NVM. This has been tested as working by (1) extracting the firmware.fw file from nvm (2) editing the firmware.fw file and adding in ape-port0.bin (3) Writing firmware.fw back to hardware.
* bcmflash: Fixup the Code Directory CRC handling. (#109)Evan Lojewski2020-09-221-1/+14
| | | | | | | - Printout the code directory crc when dumping images. - Don't save the code directory crc when extracting images. - Fixup the code directory crc when replacing the ape image. Closes GH-108
* utils: Cleanup error messages when a pci device could not be opened. (#107)Evan Lojewski2020-09-211-1/+1
|
* bcmflash: Read the entire flash contents (#106)Richard Hughes2020-09-211-1/+1
| | | | | | | | * bcmflash: Read the entire flash contents The AT45DB041D is used on the Dell KH08P I have here, which is configured as 2048 pages of 256 bytes. The standalone PCI card also contains large option ROM modules and this means only reading the first 0x40000 bytes misses some of the code directory sections.
* coverity: Fix issues found with coverity (#79)Evan Lojewski2020-04-131-1/+1
|
* clang-format: Enable additional projects and re-format. (#61)Evan Lojewski2020-03-211-162/+118
|
* build: Add version information to output files. (#52)Evan Lojewski2020-03-011-2/+6
|
* bcmflash; Add --nvm-recovery to reset the NVM config values when ↵Evan Lojewski2019-08-031-1/+32
| | | | autodiscovery fails.
* Update the bcmflash tool to work with multiple functions, matching the ↵Evan Lojewski2019-07-081-2/+10
| | | | behaviour of bcmregtool
* SPlit the MIPS hal from the APE hal in the simulation code.Evan Lojewski2019-06-291-0/+5
|
* Fix APE flashing code.Evan Lojewski2019-06-111-6/+6
|
* Fix printout when unable to opne stage1/ape files.Lojewski, Evan2019-05-121-3/+3
|
* Initial implimentation to update APE entry in an existing fw image.Lojewski, Evan2019-05-121-14/+104
|
* Remove additional system includesLojewski, Evan2019-05-111-1/+1
|
* REmove old pci_config.h files.Evan Lojewski2019-04-191-1/+0
|
* bcmflash: fix code directory extraction.Evan Lojewski2019-03-251-2/+2
|
* Enable unlocking all nvm arbitration. Add restoring a raw binary file. Add ↵Evan Lojewski2019-02-261-7/+78
| | | | additional printings.
* Add the ability to write modified stage1 firmware back to nvmEvan Lojewski2019-02-231-0/+14
|
* Use save_to_file routine for writing modified fw image.Evan Lojewski2019-02-231-10/+1
|
* Add the ability to update the stage1 payload in a firmware file.Evan Lojewski2019-02-231-13/+83
|
* Update stage1 to load stage2 and report the status.Evan Lojewski2019-02-231-3/+3
|
* Add checking stage1 / stage2 crc and reporting if an error exists.Evan Lojewski2019-02-231-43/+57
|
* Add extracting of stage1, stage2 code.Evan Lojewski2019-02-231-7/+24
|
* Begin adding support for saving fw backups.Evan Lojewski2019-02-221-9/+85
|
* Fix parsing of the power budget from nvm.Evan Lojewski2019-02-161-4/+32
|
* Improve power budget printout.Evan Lojewski2019-02-161-6/+7
|
* Move common simulator init code to HAL.cppEvan Lojewski2019-02-151-79/+1
|
* Begin addition support for various options - allow reading from file or ↵Evan Lojewski2019-02-141-74/+168
| | | | hardware.
* Add printing of additional nvm header information.Evan Lojewski2019-02-121-1/+47
|
* Update nvrma format to more closely match ortega spec.Evan Lojewski2019-02-111-2/+2
|
* Do a manual clang-format runEvan Lojewski2019-02-091-71/+75
|
* Import initial bcm flash tool.Evan Lojewski2019-02-091-0/+231
OpenPOWER on IntegriCloud