Hi Steve,
My application needs a compactflash and a 1.8" disk drive connected to the
MPC852T. Since the compact flash has already taken up the only PCMCIA
slot, the disk drive is directly attached to the PPC bus so I need to
enable EXT_DIRECT for the disk drive.
I haven't been able to make linux call the ide_init_hwif function. I
looked at how ide.c works and it looks like it enables IDE interfaces on
the PCI first (ide_default_io_base returns non-zero). I haven't yet been
able to find out where it call my function.
Would you be able to tell me how you got this mode working.
Regards,
David Ho
>Subject: Re: MPC8xx IDE
>From: Steven Scholz [off-list ref]
>Date: Wed, 24 Oct 2001 14:02:33 +0200
>> While trying to find an easy way to add non-volatile storage on a
>> custion MPC860 board, I noticed that there was some support for IDE on
>> the PCMCIA interface in the Linux kernel.
>There are actually at least three ways for connecting an IDE HDD. See
>ide-m8xx.c:
>---
>8xx_PCCARD uses the 8xx internal PCMCIA interface in combination
>with a PC Card (e.g. ARGOSY portable Hard Disk Adapter),
>ATA PC Card HDDs or ATA PC Flash Cards (example: TQM8xxL
>systems)
>8xx_DIRECT is used for directly connected IDE devices using the 8xx
>internal PCMCIA interface (example: IVMS8 systems)
>EXT_DIRECT is used for IDE devices directly connected to the 8xx
>bus using some glue logic, but _not_ the 8xx internal
>PCMCIA interface (example: IDIF860 systems)
>---
>I am probably the only one using EXT_DIRECT. ;-)
>Drop me a line if you need schematics.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
From: Steven Scholz <hidden> Date: 2004-02-11 15:31:11
DavidHo@nanometrics.ca wrote:
My application needs a compactflash and a 1.8" disk drive connected to the
MPC852T. Since the compact flash has already taken up the only PCMCIA
slot, the disk drive is directly attached to the PPC bus so I need to
enable EXT_DIRECT for the disk drive.
Ok.
I haven't been able to make linux call the ide_init_hwif function. I
looked at how ide.c works and it looks like it enables IDE interfaces on
the PCI first (ide_default_io_base returns non-zero). I haven't yet been
able to find out where it call my function.
Would you be able to tell me how you got this mode working.
I do if you tell me which kernel version you tried.
I guess you have
CONFIG_BLK_DEV_MPC8xx_IDE=y
# CONFIG_IDE_8xx_PCCARD is not set
# CONFIG_IDE_8xx_DIRECT is not set
CONFIG_IDE_EXT_DIRECT=y
in your .config file?
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Steve,
I'm using a variant of the 2.4.18 kernel from timesys.
The kernel is compiled with those settings. (in your email)
I had to add a call to m8xx_ide_init in m8xx-setup.c at the end of
platform_init.
I can only find these defines in ide-m8xx.c. I am thinking there must be
more to it than the one file.
Thanks for your help,
David
DavidHo@nanometrics.ca wrote:
My application needs a compactflash and a 1.8" disk drive connected to
the
MPC852T. Since the compact flash has already taken up the only PCMCIA
slot, the disk drive is directly attached to the PPC bus so I need to
enable EXT_DIRECT for the disk drive.
Ok.
I haven't been able to make linux call the ide_init_hwif function. I
looked at how ide.c works and it looks like it enables IDE interfaces on
the PCI first (ide_default_io_base returns non-zero). I haven't yet been
able to find out where it call my function.
Would you be able to tell me how you got this mode working.
I do if you tell me which kernel version you tried.
I guess you have
CONFIG_BLK_DEV_MPC8xx_IDE=y
# CONFIG_IDE_8xx_PCCARD is not set
# CONFIG_IDE_8xx_DIRECT is not set
CONFIG_IDE_EXT_DIRECT=y
in your .config file?
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
From: Steven Scholz <hidden> Date: 2004-02-12 09:42:13
DavidHo,
I'm using a variant of the 2.4.18 kernel from timesys.
The kernel is compiled with those settings. (in your email)
I had to add a call to m8xx_ide_init in m8xx-setup.c at the end of
platform_init.
I can only find these defines in ide-m8xx.c. I am thinking there must be
more to it than the one file.
Hmm. 2.4.18 is pretty old. I don't know if there's support for MPC8xx IDE!
CONFIG_IDE_EXT_DIRECT was introduced long (!) after
CONFIG_IDE_8xx_PCCARD and CONFIG_IDE_8xx_DIRECT.
Did you add the code for IDE_EXT_DIRECT yourself?
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
The EXT_DIRECT item is already there in the configuration menu. I thought
it has been fully implemented in that version, until I saw the functions
are not being called in platform_init.
Base on your knowledge, which kernel version has this mode (MPC8xx IDE)
fully working?
And do you know the work involved in porting the support to 2.4.18? I am
gauging which is the easier route moving all the changes I have already
made to 2.4.2x or porting the changes to 2.4.18.
David
I'm using a variant of the 2.4.18 kernel from timesys.
The kernel is compiled with those settings. (in your email)
I had to add a call to m8xx_ide_init in m8xx-setup.c at the end of
platform_init.
I can only find these defines in ide-m8xx.c. I am thinking there must be
more to it than the one file.
Hmm. 2.4.18 is pretty old. I don't know if there's support for MPC8xx IDE!
CONFIG_IDE_EXT_DIRECT was introduced long (!) after
CONFIG_IDE_8xx_PCCARD and CONFIG_IDE_8xx_DIRECT.
Did you add the code for IDE_EXT_DIRECT yourself?
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
David,
Should there not be a call to the 8xx init function between
#ifdef CONFIG_IDE_EXT_DIRECT / #endif in
driver/ide/ide.c ?
There are a lot such init calls there
Jaap-Jan
On Thu, 2004-02-12 at 19:00, DavidHo@nanometrics.ca wrote:
The EXT_DIRECT item is already there in the configuration menu. I thought
it has been fully implemented in that version, until I saw the functions
are not being called in platform_init.
Base on your knowledge, which kernel version has this mode (MPC8xx IDE)
fully working?
And do you know the work involved in porting the support to 2.4.18? I am
gauging which is the easier route moving all the changes I have already
made to 2.4.2x or porting the changes to 2.4.18.
David
quoted
I'm using a variant of the 2.4.18 kernel from timesys.
The kernel is compiled with those settings. (in your email)
I had to add a call to m8xx_ide_init in m8xx-setup.c at the end of
platform_init.
I can only find these defines in ide-m8xx.c. I am thinking there must be
more to it than the one file.
Hmm. 2.4.18 is pretty old. I don't know if there's support for MPC8xx IDE!
CONFIG_IDE_EXT_DIRECT was introduced long (!) after
CONFIG_IDE_8xx_PCCARD and CONFIG_IDE_8xx_DIRECT.
Did you add the code for IDE_EXT_DIRECT yourself?
Steven