[U-Boot-Users] u-boot scripts

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!

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

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: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@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
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.
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.
------------------------------------------------------------------------ - 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

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.

In message DBF07B2B4CC.0000023Eejr@inbox.com you wrote:
Perhaps I'm misinformed.
Indeed.
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
participants (3)
-
Junior
-
Leonid
-
Wolfgang Denk