Zero the last-FIRM-booted flag when exiting config
This commit is contained in:
parent
5f32779ceb
commit
945f80993b
@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
#define PDN_MPCORE_CFG (*(vu8 *)0x10140FFC)
|
#define PDN_MPCORE_CFG (*(vu8 *)0x10140FFC)
|
||||||
#define PDN_SPI_CNT (*(vu8 *)0x101401C0)
|
#define PDN_SPI_CNT (*(vu8 *)0x101401C0)
|
||||||
#define CFG_BOOTENV (*(vu8 *)0x10010000)
|
|
||||||
|
|
||||||
//FIRM Header layout
|
//FIRM Header layout
|
||||||
typedef struct firmSectionHeader {
|
typedef struct firmSectionHeader {
|
||||||
|
@ -113,6 +113,9 @@ void configureCFW(const char *configPath, const char *firm90Path){
|
|||||||
tempConfig |= options[i].enabled << i;
|
tempConfig |= options[i].enabled << i;
|
||||||
fileWrite(&tempConfig, configPath, 3);
|
fileWrite(&tempConfig, configPath, 3);
|
||||||
|
|
||||||
|
//Zero the last booted FIRM flag
|
||||||
|
CFG_BOOTENV = 0;
|
||||||
|
|
||||||
//Reboot
|
//Reboot
|
||||||
i2cWriteRegister(I2C_DEV_MCU, 0x20, 1 << 2);
|
i2cWriteRegister(I2C_DEV_MCU, 0x20, 1 << 2);
|
||||||
while(1);
|
while(1);
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
|
#define CFG_BOOTENV (*(vu8 *)0x10010000)
|
||||||
|
|
||||||
void configureCFW(const char *configPath, const char *firm90Path);
|
void configureCFW(const char *configPath, const char *firm90Path);
|
||||||
void deleteFirms(const char *firmPaths[], u32 firms);
|
void deleteFirms(const char *firmPaths[], u32 firms);
|
||||||
void error(const char *message);
|
void error(const char *message);
|
Loading…
x
Reference in New Issue
Block a user