Skip to content

Integrate u-boot-seco-rk/eeprom_manager_backup

GitBot requested to merge u-boot-seco_2017_09_next/eeprom_manager_backup into kirkstone

Commit: https://git.seco.com/edgehog/bsp/rockchip/u-boot-seco-rk/-/commit/42df0e104a0a197067096bb44e52e11f1423cd66

[BOARDS] Add RK common code for reading from eeprom v0.02

Introduces a new read procedure to show: Mac Address, Board Serial Number, Board Part Number, System Serial Number, System Part Number. Reading starts from address-offset and stops when it detects a empty-space. Before the reading procedure, the header and crc are checked; if there are no errors, the reading can be started.

check_header(): read version and crc from eeprom, if saved version is not equal to 0.02 returns an error.

check_crc(): compares saved crc with current crc, if they are not the same returns an error.

memory address:

  Address | Size | Data
  ________|______|_______________________
   0      | 2    | Eeprom Map Version: 0.2
  ________|______|_______________________
   2      | 4    | CRC
  ________|______|_______________________
   6      | 248  | Data Section

Merge request reports

Loading