Skip to content

Commit

Permalink
Add suport to firmware and bootloader upload via ipmi-tool
Browse files Browse the repository at this point in the history
Change the "Get target upgrade capabilities" as specified in the
Hardware Platform Management IPM Controller Firmware Upgrade
Specification.In this way, we can use ipmi-tool to upload the
firmware and bootloader.
  • Loading branch information
gustavosr8 authored and augustofg committed Jun 30, 2023
1 parent f06f69f commit 5631857
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions modules/hpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,21 @@ typedef uint8_t (* t_hpm_prepare_comp)(void);
typedef uint8_t (* t_hpm_get_upgrade_status)(void);
typedef uint8_t (* t_hpm_activate_firmware)(void);


/*
* Define the "Get target upgrade capabilities" message struct as define in the
* Hardware Platform Management IPM Controller Firmware Upgrade Specification, Table 3-3
*/
typedef union {
struct {
uint8_t upgrade_undesirable:1;
uint8_t automatic_rollback_overridden:1;
uint8_t ipmc_degraded_in_update:1;
uint8_t deferred_activation:1;
uint8_t services_affected:1;
uint8_t manual_rollback:1;
uint8_t automatic_rollback:1;
uint8_t self_test:1;
uint8_t automatic_rollback:1;
uint8_t manual_rollback:1;
uint8_t services_affected:1;
uint8_t deferred_activation:1;
uint8_t ipmc_degraded_in_update:1;
uint8_t automatic_rollback_overridden:1;
uint8_t upgrade_undesirable:1;
} flags;
uint8_t byte;
} t_ipmc_capabilities;
Expand Down

0 comments on commit 5631857

Please sign in to comment.