Skip to contentSkip to conversation

u-boot scripts

U-Boot-Users Junior 3 participants 5 messages Jul 6, 2007 – Jul 7, 2007

lore
Share & tools
lore

Junior

author
#0 lore raw

I would like to lear now to write uboot starter scripts and would like to know where the docs for this is.
The manual section 5.11 talks very little about this and I'm thinking there might be other docs somewhere on this website.

I'm looking to start with a simple stript that will

if imi 0x4000
then
elif ...
...
bootp;
...

or any of the other defined commands.

Any directions?

Much thanks.

____________________________________________________________
KEEP SPYWARE OFF YOUR COMPUTER - Protect your computer with Spyware Terminator! Visit http://www.spywareterminator.com/install and find out more!

author
#1 lore raw
Quoted 7 lines

I would like to lear now to write uboot starter scripts and would like to know where the docs for this is.
The manual section 5.11 talks very little about this and I'm thinking there might be other docs somewhere on this website.

I'm looking to start with a simple stript that will

Quoted 9 lines

if imi 0x4000
then
elif ...
...
bootp;
...

or any of the other defined commands.

Perhaps I'm misinformed.
From what I've looked at, it doesn't look like the script capability includes such "bash like" scripts. Please correct me if I'm wrong.

#2 lore raw

You should cumpile with HUSH shall enabled. It's not that sophisticated as bash, but does most things you are looking for.

-----Original Message-----
From: [email protected] [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Junior
Sent: Friday, July 06, 2007 9:30 AM
To: U-Boot-Users
Subject: Re: [U-Boot-Users] u-boot scripts

Quoted 8 lines

I would like to lear now to write uboot starter scripts and would like

to know where the docs for this is.
The manual section 5.11 talks very little about this and I'm thinking there might be other docs somewhere on this website.

I'm looking to start with a simple stript that will

Quoted 9 lines

if imi 0x4000
then
elif ...
...
bootp;
...

or any of the other defined commands.

Perhaps I'm misinformed.
From what I've looked at, it doesn't look like the script capability

Quoted 1 line

includes such

"bash like" scripts. Please correct me if I'm wrong.

------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

#3 lore raw

[U-Boot-Users] USB for AT91RM9200-EK board.

Hi:

I'm using u-boot 1.2.0 official release. I have compiled it for AT91RM9200-EK with following USB related options:

#define CONFIG_USB_STORAGE
#define CONFIG_DOS_PARTITION
#define CONFIG_USB_OHCI

USB part of CLI is also active and I can start/stop USB:

U-Boot$ usb start
(Re)start USB...
USB: scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
U-Boot$ usb tree

Device Tree:
1 See Interface (12MBit/s, 0mA)
OHCI Root Hub

I expected that if I insert flash stick, u-boot shall recognize it, but it is not happening and usb stop/start doesn't help.

Apparently my definitions are not correct ones and/or u-boot code version I'm using doesn't support AT91RM9200-EK. I saw a lot of USB related activity lately, but since I'm a novice in USB world I cannot say how relevant these changes are for me.

Does anybody have a suggestion?

Thanks,

Leonid.

#4 lore raw
In reply to Junior
Quoted 2 lines · In message <[email protected]> you wrote:

Perhaps I'm misinformed.

Indeed.

Quoted 2 lines
Quoted 1 line

From what I've looked at, it doesn't look like the script capability includes such

"bash like" scripts. Please correct me if I'm wrong.

You are wrong. U-Boot can be configured to  use  the  hush  shell  as
command   interpreter,   which   allows  for  pretty  good  scripting

(especially given the small memory footprint of hush).

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Shakespeare's Law of Prototyping: (Hamlet III, iv, 156-160)
        O, throw away the worser part of it,
        And live the purer with the other half.