| 1 | = Gateworks Model, Serial Number, and Software Versions = |
| 2 | [[PageOutline]] |
| 3 | |
| 4 | == Gateworks Serial Number == |
| 5 | Gateworks 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 === |
| 10 | The 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 === |
| 17 | The 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 | {{{ |
| 19 | U-Boot 2013.04-rc1-00022-g0d7f692-dirty (Apr 09 2013 - 16:38:25) |
| 20 | CPU: Freescale i.MX6Q rev1.2 at 792 MHz |
| 21 | Reset cause: POR |
| 22 | Gateworks Corporation Copyright 2013 |
| 23 | Model Number: GW5400-A |
| 24 | Manufacturer Date: 04-29-2013 |
| 25 | Serial #: 504743 |
| 26 | }}} |
| 27 | |
| 28 | === EEPROM: serial number from Linux === |
| 29 | From Linux you can determine the serial number for Laguna and Ventana product families: |
| 30 | * Ventana 3.10.+ devicetree kernels - determine from device-tree: |
| 31 | {{{ |
| 32 | SERNUM=$(cat /proc/device-tree/system-serial) |
| 33 | echo $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 == |
| 47 | The model number is not typically printed on the PCB. |
| 48 | |
| 49 | For 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 | {{{ |
| 52 | U-Boot SPL 2014.04-00124-gb795e67 (May 16 2014 - 16:38:32) |
| 53 | NAND : 256 MiB |
| 54 | |
| 55 | |
| 56 | U-Boot 2014.04-00124-gb795e67 (May 16 2014 - 16:38:32) |
| 57 | |
| 58 | CPU: Freescale i.MX6Q rev1.2 at 792 MHz |
| 59 | Reset cause: POR |
| 60 | I2C: ready |
| 61 | DRAM: 1 GiB |
| 62 | PMIC: PFUZE100 ID=0x10 |
| 63 | NAND: 256 MiB |
| 64 | MMC: FSL_SDHC: 0 |
| 65 | No panel detected: default to HDMI |
| 66 | Display: HDMI (1024x768) |
| 67 | In: serial |
| 68 | Out: serial |
| 69 | Err: serial |
| 70 | |
| 71 | Gateworks Corporation Copyright 2014 |
| 72 | Model: GW5400-C |
| 73 | MFGDate: 05-16-2014 |
| 74 | Serial:612241 |
| 75 | GSC: v43 0x7d77 0x11 |
| 76 | RTC: 1414768661 |
| 77 | DIO0: GPIO1_IO09 (gpio-9) |
| 78 | DIO1: GPIO1_IO19 (gpio-19) |
| 79 | DIO2: GPIO2_IO09 (gpio-41) |
| 80 | DIO3: GPIO2_IO10 (gpio-42) |
| 81 | MSATA: disabled |
| 82 | RS232: enabled |
| 83 | Net: FEC [PRIME], usb_ether |
| 84 | |
| 85 | }}} |
| 86 | * Laguna bootloader |
| 87 | {{{ |
| 88 | U-Boot 2008.10-mpcore-svn404 (Aug 14 2013 - 15:46:55) |
| 89 | |
| 90 | CPU: Cavium Networks CNS3000 |
| 91 | ID Code: 410fb024 (Part number: 0xB02, Revision number: 4) |
| 92 | CPU ID: 900 |
| 93 | I2C: ready |
| 94 | DRAM: 256 MB |
| 95 | Flash: 16 MB |
| 96 | Gateworks Corporation Copyright 2010 |
| 97 | Model Number: GW2388-SP208-D. |
| 98 | Manufacturer Date: 10-18-2012 |
| 99 | Serial #: 298717 |
| 100 | }}} |
| 101 | * Cambria bootloader: |
| 102 | {{{ |
| 103 | + |
| 104 | Trying NPE-C...success. Using NPE-C with PHY 1. |
| 105 | Ethernet eth0: MAC address 00:d0:12:62:ed:82 |
| 106 | IP: 192.168.3.2/255.255.255.0, Gateway: 0.0.0.0 |
| 107 | Default server: 192.168.3.1 |
| 108 | |
| 109 | RedBoot(tm) bootstrap and debug environment [ROM] |
| 110 | Red Hat certified release, version 2.04.13 - built 16:56:27, Apr 24 2014 |
| 111 | |
| 112 | Platform: Gateworks Cambria Platform (IXP43X) BE |
| 113 | Model Number: GW2350-SP202-B |
| 114 | Manufacture Date: 03-24-2011 |
| 115 | }}} |
| 116 | |
| 117 | From 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 == |
| 140 | Gateworks has revisions of the PCB boards that are the base of the computer board. |
| 141 | |
| 142 | The PCB revision can be identified from the silkscreen. The revision is the last 2 digits after the dash. |
| 143 | |
| 144 | For 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 | |
| 152 | The Bootloader Version can often be seen at startup from the console of the board as one of the first few lines... |
| 153 | |
| 154 | Example Below: |
| 155 | {{{ |
| 156 | U-Boot 2013.04-rc1-00022-g0d7f692 (Apr 09 2013 - 16:38:25) |
| 157 | |
| 158 | CPU: Freescale i.MX6Q rev1.2 at 792 MHz |
| 159 | Reset cause: POR |
| 160 | Gateworks Corporation Copyright 2013 |
| 161 | Model Number: GW5400-A |
| 162 | Manufacturer Date: 04-29-2013 |
| 163 | Serial #: 504743 |
| 164 | DRAM: 1 GiB |
| 165 | MMC: FSL_SDHC: 0 |
| 166 | }}} |
| 167 | * here the bootloader version can be summarized as '''2013.04-rc1-00022-g0d7f692''' |
| 168 | |
| 169 | |
| 170 | == Software Version == |
| 171 | The Software Version can often be seen at end of the bootup process. |
| 172 | |
| 173 | Gateworks 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 | |
| 175 | Common 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 | |
| 177 | OpenWrt typically has a 'banner' that will distinguish which release is being used. |
| 178 | |
| 179 | Example 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 | |
| 197 | See OpenWrt version history here: [http://wiki.openwrt.org/about/history#timeline] |
| 198 | |
| 199 | === Kernel Version === |
| 200 | The kernel being used can be found through the uname -a command as seen below (3.8.6): |
| 201 | |
| 202 | {{{ |
| 203 | root@OpenWrt:/# uname -a |
| 204 | Linux OpenWrt 3.8.6 #1 SMP Wed Jul 10 09:06:50 PDT 2013 armv7l GNU/Linux |
| 205 | }}} |
| 206 | |
| 207 | == Reading GSC version == |
| 208 | |
| 209 | This can be found two ways: |
| 210 | 1. Serial console output at bootup |
| 211 | {{{ |
| 212 | Gateworks Corporation Copyright 2014 |
| 213 | Model: GW5224-B |
| 214 | MFGDate: 12-04-2015 |
| 215 | Serial:668494 |
| 216 | GSC: 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 | {{{ |
| 222 | i2cget -f -y 0 0x20 14 ;# read GSC revision from register 14 |
| 223 | 0x16 ;# hex revision value = v22 |
| 224 | }}} |