18 lines
220 B
Bash
Executable File
18 lines
220 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -ne 2 ]; then
|
|
echo Please input as follow:
|
|
echo " $0 PhyAddress Len"
|
|
exit 100
|
|
fi
|
|
|
|
let PADDR=$1
|
|
LEN=$2
|
|
|
|
for i in `seq 1 $2`
|
|
do
|
|
printf "%#x: " $PADDR
|
|
devmem $PADDR 32
|
|
PADDR=`expr $PADDR + 4`
|
|
done
|