public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ulf Samuelsson <ulf@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] support usb storage in u-boot for at91rm9200
Date: Mon, 18 Sep 2006 22:19:59 +0200	[thread overview]
Message-ID: <450EFF6F.7090804@atmel.com> (raw)
In-Reply-To: <eca5382e0609180111i6de29b36id3764badda19fe6b@mail.gmail.com>

> 
> I'm building u-boot bin file to load into ARM9 single board ( Atmel
> AT91RM9200 ).
> 
> With default functions ( command ) of u-boot version 1.1.4, u-boot is
> loaded into my board and run correctly.
> 
> Note: I use u-boot-1.1.4-g7213859d.tar.bz2
> <ftp://ftp.denx.de/pub/u-boot/u-boot-1.1.4-g7213859d.tar.bz2> downloaded
> from ftp://ftp.denx.de/pub/u-boot/, I also try u-boot source from git
> repository http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git
> <http://www.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git>
> 
> But when i add some functions for usb storage ( i want to boot my debian
> os in compact flash ), u-boot can't start.
> 
> some lines added in include/configs/at91rm9200dk.h
> 
> ##############################
> ##############################
> 
> #define CONFIG_SKIP_LOWLEVEL_INIT
> #define CONFIG_COMMANDS         \
>                        ((CONFIG_CMD_DFL | CFG_CMD_MII | CFG_CMD_PING |
> CFG_CMD_USB ) & \
>                       ~(CFG_CMD_BDI | \
>                         CFG_CMD_IMI | \
>                         CFG_CMD_AUTOSCRIPT | \
>                         CFG_CMD_FPGA | \
>                         CFG_CMD_MISC | \
>                         CFG_CMD_LOADS ))
> 
> /* For USB support */
> #if (CONFIG_COMMANDS & CFG_CMD_USB)
> #define CONFIG_USB_STORAGE
> #define CONFIG_USB_OHCI
> #define CONFIG_DOS_PARTITION
> /*#define CONFIG_USB_KEYBOARD */
> /*#define CFG_DEVICE_DEREGISTER */
> /*#define CONFIG_SUPPORT_VFAT*/
> #define LITTLEENDIAN
> #endif /* CONFIG_COMMANDS & CFG_CMD_USB*/
> 
> 
> 
> ############################################################
> 
> Then build u-boot.bin and load into. The terminal display :
> 
> ######################################
> 1: Upload loader to Dataflash with vector 6 modification.
> 2: Upload u-boot to Dataflash.
> 3: Upload linux to Dataflash
> 4: Start U-boot
> 5: [nm] Identify Dataflash
> 
> [nm] dataflash_print_info :.id =
> DataFlash:AT45DB321
> Dataflash read successful: Starting U-boot
> ######################################
> and stop here.... and I can't use u-boot.
> 
> 
> Can you give me some suggestion. If possible, can you share me your
> u-boot.bin .
> 

Your problem is that U-boot is linked to the wrong address (0).
Instead it should be linked to the position, where you intend to run
u-boot (in SDRAM)
I know Wolfgang Denx diesnt like the idea of running U.boot from RAM,
but you cannot run from an SPI flash, have to copy to RAM first,
and the SDRAM on AT91RM9200 is located at 0x20000000 and above.

The prinout you see, is not from U.boot.
It looks like a customized version of "dataflashboot.bin"
It "bombs" after dataflashboot.bin has loaded u-boot into SDRAM
and jumped to it starting point.

Since it is in the wrong locatgion, all the constant string pointers are
off, and really only points at '\0' characters, so any attempt to
printout data will fail.


You can get my u-boot at
ftp://at91dist:distib at ftp.atmel.fr/ in the "third Party" directory.

do:

make at91rm9200df_config

to get dataflash support.

This u-boot is based on the same source package, but with a number of
modifications, all not acceptable to Wolfgang...



> PS: I send you some attack files: one for my u-boot.bin ( can't start ),
> one for at91rm9200dk.h, one for my board picture. You check and give me
> some suggestion.
> 
> Thank you!
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ulf.vcf
Type: text/x-vcard
Size: 297 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20060918/8f74c7ea/attachment.vcf 

  reply	other threads:[~2006-09-18 20:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <eca5382e0609180105gd3f4b0bka3eded8cc3df72dd@mail.gmail.com>
2006-09-18  8:11 ` [U-Boot-Users] support usb storage in u-boot for at91rm9200 kiennd
2006-09-18 20:19   ` Ulf Samuelsson [this message]
2006-09-19  5:59     ` Marco Cavallini
2006-09-19  6:08       ` Ulf Samuelsson

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=450EFF6F.7090804@atmel.com \
    --to=ulf@atmel.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