[gentoo-user] where to find udev tarball

2005-06-19 Thread Rumen Yotov
Hi,
Recently saw that i have a udev-tarball enabled setup and think of
disabling it.
Wanna make a backup of the tarball before doing that, but can't find
where it is located/saved.
TIA. Rumen


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [gentoo-user] where to find udev tarball

2005-06-19 Thread Zac Medico
Rumen Yotov wrote:
 Hi,
 Recently saw that i have a udev-tarball enabled setup and think of
 disabling it.
 Wanna make a backup of the tarball before doing that, but can't find
 where it is located/saved.
 TIA. Rumen

/lib/udev-state/devices.tar.bz2 is hard coded in /sbin/rc

# Actually get udev rolling
ebegin Configuring system to use udev
if [[ ${RC_DEVICE_TARBALL} = yes ]]  [[ -s /lib/udev-state/devices.tar.bz2 
]]
then
einfo   Populating /dev with device nodes ...
try tar -jxpf /lib/udev-state/devices.tar.bz2 -C /dev
fi
populate_udev


Zac
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] where to find udev tarball

2005-06-19 Thread Mark Knecht
On 6/19/05, Zac Medico [EMAIL PROTECTED] wrote:
 Rumen Yotov wrote:
  Hi,
  Recently saw that i have a udev-tarball enabled setup and think of
  disabling it.
  Wanna make a backup of the tarball before doing that, but can't find
  where it is located/saved.
  TIA. Rumen
 
 /lib/udev-state/devices.tar.bz2 is hard coded in /sbin/rc
 
 # Actually get udev rolling
 ebegin Configuring system to use udev
 if [[ ${RC_DEVICE_TARBALL} = yes ]]  [[ -s 
 /lib/udev-state/devices.tar.bz2 ]]
 then
 einfo   Populating /dev with device nodes ...
 try tar -jxpf /lib/udev-state/devices.tar.bz2 -C /dev
 fi
 populate_udev
 
 
 Zac

Thanks Zac. So this explains why if I set RC_DEVICE_TARBALL=no that
I don't use it.

My question is how do the devices get created if TARBALL=no? Is it
only the 50-udev.rules file that's responsible? I'm trying to debug
why none of my machines have the lirc/lirc0 devices like the Gentoo
Wiki's say they should.

Thanks,
Mark

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] where to find udev tarball

2005-06-19 Thread Daniel Drake
Mark Knecht wrote:
 My question is how do the devices get created if TARBALL=no? Is it
 only the 50-udev.rules file that's responsible?

The whole tarball thing is strongly against the ideas behind udev. udev reads
information  about your hardware from /sys (and listens for and creates nodes
based on that.

If you don't rely on the tarball stuff, it's perfectly safe to do:
# rm -rf /dev/*
# ls /dev # almost empty
# udevstart
# ls /dev # everything is back

 I'm trying to debug
 why none of my machines have the lirc/lirc0 devices like the Gentoo
 Wiki's say they should.

You need to load the lirc module first. But there is always the possibility
that the lirc module is not sysfs-aware, in which case it won't put anything
in /sys, so udev won't know anything about it.

Daniel
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] where to find udev tarball

2005-06-19 Thread Mark Knecht
Hi Daniel. I've jsut been reading your primer on UDEV. Thanks.

On 6/19/05, Daniel Drake [EMAIL PROTECTED] wrote:
 Mark Knecht wrote:
  My question is how do the devices get created if TARBALL=no? Is it
  only the 50-udev.rules file that's responsible?
 
 The whole tarball thing is strongly against the ideas behind udev. 

Yes, normally I've been using TARBALL=no and jsut letting the system
create the devices. That has worked so far, but it's not working for
this IR receiver that's part of lirc/mythtv.

 udev reads
 information  about your hardware from /sys (and listens for and creates nodes
 based on that.
 
 If you don't rely on the tarball stuff, it's perfectly safe to do:
 # rm -rf /dev/*
 # ls /dev # almost empty
 # udevstart
 # ls /dev # everything is back

Humm...almost everything. ;-) The /dev/lircd entry I had was not
recreated. Maybe that's a sign of that stuff not being set up right?
It was recreated after zapping and starting the lircd daemon again:

myth12 ~ # /etc/init.d/lircd start
 * Starting lircd ... [ ok ]
myth12 ~ # ls -al /dev/lirc*
srw-rw-rw-  1 root root 0 Jun 19 15:21 /dev/lircd
myth12 ~ #

 
  I'm trying to debug
  why none of my machines have the lirc/lirc0 devices like the Gentoo
  Wiki's say they should.
 
 You need to load the lirc module first. But there is always the possibility
 that the lirc module is not sysfs-aware, in which case it won't put anything
 in /sys, so udev won't know anything about it.

Yes, the modules (I hope the right ones) are loaded:

myth12 ~ # lsmod
Module  Size  Used by
fglrx 240380  0
agpgart28968  1 fglrx
snd_usb_audio  63680  0
snd_usb_lib11520  1 snd_usb_audio
snd_rawmidi20640  1 snd_usb_lib
snd_atiixp 17120  0
snd_ac97_codec 75384  1 snd_atiixp
lirc_i2c8836  0
i2c_core   18704  1 lirc_i2c
lirc_dev   13156  1 lirc_i2c
myth12 ~ #

The device is visible in /proc/bus/usb/devices:

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 2.00 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0e9c ProdID= Rev= 1.00
S:  Manufacturer=Streamzap, Inc.
S:  Product=Streamzap Remote Control
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 50mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms

But I do not understand yet how this device is told to use the lirc
driver. I'll keep studying, and thanks very much for the response. I'm
interested in udev. It's pretty nice.

cheers,
Mark

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] where to find udev tarball

2005-06-19 Thread Mark Knecht
On 6/19/05, Daniel Drake [EMAIL PROTECTED] wrote:
SNIP
 
  I'm trying to debug
  why none of my machines have the lirc/lirc0 devices like the Gentoo
  Wiki's say they should.
 
 You need to load the lirc module first. But there is always the possibility
 that the lirc module is not sysfs-aware, in which case it won't put anything
 in /sys, so udev won't know anything about it.
 
 Daniel

Daniel,
   I found it. The Gentoo Wiki for MythTV shows how to build in
support for a remote that I don't use. They don't mention that this
one line should be change, nor do they suggest where to get the info
to know how to change it. Once I noticed a message while lirc was
building that said something about looking at the ebuild source to see
what remotes it supported it became clear I needed to change this one
line in the instructions to choose my remote. This built a different
driver which, when loaded, created all the /dev devices and I now have
a working remote.

Cheers,
Mark

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] where to find udev tarball

2005-06-19 Thread Rumen Yotov
Zac Medico wrote:

Rumen Yotov wrote:
  

Hi,
Recently saw that i have a udev-tarball enabled setup and think of
disabling it.
Wanna make a backup of the tarball before doing that, but can't find
where it is located/saved.
TIA. Rumen



/lib/udev-state/devices.tar.bz2 is hard coded in /sbin/rc

# Actually get udev rolling
ebegin Configuring system to use udev
if [[ ${RC_DEVICE_TARBALL} = yes ]]  [[ -s /lib/udev-state/devices.tar.bz2 
]]
then
   einfo   Populating /dev with device nodes ...
   try tar -jxpf /lib/udev-state/devices.tar.bz2 -C /dev
fi
populate_udev


Zac
  

Hi,
Thanks Zac.
Begun searching for it, stopped too early. Had done such a backup before
only that didn't record the location.
Rumen.


smime.p7s
Description: S/MIME Cryptographic Signature