Changes between Version 3 and Version 4 of modelserialnumber


Ignore:
Timestamp:
10/26/2018 06:03:01 PM (5 years ago)
Author:
jvarley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • modelserialnumber

    v3 v4  
    2828=== EEPROM: serial number from Linux ===
    2929From 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:
    3131{{{
    3232SERNUM=$(cat /proc/device-tree/system-serial)
    3333echo $SERNUM
    3434}}}
    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:
    3636{{{
    3737    b0=$(i2cget -f -y 0 0x51 0x18 | cut -c3-)
     
    4848
    4949The 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:
    5151{{{
    5252U-Boot SPL 2014.04-00124-gb795e67 (May 16 2014 - 16:38:32)
     
    101101
    102102From 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):
    104104{{{
    105105  BOARD="$(cat /proc/device-tree/board)"
    106106  echo $BOARD
    107107}}}
    108  * Ventana (3.0.35 kernel):
     108 * Ventana/Newport (3.0.35 kernel):
    109109{{{
    110110  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)"