replacing linux with riscos does not prevent you from looking
inside the linux kernel source code to see how the processor
speed change is done there.
same goes for reading the OMAP3 TRM, it is not linux specific
at all.
as in "please take your time to teach me things that I am to lazy to
look for myself"?
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
What you want is not very simple nor available in all flavors of the linux kernel. Depending on what version of the mainline kernel you use there may be no C sources to do what you want. Some links can be found here: http://elinux.org/OMAP_Power_Management, http://elinux.org/ELC_2010_Presentations The best source of information are the kernel sources. For ARM, particularily the omap processor class (which includes the soc used on the beagleboard xm), look at linux-omap-pm.git repository: - you need linux, git repository source control installed then use (git clone git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap-pm.git), since that is where the latest power management C
sources can be found. In any case you should look for the keywords: - dm37x - the CPU built into the beagleboard xM - OPP (operating point: a pair of frequncy / voltage at which TI recomends the OMAP34x/OMAP35x/DM37x processors reliably work (so do not look for a freq/voltage continuous law in the docs). For the actual points you need to refer to the dm37x data sheet from TI (while comparing the silicon implementation of the processor with what is in the beagle xm). - the frequency change is in files from: arch/arm/mach-omap2/ and arch/arm/plat-omap/ ... clock34xx.* contain the low level abstraction on top of the hw - the voltage registers are publicly undocumented but there are sources that make changes to these undocumented registers in linux |
Isn't this the cpu in the XM anyway?
http://focus.ti.com/docs/prod/folders/print/dm3730.html
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
well yes, but many people these days trust a compiler to convert C
code to "ARM" code :) And C code that writes a few values to registers
is not much harder to read than "ARM" code.
> I may try to infer the necessary ARM code from the C source if it is
> well documented - if the constants and memory locations are buried in
> other files rather than clearly specified in the source then I'll let
> someone else do it.
ah, yes, not putting all those pesky constants into every source code
file, but rather into common include files is a very bad thing to do,
right?
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
Look at http://lxr.linux.no for an example. That just follows the
vanilla branch.
As for ARM code, best bet is to read the CPU documentation, and if you
know ARM, just engage your brain to put together what you need to do.
I find that looking at the output of GCC sometimes makes my head want
to explode, since sometimes it's far from simple and straightforward.
Take Care,
Mark Crichton
On Wed, Sep 22, 2010 at 1:44 AM, Maxim Podbereznyy <lisa...@gmail.com> wrote:
> If you want to dig the Linux sources easy then install "ctags" and just
> watch C-code of every single function or definitions. It is fast and easy.
Another site that I find extremely useful is
http://http://lxr.linux.no/linux/
This is cross referenced HTML of the full sources. You can pick your
version as well.
This works well for all of the code that's in the mainline kernel.
--
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/
so suddenly you are able to handle C code :)
> or will be a stand-alone utility (as in the
> Linux GUI) written either in BASIC or in C when the more complex
> SmartReflex bits are adeed, without which 1GHz is noit supported.
> Meanwhile this simply allows the speed to be cranked up from 600MHz to
> 800MHz. It is not important whether this temporary patch is elegant or
> not as it is only a stepping stone to the proper solution. It is a bit
> complicated as the relevant memory addresses are not in the BASIC user
> memory area but is written in modular form, with comments and defined
> constants to make it more readbale. Far easier than trawling through
> poorly indexed C source manually.
lol
All of these HOTOW's and cryptic sites to get your beagle board running
If you are just starting out and are an application type
You will need to download the eclipse based GUI and buy the usb2ethernet dongle to use ethernet to debug an application can be up in an hour
--- On Fri, 9/24/10, svrsig <ch...@svrsig.org> wrote: |
|
|