Changes between Initial Version and Version 1 of modelserialnumber


Ignore:
Timestamp:
10/22/2017 05:28:45 AM (2 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • modelserialnumber

    v1 v1  
     1= Gateworks Model, Serial Number, and Software Versions =
     2[[PageOutline]]
     3
     4== Gateworks Serial Number ==
     5Gateworks uses a 6digit serial number to identify products. There are several ways you can determine the serial number for a given product:
     6 * 6 digit bar-code on product
     7 * EEPROM info (For All Ventana, Laguna, Avila and Cambria products)
     8
     9=== physical bar-code ===
     10The serial number should be placed on a small white barcode sticker placed on the PCB somewhere, front or back, etc.  Typically it is a 6 digit number such as 999999.
     11
     12'''Please see picture below for example:'''
     13
     14[[Image(serialnumber.jpg,400px)]]
     15
     16=== EEPROM: serial number from Bootloader output ===
     17The 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:
     18{{{
     19U-Boot 2013.04-rc1-00022-g0d7f692-dirty (Apr 09 2013 - 16:38:25)
     20CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
     21Reset cause: POR
     22Gateworks Corporation Copyright 2013
     23Model Number: GW5400-A
     24Manufacturer Date: 04-29-2013
     25Serial #: 504743
     26}}}
     27
     28=== EEPROM: serial number from Linux ===
     29From Linux you can determine the serial number for Laguna and Ventana product families:
     30 * Ventana 3.10.+ devicetree kernels - determine from device-tree:
     31{{{
     32SERNUM=$(cat /proc/device-tree/system-serial)
     33echo $SERNUM
     34}}}
     35 * Laguna (or Ventana with a 3.0.35 kernel) - determine from the i2c EEPROM device:
     36{{{
     37    b0=$(i2cget -f -y 0 0x51 0x18 | cut -c3-)
     38    b1=$(i2cget -f -y 0 0x51 0x19 | cut -c3-)
     39    b2=$(i2cget -f -y 0 0x51 0x1a | cut -c3-)
     40    b3=$(i2cget -f -y 0 0x51 0x1b | cut -c3-)
     41    SERNUM="$((0x$b3$b2$b1$b0))"
     42    echo "SERNUM:$SERNUM"
     43}}}
     44
     45
     46== Model Number ==
     47The model number is not typically printed on the PCB.
     48
     49For Ventana, Laguna, Avila and Cambria products, the model number can be seen at startup from the console of the board as one of the first few lines:
     50 * Ventana bootloader:
     51{{{
     52U-Boot SPL 2014.04-00124-gb795e67 (May 16 2014 - 16:38:32)
     53NAND : 256 MiB
     54
     55
     56U-Boot 2014.04-00124-gb795e67 (May 16 2014 - 16:38:32)
     57
     58CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
     59Reset cause: POR
     60I2C:   ready
     61DRAM:  1 GiB
     62PMIC:  PFUZE100 ID=0x10
     63NAND:  256 MiB
     64MMC:   FSL_SDHC: 0
     65No panel detected: default to HDMI
     66Display: HDMI (1024x768)
     67In:    serial
     68Out:   serial
     69Err:   serial
     70
     71Gateworks Corporation Copyright 2014
     72Model: GW5400-C
     73MFGDate: 05-16-2014
     74Serial:612241
     75GSC:   v43 0x7d77 0x11
     76RTC:   1414768661
     77DIO0:  GPIO1_IO09 (gpio-9)
     78DIO1:  GPIO1_IO19 (gpio-19)
     79DIO2:  GPIO2_IO09 (gpio-41)
     80DIO3:  GPIO2_IO10 (gpio-42)
     81MSATA: disabled
     82RS232: enabled
     83Net:   FEC [PRIME], usb_ether
     84
     85}}}
     86 * Laguna bootloader
     87{{{
     88U-Boot 2008.10-mpcore-svn404 (Aug 14 2013 - 15:46:55)
     89
     90CPU: Cavium Networks CNS3000
     91ID Code: 410fb024 (Part number: 0xB02, Revision number: 4)
     92CPU ID: 900
     93I2C:   ready
     94DRAM:  256 MB
     95Flash: 16 MB
     96Gateworks Corporation Copyright 2010
     97Model Number: GW2388-SP208-D.
     98Manufacturer Date: 10-18-2012
     99Serial #: 298717
     100}}}
     101 * Cambria bootloader:
     102{{{
     103+
     104Trying NPE-C...success. Using NPE-C with PHY 1.
     105Ethernet eth0: MAC address 00:d0:12:62:ed:82
     106IP: 192.168.3.2/255.255.255.0, Gateway: 0.0.0.0
     107Default server: 192.168.3.1
     108
     109RedBoot(tm) bootstrap and debug environment [ROM]
     110Red Hat certified release, version 2.04.13 - built 16:56:27, Apr 24 2014
     111
     112Platform: Gateworks Cambria Platform (IXP43X) BE
     113Model Number: GW2350-SP202-B
     114Manufacture Date: 03-24-2011
     115}}}
     116
     117From Linux you can obtain the model number directly from the i2c EEPROM:
     118 * Ventana (3.10+ device-tree kernel):
     119{{{
     120  BOARD="$(cat /proc/device-tree/board)"
     121  echo $BOARD
     122}}}
     123 * Ventana (3.0.35 kernel):
     124{{{
     125  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)"
     126  echo $BOARD
     127}}}
     128 * Laguna:
     129{{{
     130  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)"
     131  echo $BOARD
     132}}}
     133 * Avila / Cambria:
     134{{{
     135  BOARD="$(dd if=/sys/devices/platform/i2c-gpio.0/i2c-0/0-0051/eeprom bs=1 count=16 skip=32 2>/dev/null | hexdump -C | head -1 | cut -c62-67)"
     136  echo $BOARD
     137}}}
     138
     139== PCB Revision ==
     140Gateworks has revisions of the PCB boards that are the base of the computer board.
     141
     142The PCB revision can be identified from the silkscreen. The revision is the last 2 digits after the dash.
     143
     144For example: 02210119-01 is Revision 1 or Revision B.
     145
     146 * -00 = Revision A
     147 * -01 = Revision B
     148 * -02 = Revision C
     149
     150== Bootloader Version ==
     151
     152The Bootloader Version can often be seen at startup from the console of the board as one of the first few lines...
     153
     154Example Below:
     155{{{
     156U-Boot 2013.04-rc1-00022-g0d7f692 (Apr 09 2013 - 16:38:25)
     157
     158CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
     159Reset cause: POR
     160Gateworks Corporation Copyright 2013
     161Model Number: GW5400-A
     162Manufacturer Date: 04-29-2013
     163Serial #: 504743
     164DRAM:  1 GiB
     165MMC:   FSL_SDHC: 0
     166}}}
     167 * here the bootloader version can be summarized as '''2013.04-rc1-00022-g0d7f692'''
     168
     169
     170== Software Version ==
     171The Software Version can often be seen at end of the bootup process.
     172
     173Gateworks grabs a snapshot of a stable release of OpenWrt and then may apply it's patches and issue their own branches as seen here: [http://trac.gateworks.com/browser/generic#branches]
     174
     175Common Gateworks releases will be referenced as the 12.10 branch or the 13.06 branch, or trunk.  These can be checked out of SVN here: [wiki:OpenWrt/building#StepbyStepInstructions]
     176
     177OpenWrt typically has a 'banner' that will distinguish which release is being used.
     178
     179Example Below shows the Barrier Breaker Release at Revision r36311:
     180
     181{{{
     182  _______                     ________        __
     183 |       |.-----.-----.-----.|  |  |  |.----.|  |_
     184 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
     185 |_______||   __|_____|__|__||________||__|  |____|
     186          |__| W I R E L E S S   F R E E D O M
     187 -----------------------------------------------------
     188 BARRIER BREAKER (Bleeding Edge, r36311)
     189 -----------------------------------------------------
     190  * 1/2 oz Galliano         Pour all ingredients into
     191  * 4 oz cold Coffee        an irish coffee mug filled
     192  * 1 1/2 oz Dark Rum       with crushed ice. Stir.
     193  * 2 tsp. Creme de Cacao
     194 -----------------------------------------------------
     195}}}
     196
     197See OpenWrt version history here: [http://wiki.openwrt.org/about/history#timeline]
     198
     199=== Kernel Version ===
     200The kernel being used can be found through the uname -a command as seen below (3.8.6):
     201
     202{{{
     203root@OpenWrt:/# uname -a
     204Linux OpenWrt 3.8.6 #1 SMP Wed Jul 10 09:06:50 PDT 2013 armv7l GNU/Linux
     205}}}
     206
     207== Reading GSC version ==
     208
     209This can be found two ways:
     210 1. Serial console output at bootup
     211{{{
     212Gateworks Corporation Copyright 2014
     213Model: GW5224-B
     214MFGDate: 12-04-2015
     215Serial:668494
     216GSC:   v46 0xd50b WDT:disabled board temp at 31C
     217
     218}}}
     219
     220 2. The following example will print out the GSC code revision. This example uses the Linux I2C utilities.
     221{{{
     222i2cget -f -y 0 0x20 14          ;# read GSC revision from register 14
     2230x16                            ;# hex revision value = v22
     224}}}