Date:2011-10-14 11:23:49 (8 years 1 month ago)
Author:Werner Almesberger
Commit:a6136bd02799bcab8d2e48fd21dc91f0fee0df41
Message:m1rc3/norruption/2/dumplock: use correct offset; fixed block number counting

Files: m1rc3/norruption/2/dumplock (2 diffs)

Change Details

m1rc3/norruption/2/dumplock
11#!/bin/sh
22
3blocks=55
4offset=2 # 0 for manufacturer ID (0x89)
3blocks=56
4offset=4 # 0 for manufacturer ID (0x0089)
55
66
77hex()
...... 
2424EOF
2525    a=$offset
2626    i=0
27    while [ $i -le $blocks ]; do
27    while [ $i -lt $blocks ]; do
2828        echo peek 0x`hex $a`
2929        a=`expr $a + 128 \* 1024`
3030        i=`expr $i + 1`

Archive Download the corresponding diff file

Branches:
master



interactive