Date:2011-09-06 17:09:56 (8 years 12 days ago)
Author:Werner Almesberger
Commit:96a5dd3b603b5401faac2d6120cc10ddae853542
Message:m1/torture/: quick and dirty power-cycling test loop

Files: m1/torture/README (1 diff)
m1/torture/loop (1 diff)

Change Details

m1/torture/README
1power-cycling torture test, to see if booting into FN and then
2power-cycling causes NOR corruption.
3
4You need:
5- an M1 with JTAG board
6- a Lab Switch (../../labsw) to control power to the M1
7- a USB connection to the Lab Switch
8- the Lab Switch control tool "labsw" installed
9- a USB connection to the JTAG board
10- UrJTAG installed, see
11  http://milkymist.org/wiki/index.php?title=Flashing_the_Milkymist_One#compile_urjtag
12- neocon from http://svn.openmoko.org/developers/werner/neocon/
13  (or any other program to monitor and log an outbound serial line)
14
15Run
16neocon -a -l log -T /dev/ttyUSB0
17
18Then
19./loop
20
21This will:
22- power-cycle the M1, leaving it powered off for 5 seconds
23- give it two seconds to power on
24- boot the "regular" bitstream, i.e., Flickernoise
25- wait 70 seconds for Flickernoise to start and to render the
26  "The Tunnel" for a few seconds
27- repeat this forever
28
29The log file records the console output from the M1, plus time
30stamps and cycle numbers written from the "loop" script.
m1/torture/loop
1#!/bin/sh
2n=0
3while true; do
4    n=`expr $n + 1`
5    echo ===== $n =====
6
7    labsw ch1=0 ch2=0
8    sleep 5
9    labsw ch1=1 ch2=1
10    sleep 2
11
12    make -C ../jtag-boot boot
13
14    sleep 60
15    echo echo === $n === `date` >/dev/ttyUSB0
16    sleep 10
17done

Archive Download the corresponding diff file

Branches:
master



interactive