← Back to team overview

tiomap-dev team mailing list archive

[Bug 607752] Re: [needs-packaging] devmem2 needs packaging

 

Package created at branch lp:~rsalveti/+junk/devmem2. Could anyone help
reviewing it?

For Beagle devmem2 can be used to find the SGX core revision, like:
root@beagle-maverick:~# ./devmem2 0x48004B48 w 0x2
/dev/mem opened.
Memory mapped at address 0x4015c000.
Value at address 0x48004B48 (0x4015cb48): 0x3
Written 0x2; readback 0x2
root@beagle-maverick:~# ./devmem2 0x48004B10 w 0x1
/dev/mem opened.
Memory mapped at address 0x40183000.
Value at address 0x48004B10 (0x40183b10): 0x0
Written 0x1; readback 0x1
root@beagle-maverick:~# ./devmem2 0x48004B00 w 0x2
/dev/mem opened.
Memory mapped at address 0x40160000.
Value at address 0x48004B00 (0x40160b00): 0x0
Written 0x2; readback 0x2
root@beagle-maverick:~# ./devmem2 0x50000014 > sgxrevision.txt
root@beagle-maverick:~# cat sgxrevision.txt 
/dev/mem opened.
Memory mapped at address 0x4002a000.
Value at address 0x50000014 (0x4002a014): 0x10201

Depending on the value read out in the last step, OMAPES is determined
for the build.

If value == 0x10205, SGX OMAPES=5.x
If value == 0x10201, SGX OMAPES=3.x
If value == 0x10003, SGX OMAPES=2.x 


** Tags added: arm

-- 
[needs-packaging] devmem2 needs packaging
https://bugs.launchpad.net/bugs/607752
You received this bug notification because you are a member of TI OMAP
Developers, which is a direct subscriber.

Status in Ubuntu: New

Bug description:
There is no Ubuntu package for devmem2.
Could someone please package it?

devmem2 is a tool to read physical memory through /dev/mem
This is useful for low level debugging on embedded targets.
Sources can be found at e.g. http://sources.buildroot.net/devmem2.c

Thanks!

V.