public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/6] GE: Move from ext4 to eeprom bootcounter
@ 2018-06-26 17:42 Sebastian Reichel
  2018-06-26 17:42 ` [U-Boot] [PATCH 1/6] board: ge: Remove EEPROM bus param from read_vpd() Sebastian Reichel
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Sebastian Reichel @ 2018-06-26 17:42 UTC (permalink / raw)
  To: u-boot

Writing to ext4 from U-Boot is dangerous in case of inconsistent filesystem
state (i.e. due to power-loss). The current U-Boot code can modify the filesystem,
so that it is no longer usable by Linux after fsck. This patchset avoids writing
to the partition on GE devices by moving the boot counter to the last two bytes
of VPD EEPROM (together with some VPD cleanups). It also adds non RTC device support
to the i2c bootcounter driver.

-- Sebastian

Denis Zalevskiy (6):
  board: ge: Remove EEPROM bus param from read_vpd()
  board: ge: Move VPD EEPROM configuration to the defconfig
  bootcount: i2c: Add bus switching to the I2C bootcount driver
  bootcount: Configure length limit for I2C bootcount
  board: ge: Move VPD reading to the vpd_reader
  board: ge: Store bootcount in EEPROM on PPD and Bx50v3

 board/ge/bx50v3/Kconfig           |  2 +
 board/ge/bx50v3/bx50v3.c          | 57 +++++-----------------
 board/ge/common/vpd_reader.c      | 57 ++++++++++++++++++++--
 board/ge/common/vpd_reader.h      | 16 +++++--
 board/ge/mx53ppd/Kconfig          |  2 +
 board/ge/mx53ppd/mx53ppd.c        | 50 ++++----------------
 configs/ge_bx50v3_defconfig       | 27 +++++++++--
 configs/mx53ppd_defconfig         | 29 ++++++++++--
 drivers/bootcount/Kconfig         | 21 ++++++++-
 drivers/bootcount/bootcount_i2c.c | 78 ++++++++++++++++++++++++++-----
 include/configs/ge_bx50v3.h       |  6 +--
 include/configs/mx53ppd.h         |  6 +--
 12 files changed, 230 insertions(+), 121 deletions(-)

-- 
2.18.0

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-07-19 21:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-26 17:42 [U-Boot] [PATCH 0/6] GE: Move from ext4 to eeprom bootcounter Sebastian Reichel
2018-06-26 17:42 ` [U-Boot] [PATCH 1/6] board: ge: Remove EEPROM bus param from read_vpd() Sebastian Reichel
2018-06-26 17:43 ` [U-Boot] [PATCH 2/6] board: ge: Move VPD EEPROM configuration to the defconfig Sebastian Reichel
2018-07-19 20:31   ` [U-Boot] [U-Boot, " Tom Rini
2018-07-19 21:47     ` Sebastian Reichel
2018-06-26 17:43 ` [U-Boot] [PATCH 3/6] bootcount: i2c: Add bus switching to the I2C bootcount driver Sebastian Reichel
2018-06-26 17:43 ` [U-Boot] [PATCH 4/6] bootcount: Configure length limit for I2C bootcount Sebastian Reichel
2018-06-26 17:43 ` [U-Boot] [PATCH 5/6] board: ge: Move VPD reading to the vpd_reader Sebastian Reichel
2018-06-26 17:43 ` [U-Boot] [PATCH 6/6] board: ge: Store bootcount in EEPROM on PPD and Bx50v3 Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox