Changes between Version 4 and Version 5 of modelserialnumber


Ignore:
Timestamp:
10/26/2018 06:07:10 PM (6 years ago)
Author:
jvarley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • modelserialnumber

    v4 v5  
    1515
    1616=== EEPROM: serial number from Bootloader output ===
    17 The Laguna and Ventana 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:
     17The 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:
    1818{{{
    1919U-Boot 2013.04-rc1-00022-g0d7f692-dirty (Apr 09 2013 - 16:38:25)
     
    2828=== EEPROM: serial number from Linux ===
    2929From 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:
    3131{{{
    3232SERNUM=$(cat /proc/device-tree/system-serial)
    3333echo $SERNUM
    3434}}}
    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:
    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/Newport bootloader:
     50 * Ventana and 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/Newport (3.10+ device-tree kernel):
     103 * Ventana and Newport (3.10+ device-tree kernel):
    104104{{{
    105105  BOARD="$(cat /proc/device-tree/board)"
    106106  echo $BOARD
    107107}}}
    108  * Ventana/Newport (3.0.35 kernel):
     108 * Ventana and 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)"