From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Lange Date: Tue, 18 Nov 2003 20:56:36 +0100 Subject: [U-Boot-Users] Boot from Compact Flash In-Reply-To: References: Message-ID: <3FBA7974.2020704@corelatus.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 >