* [U-Boot-Users] Can't get ide to work
@ 2004-02-03 18:15 Jerry Walden
2004-02-03 21:28 ` Thomas Lange
0 siblings, 1 reply; 6+ messages in thread
From: Jerry Walden @ 2004-02-03 18:15 UTC (permalink / raw)
To: u-boot
Our board is based on the Alchemy DBAu1500
We are using a compact flash card that as an IDE drive (tied into the
IDE interface of the CPU just like the DBAu1500).
During ide_init, the ATA_STATUS byte is read, and there is a wait loop
which waits for the status to be ready. This loop always times out. I
am trying to debug this. Tracing through ide_inb, and ide_outb, the
address of the interface is fine
CFG_PCMCIA_MEM_ADDR (0x20000000). I know that there has to be some TLB
mapping between CFG_PCMCIA_MEM_ADDR (0x20000000) and AU1X_SOCK0_IO
(F00000000) - I just cannot find where this is done.
Any suggestions?
Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Can't get ide to work
@ 2004-02-03 19:35 Jerry Walden
0 siblings, 0 replies; 6+ messages in thread
From: Jerry Walden @ 2004-02-03 19:35 UTC (permalink / raw)
To: u-boot
Our board is based on the Alchemy DBAu1500
We are using a compact flash card that as an IDE drive (tied into the
IDE interface of the CPU just like the DBAu1500).
During ide_init, the ATA_STATUS byte is read, and there is a wait loop
which waits for the status to be ready. This loop always times out. I
am trying to debug this. Tracing through ide_inb, and ide_outb, the
address of the interface is fine
CFG_PCMCIA_MEM_ADDR (0x20000000). I know that there has to be some TLB
mapping between CFG_PCMCIA_MEM_ADDR (0x20000000) and AU1X_SOCK0_IO
(F00000000) - I just cannot find where this is done.
Any suggestions?
Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Can't get ide to work
2004-02-03 18:15 [U-Boot-Users] Can't get ide to work Jerry Walden
@ 2004-02-03 21:28 ` Thomas Lange
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Lange @ 2004-02-03 21:28 UTC (permalink / raw)
To: u-boot
TLB is created in board/dbau1x00/dbau1x00.c
Could be an endian problem, i.e. you read the wrong byte.
/Thomas
Jerry Walden wrote:
> Our board is based on the Alchemy DBAu1500
>
> We are using a compact flash card that as an IDE drive (tied into the
> IDE interface of the CPU just like the DBAu1500).
>
> During ide_init, the ATA_STATUS byte is read, and there is a wait loop
> which waits for the status to be ready. This loop always times out. I
> am trying to debug this. Tracing through ide_inb, and ide_outb, the
> address of the interface is fine
> CFG_PCMCIA_MEM_ADDR (0x20000000). I know that there has to be some TLB
> mapping between CFG_PCMCIA_MEM_ADDR (0x20000000) and AU1X_SOCK0_IO
> (F00000000) - I just cannot find where this is done.
>
> Any suggestions?
>
> Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Can't get ide to work
@ 2004-02-04 18:09 Jerry Walden
2004-02-04 18:51 ` Thomas Lange
0 siblings, 1 reply; 6+ messages in thread
From: Jerry Walden @ 2004-02-04 18:09 UTC (permalink / raw)
To: u-boot
Thanks for the response.
Okay - I found the TLB mapping for CFG_PCMCIA_MEM_ADDR (0x20000000),
however the IDE device is at AU1X_SOCK0_IO (0xF00000000). True - the
PCMCIA is at 0x20000000, however not the ide device. If I look at the
YAMON source - there is a mapping done for 0xF00000000.
I don't see it in u-boot. Where am I going wrong?
Thanks
-----Original Message-----
From: Thomas Lange [mailto:thomas at corelatus.se]
Sent: Tuesday, February 03, 2004 1:29 PM
To: Jerry Walden
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Can't get ide to work
TLB is created in board/dbau1x00/dbau1x00.c
Could be an endian problem, i.e. you read the wrong byte.
/Thomas
Jerry Walden wrote:
> Our board is based on the Alchemy DBAu1500
>
> We are using a compact flash card that as an IDE drive (tied into the
> IDE interface of the CPU just like the DBAu1500).
>
> During ide_init, the ATA_STATUS byte is read, and there is a wait loop
> which waits for the status to be ready. This loop always times out.
> I am trying to debug this. Tracing through ide_inb, and ide_outb, the
> address of the interface is fine CFG_PCMCIA_MEM_ADDR (0x20000000). I
> know that there has to be some TLB mapping between CFG_PCMCIA_MEM_ADDR
> (0x20000000) and AU1X_SOCK0_IO
> (F00000000) - I just cannot find where this is done.
>
> Any suggestions?
>
> Thanks
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Can't get ide to work
2004-02-04 18:09 Jerry Walden
@ 2004-02-04 18:51 ` Thomas Lange
0 siblings, 0 replies; 6+ messages in thread
From: Thomas Lange @ 2004-02-04 18:51 UTC (permalink / raw)
To: u-boot
tlb 20 is mapped to phy 0xF00000000 ( not used )
tlb 21 is mapped to phy 0xF40000000 ( not used )
tlb 22 is mapped to phy 0xF80000000
TLB 22 was enough to make CF work on my dbau1000 board
( only tested in big endian mode ).
/Thomas
Jerry Walden wrote:
> Thanks for the response.
>
> Okay - I found the TLB mapping for CFG_PCMCIA_MEM_ADDR (0x20000000),
> however the IDE device is at AU1X_SOCK0_IO (0xF00000000). True - the
> PCMCIA is at 0x20000000, however not the ide device. If I look at the
> YAMON source - there is a mapping done for 0xF00000000.
>
> I don't see it in u-boot. Where am I going wrong?
>
> Thanks
>
> -----Original Message-----
> From: Thomas Lange [mailto:thomas at corelatus.se]
> Sent: Tuesday, February 03, 2004 1:29 PM
> To: Jerry Walden
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] Can't get ide to work
>
>
> TLB is created in board/dbau1x00/dbau1x00.c
>
> Could be an endian problem, i.e. you read the wrong byte.
>
> /Thomas
>
> Jerry Walden wrote:
>
>>Our board is based on the Alchemy DBAu1500
>>
>>We are using a compact flash card that as an IDE drive (tied into the
>>IDE interface of the CPU just like the DBAu1500).
>>
>>During ide_init, the ATA_STATUS byte is read, and there is a wait loop
>
>
>>which waits for the status to be ready. This loop always times out.
>>I am trying to debug this. Tracing through ide_inb, and ide_outb, the
>
>
>>address of the interface is fine CFG_PCMCIA_MEM_ADDR (0x20000000). I
>>know that there has to be some TLB mapping between CFG_PCMCIA_MEM_ADDR
>
>
>>(0x20000000) and AU1X_SOCK0_IO
>>(F00000000) - I just cannot find where this is done.
>>
>>Any suggestions?
>>
>>Thanks
>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Can't get ide to work
@ 2004-02-05 0:13 Jerry Walden
0 siblings, 0 replies; 6+ messages in thread
From: Jerry Walden @ 2004-02-05 0:13 UTC (permalink / raw)
To: u-boot
Okay - got it! My IDE interface (dbau1500) is at 0xf80000000 (pays to
read the data sheet) - so I just mapped TLB 22 to phy 0xf80000000 and it
works just dandy.
Thanks!
-----Original Message-----
From: Thomas Lange [mailto:thomas at corelatus.se]
Sent: Wednesday, February 04, 2004 10:51 AM
To: Jerry Walden
Cc: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Can't get ide to work
tlb 20 is mapped to phy 0xF00000000 ( not used )
tlb 21 is mapped to phy 0xF40000000 ( not used )
tlb 22 is mapped to phy 0xF80000000
TLB 22 was enough to make CF work on my dbau1000 board
( only tested in big endian mode ).
/Thomas
Jerry Walden wrote:
> Thanks for the response.
>
> Okay - I found the TLB mapping for CFG_PCMCIA_MEM_ADDR (0x20000000),
> however the IDE device is at AU1X_SOCK0_IO (0xF00000000). True - the
> PCMCIA is at 0x20000000, however not the ide device. If I look at the
> YAMON source - there is a mapping done for 0xF00000000.
>
> I don't see it in u-boot. Where am I going wrong?
>
> Thanks
>
> -----Original Message-----
> From: Thomas Lange [mailto:thomas at corelatus.se]
> Sent: Tuesday, February 03, 2004 1:29 PM
> To: Jerry Walden
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] Can't get ide to work
>
>
> TLB is created in board/dbau1x00/dbau1x00.c
>
> Could be an endian problem, i.e. you read the wrong byte.
>
> /Thomas
>
> Jerry Walden wrote:
>
>>Our board is based on the Alchemy DBAu1500
>>
>>We are using a compact flash card that as an IDE drive (tied into the
>>IDE interface of the CPU just like the DBAu1500).
>>
>>During ide_init, the ATA_STATUS byte is read, and there is a wait loop
>
>
>>which waits for the status to be ready. This loop always times out.
>>I am trying to debug this. Tracing through ide_inb, and ide_outb, the
>
>
>>address of the interface is fine CFG_PCMCIA_MEM_ADDR (0x20000000). I
>>know that there has to be some TLB mapping between CFG_PCMCIA_MEM_ADDR
>
>
>>(0x20000000) and AU1X_SOCK0_IO
>>(F00000000) - I just cannot find where this is done.
>>
>>Any suggestions?
>>
>>Thanks
>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration See the
> breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-02-05 0:13 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-03 18:15 [U-Boot-Users] Can't get ide to work Jerry Walden
2004-02-03 21:28 ` Thomas Lange
-- strict thread matches above, loose matches on Subject: below --
2004-02-03 19:35 Jerry Walden
2004-02-04 18:09 Jerry Walden
2004-02-04 18:51 ` Thomas Lange
2004-02-05 0:13 Jerry Walden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox