[OLSR-users] Question about Powerstatus plugin
Andreas Tønnesen
(spam-protected)
Sat Oct 2 12:41:50 CEST 2004
What olsrd version are you using?
- Andreas
ken chung wrote:
> Thank for your help!
> I can enable APM now.
> however, when I run olsr, it shows "PLUG-IN: Generating package -
> Segmentation fault"
>
> How to fix it?
> thanks
>
> The debug message is shown below:
>
> ---------- Plugin loader ----------
> Library: olsrd_power.so.0.1
> OLSRD Powerstatus plugin 0.1 by Andreas T?nnesen
> Checking plugin interface version.... 1 - OK
> Trying to fetch plugin IO function....OK
> Trying to fetch register function....OK
> Running registration function...
> olsr_plugin_io(100)
> olsr_plugin_io(101)
> olsr_plugin_io(513)
> olsr_plugin_io(514)
> olsr_plugin_io(502)
> olsr_plugin_io(504)
> olsr_plugin_io(500)
> olsr_plugin_io(515)
> olsr_plugin_io(516)
> olsr_plugin_io(102)
> olsr_plugin_io(506)
> olsr_plugin_io(103)
> olsr_plugin_io(508)
> olsr_plugin_io(507)
> olsr_plugin_io(509)
> olsr_plugin_io(510)
> olsr_plugin_io(511)
> olsr_plugin_io(512)
> Node has APM info!
> Parser: registering event for type 128
> Register parse function: Added function for type 128
> Scheduler event registered int: 2.50
> Adding OLSR socket entry 9
> ---------- LIBRARY LOADED ----------
>
> Main address: 10.1.2.1
>
> NEIGHBORS: l=linkstate, m=MPR, w=willingness
>
> SOCKETS: 9 5
> Scheduler started - polling every 2.00 seconds
> Max jitter is 0.500000
>
> PLUG-IN: Generating package - Segmentation fault
> [(spam-protected) ken]#
>
>
>
> On Sat, 2004-10-02 at 17:38, Andreas Tønnesen wrote:
>
>>I belive APM and ACPI are mutually exclusive. You should disable ACPI.
>>
>>- Andreas
>>
>>ken chung wrote:
>>
>>>Thank for your reply
>>>
>>>I already enable APM in my kernel(2.4.26)config,
>>>but I still have no this file /proc/apm in my system and I can't
>>>generate apm information in my wireless interface running olsr.
>>>How to enable it?
>>>
>>>
>>>Below is my kernel configure file:
>>>
>>>
>>>#
>>># General setup
>>>#
>>>CONFIG_NET=y
>>>CONFIG_PCI=y
>>># CONFIG_PCI_GOBIOS is not set
>>># CONFIG_PCI_GODIRECT is not set
>>>CONFIG_PCI_GOANY=y
>>>CONFIG_PCI_BIOS=y
>>>CONFIG_PCI_DIRECT=y
>>>CONFIG_ISA=y
>>>CONFIG_PCI_NAMES=y
>>># CONFIG_EISA is not set
>>># CONFIG_MCA is not set
>>>CONFIG_HOTPLUG=y
>>>
>>>#
>>># PCMCIA/CardBus support
>>>#
>>>CONFIG_PCMCIA=y
>>>CONFIG_CARDBUS=y
>>># CONFIG_TCIC is not set
>>># CONFIG_I82092 is not set
>>># CONFIG_I82365 is not set
>>>
>>>#
>>># PCI Hotplug Support
>>># CONFIG_HOTPLUG_PCI is not set
>>># CONFIG_HOTPLUG_PCI_COMPAQ is not set
>>># CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
>>># CONFIG_HOTPLUG_PCI_ACPI is not set
>>>CONFIG_SYSVIPC=y
>>>CONFIG_BSD_PROCESS_ACCT=y
>>>CONFIG_SYSCTL=y
>>>CONFIG_KCORE_ELF=y
>>># CONFIG_KCORE_AOUT is not set
>>>CONFIG_BINFMT_AOUT=y
>>>CONFIG_BINFMT_ELF=y
>>>CONFIG_BINFMT_MISC=y
>>># CONFIG_OOM_KILLER is not set
>>>CONFIG_PM=y
>>>CONFIG_APM=y
>>>CONFIG_APM_IGNORE_USER_SUSPEND=y
>>>CONFIG_APM_DO_ENABLE=y
>>>CONFIG_APM_CPU_IDLE=y
>>>CONFIG_APM_DISPLAY_BLANK=y
>>>CONFIG_APM_RTC_IS_GMT=y
>>>CONFIG_APM_ALLOW_INTS=y
>>>CONFIG_APM_REAL_MODE_POWER_OFF=y
>>>
>>>#
>>># ACPI Support
>>>#
>>>CONFIG_ACPI=y
>>>CONFIG_ACPI_BOOT=y
>>>CONFIG_ACPI_BUS=y
>>>CONFIG_ACPI_INTERPRETER=y
>>>CONFIG_ACPI_EC=y
>>>CONFIG_ACPI_POWER=y
>>>CONFIG_ACPI_PCI=y
>>>CONFIG_ACPI_SLEEP=y
>>>CONFIG_ACPI_SYSTEM=y
>>>CONFIG_ACPI_AC=y
>>>CONFIG_ACPI_BATTERY=y
>>>CONFIG_ACPI_BUTTON=y
>>>CONFIG_ACPI_FAN=y
>>>CONFIG_ACPI_PROCESSOR=y
>>>CONFIG_ACPI_THERMAL=y
>>># CONFIG_ACPI_ASUS is not set
>>># CONFIG_ACPI_TOSHIBA is not set
>>>CONFIG_ACPI_DEBUG=y
>>>CONFIG_ACPI_RELAXED_AML=y
>>>
>>>
>>>
>>>On Sat, 2004-10-02 at 15:25, Andreas Tønnesen wrote:
>>>
>>>
>>>>Hi,
>>>>
>>>>
>>>>For the 2.6 kernel you do:
>>>>
>>>>make menuconfig
>>>>Power management options (ACPI, APM) --->
>>>>APM (Advanced Power Management) BIOS Support --->
>>>>then select "APM (Advanced Power Management) BIOS support"
>>>>
>>>>A quick google(...) tells me that the 2.4 kernels hve something like this:
>>>>
>>>>[*] Power Management support
>>>> [ ] ACPI support
>>>> <*> Advanced Power Management BIOS support
>>>>
>>>>Try that if you need to stick with the 2.4 kernel.
>>>>
>>>>I'll see if I can add ACPI support in 0.4.8.
>>>>
>>>>- andreas
>>>>
>>>>
>>>>KEN wrote:
>>>>
>>>>
>>>>>But I already enable power management in my kernel config and compile again,
>>>>>I cant find the term "APM: in my kernel config!
>>>>>how to enable it?
>>>>>
>>>>>thanks
>>>>>
>>>>>
>>>>>KEN
>>>>>----- Original Message -----
>>>>>From: "aaron" <(spam-protected)>
>>>>>To: "ken chung" <(spam-protected)>
>>>>>Cc: "olsrd" <(spam-protected)>
>>>>>Sent: Saturday, October 02, 2004 2:00 AM
>>>>>Subject: Re: [OLSR-users] Question about Powerstatus plugin
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>On Fri, 2 Oct 2004, ken chung wrote:
>>>>>>
>>>>>>enable APM support for your kernel. Usually newer kernels all work with
>>>>>>ACPI (the more modenr version).
>>>>>>
>>>>>>:)
>>>>>>
>>>>>>rpm -i kernel*sources*
>>>>>>
>>>>>>make menuconfig; make dep; make ; etc...
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>I using RedHat 9.0 and kernel 2.4.26
>>>>>>>I already enable power management in my kernel configure
>>>>>>>
>>>>>>>When I running olsrd, I cant send my notebook's power information to my
>>>>>>>neighbour.
>>>>>>>
>>>>>>>The debug message is shown below:
>>>>>>>
>>>>>>>---------- Plugin loader ----------
>>>>>>>Library: olsrd_power.so.0.1
>>>>>>>OLSRD Powerstatus plugin 0.1 by Andreas T?nnesen
>>>>>>>Checking plugin interface version.... 1 - OK
>>>>>>>Trying to fetch plugin IO function....OK
>>>>>>>Trying to fetch register function....OK
>>>>>>>Running registration function...
>>>>>>>olsr_plugin_io(100)
>>>>>>>olsr_plugin_io(101)
>>>>>>>olsr_plugin_io(513)
>>>>>>>olsr_plugin_io(514)
>>>>>>>olsr_plugin_io(502)
>>>>>>>olsr_plugin_io(504)
>>>>>>>olsr_plugin_io(500)
>>>>>>>olsr_plugin_io(515)
>>>>>>>olsr_plugin_io(516)
>>>>>>>olsr_plugin_io(102)
>>>>>>>olsr_plugin_io(506)
>>>>>>>olsr_plugin_io(103)
>>>>>>>olsr_plugin_io(508)
>>>>>>>olsr_plugin_io(507)
>>>>>>>olsr_plugin_io(509)
>>>>>>>olsr_plugin_io(510)
>>>>>>>olsr_plugin_io(511)
>>>>>>>olsr_plugin_io(512)
>>>>>>>No APM info avalible! This node will not generate powermessages!
>>>>>>>
>>>>>>>
>>>>>>>I check that there are no /proc/apm file in my system,
>>>>>>>what I need to do in order to install this file???
>>>>>>>
>>>>>>>Thanks
>>>>>>>
>>>>>>>_______________________________________________
>>>>>>>olsr-users mailing list
>>>>>>>(spam-protected)
>>>>>>>https://www.olsr.org/mailman/listinfo/olsr-users
>>>>>>>
>>>>>>
>>>>>_______________________________________________
>>>>>olsr-users mailing list
>>>>>(spam-protected)
>>>>>https://www.olsr.org/mailman/listinfo/olsr-users
>>>
>>>
>
More information about the Olsr-users
mailing list