Changes between Version 12 and Version 13 of modelserialnumber
- Timestamp:
- 02/27/2023 10:03:40 PM (21 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
modelserialnumber
v12 v13 19 19 20 20 === EEPROM: serial number from Bootloader output === 21 The Laguna, Ventana, and Newport product familyoutputs 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:21 The 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: 22 22 {{{ 23 23 U-Boot 2013.04-rc1-00022-g0d7f692-dirty (Apr 09 2013 - 16:38:25) … … 31 31 32 32 === 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: 33 From Linux you can determine the serial number from the device-tree: 35 34 {{{ 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" 35 echo $(cat /proc/device-tree/serial-number) 47 36 }}} 48 37 … … 98 87 99 88 }}} 100 * Laguna bootloader101 {{{102 U-Boot 2008.10-mpcore-svn404 (Aug 14 2013 - 15:46:55)103 104 CPU: Cavium Networks CNS3000105 ID Code: 410fb024 (Part number: 0xB02, Revision number: 4)106 CPU ID: 900107 I2C: ready108 DRAM: 256 MB109 Flash: 16 MB110 Gateworks Corporation Copyright 2010111 Model Number: GW2388-SP208-D.112 Manufacturer Date: 10-18-2012113 Serial #: 298717114 }}}115 89 116 90 From Linux you can obtain the model number directly from the i2c EEPROM: … … 123 97 {{{ 124 98 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 $BOARD126 }}}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)"130 99 echo $BOARD 131 100 }}}