All of lore.kernel.org
 help / color / mirror / Atom feed
From: shuwn yuan <s_yuan31tee@yahoo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] AT91RM9100 board with uCOS-II. What boot loader to use?
Date: Tue, 7 Mar 2006 18:13:43 -0800 (PST)	[thread overview]
Message-ID: <3293578.post@talk.nabble.com> (raw)
In-Reply-To: <3259661.post@talk.nabble.com>

hi all,

Let me explain more about my case. I know that U-boot is OS-independant
bootloader. If I change to uCOS-II instead of ARM-linux, I can still use
U-boot as bootloader for AT91RM9200. 
Am I right? 
But I know some modification has to be done on the original U-boot for the
ARM-linux version. 

Address mapping (Flash & RAM) for my AT91RM9200 board
====================================
0x20000000 = RAM

0x10000000 = parallel flash
         0x10000000 = Boot.bin
         0x10010000 = u-boot.gz
         0x10020000 = zImage (ARM-linux kernel)

0xc0000000 = serial flash
         0xc0000000 = Ramdisk.gz (ARM-linux file system)

Currently, for my ARM-linux version, the "bootcmd" for auto-boot is set as
follow:

"bootcmd=cp 10020000 20008000 e0000;cp c0000000 21000000 100000;go 20008000"

It copy kernel image "zImage" which store at 0x10020000 (size = 0xe0000) to
0x20008000 (RAM); copy file system image "Ramdisk.gz" which store at
0xc0000000 (size = 0x100000) to 0x21000000 (RAM); jump to RAM location
0x20008000

Now I change to uCOS-ii as OS, & reprogram parallel flash content as follow:

0x10000000 - Boot.bin
0x10010000 - u-boot.gz
0x10020000 - (uCOS-II + application) binary

For the U-boot, is it just change the environment variable "bootcmd" to
this?

"bootcmd=cp 10020000 20008000 f818;go 20008000"

It means copy the (ucos-ii + application) binary (size = 0xf818) from
0x10020000 to 0x200080000 (RAM); go to RAM location 0x20008000.
Is this all I need to do?
But I try to change the "bootcmp" in U-boot prompt, using this cmd:

Uboot> setenv bootcmd cp 10020000 20008000 f818;go 20008000

But this seems not work. I can't set it successfully. It directly jump to
RAM location 0x20008000 after this & I can't save the "bootcmd".
I expect it to be still in U-boot prompt after I type the above, & then I
should type:

U-boot> saveenv 

to save the "bootcmd" variable. 

How to set the "bootcmd" in U-boot? How to put more than 1 action in
"bootcmd" (eg: cp .....; go.....)? Does it not allow to type ";" ? What
punctuation mark should I use?

Is changing the "bootcmd" enough if change to uCOS-II? Or I need to modify
U-boot source code, recompile, & reprogram the u-boot.gz into parallel
flash? Any reference link online suggested?

Please help. Thanks :-)


--
View this message in context: http://www.nabble.com/AT91RM9100-board-with-uCOS-II.-What-boot-loader-to-use--t1232449.html#a3293578
Sent from the Uboot - Users forum at Nabble.com.

  reply	other threads:[~2006-03-08  2:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-06 10:26 [U-Boot-Users] AT91RM9100 board with uCOS-II. What boot loader to use? shuwn yuan
2006-03-08  2:13 ` shuwn yuan [this message]
2006-03-08  7:24   ` Roger Larsson
2006-03-08 11:36   ` Andreas Schweigstill

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=3293578.post@talk.nabble.com \
    --to=s_yuan31tee@yahoo.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.