* EXT_DIRECT IDE Mode
@ 2004-02-11 15:00 DavidHo
2004-02-11 15:31 ` Steven Scholz
0 siblings, 1 reply; 9+ messages in thread
From: DavidHo @ 2004-02-11 15:00 UTC (permalink / raw)
To: steven.scholz; +Cc: linuxppc-embedded
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 <steven.scholz@imc-berlin.de>
>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/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: EXT_DIRECT IDE Mode
2004-02-11 15:00 EXT_DIRECT IDE Mode DavidHo
@ 2004-02-11 15:31 ` Steven Scholz
2004-02-11 18:54 ` DavidHo
0 siblings, 1 reply; 9+ messages in thread
From: Steven Scholz @ 2004-02-11 15:31 UTC (permalink / raw)
To: DavidHo; +Cc: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: EXT_DIRECT IDE Mode
2004-02-11 15:31 ` Steven Scholz
@ 2004-02-11 18:54 ` DavidHo
2004-02-12 9:42 ` Steven Scholz
0 siblings, 1 reply; 9+ messages in thread
From: DavidHo @ 2004-02-11 18:54 UTC (permalink / raw)
To: Steven Scholz; +Cc: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: EXT_DIRECT IDE Mode
2004-02-11 18:54 ` DavidHo
@ 2004-02-12 9:42 ` Steven Scholz
2004-02-12 18:00 ` DavidHo
0 siblings, 1 reply; 9+ messages in thread
From: Steven Scholz @ 2004-02-12 9:42 UTC (permalink / raw)
To: DavidHo; +Cc: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: EXT_DIRECT IDE Mode
2004-02-12 9:42 ` Steven Scholz
@ 2004-02-12 18:00 ` DavidHo
2004-02-12 18:16 ` Jaap-Jan Boor
0 siblings, 1 reply; 9+ messages in thread
From: DavidHo @ 2004-02-12 18:00 UTC (permalink / raw)
To: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: EXT_DIRECT IDE Mode
2004-02-12 18:00 ` DavidHo
@ 2004-02-12 18:16 ` Jaap-Jan Boor
0 siblings, 0 replies; 9+ messages in thread
From: Jaap-Jan Boor @ 2004-02-12 18:16 UTC (permalink / raw)
To: DavidHo; +Cc: linuxppc-embedded
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
>
>
>
>
> > 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/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: EXT_DIRECT IDE Mode
@ 2004-02-12 18:00 DavidHo
0 siblings, 0 replies; 9+ messages in thread
From: DavidHo @ 2004-02-12 18:00 UTC (permalink / raw)
To: linuxppc-embedded
David,
> 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?
Hmm. I'd say it started somewhen at 2.4.20.
> 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.
I don't know how much changes you did. But I strongly recommend moving
to something newer! Otherwise you only get this advice later if you
run into some other problem and try to get help on the mailing list!
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <402B9456.7000007@imc-berlin.de>]
* Re: EXT_DIRECT IDE Mode
[not found] <402B9456.7000007@imc-berlin.de>
@ 2004-02-13 16:23 ` DavidHo
2004-02-13 16:32 ` Steven Scholz
0 siblings, 1 reply; 9+ messages in thread
From: DavidHo @ 2004-02-13 16:23 UTC (permalink / raw)
To: Steven Scholz; +Cc: linuxppc-embedded
Steve,
We have decided to move to a newer kernel (2.4.20 or greater).
As a simple check, would you please give me a list of files with the
CONFIG_IDE_EXT_DIRECT #ifdef so I can get a bit of assurance that I have
the support in the kernel before making the move.
Thanks,
David
David,
> 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?
Hmm. I'd say it started somewhen at 2.4.20.
> 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.
I don't know how much changes you did. But I strongly recommend moving
to something newer! Otherwise you only get this advice later if you
run into some other problem and try to get help on the mailing list!
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: EXT_DIRECT IDE Mode
2004-02-13 16:23 ` DavidHo
@ 2004-02-13 16:32 ` Steven Scholz
0 siblings, 0 replies; 9+ messages in thread
From: Steven Scholz @ 2004-02-13 16:32 UTC (permalink / raw)
To: DavidHo; +Cc: linuxppc-embedded
> Steve,
>
> We have decided to move to a newer kernel (2.4.20 or greater).
> As a simple check, would you please give me a list of files with the
> CONFIG_IDE_EXT_DIRECT #ifdef so I can get a bit of assurance that I have
> the support in the kernel before making the move.
#~> grep -r -l CONFIG_IDE_EXT_DIRECT linux-2.4.21/*
linux-2.4.21/drivers/ide/ppc/mpc8xx.c
linux-2.4.21/drivers/ide/Config.in
Good luck,
Steven
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-02-13 16:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-11 15:00 EXT_DIRECT IDE Mode DavidHo
2004-02-11 15:31 ` Steven Scholz
2004-02-11 18:54 ` DavidHo
2004-02-12 9:42 ` Steven Scholz
2004-02-12 18:00 ` DavidHo
2004-02-12 18:16 ` Jaap-Jan Boor
-- strict thread matches above, loose matches on Subject: below --
2004-02-12 18:00 DavidHo
[not found] <402B9456.7000007@imc-berlin.de>
2004-02-13 16:23 ` DavidHo
2004-02-13 16:32 ` Steven Scholz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).