Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pbbuttons and /dev/pmu [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Frelon
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2004
Posts: 149
Location: France

PostPosted: Sun Feb 25, 2007 8:48 pm    Post subject: pbbuttons and /dev/pmu [SOLVED] Reply with quote

I'am sorry to "overpost" these days but I have check all the forum posts and I can't found what is wrong.
When I try to launch pbbuttons deamon (default pbbuttonsd.conf):

Code:

 linux # /etc/init.d/pbbuttonsd start
 * Caching service dependencies ...                                                                                                 [ ok ]
 * Starting pbbuttonsd ...
ERROR: The object '/dev/pmu' doesn't exist.                                                                                         [ !! ]




I have hard-compiled my kernel with the whole apple stuff (pmu etc)
The pbbuttonsd version is 0.7.9.

Any idea, folks ???


Another thing. Is It normal my cdrom is at /dev/hdb ??? (ibook G3 dual usb) ??
_________________
http://stan.openmod.org


Last edited by Frelon on Sun Mar 04, 2007 10:52 am; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Feb 25, 2007 11:05 pm    Post subject: Reply with quote

Make sure that you have SYSV IPC enabled.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Frelon
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2004
Posts: 149
Location: France

PostPosted: Mon Feb 26, 2007 9:04 am    Post subject: Reply with quote

I recompiled my kernel with that option, but this is the same :-|
_________________
http://stan.openmod.org
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Feb 26, 2007 2:22 pm    Post subject: Reply with quote

Can you please give us your kernel config? Did you change RC_DEVICE_TARBALL in rc.conf? Once you have booted, does /dev/pmu exist?

It is normal that your cdrom is in /dev/hdb.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Frelon
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2004
Posts: 149
Location: France

PostPosted: Tue Feb 27, 2007 3:44 am    Post subject: Reply with quote

Thanks for replies, really !

1. So, /dev/pmu does not exists.


2.
Quote:

Did you change RC_DEVICE_TARBALL in rc.conf? Once you have booted, does /dev/pmu exist?

In /etc/rc.conf you mean ???
Nope.
Code:

stanbook stan # more /etc/rc.conf
# /etc/rc.conf: Global startup script configuration settings

# UNICODE specifies whether you want to have UNICODE support in the console.
# If you set to yes, please make sure to set a UNICODE aware CONSOLEFONT and
# KEYMAP in the /etc/conf.d/consolefont and /etc/conf.d/keymaps config files.

UNICODE="yes"

# Set EDITOR to your preferred editor.
# You may use something other than what is listed here.

#EDITOR="/bin/nano"
EDITOR="/usr/bin/vim"
#EDITOR="/usr/bin/emacs"

# What display manager do you use ?  [ xdm | gdm | kdm | entrance ]
#DISPLAYMANAGER="xdm"

# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit.  The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to.  The support scripts are smart enough to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enlightenment" can also work.  This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE:  1) this behaviour is overridden when a ~/.xinitrc exists, and startx
#           is called.
#        2) even if ~/.xsession exists, if XSESSION can be resolved, it will
#           be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (ex: kde-3.0.2)
# Xsession - will start a terminal and a few other nice apps

#XSESSION="Gnome"



3.
Quote:
Did you change RC_DEVICE_TARBALL in rc.conf? Once you have booted, does /dev/pmu exist?


you can found it here ---> http://pastebin.com/889700 I have used the make pmac32_defconfig
and tuned it a little.

Thanks again.
_________________
http://stan.openmod.org
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Feb 27, 2007 3:59 am    Post subject: Reply with quote

Sorry, I mistyped. It's /etc/conf.d/rc.

Can you also post your dmesg? It would be better to use something more permanent than a pastebin since those disappear after 24 hours.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Frelon
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2004
Posts: 149
Location: France

PostPosted: Tue Feb 27, 2007 4:27 am    Post subject: Reply with quote

Quote:
Sorry, I mistyped. It's /etc/conf.d/rc.


No, I did not change anything in that file :
Code:

# UDEV OPTION:
# Set to "yes" if you want to save /dev to a tarball on shutdown
# and restore it on startup.  This is useful if you have a lot of
# custom device nodes that udev does not handle/know about.

RC_DEVICE_TARBALL="no"

# RC_SWAP_ERASE controls erasing of swap partitions at shutdown.
# Useful for all those paranoid peeps to nuke their memory.

RC_SWAP_ERASE="no"





2.
Quote:
Can you also post your dmesg?


http://stan.openmod.org/doku.php/gnu:stuffs:dmesg_ibook_25fev2007

3.
Quote:
It would be better to use something more permanent than a pastebin since those disappear after 24 hours.

Also with the permanent option ?? I don't want to flood the forum, so I store those files on my host for now.
_________________
http://stan.openmod.org
Back to top
View user's profile Send private message
ndansmith
n00b
n00b


Joined: 01 Aug 2005
Posts: 60

PostPosted: Tue Feb 27, 2007 10:17 pm    Post subject: Reply with quote

I am having a similar problem. udevd is not started automatically when I boot (I have to start it manually with udevd --daemon) and is therefore not populating /dev based on uevents. I am lacking /dev/pmu as well as some other devices (needed for inputd etc).

The only change I've made is upgrading udev from ~86 to 104.

Edit: more info
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Feb 28, 2007 3:38 am    Post subject: Reply with quote

Well, that would be a problem. :p Are there any messages about udev on startup? Which baselayout are you using? Which udev exactly?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
ndansmith
n00b
n00b


Joined: 01 Aug 2005
Posts: 60

PostPosted: Wed Feb 28, 2007 4:30 am    Post subject: Reply with quote

JoseJX wrote:
Well, that would be a problem. :p Are there any messages about udev on startup? Which baselayout are you using? Which udev exactly?
With udev-104-r11 there were no messages during startup. I am pretty sure the baselayout version is 1.12.9 (but my wife is using the comp in OS X at the moment).

I emerged udev-103 and it ran successfully at startup and processed events, but there were some errors on some rules. However, I did not notice any negative effects, and udev was able to load firmware and of course /dev/pmu thereby unbreaking pbbuttonsd. So I dunno what is going on. I remember that I also updated glibc against a newer version of the linux headers, but revdep-rebuild didn't notice any breakage.
Back to top
View user's profile Send private message
Frelon
Tux's lil' helper
Tux's lil' helper


Joined: 10 Oct 2004
Posts: 149
Location: France

PostPosted: Sun Mar 04, 2007 10:54 am    Post subject: Reply with quote

Ok, this is fixed. I have done several things so I'am not sure, but I yhink recompiling the kernel with I2C stuff do the trick. It was as module by default.
_________________
http://stan.openmod.org
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Mar 04, 2007 4:11 pm    Post subject: Reply with quote

Ah, well, yes. The PMU is attached to the system via i2c. Glad you figured it out. :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum