XO Self Test/Manufacturing Data

From OLPC
Jump to navigation Jump to search

This test reads data from the SPI Flash chip. Manufacturing data is displayed. For example;

Testing /flash
ww                                        SG  b1
B#  QTFDIT23700023                        SS  EN
BV  Q7B01                                 T#  OFW ASSY test $Revision: 1790 $
U#  D81BBA9C-7C59-3040-6F7D-3529B9D8B562  WM  20-7C-8F-96-6D-F4
SD  20120921                              P#  1CL4BZU0KD1
M#  CL4A                                  LA  USA
CC  XXXXXX                                F#  F6
L#  C16                                   S#  AZCL2LIN003
MN  XO-4 HS Touch                         LO  en_US.UTF-8
KA  1e 30 2e 20 12 21 22 23 17 24 25 26 32 31 18 19 10 13 1f 14 16 2f
    11 2d 15 2c 0b 00 02 00 03 00 04 00 05 00 06 00 07 00 08 00 09 00
    0a 00 02 01 28 01 04 01 05 01 06 01 08 01 28 00 0a 01 0b 01 09 01
    0d 01 33 00 0c 00 34 00 35 00 27 01 27 00 33 01 0d 00 34 01 35 01
    03 01 1a 00 2b 00 1b 00 07 01 0c 01 29 00 1a 01 2b 01 1b 01 29 01
    00 90 6f 4b 41
KM  olpcm                                 KL  us
KV  olpc                                  sk  292
MD  20120922T234831Z                      ak  
DT  20120923074832                        NN  qz
cv  

If there is more data than will fit on the screen, a prompt will appear. For example on a laptop with an o9 key injected;

o9  30 82 01 0a 02 82 01 01 00 c2 da 38 19 1e c5 5b a0 ce 8a cc df 43
    d6 2b 6f 15 60 69 17 44 b2 05 57 16 c5 8b 63 09 cb 7f 3b e8 9d 1f
    ec 89 a2 b8 ad 92 e0 08 fd c0 4b ef f3 da a7 fc a3 9e 6f a8 16 80
    16 f5 89 e9 b7 b3 c4 8d d5 92 df 5a 82 9b 2b 52 f1 0a ac b2 d5 fe
    3b bb 15 af de 3b 86 5a 2a aa 63 20 58 8f 55 21 5d 8c f7 93 86 54
    03 c0 c4 35 db c8 06 31 c2 88 89 61 25 46 da 2c 88 e2 c6 b4 77 b6
    50 0b cb c8 30 92 71 e5 56 76 37 36 c1 ed 42 d2 43 fd e6 4b fd 12
    f7 4a a2 7f 15 c3 9e 8f 75 ff 79 89 74 51 b7 45 17 e4 6d 64 ec b1
 More [<space>,<cr>,q,c,p,i,d,h] ? 

Press the space key to continue. The prompt will be removed and the next 30 lines of data shown. For example;

    6d 8c 10 50 d2 43 b9 21 73 79 09 82 1f d3 b0 c0 a0 b7 20 2f 25 c1
    f2 54 55 ee 46 36 96 ef e8 2e 83 aa 85 98 59 cc cd 75 f3 c5 5e 61
    c1 33 71 08 f0 05 98 9b 95 77 5d 70 70 ab ac 69 55 29 52 d0 30 da
    5f 41 db 78 4f 90 f0 ed a5 57 62 a8 95 8e fe 03 52 ed 63 3a 61 56
    3b 02 03 01 00 01
SN  SHC23800036                           BT  1800
TS  SHIP

Once the data is shown, a cyclic redundancy check is calculated and tested. This can reveal corruption of the SPI FLASH data.

Checking SPI FLASH CRC ...passed

At this point, if the rotate key is being held, the test will pause until the key is released.

Okay
Release the game button to continue

After the test passes, the menu will be displayed. Holding the rotate key during the test is an easy way to see the pass result for the test.

Alternates

On unlocked laptops, the manufacturing data can be written to a USB drive:

ok save-mfg-data
ok █

The file will be named for the serial number of the laptop.

Also, in the operating system Terminal activity the manufacturing data can be saved, or displayed:

-bash-4.2# tar cf mfg-data.tar /proc/device-tree/mfg-data/
-bash-4.2# olpc-hwinfo mfg-tag o9 > o9.pub
-bash-4.2# olpc-hwinfo mfg-tag SN
SHC23800036
-bash-4.2# █