| 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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-10-2008, 06:05 AM
|
#1
|
|
Member
Registered: Dec 2007
Posts: 93
Rep:
|
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
|
|
|
|
07-10-2008, 06:17 AM
|
#2
|
|
Member
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 492
Rep:
|
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.
|
|
|
|
07-10-2008, 06:36 AM
|
#3
|
|
Member
Registered: Dec 2007
Posts: 93
Original Poster
Rep:
|
Quote:
Originally Posted by jf.argentino
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?
|
|
|
|
08-05-2008, 06:16 PM
|
#4
|
|
LQ Newbie
Registered: Jul 2008
Posts: 23
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:37 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|