[U-Boot-Users] How to run "itest" command

Hi
How "itest"command return the result on to serial console, I am issueing following command on U-Boot prompt -
=> itest.b 3 == 5
It returns without any output.
I am using U-Boot-1.2.0 and my command defination looks like -
#define CONFIG_COMMANDS ((CONFIG_CMD_DFL & ~CFG_CMD_NET) | \ CFG_CMD_MEMORY | \ CFG_CMD_ENV | \ CFG_CMD_FLASH | \ CFG_CMD_MISC | \ CFG_CMD_BSP | \ CFG_CMD_ELF | \ CFG_CMD_ASKENV | \ CFG_CMD_REGINFO | \ CFG_CMD_SDRAM | \ CFG_CMD_CACHE | \ CFG_CMD_NAND | \ CFG_CMD_ITEST | \ CFG_CMD_JFFS2 )
Can anybody tell me the exact procedure to get the result on U-boot prompt from "itest" command?
Thanks in advance.
Thanks, Vaibhav

In message fde666620710100613r4c27e950qe4c96609af0ac5e6@mail.gmail.com you wrote:
How "itest"command return the result on to serial console, I am
What makes you think it would return anything on the serial console?
issueing following command on U-Boot prompt -
=> itest.b 3 == 5
It returns without any output.
That's as it is supposed to be - in Unix, the shell's "test" command doesn't return anything either. That's how it works.
Can anybody tell me the exact procedure to get the result on U-boot prompt from "itest" command?
You don't get any "results". You get a return code, that's all.
Best regards,
Wolfgang Denk

What I observed here is -
Say if I enable the HUSH shell by
#define CFG_HUSH_PARSER #define CFG_PROMPT_HUSH_PS2 ">"
Then I will be able to see the return value from the command with -
=> echo $?
Am I understanding it correctly, and on the right path?
Thanks, Vaibhav
On 10/11/07, Wolfgang Denk wd@denx.de wrote:
In message fde666620710100613r4c27e950qe4c96609af0ac5e6@mail.gmail.com you wrote:
How "itest"command return the result on to serial console, I am
What makes you think it would return anything on the serial console?
issueing following command on U-Boot prompt -
=> itest.b 3 == 5
It returns without any output.
That's as it is supposed to be - in Unix, the shell's "test" command doesn't return anything either. That's how it works.
Can anybody tell me the exact procedure to get the result on U-boot prompt from "itest" command?
You don't get any "results". You get a return code, that's all.
Best regards,
Wolfgang Denk
-- 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@denx.de Thought for the day: What if there were no hypothetical situations?

In message fde666620710110239m2becf032qa3b841e9977e763b@mail.gmail.com you wrote:
What I observed here is -
Say if I enable the HUSH shell by
#define CFG_HUSH_PARSER #define CFG_PROMPT_HUSH_PS2 ">"
Then I will be able to see the return value from the command with -
=> echo $?
Correct.
Am I understanding it correctly, and on the right path?
Yes.
Best regards,
Wolfgang Denk
participants (2)
-
Vaibhav Hiremath
-
Wolfgang Denk