Changes between Version 12 and Version 13 of modelserialnumber


Ignore:
Timestamp:
02/27/2023 10:03:40 PM (22 months ago)
Author:
Tim Harvey
Comment:

removed Laguna info (EOL)

Legend:

Unmodified
Added
Removed
Modified
  • modelserialnumber

    v12 v13  
    1919
    2020=== EEPROM: serial number from Bootloader output ===
    21 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:
     21The various Gateworks boot firmware 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:
    2222{{{
    2323U-Boot 2013.04-rc1-00022-g0d7f692-dirty (Apr 09 2013 - 16:38:25)
     
    3131
    3232=== EEPROM: serial number from Linux ===
    33 From Linux you can determine the serial number for Laguna and Ventana product families:
    34  * devicetree kernels - determine from device-tree:
     33From Linux you can determine the serial number  from the device-tree:
    3534{{{
    36 SERNUM=$(cat /proc/device-tree/serial-number)
    37 echo $SERNUM
    38 }}}
    39  * Laguna - determine from the i2c EEPROM device:
    40 {{{
    41     b0=$(i2cget -f -y 0 0x51 0x18 | cut -c3-)
    42     b1=$(i2cget -f -y 0 0x51 0x19 | cut -c3-)
    43     b2=$(i2cget -f -y 0 0x51 0x1a | cut -c3-)
    44     b3=$(i2cget -f -y 0 0x51 0x1b | cut -c3-)
    45     SERNUM="$((0x$b3$b2$b1$b0))"
    46     echo "SERNUM:$SERNUM"
     35echo $(cat /proc/device-tree/serial-number)
    4736}}}
    4837
     
    9887
    9988}}}
    100  * Laguna bootloader
    101 {{{
    102 U-Boot 2008.10-mpcore-svn404 (Aug 14 2013 - 15:46:55)
    103 
    104 CPU: Cavium Networks CNS3000
    105 ID Code: 410fb024 (Part number: 0xB02, Revision number: 4)
    106 CPU ID: 900
    107 I2C:   ready
    108 DRAM:  256 MB
    109 Flash: 16 MB
    110 Gateworks Corporation Copyright 2010
    111 Model Number: GW2388-SP208-D.
    112 Manufacturer Date: 10-18-2012
    113 Serial #: 298717
    114 }}}
    11589
    11690From Linux you can obtain the model number directly from the i2c EEPROM:
     
    12397{{{
    12498  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)"
    125   echo $BOARD
    126 }}}
    127  * Laguna:
    128 {{{
    129   BOARD="$(dd if=/sys/devices/platform/cns3xxx-i2c.0/i2c-0/0-0050/eeprom bs=1 count=16 skip=304 2>/dev/null | hexdump -C | head -1 | cut -c62-67)"
    13099  echo $BOARD
    131100}}}