Changes between Version 3 and Version 4 of modelserialnumber
- Timestamp:
- 10/26/2018 06:03:01 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
modelserialnumber
v3 v4 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 3.10.+ devicetree kernels - determine from device-tree:30 * Ventana/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 with a 3.0.35 kernel) - determine from the i2c EEPROM device:35 * Laguna (or Ventana/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 bootloader:50 * Ventana/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 (3.10+ device-tree kernel):103 * Ventana/Newport (3.10+ device-tree kernel): 104 104 {{{ 105 105 BOARD="$(cat /proc/device-tree/board)" 106 106 echo $BOARD 107 107 }}} 108 * Ventana (3.0.35 kernel):108 * Ventana/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)"