Re: New I2C and machine probing method
El jue, 27-07-2006 a las 22:58 +0200, Matthias Grimm escribió:
> Have you heard of any problems with i2c and kernel 2.6.16-2?
> Which kernel version did you use in the past as i2c worked?
No...
>
> > Do you want I find the old kernel and I try with it?
>
> If this is not a burden for you, it would be helpful. But I don't want
> that you break your system only for this simple test ;-)
(sorry for my bad english etc, etc...)
Distribution: Debian Etch
---------------------------------------------
first with the kernel 2.6.15:
---------------------------------------------
$ uname -a
Linux malastrana 2.6.15-1-powerpc #2 Mon Mar 6 12:39:17 CET 2006 ppc
GNU/Linux
$ lsmod
Module Size Used by
ipv6 296868 6
radeon 124904 1
drm 84760 2 radeon
dm_mod 64560 0
cinergyT2 17956 0
dvb_core 89700 1 cinergyT2
cpufreq_powersave 1856 1
cpufreq_userspace 5320 0
i2c_dev 10784 0
therm_adt746x 13352 0
snd_powermac 51552 1
snd_pcm_oss 63648 0
snd_mixer_oss 21536 1 snd_pcm_oss
snd_pcm 102788 2 snd_powermac,snd_pcm_oss
snd_timer 27620 1 snd_pcm
snd 67412 7
snd_powermac,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 11172 1 snd
snd_page_alloc 11656 1 snd_pcm
sbp2 26020 0
scsi_mod 169828 1 sbp2
apm_emu 7948 1
joydev 11872 0
pcmcia 45776 0
evdev 11808 11
firmware_class 12064 1 pcmcia
yenta_socket 30188 1
rsrc_nonstatic 13280 1 yenta_socket
pcmcia_core 47864 3 pcmcia,yenta_socket,rsrc_nonstatic
uninorth_agp 10952 1
agpgart 37884 2 drm,uninorth_agp
eth1394 23016 0
ext3 154632 1
jbd 68564 1 ext3
mbcache 10980 1 ext3
usbhid 55140 0
ehci_hcd 36712 0
ohci_hcd 23780 0
ohci1394 40564 0
ieee1394 428176 3 sbp2,eth1394,ohci1394
sungem 37188 0
sungem_phy 10080 1 sungem
usbcore 147136 5 cinergyT2,usbhid,ehci_hcd,ohci_hcd
ide_disk 19648 3
ide_cd 47460 0
cdrom 44028 1 ide_cd
$ cat /proc/cpuinfo
processor : 0
cpu : 7447/7457, altivec supported
clock : 765MHz
revision : 0.1 (pvr 8002 0101)
bogomips : 508.92
machine : PowerBook5,2
motherboard : PowerBook5,2 MacRISC3 Power Macintosh
detected as : 287 (PowerBook G4 15")
pmac flags : 0000001b
L2 cache : 512K unified
memory : 512MB
pmac-generation : NewWorld
$ su -c "./of_probing4"
Password:
Probing machine...
Machine: ID = 52 -> PowerBook G4 15" (Sep 2003)
Trying the new method...
OF:
'/proc/device-tree/uni-n@f8000000/i2c@f8001000/lmu-controller@84/reg'
I2C address = 42
I2C: 'i2c-6', 'mac-io 0'
I2C: 'i2c-5', 'uni-n 1' probing /dev/i2c-5 ...
I2C: 'i2c-4', 'uni-n 0' probing /dev/i2c-4 ... gotcha, here is the
LMU connected to
I2C: 'i2c-3', 'crt2'
I2C: 'i2c-2', 'vga'
I2C: 'i2c-1', 'dvi'
I2C: 'i2c-0', 'monid'
Trying the old method...
LMU found on /dev/i2c-4
And the light sensor work but the keyboard light not work
----------------------------------------------------
Second, with the kernel 2.6.16
----------------------------------------------------
$ uname -a
Linux malastrana 2.6.16-2-powerpc #1 Sat Jul 15 17:39:41 CEST 2006 ppc
GNU/Linux
$ lsmod
Module Size Used by
ipv6 297860 8
radeon 125128 1
drm 83128 2 radeon
dm_mod 64240 0
cinergyT2 18404 0
dvb_core 89828 1 cinergyT2
cpufreq_powersave 1856 0
cpufreq_userspace 4788 0
i2c_dev 10148 0
therm_adt746x 13964 0
snd_powermac 51644 3
snd_pcm_oss 63840 0
snd_mixer_oss 21568 1 snd_pcm_oss
snd_pcm 102756 3 snd_powermac,snd_pcm_oss
snd_timer 27460 2 snd_pcm
snd 66740 9
snd_powermac,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore 11172 1 snd
snd_page_alloc 11656 1 snd_pcm
sbp2 24868 0
scsi_mod 169544 1 sbp2
apm_emu 7948 1
pcmcia 45168 0
firmware_class 12064 1 pcmcia
tsdev 9088 0
yenta_socket 29388 1
rsrc_nonstatic 13280 1 yenta_socket
pcmcia_core 48184 3 pcmcia,yenta_socket,rsrc_nonstatic
evdev 11968 11
eth1394 22756 0
uninorth_agp 10984 1
agpgart 37692 2 drm,uninorth_agp
ext3 154408 1
jbd 68564 1 ext3
mbcache 9764 1 ext3
usbhid 56068 0
ohci1394 40080 0
ohci_hcd 23396 0
ehci_hcd 35784 0
usbcore 148768 5 cinergyT2,usbhid,ohci_hcd,ehci_hcd
ieee1394 428208 3 sbp2,eth1394,ohci1394
sungem 36836 0
sungem_phy 9888 1 sungem
ide_disk 18816 3
ide_cd 47332 0
cdrom 44060 1 ide_cd
i2c_powermac 5920 0
$ cat /proc/cpuinfo
processor : 0
cpu : 7447/7457, altivec supported
clock : 765.000000MHz
revision : 0.1 (pvr 8002 0101)
bogomips : 36.73
timebase : 18432000
machine : PowerBook5,2
motherboard : PowerBook5,2 MacRISC3 Power Macintosh
detected as : 287 (PowerBook G4 15")
pmac flags : 0000001b
L2 cache : 512K unified
pmac-generation : NewWorld
$ su -c "./of_probing4"
Password:
Probing machine...
Machine: ID = 52 -> PowerBook G4 15" (Sep 2003)
Trying the new method...
OF:
'/proc/device-tree/uni-n@f8000000/i2c@f8001000/lmu-controller@84/reg'
I2C address = 42
I2C: 'i2c-8', 'uni-n 0' probing /dev/i2c-8 ...
I2C: 'i2c-7', 'uni-n 1' probing /dev/i2c-7 ...
I2C: 'i2c-6', 'mac-io 0'
I2C: 'i2c-5', 'pmu 1'
I2C: 'i2c-4', 'pmu 2'
I2C: 'i2c-3', 'crt2'
I2C: 'i2c-2', 'vga'
I2C: 'i2c-1', 'dvi'
I2C: 'i2c-0', 'monid'
Trying the old method...
No LMU found.
The light sensor and keyboard light not work.
Julio
Reply to: