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

Re: Compiling EIDE patch on PPC



Hi Mike,

On   7 Aug, this message from Mike Fedyk echoed through cyberspace:
> I am attempting to compile a 2.2.19 kernel for a promise udma66 ide
> controller on PPC.

Hm, I have not been using 2.2 kernels for a long time....

> Michel, what else I need to do for a working Promise UDMA66 on PPC?
> 
> I have applied: 
> 2.2.18-pci.diff
> ide.2.2.19.05042001.patch.bz2

That should be it.....

> and this patch (from Phil Brutsche <pbrutsch@tux.creighton.edu> on LKML):
> --- 2.2.19-ide-05042001/drivers/block/ll_rw_blk.c~      Tue Aug  7 15:34:29
> 2001
> +++ 2.2.19-ide-05042001/drivers/block/ll_rw_blk.c       Tue Aug  7 15:50:08
> 2001
> @@ -25,6 +25,7 @@
>  #include <linux/blk.h>
>   
>  #ifdef CONFIG_POWERMAC
> +#include <linux/ide.h>
>  #include <asm/ide.h>
>  #endif

Ah, this problem.... I guess every single kernel file had this problem
at one time or another.... You can probably remove the #include
<asm/ide.h>, since <linux/ide.h> includes that itself.

> Error Message:
> In file included from ppc_ksyms.c:15:
> /usr/src/lk2.2/2.2.19-ide-05042001/include/asm/ide.h:53: parse error before *'
> /usr/src/lk2.2/2.2.19-ide-05042001/include/asm/ide.h:56: warning: function
> declaration isn't a prototype
> /usr/src/lk2.2/2.2.19-ide-05042001/include/asm/ide.h:63: parse error before *'
> /usr/src/lk2.2/2.2.19-ide-05042001/include/asm/ide.h:63: warning: function
> declaration isn't a prototype
> make[1]: *** [ppc_ksyms.o] Error 1
> make[1]: Leaving directory /usr/src/lk2.2/2.2.19-ide-05042001/arch/ppc/kernel'
> make: *** [_dir_arch/ppc/kernel] Error 2

Have a look at include/asm/ide.h, lines 53 and 63. There is a type used
there that isn't defined in the PPC include files. Copy the definition
from the i386 files.

Bob had the same problem; he may still know what he had to change. Bob?

> # Block devices
> #
> # CONFIG_BLK_DEV_FD is not set
> CONFIG_BLK_DEV_IDE=y
> # CONFIG_BLK_DEV_HD_IDE is not set
> CONFIG_BLK_DEV_IDEDISK=y
> CONFIG_IDEDISK_MULTI_MODE=y
> CONFIG_IDEDISK_STROKE=y
> CONFIG_BLK_DEV_IDECD=m
> CONFIG_BLK_DEV_IDETAPE=m
> CONFIG_BLK_DEV_IDEFLOPPY=m
> # CONFIG_BLK_DEV_IDESCSI is not set
> CONFIG_IDE_TASK_IOCTL=y
> # CONFIG_PKT_TASK_IOCTL is not set
> # CONFIG_IDE_TASK_IOCTL_DEBUG is not set
> # CONFIG_BLK_DEV_CMD640 is not set
> # CONFIG_BLK_DEV_RZ1000 is not set
> CONFIG_BLK_DEV_IDEPCI=y
> CONFIG_IDEPCI_SHARE_IRQ=y
> CONFIG_BLK_DEV_IDEDMA=y
> CONFIG_IDEDMA_AUTO=y
> # CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
> CONFIG_IDEDMA_PCI_EXPERIMENTAL=y
> # CONFIG_IDEDMA_PCI_WIP is not set
> # CONFIG_BLK_DEV_OFFBOARD is not set

If you don't have built-in IDE, then set this. It moves your drives from
hde/hdf/hdg/hdh to hda/hdb/hdc/hdd.

> # CONFIG_BLK_DEV_AEC62XX is not set
> # CONFIG_BLK_DEV_ALI15X3 is not set
> # CONFIG_BLK_DEV_AMD74XX is not set
> # CONFIG_BLK_DEV_CMD64X is not set
> # CONFIG_BLK_DEV_CY82C693 is not set
> # CONFIG_BLK_DEV_CS5530 is not set
> # CONFIG_BLK_DEV_HPT34X is not set
> # CONFIG_BLK_DEV_HPT366 is not set
> # CONFIG_BLK_DEV_PIIX is not set
> # CONFIG_BLK_DEV_OPTI621 is not set
> CONFIG_BLK_DEV_PDC202XX=y
> # CONFIG_PDC202XX_BURST is not set

Set this. It makes the Promise set DMA mode even if the firmware didn't
set it (which of cause is the case on PPC).

> # CONFIG_BLK_DEV_SIS5513 is not set
> # CONFIG_BLK_DEV_SLC90E66 is not set
> # CONFIG_BLK_DEV_OSB4 is not set
> # CONFIG_BLK_DEV_TRM290 is not set
> # CONFIG_BLK_DEV_VIA82CXXX is not set
> # CONFIG_BLK_DEV_SL82C105 is not set
> CONFIG_BLK_DEV_IDE_PMAC=y
> CONFIG_BLK_DEV_IDEDMA_PMAC=y
> CONFIG_BLK_DEV_IDEDMA=y
> CONFIG_PMAC_IDEDMA_AUTO=y
> # CONFIG_IDE_CHIPSETS is not set
> # CONFIG_IDEDMA_IVB is not set
> CONFIG_BLK_DEV_LOOP=m
> # CONFIG_BLK_DEV_NBD is not set
> # CONFIG_BLK_DEV_MD is not set
> # CONFIG_BLK_DEV_RAM is not set
> # CONFIG_BLK_DEV_XD is not set
> # CONFIG_BLK_DEV_DAC960 is not set
> CONFIG_PARIDE_PARPORT=y
> # CONFIG_PARIDE is not set
> CONFIG_BLK_DEV_IDE_MODES=y
> # CONFIG_BLK_CPQ_DA is not set
> # CONFIG_BLK_CPQ_CISS_DA is not set
> # CONFIG_BLK_DEV_HD is not set

Other than that, ok.

Cheers

Michel

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



Reply to: