public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] AT91RM9100 board with uCOS-II. What boot loader to use?
@ 2006-03-06 10:26 shuwn yuan
  2006-03-08  2:13 ` shuwn yuan
  0 siblings, 1 reply; 4+ messages in thread
From: shuwn yuan @ 2006-03-06 10:26 UTC (permalink / raw)
  To: u-boot

hi all,

I bought a AT91RM9200 development board. It comes with ARM-Linux as OS. The
boot loader (in parallel flash) used is boot.bin & u-boot.bin.

If I change the OS to uCOS-II, can I still use boot.bin & u-boot.bin as boot
loader?

If yes, any modification need to be done on boot.bin & u-boot.bin? Have to
get
the source code to modify & compile again? May I know what to modify?

Is boot.bin & u-boot.bin only meant for AT91RM9200 board with embedded Linux
as
OS?

Can anyone plx help? 10q  :-)

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

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

* [U-Boot-Users] AT91RM9100 board with uCOS-II. What boot loader to use?
  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
  2006-03-08  7:24   ` Roger Larsson
  2006-03-08 11:36   ` Andreas Schweigstill
  0 siblings, 2 replies; 4+ messages in thread
From: shuwn yuan @ 2006-03-08  2:13 UTC (permalink / raw)
  To: u-boot

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.

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

* [U-Boot-Users] AT91RM9100 board with uCOS-II. What boot loader to use?
  2006-03-08  2:13 ` shuwn yuan
@ 2006-03-08  7:24   ` Roger Larsson
  2006-03-08 11:36   ` Andreas Schweigstill
  1 sibling, 0 replies; 4+ messages in thread
From: Roger Larsson @ 2006-03-08  7:24 UTC (permalink / raw)
  To: u-boot

On onsdag 08 mars 2006 03.13, shuwn yuan wrote:
> 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".

Your command is seen as two commands:
> setenv bootcmd cp 10020000 20008000 f818
followed by
> go 20008000

You need to escape the semicolon ';' see
http://www.denx.de/wiki/view/DULG/UBootCmdGroupEnvironment#Section_5.9.6.3.

/RogerL

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

* [U-Boot-Users] AT91RM9100 board with uCOS-II. What boot loader to use?
  2006-03-08  2:13 ` shuwn yuan
  2006-03-08  7:24   ` Roger Larsson
@ 2006-03-08 11:36   ` Andreas Schweigstill
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Schweigstill @ 2006-03-08 11:36 UTC (permalink / raw)
  To: u-boot

Dear shuwn yuan!

shuwn yuan schrieb:
> 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?

You have to use a backslash as escape character, so the line becomes
setenv bootcmd cp 10020000 20008000 f818\;go 20008000

> 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?

You probably want to set the default environment to boot uCOS-II, so you
have to change some settings in your board configuration file in
include/configs .

With best regards
Andreas Schweigstill
-- 
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstra?e 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/

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

end of thread, other threads:[~2006-03-08 11:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-03-08  7:24   ` Roger Larsson
2006-03-08 11:36   ` Andreas Schweigstill

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