Changes between Version 4 and Version 5 of modelserialnumber
- Timestamp:
- 10/26/2018 06:07:10 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
modelserialnumber
v4 v5 15 15 16 16 === EEPROM: serial number from Bootloader output === 17 The Laguna and Ventanaproduct family outputs the board serial number within the few lines that come out of the serial console when the board is powered on. For example, the Ventana bootloader may look like:17 The Laguna, Ventana, and Newport product family outputs the board serial number within the few lines that come out of the serial console when the board is powered on. For example, the Ventana bootloader may look like: 18 18 {{{ 19 19 U-Boot 2013.04-rc1-00022-g0d7f692-dirty (Apr 09 2013 - 16:38:25) … … 28 28 === EEPROM: serial number from Linux === 29 29 From Linux you can determine the serial number for Laguna and Ventana product families: 30 * Ventana /Newport 3.10.+ devicetree kernels - determine from device-tree:30 * Ventana and Newport 3.10.+ devicetree kernels - determine from device-tree: 31 31 {{{ 32 32 SERNUM=$(cat /proc/device-tree/system-serial) 33 33 echo $SERNUM 34 34 }}} 35 * Laguna (or Ventana /Newport with a 3.0.35 kernel) - determine from the i2c EEPROM device:35 * Laguna (or Ventana and Newport with a 3.0.35 kernel) - determine from the i2c EEPROM device: 36 36 {{{ 37 37 b0=$(i2cget -f -y 0 0x51 0x18 | cut -c3-) … … 48 48 49 49 The model number can be seen at startup from the console of the board as one of the first few lines: 50 * Ventana /Newport bootloader:50 * Ventana and Newport bootloader: 51 51 {{{ 52 52 U-Boot SPL 2014.04-00124-gb795e67 (May 16 2014 - 16:38:32) … … 101 101 102 102 From Linux you can obtain the model number directly from the i2c EEPROM: 103 * Ventana /Newport (3.10+ device-tree kernel):103 * Ventana and Newport (3.10+ device-tree kernel): 104 104 {{{ 105 105 BOARD="$(cat /proc/device-tree/board)" 106 106 echo $BOARD 107 107 }}} 108 * Ventana /Newport (3.0.35 kernel):108 * Ventana and Newport (3.0.35 kernel): 109 109 {{{ 110 110 BOARD="$(dd if=/sys/devices/platform/imx-i2c.0/i2c-0/0-0051/eeprom bs=1 count=16 skip=48 2>/dev/null | hexdump -C | head -1 | cut -c62-67)"