[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New I2C and machine probing method



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
> possible.
> 
> I attached the source code of a short program. You could compile it as
> follows:
>  $> gcc -o of_probing of_probing.c

$ ./of_probing 

Probing machine...
  Machine: ID = 62
  OF: '/proc/device-tree/uni-n@f8000000/i2c@f8001000/reg'
    Path incomplete! One or more elements not found.
  LMU: No LMU found!
godog@hattori:/tmp$ cat /proc/cpuinfo 
processor       : 0
cpu             : 7447/7457, altivec supported
clock           : 998.400000MHz
revision        : 0.1 (pvr 8002 0101)
bogomips        : 47.94
timebase        : 18432000
platform        : PowerMac
machine         : PowerBook6,2
motherboard     : PowerBook6,2 MacRISC3 Power Macintosh
detected as     : 287 (PowerBook G4)
pmac flags      : 0000001a
L2 cache        : 512K unified
pmac-generation : NewWorld

seems fine, powerbook 12" bought nov'03

filippo
--
Filippo Giunchedi - http://esaurito.net
PGP key: 0x6B79D401
random quote follows:

I was once walking through the forest alone. A tree fell right
in front of me -- and I didn't hear it.
-- Steven Wright

Attachment: signature.asc
Description: Digital signature


Reply to: