Trouble compiling kernel for G5.

7 messages, 2 authors, 2004-01-11 · open the first message on its own page

Trouble compiling kernel for G5.

From: Stefan Berndtsson <hidden>
Date: 2004-01-09 17:24:14

When trying to compile the latest rsynced kernel (checked today, 2004-01-09)
from source.mvista.com::linuxppc-2.5-benh (2.6.1-rc1-ben1) for my G5, I
run into the following message with SATA:

  CC      drivers/scsi/sata_svw.o
drivers/scsi/sata_svw.c:236: error: request for member `bios_param' in something not a structure or union
drivers/scsi/sata_svw.c:236: error: initializer element is not constant
drivers/scsi/sata_svw.c:236: error: (near initialization for `k2_sata_sht.proc_info')
drivers/scsi/sata_svw.c: In function `k2_sata_init_one':
drivers/scsi/sata_svw.c:369: warning: label `err_out_unmap' defined but not used
make[2]: *** [drivers/scsi/sata_svw.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2

My .config can be found at http://stefan.nocrew.org/config-g5.txt

GCC version is 3.3.3, currently running kernel 2.6.0-test10.

Anything else needed from me?

/Stefan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Trouble compiling kernel for G5.

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2004-01-10 23:44:16

On Sat, 2004-01-10 at 04:24, Stefan Berndtsson wrote:
When trying to compile the latest rsynced kernel (checked today, 2004-01-09)
from source.mvista.com::linuxppc-2.5-benh (2.6.1-rc1-ben1) for my G5, I
run into the following message with SATA:
rsync again

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Trouble compiling kernel for G5.

From: Stefan Berndtsson <hidden>
Date: 2004-01-11 00:17:47

Benjamin Herrenschmidt [off-list ref] writes:
On Sat, 2004-01-10 at 04:24, Stefan Berndtsson wrote:
quoted
When trying to compile the latest rsynced kernel (checked today, 2004-01-09)
from source.mvista.com::linuxppc-2.5-benh (2.6.1-rc1-ben1) for my G5, I
run into the following message with SATA:
rsync again
Figured from the other mails that mvista wasn't up to date at the point,
so with a 2.6.1-ben1 it compiled and booted fine. Thanks.

Any news on when DVD-writing will be possible with DMA turned on?

/Stefan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Trouble compiling kernel for G5.

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2004-01-11 00:36:06

On Sun, 2004-01-11 at 11:17, Stefan Berndtsson wrote:
Benjamin Herrenschmidt [off-list ref] writes:
quoted
On Sat, 2004-01-10 at 04:24, Stefan Berndtsson wrote:
quoted
When trying to compile the latest rsynced kernel (checked today, 2004-01-09)
from source.mvista.com::linuxppc-2.5-benh (2.6.1-rc1-ben1) for my G5, I
run into the following message with SATA:
rsync again
Figured from the other mails that mvista wasn't up to date at the point,
so with a 2.6.1-ben1 it compiled and booted fine. Thanks.

Any news on when DVD-writing will be possible with DMA turned on?
It doesn't work at the moment ?

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Trouble compiling kernel for G5.

From: Stefan Berndtsson <hidden>
Date: 2004-01-11 01:16:51

Benjamin Herrenschmidt [off-list ref] writes:
On Sun, 2004-01-11 at 11:17, Stefan Berndtsson wrote:
quoted
Benjamin Herrenschmidt [off-list ref] writes:
quoted
On Sat, 2004-01-10 at 04:24, Stefan Berndtsson wrote:
quoted
When trying to compile the latest rsynced kernel (checked today, 2004-01-09)
from source.mvista.com::linuxppc-2.5-benh (2.6.1-rc1-ben1) for my G5, I
run into the following message with SATA:
rsync again
Figured from the other mails that mvista wasn't up to date at the point,
so with a 2.6.1-ben1 it compiled and booted fine. Thanks.

Any news on when DVD-writing will be possible with DMA turned on?
It doesn't work at the moment ?
When I, on the G5, run:

growisofs -Z /dev/hda -dvd-video dvddir

I get:

ide0, timeout waiting                   for dbdma command stop
ide-cd: dma error
hda: DMA disabled
hda: dma error: status=0x50 { DriveReady SeekComplete }
hda: dma error: error=0x00
cdrom_newpc_intr: 4 residual after xfer
cdrom_newpc_intr: 4 residual after xfer

And hdparm shows the drive to no longer have DMA turned on, which it did
before running growisofs.

The same command on a B&W G3 runs fine with DMA (2.4.23 kernel).

So, to answer your question, it seems it does not work, no.

/Stefan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Trouble compiling kernel for G5.

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2004-01-11 01:30:46

ide0, timeout waiting                   for dbdma command stop
ide-cd: dma error
hda: DMA disabled
hda: dma error: status=0x50 { DriveReady SeekComplete }
hda: dma error: error=0x00
cdrom_newpc_intr: 4 residual after xfer
cdrom_newpc_intr: 4 residual after xfer

And hdparm shows the drive to no longer have DMA turned on, which it did
before running growisofs.

The same command on a B&W G3 runs fine with DMA (2.4.23 kernel).

So, to answer your question, it seems it does not work, no.
Look like an underrun again, or an alignement problem as there
seem to be something weird with the DBDMA on the G5 at least
(there is some "workaround" code in darwin that I haven't been
able to understand fully yet).

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: Trouble compiling kernel for G5.

From: Stefan Berndtsson <hidden>
Date: 2004-01-11 01:58:35

Benjamin Herrenschmidt [off-list ref] writes:
quoted
ide0, timeout waiting                   for dbdma command stop
ide-cd: dma error
hda: DMA disabled
hda: dma error: status=0x50 { DriveReady SeekComplete }
hda: dma error: error=0x00
cdrom_newpc_intr: 4 residual after xfer
cdrom_newpc_intr: 4 residual after xfer

And hdparm shows the drive to no longer have DMA turned on, which it did
before running growisofs.

The same command on a B&W G3 runs fine with DMA (2.4.23 kernel).

So, to answer your question, it seems it does not work, no.
Look like an underrun again, or an alignement problem as there
seem to be something weird with the DBDMA on the G5 at least
(there is some "workaround" code in darwin that I haven't been
able to understand fully yet).
Ok, I'll just sit tight and wait a bit then. :)

/Stefan

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help