Changes between Version 6 and Version 7 of modelserialnumber
- Timestamp:
- 06/16/2021 06:50:19 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
modelserialnumber
v6 v7 28 28 === EEPROM: serial number from Linux === 29 29 From 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 {{{ 32 SERNUM=$(cat /proc/device-tree/serial-number) 33 echo $SERNUM 34 }}} 30 35 * Ventana and Newport 3.10.+ devicetree kernels - determine from device-tree: 31 36 {{{ … … 41 46 SERNUM="$((0x$b3$b2$b1$b0))" 42 47 echo "SERNUM:$SERNUM" 48 }}} 49 50 === EEPROM: MFG Date from Linux 51 From Linux you can determine the MFG date by looking at certain fields of the EEPROM: 52 {{{#!bash 53 b0=$(i2cget -f -y 0 0x51 0x20 | cut -c3-) 54 b1=$(i2cget -f -y 0 0x51 0x21 | cut -c3-) 55 b2=$(i2cget -f -y 0 0x51 0x22 | cut -c3-) 56 b3=$(i2cget -f -y 0 0x51 0x23 | cut -c3-) 57 $(printf "%02x-%02x-%02x%02x\n" 0x$b0 0x$b1 0x$b2 0x$b3) 43 58 }}} 44 59