Bug #207
closedA mobile user's wishlist
0%
Description
On Fri, Jun 16, 2006 at 06:23:45PM +0000, Johannes Hofmann wrote:
YONETANI Tomokazu <qhwt+dfly@les.ath.cx> wrote:
On Wed, Jun 07, 2006 at 11:10:59AM +0900, YONETANI Tomokazu wrote:
FreeBSD has tools for that: sysutils/est and sysutils/estrcl
FreeBSD has a daemon named powerd and it's based on estctrl.
I'll try porting it to DragonFly.Obviously I spoke too soon for this part; powerd is too hard to port
without cpufreq framework. I'm going to commit est driver alone for now
and work on a DragonFly patch for estd(if Johannes Hofmann hasn't started
it yet).Ok, here is an initial patch against estd-r4.1 that makes things
work on DragonFly. The question is how to integrate the modifications.
We could add #ifdef's or add the patch to the pkgsrc stuff...
Also I would suggest to adjust our est-sysctl names to match the
NetBSD ones's.
And what about that useconds_t? I just changed it to int. Any better
ideas?
Here's a modified version of your port of est driver,
with sysctl nodes under machdep.est.frequency as you suggested,
plus style(9) changes and some minor changes taken from NetBSD version.
http://les.ath.cx/DragonFly/est-cc1.diff.gz
Regards.
Updated by Johannes.Hofmann almost 20 years ago
YONETANI Tomokazu <qhwt+dfly@les.ath.cx> wrote:
On Fri, Jun 16, 2006 at 06:23:45PM +0000, Johannes Hofmann wrote:
YONETANI Tomokazu <qhwt+dfly@les.ath.cx> wrote:
On Wed, Jun 07, 2006 at 11:10:59AM +0900, YONETANI Tomokazu wrote:
FreeBSD has tools for that: sysutils/est and sysutils/estrcl
FreeBSD has a daemon named powerd and it's based on estctrl.
I'll try porting it to DragonFly.Obviously I spoke too soon for this part; powerd is too hard to port
without cpufreq framework. I'm going to commit est driver alone for now
and work on a DragonFly patch for estd(if Johannes Hofmann hasn't started
it yet).Ok, here is an initial patch against estd-r4.1 that makes things
work on DragonFly. The question is how to integrate the modifications.
We could add #ifdef's or add the patch to the pkgsrc stuff...
Also I would suggest to adjust our est-sysctl names to match the
NetBSD ones's.
And what about that useconds_t? I just changed it to int. Any better
ideas?Here's a modified version of your port of est driver,
with sysctl nodes under machdep.est.frequency as you suggested,
plus style(9) changes and some minor changes taken from NetBSD version.http://les.ath.cx/DragonFly/est-cc1.diff.gz
Regards.
And here is a patch for pkgsrc that updates sysutils/estd to r4.1 and
adds DragonFly support.
http://www.ecademix.com/JohannesHofmann/estd_pkgsrc-1.patch.gz
To enable this, you need to apply the above kernel patch, add
options CPU_ENABLE_EST
to your kernel config file and recompile your kernel.
Then apply the pkgsrc patch and compile/install sysutils/estd.
copy /usr/pkg/share/examples/rc.d/estd to /etc/rc.d
make it executable and add
estd="YES"
to your /etc/rc.conf file.
Regards,
Johannes
Updated by Johannes.Hofmann almost 20 years ago
YONETANI Tomokazu <qhwt+dfly@les.ath.cx> wrote:
On Fri, Jun 16, 2006 at 06:23:45PM +0000, Johannes Hofmann wrote:
YONETANI Tomokazu <qhwt+dfly@les.ath.cx> wrote:
On Wed, Jun 07, 2006 at 11:10:59AM +0900, YONETANI Tomokazu wrote:
FreeBSD has tools for that: sysutils/est and sysutils/estrcl
FreeBSD has a daemon named powerd and it's based on estctrl.
I'll try porting it to DragonFly.Obviously I spoke too soon for this part; powerd is too hard to port
without cpufreq framework. I'm going to commit est driver alone for now
and work on a DragonFly patch for estd(if Johannes Hofmann hasn't started
it yet).Ok, here is an initial patch against estd-r4.1 that makes things
work on DragonFly. The question is how to integrate the modifications.
We could add #ifdef's or add the patch to the pkgsrc stuff...
Also I would suggest to adjust our est-sysctl names to match the
NetBSD ones's.
And what about that useconds_t? I just changed it to int. Any better
ideas?Here's a modified version of your port of est driver,
with sysctl nodes under machdep.est.frequency as you suggested,
plus style(9) changes and some minor changes taken from NetBSD version.
The patch works fine for me. Do you plan to commit it?
I want to wait for the kernel part to be commited before trying
to get DragonFly support for estd integrated in pkgsrc.
BTW. Is it possible to compile est support as a kernel module
with your patch?
Regards,
Johannes
Updated by joerg almost 20 years ago
On Mon, Jun 19, 2006 at 08:22:34PM +0000, Johannes Hofmann wrote:
And here is a patch for pkgsrc that updates sysutils/estd to r4.1 and
adds DragonFly support.http://www.ecademix.com/JohannesHofmann/estd_pkgsrc-1.patch.gz
Please send the source patch to Ove ASAP and ask him to release a new
version :-) I'm a bit pushing here, since I'd like to see this in before
the next branch.
Joerg
Updated by qhwt+dfly almost 20 years ago
On Wed, Jun 21, 2006 at 06:23:20PM +0000, Johannes Hofmann wrote:
The patch works fine for me. Do you plan to commit it?
Committed :)
I want to wait for the kernel part to be commited before trying
to get DragonFly support for estd integrated in pkgsrc.
BTW. Is it possible to compile est support as a kernel module
with your patch?
Yes, the kernel module version of est driver is also hooked into module
build, so you don't need to do anything special to build it, but for
impatient people:
cd /sys/dev/est && make obj && make depend && make && make install
CPU_ENABLE_EST option in LINT will tell you about future breakages
(if any) about this driver.
Thanks.
Updated by Johannes.Hofmann over 19 years ago
joerg@britannica.bec.de wrote:
On Mon, Jun 19, 2006 at 08:22:34PM +0000, Johannes Hofmann wrote:
And here is a patch for pkgsrc that updates sysutils/estd to r4.1 and
adds DragonFly support.http://www.ecademix.com/JohannesHofmann/estd_pkgsrc-1.patch.gz
Please send the source patch to Ove ASAP and ask him to release a new
version :-) I'm a bit pushing here, since I'd like to see this in before
the next branch.
Ove has just release esd-r5 including DragonFly support!
See http://www.elektro-eel.org/estd.html
Johannes