U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Lange <thomas@corelatus.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Boot from Compact Flash
Date: Tue, 18 Nov 2003 20:56:36 +0100	[thread overview]
Message-ID: <3FBA7974.2020704@corelatus.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0311181229350.7595-100000@dallas.texasconnect.net>

There seems to be a hw problem with the au1x00 series and
pcmcia ( as you can see from the comment you attached ).

I have reported this to AMD and they are "looking into it".

This affects all data read/written from/to CF. For workaround
see board/dbau1x00/README

I have only used au1000 in big endian mode, so I cannot tell
what happens in little.

/Thomas

Ed Okerson wrote:
>   My BDI2000 is due to arrive today, I'm just waiting for FedEx to show
> up.  In the meantime, I managed to get u-boot to run from RAM, so I wanted
> to get a head start on booting from Compact Flash.  I have a 256MB CF card
> in a PCMCIA adapter.  When I insert this in a Linux Laptop, it properly
> reports it as a SanDisk 256MB CF card.  I managed to get u-boot to build
> Little Endian, and in that mode when I insert the PCMCIA it reports it as:
> 
> Reset IDE: Bus 0: OK
>   Device 0: Model: aSDnsi kDSFC-B52 6 Firm: dV g.812. Ser#:
> 1144901E09P30101
>             Type: Removable Hard Disk
>             Capacity: 117964.8 MB = 115.2 GB (-1476395001 x 512)
> 
> Obviousle the endian-ness is wrong.  I tracked to the code in
> common/cmd_ide.c where there is a note:
> 
> /* We only need to swap data if we are running on a big endian cpu. */
> /* But Au1x00 cpu:s already swaps data in big endian mode! */
> #if defined(__LITTLE_ENDIAN) || defined(CONFIG_AU1X00)
> #define input_swap_data(x,y,z) input_data(x,y,z)
> 
> Where is the bit getting set that tells the Au1500 to swap bytes?  If I
> build u-boot as big endian, it properly recognizes the CF card.
> 
> I am using the BdAu1500 board.
> 
> Is there a discussion somewhere about the pros/cons of running in
> big/little endian mode?
> 
> Ed Okerson
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 

  reply	other threads:[~2003-11-18 19:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3FB55E5C.9050306@corelatus.com>
2003-11-18 19:34 ` [U-Boot-Users] Boot from Compact Flash Ed Okerson
2003-11-18 19:56   ` Thomas Lange [this message]
2003-11-18 20:02     ` Ed Okerson
2003-11-18 21:38     ` Ed Okerson
2003-11-19 10:01       ` Leon KUKOVEC

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FBA7974.2020704@corelatus.com \
    --to=thomas@corelatus.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox