Operating System - HP-UX
1753792 Members
7042 Online
108799 Solutions
New Discussion

/dev/mem with PA-RISC systems

 
SOLVED
Go to solution
Johnson Punniyalingam
Honored Contributor

/dev/mem with PA-RISC systems

But I’m getting confused because according to some info I get from hp docs, the /dev/mem should work with PA-RISC systems.
Can anyone help on my doubt if there is an exemption with model rp4440?

# echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem
phys_mem_pages:
phys_mem_pages: 5242368

HPUX 11.11
Problems are common to all, but attitude makes the difference
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: /dev/mem with PA-RISC systems

Hi:

This output looks correct. There should be nothing unique about your rp4440 in the context you ask.

Regards!

...JRF...
Johnson Punniyalingam
Honored Contributor

Re: /dev/mem with PA-RISC systems

Hi JRF,

Bunch of thanks for your reply, my confusion in this (PA-RISC)Model(rp4440), i mean can't use /dev/mem i changed from /dev/kmem than i was able to get the expected output

Please see below output which i got from "/dev/mem"

# echo 'phys_mem_pages/D' | /usr/bin/adb /stand/vmunix /dev/mem
phys_mem_pages:
phys_mem_pages:
data address not found
#

Rgds,
Johnson
Problems are common to all, but attitude makes the difference
Horia Chirculescu
Honored Contributor
Solution

Re: /dev/mem with PA-RISC systems

Hello Johnson,

The same result here, on rp3440

echo 'phys_mem_pages/D' | /usr/bin/adb /stand/vmunix /dev/mem
phys_mem_pages:
phys_mem_pages:
data address not found

Horia.
Best regards from Romania,
Horia.
Dennis Handly
Acclaimed Contributor

Re: /dev/mem with PA-RISC systems

When I use /dev/mem or -k with /dev/mem, adb gets into a 100% loop. Not sure what it's doing?
Johnson Punniyalingam
Honored Contributor

Re: /dev/mem with PA-RISC systems

Please see below "Feeback" from Response Center


The /dev/mem and /dev/kmem character special files provide access to a pseudo device driver that allows read and write access to system memory and kernel virtual memory.
In 11.11 virtual and physical kernel addresses are typically the same (it's called equiv mapped), so we would suggest using /dev/kmem instead of /dev/mem in HPUX 11.11 systems.
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: /dev/mem with PA-RISC systems

Many Thanks, for all your contribution

Rgds,
Johnson
Problems are common to all, but attitude makes the difference