Changes between Version 6 and Version 7 of modelserialnumber


Ignore:
Timestamp:
06/16/2021 06:50:19 PM (13 months ago)
Author:
Tim Harvey
Comment:

add example for mfg date

Legend:

Unmodified
Added
Removed
Modified
  • modelserialnumber

    v6 v7  
    2828=== EEPROM: serial number from Linux ===
    2929From Linux you can determine the serial number for Laguna and Ventana product families:
     30 * U-Boot 2019+ with devicetree kernels - determine from device-tree:
     31{{{
     32SERNUM=$(cat /proc/device-tree/serial-number)
     33echo $SERNUM
     34}}}
    3035 * Ventana and Newport 3.10.+ devicetree kernels - determine from device-tree:
    3136{{{
     
    4146    SERNUM="$((0x$b3$b2$b1$b0))"
    4247    echo "SERNUM:$SERNUM"
     48}}}
     49
     50=== EEPROM: MFG Date from Linux
     51From Linux you can determine the MFG date by looking at certain fields of the EEPROM:
     52{{{#!bash
     53b0=$(i2cget -f -y 0 0x51 0x20 | cut -c3-)
     54b1=$(i2cget -f -y 0 0x51 0x21 | cut -c3-)
     55b2=$(i2cget -f -y 0 0x51 0x22 | cut -c3-)
     56b3=$(i2cget -f -y 0 0x51 0x23 | cut -c3-)
     57$(printf "%02x-%02x-%02x%02x\n" 0x$b0 0x$b1 0x$b2 0x$b3)
    4358}}}
    4459