Re: New I2C and machine probing method

2006-07-28 Thread julio
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 wo

PB 5,6 results for: New I2C and machine probing method

2006-07-27 Thread Bernhard Reiter
On Sat, Jul 22, 2006 at 12:04:34PM +0200, Elimar Riesebieter wrote: > $ cat /proc/cpuinfo > processor : 0 > cpu : 7447A, altivec supported > clock : 833.333000MHz > revision : 0.2 (pvr 8003 0102) > bogomips : 36.73 > timebase : 18432000 > platform : PowerM

Re: New I2C and machine probing method

2006-07-24 Thread Elimar Riesebieter
On Sun, 23 Jul 2006 the mental interface of julio told: > El vie, 21-07-2006 a las 17:13 +0200, Matthias Grimm escribió: > > It would be very kind if someone with a PowerBook5,1 to PowerBook5,7 > > could run the test program and send me the output. The machine > > identification seems to work good

Re: New I2C and machine probing method

2006-07-23 Thread julio
El dom, 23-07-2006 a las 19:54 +0200, julio escribió: > $ uname -a > Linux malastrana 2.6.15-1-powerpc #2 Mon Mar 6 12:39:17 CET 2006 ppc > GNU/Linux Sorry, but the right kernel is $ uname -a Linux malastrana 2.6.16-2-powerpc #1 Sat Jul 15 17:39:41 CEST 2006 ppc GNU/Linux

Re: New I2C and machine probing method

2006-07-23 Thread julio
El vie, 21-07-2006 a las 17:13 +0200, Matthias Grimm escribió: > It would be very kind if someone with a PowerBook5,1 to PowerBook5,7 > could run the test program and send me the output. The machine > identification seems to work good, but primarily I wanted to test the > LMU detection. > > $ ca

Re: New I2C and machine probing method

2006-07-22 Thread Matthias Grimm
On Sat, 22 Jul 2006 13:22:11 +0200 Johannes Berg <[EMAIL PROTECTED]> wrote: > On Fri, 2006-07-21 at 17:33 +0200, Johannes Berg wrote: > > I2C: 'i2c-7', 'uni-n 0' probing /dev/i2c-7 ... gotcha, this is the > > LMU device I2C: 'i2c-6', 'mac-io 0' > > Btw, this makes it seem that you don't under

Re: New I2C and machine probing method

2006-07-22 Thread Johannes Berg
On Fri, 2006-07-21 at 17:33 +0200, Johannes Berg wrote: > I2C: 'i2c-7', 'uni-n 0' probing /dev/i2c-7 ... gotcha, this is the > LMU device I2C: 'i2c-6', 'mac-io 0' Btw, this makes it seem that you don't understand how the i2c devices work; /dev/i2c-7 isn't the LMU device, /dev/i2c-7 is the devi

Re: New I2C and machine probing method

2006-07-22 Thread Elimar Riesebieter
On Fri, 21 Jul 2006 the mental interface of Matthias Grimm told: > On Mon, 17 Jul 2006 21:19:30 +0200 > Matthias Grimm <[EMAIL PROTECTED]> wrote: > > It would be very kind if someone with a PowerBook5,1 to PowerBook5,7 [...] $ cat /proc/cpuinfo processor : 0 cpu : 7447A, altive

Re: New I2C and machine probing method

2006-07-21 Thread Johannes Berg
On Fri, 2006-07-21 at 17:13 +0200, Matthias Grimm wrote: > On Mon, 17 Jul 2006 21:19:30 +0200 > Matthias Grimm <[EMAIL PROTECTED]> wrote: > > It would be very kind if someone with a PowerBook5,1 to PowerBook5,7 > could run the test program and send me the output. The machine > identification seems

Re: New I2C and machine probing method

2006-07-21 Thread Matthias Grimm
On Mon, 17 Jul 2006 21:19:30 +0200 Matthias Grimm <[EMAIL PROTECTED]> wrote: It would be very kind if someone with a PowerBook5,1 to PowerBook5,7 could run the test program and send me the output. The machine identification seems to work good, but primarily I wanted to test the LMU detection. B

Re: New I2C and machine probing method

2006-07-21 Thread Matthias Grimm
On Thu, 20 Jul 2006 22:54:04 -0700 (PDT) brian <[EMAIL PROTECTED]> wrote: > debian:/home/brian/Downloads# ./of_probing > > Probing machine... >Machine: ID = 3 -> PowerBook Wallstreet (Apr 1998) >OF: '/proc/device-tree/reg' > Path incomplete! One or more elements not found. >LMU

Re: New I2C and machine probing method

2006-07-20 Thread brian
debian:/home/brian/Downloads# ./of_probing Probing machine...   Machine: ID = 3 -> PowerBook Wallstreet (Apr 1998)   OF: '/proc/device-tree/reg'     Path incomplete! One or more elements not found.   LMU: No LMU found! --- debian:/home/brian/Downloads# cat /proc/cpuinfo proces

Re: New I2C and machine probing method

2006-07-20 Thread Juan A. Diaz
El jue, 20-07-2006 a las 21:29 -0300, Juan A. Diaz escribió: > El mié, 19-07-2006 a las 19:35 +0200, Matthias Grimm escribió: > > On Mon, 17 Jul 2006 21:19:30 +0200 > > Matthias Grimm <[EMAIL PROTECTED]> wrote: > > > > Damn, I didn't removed my debugging stuff and so the program used a > > wrong d

Re: New I2C and machine probing method

2006-07-20 Thread Juan A. Diaz
El mié, 19-07-2006 a las 19:35 +0200, Matthias Grimm escribió: > On Mon, 17 Jul 2006 21:19:30 +0200 > Matthias Grimm <[EMAIL PROTECTED]> wrote: > > Damn, I didn't removed my debugging stuff and so the program used a > wrong device tree path. Sorry for that. Replace line > >#define OFBASE

Re: New I2C and machine probing method

2006-07-20 Thread Juan A. Diaz
[EMAIL PROTECTED]/ofp]$ strings /proc/device-tree/model PowerBook6,7 [EMAIL PROTECTED]/ofp]$ cat /proc/cpuinfo processor : 0 cpu : 7447A, altivec supported clock : 1333.333000MHz revision: 0.2 (pvr 8003 0102) bogomips: 73.47 timebase: 18432000 pla

Re: New I2C and machine probing method

2006-07-19 Thread Jörg Sommer
Hallo Matthias, Matthias Grimm <[EMAIL PROTECTED]> wrote: > On Mon, 17 Jul 2006 21:19:30 +0200 > Matthias Grimm <[EMAIL PROTECTED]> wrote: > > Damn, I didn't removed my debugging stuff and so the program used a > wrong device tree path. Sorry for that. Replace line % ./of_test Probing machine...

Re: New I2C and machine probing method

2006-07-19 Thread Matthias Grimm
On Mon, 17 Jul 2006 21:19:30 +0200 Matthias Grimm <[EMAIL PROTECTED]> wrote: Damn, I didn't removed my debugging stuff and so the program used a wrong device tree path. Sorry for that. Replace line #define OFBASE "./device-tree" with line #define OFBASE "/proc/device-tree" The at

Re: New I2C and machine probing method

2006-07-18 Thread Jörg Sommer
Hallo Matthias, Matthias Grimm <[EMAIL PROTECTED]> wrote: > On Sun, 16 Jul 2006 15:45:57 +0200 > Matthias Grimm <[EMAIL PROTECTED]> wrote: > > Thanks a lot for your support so far. I put the new knowledge into a > revised program and attached it again. Changes are: > > I hope you give it another t

Re: New I2C and machine probing method

2006-07-17 Thread julio
El lun, 17-07-2006 a las 21:19 +0200, Matthias Grimm escribió: > I hope you give it another try :-) $ cat /etc/debian_version testing/unstable $ uname -a Linux malastrana 2.6.15-1-powerpc #2 Mon Mar 6 12:39:17 CET 2006 ppc GNU/Linux $ cat /proc/cpuinfo processor : 0 cpu : 7447/

Re: New I2C and machine probing method

2006-07-17 Thread Matthias Grimm
On Sun, 16 Jul 2006 15:45:57 +0200 Matthias Grimm <[EMAIL PROTECTED]> wrote: Thanks a lot for your support so far. I put the new knowledge into a revised program and attached it again. Changes are: - There are two known locations for the lmu-controller in the device-tree so far. Both are suppor

Re: New I2C and machine probing method

2006-07-17 Thread julio
El dom, 16-07-2006 a las 15:45 +0200, Matthias Grimm escribió: > I would appreciate any feedback. $ cat /etc/debian_version testing/unstable $ uname -a Linux malastrana 2.6.15-1-powerpc #2 Mon Mar 6 12:39:17 CET 2006 ppc GNU/Linux $ cat /proc/cpuinfo processor : 0 cpu : 7447/74

Re: New I2C and machine probing method

2006-07-17 Thread Jörg Sommer
Hello Matthias, Matthias Grimm <[EMAIL PROTECTED]> wrote: > > Hi, > I want to use some OF and kernel 2.6 features to improve device probing > in pbbuttonsd. Unfortunately I have only an ancient PowerBook so I need > your help to test the new routines on as many different machines as > possible. >

Re: New I2C and machine probing method

2006-07-16 Thread Johannes Berg
> 2. detecting the LMU I2C address >The program looked for the "lmu-controller" in the device tree and >read the attached data to find out the I2C address. >This test will only have a result, if you have a PowerBook with an >ambient light sensor. Otherwise the program won't find an

Re: New I2C and machine probing method

2006-07-16 Thread Filippo Giunchedi
On Sun, Jul 16, 2006 at 03:45:57PM +0200, Matthias Grimm wrote: > > Hi, > I want to use some OF and kernel 2.6 features to improve device probing > in pbbuttonsd. Unfortunately I have only an ancient PowerBook so I need > your help to test the new routines on as many different machines as > possib

New I2C and machine probing method

2006-07-16 Thread Matthias Grimm
Hi, I want to use some OF and kernel 2.6 features to improve device probing in pbbuttonsd. Unfortunately I have only an ancient PowerBook so I need your help to test the new routines on as many different machines as possible. I attached the source code of a short program. You could compile it as