From 7e7567ef7eac434f64fc1dd6a2e4299f499c2754 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Mon, 29 Jun 2009 09:10:51 +0800 Subject: [PATCH] Signed-off-by: Xiangfu Liu --- inflash/src/command_line.c | 53 +++++++++++++++++++++++--------------- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/inflash/src/command_line.c b/inflash/src/command_line.c index d3f32f8..9225e4c 100644 --- a/inflash/src/command_line.c +++ b/inflash/src/command_line.c @@ -60,27 +60,38 @@ static const char COMMAND[][COMMAND_NUM]= static int handle_help(void) { printf(" command support in current version:\n" - " help print this help;\n" - " boot boot device and make it in stage2;\n" - " list show current device number can connect;\n" - " fconfig set USB Boot config file;\n" - " nquery query NAND flash info;\n" - " nread read NAND flash data with checking bad block and ECC;\n" - " nreadraw read NAND flash data without checking bad block and ECC;\n" - " nreadoob read NAND flash oob without checking bad block and ECC;\n" - " nerase erase NAND flash;\n" - " nprog program NAND flash with data and ECC;\n" - " nmark mark a bad block in NAND flash;\n" - " go execute program in SDRAM;\n" - " version show current USB Boot software version;\n" - " exit quit from telnet session;\n" - " readnand read data from nand flash and store to SDRAM;\n" - " load load file data to SDRAM;\n" - " run run command script in file;\n" - " memtest do SDRAM test;\n" - " gpios let one GPIO to high level;\n" - " gpioc let one GPIO to low level;\n"); - /* printf(" nmake read all data from nand flash and store to file(experimental);\n"); */ + /* " query" */ + /* " querya" */ + /* " erase" */ + /* " read" */ + /* " prog" */ + " nquery \tquery NAND flash info;\n" + " nerase \terase NAND flash;\n" + " nread \tread NAND flash data with checking bad block and ECC;\n" + " nreadraw \tread NAND flash data without checking bad block and ECC;\n" + " nreadoob \tread NAND flash oob without checking bad block and ECC;\n" /* index 10 */ + " nprog \tprogram NAND flash with data and ECC;\n" + " help \tprint this help;\n" + " version \tshow current USB Boot software version;\n" + " go \texecute program in SDRAM;\n" + " fconfig \tset USB Boot config file;(not implement)\n" + " exit \tquit from telnet session;\n" + " readnand \tread data from nand flash and store to SDRAM;\n" + " gpios \tset one GPIO to high level;\n" + " gpioc \tlet one GPIO to low level;\n"); + " boot \tboot device and make it in stage2;\n" /* index 20 */ + " list \tshow current device number can connect;(not implement)\n" + /* " select" */ + /* " unselect" */ + /* " chip" */ + /* " unchip" */ + " nmark \tmark a bad block in NAND flash;\n" + " nmake \tread all data from nand flash and store to file(experimental);(not implement)\n" + " load \tload file data to SDRAM;\n" + " memtest \tdo SDRAM test;\n" + " run\tun command script in file;\n" + " sdprog \tprogram SD card;(not implement)" + " sdread \tread data from SD card;(not implement)"); return 1; }