public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Silicon Image 0680A and CF-ATA drive
@ 2005-07-25 18:54 Rune Torgersen
  2005-07-25 19:21 ` Andrew Dyer
  0 siblings, 1 reply; 9+ messages in thread
From: Rune Torgersen @ 2005-07-25 18:54 UTC (permalink / raw)
  To: u-boot

Didn't implement anything at all. I just used the generic IDE driver
already present in U-Boot.
All I had to change were those four #defines. 

> -----Original Message-----
> From: Sam Pham [mailto:anhmn at yahoo.com] 
> Sent: Monday, July 25, 2005 12:47
> To: Rune Torgersen; u-boot-users at lists.sourceforge.net
> Subject: RE: [U-Boot-Users] Silicon Image 0680A and CF-ATA drive 
> 
> 
> 
> --- Rune Torgersen <runet@innovsys.com> wrote:
> 
> > I use a 0680A under u-boot, using the standard IDE
> > driver. Works
> > perfect. Only had to give the IDE driver the address
> > of the register
> > base.
> > #define CFG_ATA_BASE_ADDR			0xa0000000 //
> > BaseAddress 5
> > #define CFG_ATA_REG_OFFSET			0x80
> > #define CFG_ATA_DATA_OFFSET			0x80
> > #define CFG_ATA_ALT_OFFSET			0x80
> > 
> 
> It's good to know that somebody had implemented uboot
> for the Sil 0680A controller.  Do you have a patch for
> this driver?  I'd like compare it with my
> implementation to see if I'm missing anything because
> I  can't test my implementation until the eval board
> arrives.  Also, did you implement POST for this
> controller?  I plan to do this as well.
> 
> Thanks.
> 
> Sam
> 
> 
> > > -----Original Message-----
> > > From: u-boot-users-admin at lists.sourceforge.net 
> > > [mailto:u-boot-users-admin at lists.sourceforge.net]
> > On Behalf 
> > > Of Sam Pham
> > > Sent: Tuesday, July 05, 2005 12:12
> > > To: u-boot-users at lists.sourceforge.net
> > > Subject: Re: [U-Boot-Users] Silicon Image 0680A
> > and CF-ATA drive 
> > > 
> > > 
> > > 
> > > --- Wolfgang Denk <wd@denx.de> wrote:
> > > 
> > > > In message
> > > >
> > <20050705161452.30133.qmail@web54108.mail.yahoo.com>
> > > > you wrote:
> > > > > 
> > > > > My custom board has the PCI to ATA chip
> > Silicon
> > > > Image
> > > > > 0680A, which connects to the CompactFlash
> > Storage
> > > > Card
> > > > > that acts as a standard IDE disk if configured
> > > > right. 
> > > > > Anyone knows if U-boot already had the
> > > > implementation
> > > > > for the Silicon Image 0680A and CF-ATA drive? 
> > I
> > > > 
> > > > No.
> > > > 
> > > > > looked through the source code but didn't find
> > > > > anything.  If not, any recommendations of how
> > to
> > > > > implement them?
> > > > 
> > > > Find the Linux driver for this controller,
> > analyze
> > > > it, and  port  the
> > > > unavoidable parts of it to U-Boot.
> > > 
> > > Thanks.  This would help for starting.
> > > 
> > > Sam
> > > 
> > > 
> > > > 
> > > > Best regards,
> > > > 
> > > > Wolfgang Denk
> > > > 
> > > > -- 
> > > > Software Engineering:  Embedded and Realtime
> > > > Systems,  Embedded Linux
> > > > Phone: (+49)-8142-66989-10 Fax:
> > (+49)-8142-66989-80
> > > > Email: wd at denx.de
> > > > To know how another being, another creature
> > feels - 
> > > > that  is  impos-
> > > > sible.                  - Terry Pratchett, _The
> > Dark
> > > > Side of the Sun_
> > > > 
> > > 
> > > 
> > > 
> > > 		
> > >
> > ____________________________________________________
> > 
> > > Yahoo! Sports 
> > > Rekindle the Rivalries. Sign up for Fantasy
> > Football 
> > > http://football.fantasysports.yahoo.com
> > > 
> > > 
> > >
> >
> -------------------------------------------------------
> > > SF.Net email is sponsored by: Discover Easy Linux
> > Migration Strategies
> > > from IBM. Find simple to follow Roadmaps,
> > straightforward articles,
> > > informative Webcasts and more! Get everything you
> > need to get up to
> > > speed, fast.
> >
> http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> > > _______________________________________________
> > > U-Boot-Users mailing list
> > > U-Boot-Users at lists.sourceforge.net
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> > > 
> > > 
> > 
> > 
> >
> -------------------------------------------------------
> > SF.Net email is sponsored by: Discover Easy Linux
> > Migration Strategies
> > from IBM. Find simple to follow Roadmaps,
> > straightforward articles,
> > informative Webcasts and more! Get everything you
> > need to get up to
> > speed, fast.
> > http://ads.osdn.com/?ad_idt77&alloc_id\x16492&op=click
> > _______________________________________________
> > U-Boot-Users mailing list
> > U-Boot-Users at lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> > 
> 
> 
> 
> 		
> ____________________________________________________
> Start your day with Yahoo! - make it your home page 
> http://www.yahoo.com/r/hs 
>  
> 
> 

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [U-Boot-Users] Silicon Image 0680A and CF-ATA drive
@ 2005-07-25 19:58 Rune Torgersen
  2005-07-25 20:41 ` Sam Pham
  0 siblings, 1 reply; 9+ messages in thread
From: Rune Torgersen @ 2005-07-25 19:58 UTC (permalink / raw)
  To: u-boot

Which is excactly what I am doing on real HW. The base address define is
set to a variable that I use pci_find_device() and base address register
5 to set the address of. 

> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net 
> [mailto:u-boot-users-admin at lists.sourceforge.net] On Behalf 
> Of Andrew Dyer
> Sent: Monday, July 25, 2005 14:22
> To: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] Silicon Image 0680A and CF-ATA drive
> 
> On 7/25/05, Rune Torgersen <runet@innovsys.com> wrote:
> > Didn't implement anything at all. I just used the generic IDE driver
> > already present in U-Boot.
> > All I had to change were those four #defines.
> > 
> 
> If you turned on PCI_CONFIG_PNP this might break, especially if the
> ide adapter was on a card and/or there were other cards as options.
> 
> For a generic driver it might be better to use pci_find_device() to
> fetch the register addressing.
> 
> 
> -- 
> Hardware, n.:
>         The parts of a computer system that can be kicked.
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&op=ick
> _______________________________________________
> 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] 9+ messages in thread
* [U-Boot-Users] Silicon Image 0680A and CF-ATA drive
@ 2005-07-25 15:04 Rune Torgersen
  2005-07-25 17:47 ` Sam Pham
  0 siblings, 1 reply; 9+ messages in thread
From: Rune Torgersen @ 2005-07-25 15:04 UTC (permalink / raw)
  To: u-boot

I use a 0680A under u-boot, using the standard IDE driver. Works
perfect. Only had to give the IDE driver the address of the register
base.
#define CFG_ATA_BASE_ADDR			0xa0000000 //
BaseAddress 5
#define CFG_ATA_REG_OFFSET			0x80
#define CFG_ATA_DATA_OFFSET			0x80
#define CFG_ATA_ALT_OFFSET			0x80

> -----Original Message-----
> From: u-boot-users-admin at lists.sourceforge.net 
> [mailto:u-boot-users-admin at lists.sourceforge.net] On Behalf 
> Of Sam Pham
> Sent: Tuesday, July 05, 2005 12:12
> To: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] Silicon Image 0680A and CF-ATA drive 
> 
> 
> 
> --- Wolfgang Denk <wd@denx.de> wrote:
> 
> > In message
> > <20050705161452.30133.qmail@web54108.mail.yahoo.com>
> > you wrote:
> > > 
> > > My custom board has the PCI to ATA chip Silicon
> > Image
> > > 0680A, which connects to the CompactFlash Storage
> > Card
> > > that acts as a standard IDE disk if configured
> > right. 
> > > Anyone knows if U-boot already had the
> > implementation
> > > for the Silicon Image 0680A and CF-ATA drive?  I
> > 
> > No.
> > 
> > > looked through the source code but didn't find
> > > anything.  If not, any recommendations of how to
> > > implement them?
> > 
> > Find the Linux driver for this controller, analyze
> > it, and  port  the
> > unavoidable parts of it to U-Boot.
> 
> Thanks.  This would help for starting.
> 
> Sam
> 
> 
> > 
> > Best regards,
> > 
> > Wolfgang Denk
> > 
> > -- 
> > Software Engineering:  Embedded and Realtime
> > Systems,  Embedded Linux
> > Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80
> > Email: wd at denx.de
> > To know how another being, another creature feels - 
> > that  is  impos-
> > sible.                  - Terry Pratchett, _The Dark
> > Side of the Sun_
> > 
> 
> 
> 
> 		
> ____________________________________________________ 
> Yahoo! Sports 
> Rekindle the Rivalries. Sign up for Fantasy Football 
> http://football.fantasysports.yahoo.com
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> 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] 9+ messages in thread
* [U-Boot-Users] Help with crash  -- SOLVED
@ 2005-07-05 14:34 Richard Danter
  2005-07-05 16:14 ` [U-Boot-Users] Silicon Image 0680A and CF-ATA drive Sam Pham
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Danter @ 2005-07-05 14:34 UTC (permalink / raw)
  To: u-boot

Richard Danter wrote:
> fff036d8  mr      r11,r31
> fff036dc  subi    r31,r31,4
> fff036e0  stw     r25,__fixup_entries(r11)           <== Crash here
>     *((ulong *) addr_sp)-- = 0;
>     debug ("Stack Pointer at: %08lx\n", addr_sp);
> fff036e4  lwz     r3,-0x7FC0(r30)
> fff036e8  stw     r25,__fixup_entries(r31)
> fff036ec  subi    r31,r31,4
> fff036f0  mr      r4,r31
> fff036f4  crclr   cr6
> fff036f8  bl      printf
> 
> 
> When I step through the instruction at fff036e0 I end up at 700, which 
> is the Program Exception vector (srr0 = 0x800, srr1 = 80000) which 
> implies an illegal instruction?

The problem was a typo in my config file. Was loading DBAT0 with the 
values from IBAT1 instead of IBAT0.

Rich

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-07-25 20:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-25 18:54 [U-Boot-Users] Silicon Image 0680A and CF-ATA drive Rune Torgersen
2005-07-25 19:21 ` Andrew Dyer
  -- strict thread matches above, loose matches on Subject: below --
2005-07-25 19:58 Rune Torgersen
2005-07-25 20:41 ` Sam Pham
2005-07-25 15:04 Rune Torgersen
2005-07-25 17:47 ` Sam Pham
2005-07-05 14:34 [U-Boot-Users] Help with crash -- SOLVED Richard Danter
2005-07-05 16:14 ` [U-Boot-Users] Silicon Image 0680A and CF-ATA drive Sam Pham
2005-07-05 16:55   ` Wolfgang Denk
2005-07-05 17:12     ` Sam Pham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox