-----Original Message----- From: Star Liu [mailto:minxinjianxin@gmail.com] Sent: Monday, July 14, 2008 7:29 PM To: joe@settoplinux.org Subject: Re: [coreboot] how could i get the hexadecimal content in memory ataddress FFFF0000-FFFFFFF0?
On Mon, Jul 14, 2008 at 8:09 PM, joe@settoplinux.org wrote:
Then you can use xxd or hexdump -C
I use dd with hexdump -C, it works pretty good.
thank you! but could give me some information of what are xxd, hexdump and dd? which packages should i install?
Oh, sorry. That only works for physical memory addresses not virtual memory. But it looks something like this:
# dd if=/dev/port bs=1 skip=$[0x0800] count=128 | hexdump -C
Where skip=$[0x0800] is the start address and count=128 is the size. Hexdump just outputs the data into human readable format. See the dd and hexdump manpage for more info, I hope that helps.
Thanks, Joseph Smith Set-Top-Linux www.settoplinux.org