Git Product home page Git Product logo

omapconf's Introduction

###############################################################################

OMAPCONF

A Powerful Diagnostic Tool for Texas Instruments OMAP Processors

###############################################################################

ABOUT:

OMAPCONF is a Linux user-space standalone application designed to provide a quick'n easy way to diagnose (monitor/debug/audit...) TI OMAP configuration/status dynamically at runtime, in any situation:

  • Any Linux distribution (Ubuntu, ...)
  • Any Android release (Froyo, GingerBread, HoneyComb, Ice-Cream Sandwich, Jelly Bean, ...)
  • TI official platforms (blaze, panda, ...),
  • Custom OMAP platforms, etc.
  • With no single kernel recompilation needed

OMAPCONF leverages "/dev/mem" special device to directly access complete TI OMAP memory space (registers, ...).

SUPPORT:

OMAPCONF CURRENTLY SUPPORTS TI AM335x, AM437x, OMAP44XX AND OMAP54XX DEVICES. LEGACY TI OMAP PLATFORMS (OMAP[1-2-3]) ARE NOT SUPPORTED.

THIS SOFTWARE IS PROVIDED AS IS, WITH NO SUPPORT OR MAINTENANCE COMMITMENT FROM TEXAS INSTRUMENTS INCORPORATED.

Build instructions (Ubuntu):

OMAPCONF is available as a Ubuntu package. To proceed with package installation type the following:

# sudo apt-get install tiomapconf

Once package is installed, you can check which omapconf version you are using:

# dpkg -l tiomapconf

Package is available via TI OMAP4 Ubuntu PPA. See the OMAPpedia page for further instructions.

Build instructions (other Linux Distributions):

To only build the output binary file: # make CROSS_COMPILE=arm-none-linux-gnueabi- omapconf

NB: - CROSS_COMPILE variable must be set to point to the correct compiler. - By default, omapconf is statically built, to ease sharing. In case it is not needed or size matters, it is possible to build it dynamically, by setting variable STATIC_BUILD to "". # export STATIC_BUILD= or # make CROSS_COMPILE=arm-none-linux-gnueabi- STATIC_BUILD= omapconf

To build and install ompaconf:

# make CROSS_COMPILE=arm-none-linux-gnueabi- DESTDIR=YOUR_DIR install

YOUR_DIR is a destination directory where omapconf output binary file will be copied (e.g. ubuntu/android filesystem)

That's it!

Build instructions and installation via ADB (Android):

Make sure your Android device is connected to host via ADB:

# adb kill-server
# adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached
 emulator-5554	device
# adb root

To build and install ompaconf for Android via ADB:

# make CROSS_COMPILE=arm-none-linux-gnueabi- install_android

OMAPCONF binary will be copied to /data directory (known writable directory) on your Android device. You may get it copied to a different directory by updating Makefile at your convenience.

Help:

Type "./omapconf --help" to get complete list of available commands and options. Note that in case of incorrect command/option, help will also be displayed.

A dedicated wiki page is available here.

omapconf's People

Contributors

dgerlach avatar gilbert-r3 avatar jinzheng avatar josepenati avatar karthikramanan avatar lokeshvutla avatar nmenon avatar omapconf avatar prao8855 avatar sumananna avatar vishalmti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

omapconf's Issues

os_is_android() fucntion is broken

Now, some Linux distribution enabled wakelocks (e.g. openSUSE), so 'os_is_android()' function should not test wakelocks file to know if we are running Android or not.

seeing "cpu not supported messages" on DRA7xx

We get a lot of these messages:

omapconf: powerdm_deinit(): cpu not supported!!!
omapconf: clockdm_deinit(): cpu not supported!!!

For example:

root@dra7xx-evm:~# omapconf --cpuinfo
OMAPCONF (rev v1.73 built Mon Oct 24 09:39:52 IST 2016)

HW Platform:
Generic DRA74X (Flattened Device Tree)
DRA75X ES1.0 GP Device (STANDARD performance (1.0GHz))
DIE ID: 74780000-3FBA0702-0163DBA7-1400C010
TPS659038 ES1.0

omapconf: powerdm_deinit(): cpu not supported!!!
omapconf: clockdm_deinit(): cpu not supported!!!

This issue was originally reported here:

https://e2e.ti.com/support/arm/automotive_processors/f/1020/t/580618

/dev/mem doesn't exist under linux 4.0.5 stable

Perhaps consider editing below messages to indicate what needs to be built in the kernel to get /dev/mem back, when it isn't present. Error about privileged access being required is confusing when running as root.

root@target:~# ./omapconf read 0x4A100068
lmem_map(): could not open "/dev/mem"!
OMAPCONF (rev 1.68 built Wed Oct 16 04:13:08 IST 2013)

'/dev/mem' could not be opened.
Privileged access required to run omapconf.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.