[Avila] My patch for Gateworks IDE/CF driver does not probe for devices at boot
Petros
ernest0x at awmn.net
Mon Nov 27 07:33:04 EST 2006
--------------080507050100080507060308
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hello!
I' m trying to make a patch that adds the original gateworks ide/cf
driver in kernel 2.6 (2.6.14.7). I build it in the kernel, but it does
not probe for the avila ide at boot (no relevant printk messages are
shown). A reason for this could be that the code also depends on other
parts of the kernel that I forget to enable or parts that need to be
modified. For example, there is also an ide-arm.c file in
drivers/ide/arm/ which is not built. I' m not sure if this is needed for
Avila ide to be probed at boot. This is regulated in drivers/ide/Kconfig
as:
-------------------------------------------------------------------------
config IDE_ARM
def_bool ARM && (ARCH_A5K || ARCH_CLPS7500 || ARCH_RPC || ARCH_SHARK)
-------------------------------------------------------------------------
Do I need to add ARCH_AVILA?
Any other ideas? Please, help me make this patch work!
This is the patch so far (excluding the avila-ide.c code to make this
message smaller):
diff -r -N -u linux-2.6.14.7/drivers/ide/Kconfig
linux-2.6.14.7-patched/drivers/ide/Kconfig
--- linux-2.6.14.7/drivers/ide/Kconfig 2006-01-31
08:52:07.000000000 +0200
+++ linux-2.6.14.7-patched/drivers/ide/Kconfig 2006-10-13
20:22:59.000000000 +0300
@@ -809,6 +809,12 @@
If you suspect your hardware is at all flakey, say N here.
Do NOT email the IDE kernel people regarding this issue!
+config BLK_DEV_IDE_AVILA
+ tristate "Gateworks AVILA CF/IDE support"
+ depends on ARM && ARCH_AVILA
+ help
+ Say Y here if you want to support the Gateworks AVILA CF/IDE
interface.
+
+ help
+ Say Y here if you want to support the Gateworks AVILA CF/IDE
interface.
+
config BLK_DEV_IDE_RAPIDE
tristate "RapIDE interface support"
depends on ARM && ARCH_ACORN
diff -r -N -u linux-2.6.14.7/drivers/ide/arm/Makefile
linux-2.6.14.7-patched/drivers/ide/arm/Makefile
--- linux-2.6.14.7/drivers/ide/arm/Makefile 2006-01-31
08:52:07.000000000 +0200
+++ linux-2.6.14.7-patched/drivers/ide/arm/Makefile 2006-10-13
20:00:18.000000000 +0300
@@ -2,5 +2,6 @@
obj-$(CONFIG_BLK_DEV_IDE_ICSIDE) += icside.o
obj-$(CONFIG_BLK_DEV_IDE_RAPIDE) += rapide.o
obj-$(CONFIG_BLK_DEV_IDE_BAST) += bast-ide.o
+obj-$(CONFIG_BLK_DEV_IDE_AVILA) += avila-ide.o
EXTRA_CFLAGS := -Idrivers/ide
diff -r -N -u linux-2.6.14.7/drivers/ide/arm/avila-ide.c
linux-2.6.14.7-patched/drivers/ide/arm/avila-ide.c
--- linux-2.6.14.7/drivers/ide/arm/avila-ide.c 1970-01-01
02:00:00.000000000 +0200
+++ linux-2.6.14.7-patched/drivers/ide/arm/avila-ide.c 2006-10-13
19:44:52.000000000 +0300
config BLK_DEV_IDE_RAPIDE
tristate "RapIDE interface support"
depends on ARM && ARCH_ACORN
diff -r -N -u linux-2.6.14.7/drivers/ide/arm/Makefile
linux-2.6.14.7-patched/drivers/ide/arm/Makefile
--- linux-2.6.14.7/drivers/ide/arm/Makefile 2006-01-31
08:52:07.000000000 +0200
+++ linux-2.6.14.7-patched/drivers/ide/arm/Makefile 2006-10-13
20:00:18.000000000 +0300
@@ -2,5 +2,6 @@
obj-$(CONFIG_BLK_DEV_IDE_ICSIDE) += icside.o
obj-$(CONFIG_BLK_DEV_IDE_RAPIDE) += rapide.o
obj-$(CONFIG_BLK_DEV_IDE_BAST) += bast-ide.o
+obj-$(CONFIG_BLK_DEV_IDE_AVILA) += avila-ide.o
EXTRA_CFLAGS := -Idrivers/ide
diff -r -N -u linux-2.6.14.7/drivers/ide/arm/avila-ide.c
linux-2.6.14.7-patched/drivers/ide/arm/avila-ide.c
--- linux-2.6.14.7/drivers/ide/arm/avila-ide.c 1970-01-01
02:00:00.000000000 +0200
+++ linux-2.6.14.7-patched/drivers/ide/arm/avila-ide.c 2006-10-13
19:44:52.000000000 +0300
/* And follows the code of avila-ide.c (version 1.3b) as I got it
from another member in this list */
Thank you,
Petros Moisiadis
--------------080507050100080507060308--
More information about the Avila
mailing list