LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices



Reply
 
Search this Thread
Old 07-10-2008, 07:05 AM   #1
raedbenz
Member
 
Registered: Dec 2007
Posts: 93

Rep: Reputation: 15
HZ value in embedded Linux


HI,
How can i find the value of HZ in a working embedded ARM Linux from busy box? is there a command for that?
thanks in advance
 
Old 07-10-2008, 07:17 AM   #2
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 492

Rep: Reputation: 50
Hi,
The HZ value, has, as far as I know, nothing to deal with busybox, since it's a kernel parameter. What you can do is to get the kernel config file if your kernel export it, if so you have it into the /proc/config.gz file or you can use the "extract-ikconfig" script. Else, maybe you have a /proc file with this information, I don't know but I think that google + proc + timer frequeny will answer.
 
Old 07-10-2008, 07:36 AM   #3
raedbenz
Member
 
Registered: Dec 2007
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jf.argentino View Post
Hi,
The HZ value, has, as far as I know, nothing to deal with busybox, since it's a kernel parameter. What you can do is to get the kernel config file if your kernel export it, if so you have it into the /proc/config.gz file or you can use the "extract-ikconfig" script. Else, maybe you have a /proc file with this information, I don't know but I think that google + proc + timer frequeny will answer.
Hi, and thanks.
actually what i meant with BusyBox, is using the shell commands to find out the values of HZ, that already is used by the running linux.
bcoz i know how to find the HZ value in kernel source or during configuration(e.g. make menuconfig).
more over i did not manage to find the "/proc/config.gz"
any help?
 
Old 08-05-2008, 07:16 PM   #4
ra2008
LQ Newbie
 
Registered: Jul 2008
Posts: 23

Rep: Reputation: 15
to get the value of HZ for a running linux, write a module that read HZ value.
just

include asm/param.h

unsigned int myHZ;
myHZ=HZ;
printk("System's HZ = %d",myHZ)


cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Embedded Linux as Dependable for Developers as RTOSes, says Embedded Market For LXer Syndicated Linux News 0 01-23-2008 12:40 PM
Embedded Linux , Which? CPJ Linux - Software 2 12-02-2006 09:09 PM


All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration