Re: xorg-6.9.0

2006-01-21 Thread Javier Ramirez
Hi,

Since xorg 6.9 I have been having trouble in my powerbook and the ATI
driver. I have follow some of the threads but still I get my X freeze.

dmesg | grep drm gets this:

[drm] Initialized radeon 1.19.0 20050911 on minor 0:

I have the kernel 2.6.15.1. I enable the DRM modules from the kernel
(radeon, my video card  is :00:10.0 VGA compatible controller:
ATI Technologies Inc RV350 [Mobility Radeon 9600 M10]

I have this erros in the log of Xorg:

.
...
(II) Loading sub module drm
(II) LoadModule: drm
(II) Loading /usr/X11R6/lib/modules/linux/libdrm.so
(EE) LoadModule: Module drm does not have a drmModuleData data object.
(II) UnloadModule: drm
(II) Unloading /usr/X11R6/lib/modules/linux/libdrm.so
(II) UnloadModule: dri
(II) Unloading /usr/X11R6/lib/modules/extensions/libdri.so
(EE) Failed to load module dri (a required submodule could not be loaded, 0)
(II) LoadModule: extmod
(II) Loading /usr/X11R6/lib/modules/extensions/libextmod.so
(II) Module extmod: vendor=X.Org Foundation
..



I would appreciate as much help as  possible.
Thanks for your time.

Orlando.




On 1/15/06, Elimar Riesebieter [EMAIL PROTECTED] wrote:
 On Thu, 12 Jan 2006 the mental interface ofv
 Ben Racher told:

  Elimar Riesebieter wrote:
 
  Hi all,
  
  last night I upgraded to xorg 6.9.0.dfsg.1-2. First I had to do a
  ldconfig by hand, because startx was complaining about missing libs.
  
  Starting X then freezes my PowerBook5,6 completely. No net, no
  console.  So I had to hard reset the machine. I tried the following:
  
  Recreating a xorg.conf by dpkg-reconfigure - no success
  
  Switching from ati(radeon) driver to fbdev - no success, but no
  freeze.
  
  Switching from 24 to 16 DefaultDepth + fbdev - no success, X shows
  the wm splashscreen with an cross cursor similar to the twm one but
  shuts down after a while.
  
  Installing libgl1-mesa-dri in the hope r300 is used with radeon
  driver - frozen machine.
  
  Are there significant changes from 6.8.2 to 6.9.0 which I have
  overseen?
  
  Elimar
  
  
  I'm experiencing similar freezing on my powerbook 5,4 with ATI mobility 
  radio
  9600, after upgrading to 6.9.0 Have you figured out what's wrong at all? 
  Could
  you point to any links, is it the ATI driver? I finally just downgraded back
  down to 6.8.2 after fiddling with it forever... jeez, what a waste of time 
  for
  me. Thanks.

 I've tried
 http://lists.debian.org/debian-x/2006/01/msg00680.html
 and were able to run X. But only in 2-D Mode. DRI doesn't work but
 freezes with both xlibmesa and libgl1-mesa. The newest DRI modules
 are in my kernel, though. The 2-D mode shows some errors related to
 my synaptic driver which I didn't investigate yet.

 Elimar


 --
 .~.
 /V\   L   I   N   U   X
/( )\ Phear the Penguin
^^-^^


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




--
---
Javier O. Ramírez Martínez
Key fingerprint = E7D8 22DC 5B71 72DC A06A  61F4 D823 35ED 2E67 CFB2
linux.mty.itesm.mx/~oramirez



2.6.16-rc1

2006-01-21 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Has anyone managed to get linux-2.6.16-rc1 to boot successfully on a
powermac?  It appears to detect the IDE controller and HDD on my mac
mini, but then fails to mount the root fs.  (It's hard to double check
this because the USB keyboard isn't initialised by the failure, so I
can't scroll back to check.)


Regards,
Roger

- -- 
Roger Leigh
Printing on GNU/Linux?  http://gutenprint.sourceforge.net/
Debian GNU/Linuxhttp://www.debian.org/
GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ http://mailcrypt.sourceforge.net/

iD8DBQFD0lJuVcFcaSW/uEgRAmrJAJ49lyl7LusZHTCYBBho9uXSPut+IgCg06DO
5M362VC1XyeIMyRpi7rXcsI=
=7T9b
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: G5 fan revving problems.

2006-01-21 Thread Brian Durant

On 20. jan 2006, at 19.13, Sven Luther wrote:


On Fri, Jan 20, 2006 at 06:12:35PM +0100, Brian Durant wrote:

On 20. jan 2006, at 16.50, Charles Plessy wrote:


On Fri, Jan 20, 2006 at 04:09:17PM +0100, Brian Durant wrote :
Hi, I am new to the list. I joined manly because I was looking  
for a

list that would have a PPC centric bent so that I could discuss
problems I run into.  I have a 1.8 GHz PowerPC G5, running OS X  
Tiger


Hi,

Maybe this information is not precise enough... is it an iMac or a
PowerMac ? What does cat /proc/cpu says ?


Power Mac G5.  The output was no such file or directory.


/proc/cpuinfo


Tha command returned the following:

[EMAIL PROTECTED]:~$ cat /proc/cpuinfo
processor   : 0
cpu : PPC970FX, altivec supported
clock   : 1800.00MHz
revision: 3.0 (pvr 003c 0300)

timebase: 
machine : PowerMac9,1
motherboard : PowerMac9,1 MacRISC4 Power Macintosh
detected as : 337 (PowerMac G5)
pmac flags  : 
L2 cache: 512K unified
pmac-generation : NewWorld




I have a iMac (8,1) on which had to recompile a debian 2.6.15
kernel in
order to enable the fan control.

http://lists.debian.org/debian-powerpc/2006/01/msg00110.html


No one has mentioned this on the ubuntu-users list yet. I am a
newbie, so I would need help if I had to do this. First and foremost
however, a kernel patch AFIK isn't possible when using a live-CD and
I am unsure as to whether or not I can do a quick enough install to
avoid any  potential damage with my fans revving.


Well, the ubuntu kernel is fully different from the debian kernel,  
and has
absolutely no relationship, except the occasional patch exchange,  
so ...


The problem here is that Debian doesn't make it's own live-CD. I  
didn't realize that the kernels were so different between Debian  
based distros. Is there anyone on the list that has a G5 and is  
running Debian? How can I resolve this issue?


Fabbionne, when he was maintaining the ubuntu kernel used to talk  
to us, but
since maintainership changed for the ubuntu kernels, this is no  
more the case.


Friendly,

Sven Luther


I'll pass this on to the Ubuntu list and ask why. Seems strange to me.

Cheers,

Brian


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Video capture cards?

2006-01-21 Thread vinai

On Thu, Jan 19, 2006 at 01:30:18AM -0800, Derek wrote:


Hello,I wanted to turn my old powermac into a tv video recorder.I was
thinking of getting this card
http://www.newegg.com/Product/Product.asp?Item=N82E16815100120 (KWORLD
VS-L883D PCI, The cheapest one on there).Will this card work in
powerpc linux?Can someone recomend a good pci video capture card for
powerpc?


I have seen the Hauppage PVR cards working, including the ones with hardware
encode/decode support.

I don't know about these others, but i would go for something sure.

Friendly,

Sven Luther


Hi All,

So what software can drive and use these cards ?  The last time I had a
look at this, the ivtv driver (the drive I know for the Hauppage cards)
used some x86 assembly, and did not even compile on PPC (but mind you -
this was QUITE a while ago).

cheers
vinai


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Linux md mac partition scheme

2006-01-21 Thread Sascha Frey
Hi,

I'm trying to set up a software raid array on my Powermac G5 box.

I created two partitions using mac-fdisk and created the md array with mdadm 
--create /dev/md/0 -l1 -n2 /dev/sda4 /dev/sdb4

The array is accessible, it works fine, but...
After reboot the kernel does not recognize the array automatically.

I want to boot from this (root fs) array, so I can't set it up using a script 
at boot time.

Two weeks ago I installed Debian on a RAID 1 array using debian installer (had 
to set it up manually, partman can not create raid partitons), but I can't 
remember what I exactly have done.

Maybe the kernel does not recognize the raid partitions, because the type is 
not set correctly.
I used mac-fdisk to create the partitons (used Linux_RAID for type).

When using msdos partition scheme, I can set the partition type to 0xfd and it 
works fine.
But openfirmware can not access disks with msdos labels. So from where should I 
load yaboot?


Thanks
Sascha


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



pbbuttonsd: mouse not activity?

2006-01-21 Thread Mich Lanners
Hi all,

For I don't know what reason (more on that in another thread) pbbuttonsd
started detecting keyboard activity. So far so good.

However, it would seem that mouse movements are not counted as activity?
Is that so by design, concious decision, or is it a bug?

Thanks, and cheers

Michel

-
Michel Lanners |   Read Philosophy.  Study Art.
23, Rue Paul Henkes|Ask Questions.  Make Mistakes.
L-1710 Luxembourg  |
email   [EMAIL PROTECTED]|
http://www.cpu.lu/~mlan| Learn Always. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: pbbuttonsd beta on new Powerbook5,8

2006-01-21 Thread Mich Lanners
Hi all,

On  20 Jan, this message from Michael Schmitz echoed through cyberspace:
 So I'm back to statuc device files, and I previously had event0 ..
 event3. I have created the other ones til 31, and indeed pbbuttonsd
 opens them all. But event4 ... event31 all report ENODEV.
 
 Just wondering ... Does the USB keyboard driver report events at all?
 I'll check that with an external keyboard ASAP.

I have activity detection working now. I have no idea what made it work,
might be something to do with mouseemu (which was stopped at that moment
because it ate 100% CPU). But it's not determinsitic; I first thought it
was a plain incompatibility with mouseemu, so stopping that should make
everything work.

Well, no luck, it's not that easy. Neither the fact that mouseemu is
running in parallel, nor the order in which thez are started seems to
matter.

There is one change, though, I replaced the earlier FN-key patch
(http://patchwork.ozlabs.org/linuxppc/patch?id=3856) with the newer one
(http://patchwork.ozlabs.org/linuxppc/patch?id=4127). But I can't se
what impact this can have on event detection.

 I'm still on 2.6.15rc5, but udev works OK there. It's been a bit dodgy
 to get started IIRC, but that's been a while back.

Concerning udev, I'll recheck and file bugs as appropriate.

Cheers

Michel

-
Michel Lanners |   Read Philosophy.  Study Art.
23, Rue Paul Henkes|Ask Questions.  Make Mistakes.
L-1710 Luxembourg  |
email   [EMAIL PROTECTED]|
http://www.cpu.lu/~mlan| Learn Always. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Linux md mac partition scheme

2006-01-21 Thread Simon Vallet
Hi,

On Sat, 21 Jan 2006 21:03:20 +0100
Sascha Frey [EMAIL PROTECTED] wrote:

 I want to boot from this (root fs) array, so I can't set it up using a
script at boot time.
 {...} 
 Maybe the kernel does not recognize the raid partitions, because the
 type is not set correctly.
 I used mac-fdisk to create the partitons (used Linux_RAID for type).

AFAIK automagic kernel recognition is not implemented on PPC yet, so
you'll have to specify your RAID partitions manually, e.g. :

append=md=0,/dev/sda2,/dev/hda2 md=2,/dev/sda4,/dev/hda4

in your {quik,yaboot}.conf (this is for / on md0 and swap on md2)

You don't need to specify every RAID partition, though -- root and swap
should be enough if your array is correctly configured.

HTH,
Simon 

-- 
Simon Vallet
http://www.castalie.org/pubkey.txt
Due to massive spam, the address shown in the From: header 
only accepts mail from Debian hosts. If you wish to mail me 
privately, address your message to 'user...'


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Powerbook5,8: function keys not working

2006-01-21 Thread Mich Lanners
Hi Michael,

On  20 Jan, this message from Michael Hanselmann echoed through
cyberspace:
 Please try 2.6.16-rc1. It has the latest patch.

Doesn't boot: stops after displaying HID0 values (still in early boot
text console). I have to check if that's a known issue.

Anyway, I have the latest patch I found in the linuxppc patchwork
(http://patchwork.ozlabs.org/linuxppc/patch?id=4127)

I have the keyboard backlight keys working now (pbbuttonsd beta). So
some keys are working at least. The LCD backlight keys worked once, but
not anymore after restarting pbuttonsd, no matter what I try. 

I have not yet tried if after a reboot backlight adjusting works again.

I'm starting to wonder if all this is a pbbuttonsd problem perhaps?

Thanks, and cheers

Michel

-
Michel Lanners |   Read Philosophy.  Study Art.
23, Rue Paul Henkes|Ask Questions.  Make Mistakes.
L-1710 Luxembourg  |
email   [EMAIL PROTECTED]|
http://www.cpu.lu/~mlan| Learn Always. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Linux on new iMac G5 PowerMac12,1 ?

2006-01-21 Thread Benjamin Herrenschmidt
On Fri, 2006-01-20 at 20:47 -0500, Percy Zahl wrote:
 I like to try a kernel build for the iMac 12,1.
 Is the latest kernel ready for a test on this box?
 If there is any hope to get it up and also get the Windfarm support...:

2.6.16-rc1 should. Windfarm isn't there yet (but will at some point)

 Can some one help me out or better post/mail a kernel config-file to  
 get started with.

just do make g5_defconfig

 I have to compile it on my very old G4/400 and this takes me too long  
 to experiment with all the options.
 
 Which gcc is best to use? 4.X?

Yeah, whatever comes with your distro... 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: AGPGART driver for ArticiaS - ioremap() problem

2006-01-21 Thread Benjamin Herrenschmidt
On Sat, 2006-01-21 at 02:59 +0100, Gerhard Pircher wrote:

 Yes, I see. :( The code mostly allocates the resources for the AGPGART
 driver beyond the real memory space, thus preventing the X server to work.
 Sometimes the resource is also mapped to where the resource of the graphic
 card resides (address 0x8800, compare with the included iomem file).

The AGP aperture should generally be located outside of those spaces.
That is above RAM and in some place where no device already resides...
It can be made to overlap RAM but that isn't a good idea (that's what
happens on Macs though due to a bug in the Apple chipset).

 Please take a look to the attachments. But the allocation seems to be
 different now! Strange!? At least the AGPGART driver is not allocated to bus
 1.

I don't see anything related to AGP in your output... you didn't post
the lspci as root thus it's missing all the useful infos ;) Also, the
AGP base isn't generally a PCI BAR of the bridge... it is one in your
case ?

Ben.
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Powerbook5,8: FN key mode

2006-01-21 Thread Matthias Grimm
On Fri, 20 Jan 2006 23:29:09 +0100
Michael Hanselmann [EMAIL PROTECTED] wrote:

Hi Michael,
 On Fri, Jan 20, 2006 at 07:30:12PM +0100, Matthias Grimm wrote:
  Where do you set pb_mode=1? Is it a module parameter?
 
 Yes. You can change it during runtime trough
 /sys/modules/usbhid/parameters/pb_fnmode (that's what pbbuttonsd might
 have to do).

I added this function to pbbuttonsd beta. You should be able to set
the fnmode as usual with the config option KBDMode = fkeysfirst /
fkeyslast.

Because the option pb_fnmode could be set to disabled, I added this
mode as well: KBDMode = disabled. On machines with ADB keyboard the
option disabled is not possible and will be forced to fkeyslast.

The beta version is available at:
ftp://ftp.berlios.de/pub/pbbuttons/pbbuttonsd-0.7.3-6g.tar.gz

It would be nice if you could test this feature and tell me the results.

 Best Regards
   Matthias

PS: The offer to test is not limited to Michael ;-)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Linux on new iMac G5 PowerMac12,1 ?

2006-01-21 Thread Percy Zahl

I compiled a 2.6.16-rc1, this worked OK.
Then I put it (vmlinux) in my root ditectory of the first and only  
disk together with the yaboot stuff and tried to launch it via OF  
boot prompt like:


boot hd0:/dev/disk0s3, yaboot

This seamed to launched some code and spit out about 10 lines of some  
numbers/tables I really
cant get a real glimpse on, were there only for much less then a  
second and then I ended up with
and kind of grey Forbidden sign (graphics, a circle with diagonal  
line) on a black screen.

All frozen, need to power off.

System: newest G5 iMac 12,1

Any ideas?

-Percy

On Jan 21, 2006, at 5:45 PM, Benjamin Herrenschmidt wrote:


On Fri, 2006-01-20 at 20:47 -0500, Percy Zahl wrote:

I like to try a kernel build for the iMac 12,1.
Is the latest kernel ready for a test on this box?
If there is any hope to get it up and also get the Windfarm  
support...:


2.6.16-rc1 should. Windfarm isn't there yet (but will at some point)


Can some one help me out or better post/mail a kernel config-file to
get started with.


just do make g5_defconfig


I have to compile it on my very old G4/400 and this takes me too long
to experiment with all the options.

Which gcc is best to use? 4.X?


Yeah, whatever comes with your distro...




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Linux on new iMac G5 PowerMac12,1 ?

2006-01-21 Thread Percy Zahl

OK, that was my fault and I got a set further now.

I hardly got a glimpse on the linux kernel output now again, because  
it stopped after dumping about one screen of stuff in almost no time  
with a blank screen this time. But I took my fast digital camera and  
was able to capture it:


The first stage after hitting retun at the yaboot prompt (install):
http://mysite.verizon.net/pyzahl/iMac/imac12,1-stage0-linux2.6.16- 
rc1.jpg


Then this for about 1/10 of a second before I got black screen and  
needed to power off:
http://mysite.verizon.net/pyzahl/iMac/imac12,1-stage1-linux2.6.16- 
rc1.jpg


-Percy

On Jan 21, 2006, at 8:43 PM, Benjamin Herrenschmidt wrote:


On Sat, 2006-01-21 at 20:26 -0500, Percy Zahl wrote:

I compiled a 2.6.16-rc1, this worked OK.
Then I put it (vmlinux) in my root ditectory of the first and only
disk together with the yaboot stuff and tried to launch it via OF
boot prompt like:

boot hd0:/dev/disk0s3, yaboot

This seamed to launched some code and spit out about 10 lines of some
numbers/tables I really
cant get a real glimpse on, were there only for much less then a
second and then I ended up with
and kind of grey Forbidden sign (graphics, a circle with diagonal
line) on a black screen.
All frozen, need to power off.


Looks like yaboot got bunk... that an interesting command line you
passed to OF anyway :)

Try boot hd:3,yaboot instead

Ben.





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



[PATCH 001/001] PMAC HD runtime blinking control

2006-01-21 Thread Cedric Pradalier
Hi,

I've finally spend the time to mend the patch for control of
the HD led blinking at runtime. This is a patch against
2.6.15

The sysfs entry is attached to the PCI device and to the
MACIO device if available. I think that was what Ben was
asking for:

lauren-ph:/sys# find . | grep blink
./module/ide_core/parameters/noblink
./devices/pci0001:10/0001:10:17.0/blinking_led
./devices/pci0001:10/0001:10:17.0/0.8000:mac-io/0.0001f000:ata-4/blinking_led


To activate blinking:
echo 1  ./devices/pci0001:10/0001:10:17.0/blinking_led

To deactivate it:
echo 0  ./devices/pci0001:10/0001:10:17.0/blinking_led

There is also a boot time parameter idecore:noblink to
deactivate the blinking at this stage.


signed-off-by: Cedric Pradalier [EMAIL PROTECTED]
---

--- drivers/ide/ppc/pmac.c.orig 2006-01-03
13:21:10.0 +1000 +++ drivers/ide/ppc/pmac.c
2006-01-22 11:51:11.0 +1000 @@ -36,6 +36,11 @@
 #include linux/pmu.h
 #include linux/scatterlist.h
 
+#ifdef CONFIG_BLK_DEV_IDE_PMAC_BLINK
+#include linux/device.h
+#include asm/of_device.h
+#endif
+
 #include asm/prom.h
 #include asm/io.h
 #include asm/dbdma.h
@@ -427,6 +432,15 @@ static void pmac_ide_kauai_selectproc
(id 
 #ifdef CONFIG_BLK_DEV_IDE_PMAC_BLINK
 
+MODULE_AUTHOR(Paul Mackerras  Ben. Herrenschmidt);
+MODULE_DESCRIPTION(Support for IDE interfaces on
PowerMacs); +MODULE_LICENSE(GPL);
+
+static int blinking_led = 1;
+module_param_named(noblink,blinking_led, invbool, 0666);
+MODULE_PARM_DESC(noblink,Enable/Disable blinking led
[Default: enabled]); +
+
 /* Set to 50ms minimum led-on time (also used to limit
frequency
  * of requests sent to the PMU
  */
@@ -437,8 +451,7 @@ static spinlock_t pmu_blink_lock;
 static unsigned long pmu_blink_stoptime;
 static int pmu_blink_ledstate;
 static struct timer_list pmu_blink_timer;
-static int pmu_ide_blink_enabled;
-
+static int pmu_ide_blink_enabled = 0;
 
 static void
 pmu_hd_blink_timeout(unsigned long data)
@@ -468,6 +481,8 @@ static void
 pmu_hd_kick_blink(void *data, int rw)
 {
unsigned long flags;
+   if (!blinking_led)
+   return;

pmu_blink_stoptime = jiffies + PMU_HD_BLINK_TIME;
wmb();
@@ -483,8 +498,28 @@ pmu_hd_kick_blink(void *data, int rw)
spin_unlock_irqrestore(pmu_blink_lock, flags);
 }
 
+static ssize_t show_blinkingled_activity(struct device
*dev, struct device_attribute *attr, char *buf)\ +{  
+   return sprintf(buf, %c\n, blinking_led?'1':'0'); 
+}
+
+static ssize_t set_blinkingled_activity(struct device
*dev, struct device_attribute *attr, 
+   const char *buf, size_t count)
+{
+   int blink;
+   if (sscanf (buf, %d, blink) != 1)
+   return -EINVAL;
+   blinking_led = (blink != 0);
+   printk(KERN_INFO pmac blinking led initialized
(blink %s)\n,
+   blinking_led?enabled:disabled);
+   return count;
+}
+
+static DEVICE_ATTR (blinking_led, S_IRUGO | S_IWUSR, 
+   show_blinkingled_activity,
set_blinkingled_activity); +
 static int
-pmu_hd_blink_init(void)
+pmu_hd_blink_init(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif)
 {
struct device_node *dt;
const char *model;
@@ -516,6 +551,13 @@ pmu_hd_blink_init(void)
init_timer(pmu_blink_timer);
pmu_blink_timer.function = pmu_hd_blink_timeout;
 
+   device_create_file (hwif-pci_dev-dev,
dev_attr_blinking_led);
+   if (pmif-mdev != NULL)
+   device_create_file
(pmif-mdev-ofdev.dev, dev_attr_blinking_led);
+   
+   printk(KERN_INFO pmac blinking led initialized
(blink %s)\n,
+   blinking_led?enabled:disabled);
+
return 1;
 }
 
@@ -1271,7 +1313,7 @@ static int
 pmac_ide_setup_device(pmac_ide_hwif_t *pmif, ide_hwif_t
*hwif) {
struct device_node *np = pmif-node;
-   int *bidp, i;
+   int *bidp;
 
pmif-cable_80 = 0;
pmif-broken_dma = pmif-broken_dma_warn = 0;
@@ -1375,7 +1417,7 @@ pmac_ide_setup_device(pmac_ide_hwif_t
*p hwif-speedproc = pmac_ide_tune_chipset;
 
 #ifdef CONFIG_BLK_DEV_IDE_PMAC_BLINK
-   pmu_ide_blink_enabled = pmu_hd_blink_init();
+   pmu_ide_blink_enabled = pmu_hd_blink_init
(pmif,hwif); 
if (pmu_ide_blink_enabled)
hwif-led_act = pmu_hd_kick_blink;
@@ -1476,6 +1518,7 @@ pmac_ide_macio_attach(struct
macio_dev * #endif /* CONFIG_BLK_DEV_IDEDMA_PMAC */
dev_set_drvdata(mdev-ofdev.dev, hwif);
 
+   printk(KERN_INFO pmac: using macio interface);
rc = pmac_ide_setup_device(pmif, hwif);
if (rc != 0) {
/* The inteface is released to the common
IDE layer */ @@ -1584,6 +1627,7 @@ pmac_ide_pci_attach
(struct pci_dev *pdev 
pci_set_drvdata(pdev, hwif);
 
+   printk(KERN_INFO pmac: using PCI interface);
rc = pmac_ide_setup_device(pmif, hwif);
if (rc != 0) {
/* The inteface is released to the common
IDE layer */


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of 

Re: [PATCH 001/001] PMAC HD runtime blinking control

2006-01-21 Thread Benjamin Herrenschmidt
On Sun, 2006-01-22 at 12:19 +1000, Cedric Pradalier wrote:
 Hi,
 
 I've finally spend the time to mend the patch for control of
 the HD led blinking at runtime. This is a patch against
 2.6.15
 
 The sysfs entry is attached to the PCI device and to the
 MACIO device if available. I think that was what Ben was
 asking for:

Heh, nice :) Almost ! It would be better if it was attached to the sysfs
node of the ide interface, you can find it in the HWIF array after
probe, but I won't be too much of a pain about that for now :)

Ben.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Linux on new iMac G5 PowerMac12,1 ?

2006-01-21 Thread Benjamin Herrenschmidt
On Sat, 2006-01-21 at 21:29 -0500, Percy Zahl wrote:
 OK, that was my fault and I got a set further now.
 
 I hardly got a glimpse on the linux kernel output now again, because  
 it stopped after dumping about one screen of stuff in almost no time  
 with a blank screen this time. But I took my fast digital camera and  
 was able to capture it:
 
 The first stage after hitting retun at the yaboot prompt (install):
 http://mysite.verizon.net/pyzahl/iMac/imac12,1-stage0-linux2.6.16- 
 rc1.jpg
 
 Then this for about 1/10 of a second before I got black screen and  
 needed to power off:
 http://mysite.verizon.net/pyzahl/iMac/imac12,1-stage1-linux2.6.16- 
 rc1.jpg

It seems that the video driver is having a hard time with the new x600
card in there. (In fact, X doesn't work neither, at least not yet it
seems). In the meantime, you can probably get a console if you boot with
video=ofonly on the kenrel command line.

Ben.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Powerbook5,8: function keys not working

2006-01-21 Thread Benjamin Herrenschmidt
On Sat, 2006-01-21 at 23:13 +0100, Mich Lanners wrote:
 Hi Michael,
 
 On  20 Jan, this message from Michael Hanselmann echoed through
 cyberspace:
  Please try 2.6.16-rc1. It has the latest patch.
 
 Doesn't boot: stops after displaying HID0 values (still in early boot
 text console). I have to check if that's a known issue.

Try booting with btextdbg on the kernel command line... You may get
more informative output

 Anyway, I have the latest patch I found in the linuxppc patchwork
 (http://patchwork.ozlabs.org/linuxppc/patch?id=4127)
 
 I have the keyboard backlight keys working now (pbbuttonsd beta). So
 some keys are working at least. The LCD backlight keys worked once, but
 not anymore after restarting pbuttonsd, no matter what I try. 
 
 I have not yet tried if after a reboot backlight adjusting works again.
 
 I'm starting to wonder if all this is a pbbuttonsd problem perhaps?

Do you have automatic backlight control in pbbuttons ?

Ben.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Linux on new iMac G5 PowerMac12,1 ?

2006-01-21 Thread Percy Zahl
Very good and thx! This works and I was able to start the Debian  
installer, to partition the disk, init with ext3 and begin the Net- 
Install. DHCP worked just fine.

Let's wait for X support then, would be kind of nice to have.

However, the graphical Linux Penguin Logo of the kernel showed up OK!

-Percy

On Jan 21, 2006, at 9:51 PM, Benjamin Herrenschmidt wrote:


On Sat, 2006-01-21 at 21:29 -0500, Percy Zahl wrote:

OK, that was my fault and I got a set further now.

I hardly got a glimpse on the linux kernel output now again, because
it stopped after dumping about one screen of stuff in almost no time
with a blank screen this time. But I took my fast digital camera and
was able to capture it:

The first stage after hitting retun at the yaboot prompt (install):
http://mysite.verizon.net/pyzahl/iMac/imac12,1-stage0-linux2.6.16-
rc1.jpg

Then this for about 1/10 of a second before I got black screen and
needed to power off:
http://mysite.verizon.net/pyzahl/iMac/imac12,1-stage1-linux2.6.16-
rc1.jpg


It seems that the video driver is having a hard time with the new x600
card in there. (In fact, X doesn't work neither, at least not yet it
seems). In the meantime, you can probably get a console if you boot  
with

video=ofonly on the kenrel command line.

Ben.





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Help BCM430x

2006-01-21 Thread Marcos Medeiros

cold:~# iwconfig eth2 essid any
Error for wireless request Set ESSID (8B1A) :
   SET failed on device eth2 ; Operation not supported.
cold:~#

what?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Linux on new iMac G5 PowerMac12,1 ?

2006-01-21 Thread Benjamin Herrenschmidt
On Sat, 2006-01-21 at 23:01 -0500, Percy Zahl wrote:
 Very good and thx! This works and I was able to start the Debian  
 installer, to partition the disk, init with ext3 and begin the Net- 
 Install. DHCP worked just fine.
 Let's wait for X support then, would be kind of nice to have.
 
 However, the graphical Linux Penguin Logo of the kernel showed up OK!

Yes, with ofonly it sticks to the 8 bits framebuffer initialized by
the firmware... enough to display the penguin but not much more
unfortunately...

I'm not sure yet what's up with the video. I might ask you to send me
register dumps and to try various things later, maybe next week, I'm a
bit offline at the moment (vacation).

Ben.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Help BCM430x

2006-01-21 Thread Michael Tautschnig
 cold:~# iwconfig eth2 essid any
 Error for wireless request Set ESSID (8B1A) :
SET failed on device eth2 ; Operation not supported.
 cold:~#
 
 what?


Please attacht the output of dmesg, otherwise we can't help you.

Thanks,
Michael



signature.asc
Description: Digital signature