Create a script on target and name it as dumpmem.sh. Paste below content in that script.
#!/bin/sh
# Usage dumpmem.sh ADDR OFFSET
base=$1
counter=0
while [ $counter -lt $2 ];
do
offset=$(($counter*4))
reg_addr=$(($base + $offset))
reg_addr=`printf "0x%X\n" $reg_addr`
output=$(devmem $reg_addr)
delimiter=": "
echo $reg_addr$delimiter$output
counter=$(($counter+1))
done
echo All done
|
Now run below command to dump the registers of Vphy
# In the below command, first parameter is the base address of the IP (vphy) in this case and second parameter is the number of registers to be read
./dumpmem.sh 0x80120000 206
|