Re: Compiling EIDE patch on PPC
From: Mike Fedyk <hidden>
Date: 2001-08-10 23:17:14
On Thu, Aug 09, 2001 at 09:43:41PM +0200, Michel Lanners wrote:
Hi Mike, On 7 Aug, this message from Mike Fedyk echoed through cyberspace:quoted
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....quoted
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.bz2That should be it.....quoted
and this patch (from Phil Brutsche [off-list ref] on LKML):--- 2.2.19-ide-05042001/drivers/block/ll_rw_blk.c~ Tue Aug 7 15:34:292001+++ 2.2.19-ide-05042001/drivers/block/ll_rw_blk.c Tue Aug 7 15:50:082001@@ -25,6 +25,7 @@ #include <linux/blk.h> #ifdef CONFIG_POWERMAC +#include <linux/ide.h> #include <asm/ide.h> #endifAh, 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.
OK, I've been able to compile it successfully. Changes included. I haven't booted the kernel yet. Can someone take a look at the patch to see if I may have made any bad changes? Maybe the actual files in asm-ppc should be changed instead? If it is good, I'll send it to Hedrick for the next patch release. Also, there is an include for asm/ide.h in apus_setup.c. I didn't change it because I don't have any prep machines for testing, and for some reason it is also including from the m86k arch. Michel, I'm going to do another compile with your pci-fixup patch. Do you have any idea if it is needed on 7200, 6500, or oldworld g3 powermacs also? This patch is against 2.2.19 + ide.05042001 The patch is below:
--- 2.2.19-ide-05042001/drivers/block/ide-pmac.c Fri Aug 10 12:40:07 2001
+++ 2.2.19-ide-05042001-mikef/drivers/block/ide-pmac.c Fri Aug 10 12:34:47 2001@@ -28,7 +28,6 @@ #include <asm/prom.h> #include <asm/io.h> #include <asm/dbdma.h> -// #include <asm/ide.h> #include <asm/mediabay.h> #include <asm/feature.h> #ifdef CONFIG_PMAC_PBOOK --- 2.2.19-ide-05042001/drivers/block/ide-disk.c Fri Aug 10 12:40:07 2001 +++ 2.2.19-ide-05042001-mikef/drivers/block/ide-disk.c Fri Aug 10 12:35:23 2001
@@ -54,7 +54,6 @@ #include <asm/irq.h> #include <asm/uaccess.h> #include <asm/io.h> -#include <asm/ide.h> #ifdef CONFIG_BLK_DEV_PDC4030 #define IS_PDC4030_DRIVE (HWIF(drive)->chipset == ide_pdc4030) --- 2.2.19-ide-05042001/drivers/block/ll_rw_blk.c Fri Aug 10 12:40:07 2001 +++ 2.2.19-ide-05042001-mikef/drivers/block/ll_rw_blk.c Fri Aug 10 12:35:57 2001
@@ -25,7 +25,7 @@ #include <linux/blk.h> #ifdef CONFIG_POWERMAC -#include <asm/ide.h> +#include <linux/ide.h> #endif #include <linux/module.h> --- 2.2.19-ide-05042001/arch/ppc/kernel/residual.c Fri Aug 10 12:40:06 2001 +++ 2.2.19-ide-05042001-mikef/arch/ppc/kernel/residual.c Fri Aug 10 12:36:29 2001
@@ -47,7 +47,6 @@ #include <asm/io.h> #include <asm/pgtable.h> #include <linux/ide.h> -#include <asm/ide.h> const char * PnP_BASE_TYPES[] __initdata = { --- 2.2.19-ide-05042001/arch/ppc/kernel/ppc_ksyms.c Fri Aug 10 12:40:06 2001 +++ 2.2.19-ide-05042001-mikef/arch/ppc/kernel/ppc_ksyms.c Fri Aug 10 12:32:38 2001
@@ -12,7 +12,6 @@ #include <asm/semaphore.h> #include <asm/processor.h> #include <asm/uaccess.h> -#include <asm/ide.h> #include <linux/ide.h> #include <asm/checksum.h> #include <asm/pgtable.h>
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/