On Tue, Mar 4, 2008 at 1:00 PM, joe@smittys.pointclark.net wrote:
rm4100 [root@localhost proc]# dd if=/dev/port bs=1 skip=$[0x0800] count=128 | xxd 256+0 records in 256+0 records out 256 bytes (256 B) copied, 0.00171602 s, 149 kB/s 0000000: 0000 0000 dc00 140f e700 0000 0000 0000 ................
<SNIP>
rm4100 00 00 00 00 dc 00 14 0f e7 00 00 00 00 00 00 00
<SNIP>
The output is not that nice I had to doctor it up a little bit.
I use hexdump instead, no doctoring required:
[xxx@xxx xxx]# dd if=/dev/port bs=1 skip=$[0x0800] count=128 | hexdump -C 00000000 00 00 00 00 18 00 00 c0 00 00 00 00 00 00 00 00 |................| 00000010 02 00 80 80 00 00 00 80 00 00 20 00 00 00 02 00 |.......... .....| 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000030 00 04 00 01 00 00 06 00 00 84 84 84 84 84 01 00 |................| 00000040 01 84 05 05 05 04 05 04 05 04 00 91 40 01 28 57 |............@.(W| 00000050 47 60 00 00 00 00 00 9f 5c 6c 00 06 00 00 a4 00 |G`......\l......| 00000060 01 00 61 01 60 00 00 00 60 7f 04 00 00 00 00 00 |..a.`...`.......| 00000070 0e 01 00 04 00 01 18 00 00 00 00 00 20 52 6c 6b |............ Rlk| 00000080
You can get quite fancy with hexdump's '-e' option, displaying in dwords, tab formatting, etc. The '-C' option gets the output formatted easily.