Skip to content

Integrate meta-seco-rk/u-boot-seco_2017_09_next/eeprom_manager_backup

Commit: https://git.seco.com/edgehog/layers/seco/meta-seco-rk/-/commit/b76a4364ec457d6792ce123ef1d437a11dd83a9c

Integrate u-boot-seco-rk/eeprom_manager_backup

--

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

[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