diff --git a/commands/crc.c b/commands/crc.c index 69633ce59..f5a8e3bf3 100644 --- a/commands/crc.c +++ b/commands/crc.c @@ -1,3 +1,25 @@ +/* + * crc.c - Calculate a crc32 checksum of a memory area + * + * Copyright (c) 2007 Sascha Hauer , Pengutronix + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + #include #include #include diff --git a/commands/flash.c b/commands/flash.c index 7d7876d86..835663c2b 100644 --- a/commands/flash.c +++ b/commands/flash.c @@ -1,4 +1,6 @@ /* + * erase, protect, unprotect - FLASH support + * * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * @@ -21,9 +23,6 @@ * MA 02111-1307 USA */ -/* - * FLASH support - */ #include #include #include diff --git a/commands/go.c b/commands/go.c index f6d8fcd13..a1fd2f087 100644 --- a/commands/go.c +++ b/commands/go.c @@ -1,4 +1,6 @@ /* + * go- execute some code anywhere (misc boot support) + * * (C) Copyright 2000-2003 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * @@ -21,10 +23,6 @@ * MA 02111-1307 USA */ -/* - * Misc boot support - */ - #include #include diff --git a/commands/ls.c b/commands/ls.c index 82592641b..6b8868842 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -19,6 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #include #include #include diff --git a/commands/memtest.c b/commands/memtest.c index 88d8aa356..2c0dd3c7e 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -1,4 +1,6 @@ /* + * mtest - Perform a memory test + * * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * diff --git a/commands/net.c b/commands/net.c index 8fb100a95..d12559e13 100644 --- a/commands/net.c +++ b/commands/net.c @@ -1,4 +1,6 @@ /* + * tftp, rarpboot, dhcp, nfs, cdp - Boot support + * * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * @@ -21,9 +23,6 @@ * MA 02111-1307 USA */ -/* - * Boot support - */ #include #include #include @@ -132,7 +131,7 @@ static int do_dhcp (cmd_tbl_t *cmdtp, int argc, char *argv[]) } U_BOOT_CMD_START(dhcp) - .maxargs = 3, + .maxargs = 1, .cmd = do_dhcp, .usage = "invoke dhcp client to obtain ip/boot params", U_BOOT_CMD_END @@ -201,7 +200,7 @@ netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[]) return rcode; } -#if (CONFIG_COMMANDS & CFG_CMD_CDP) +#ifdef CONFIG_NET_CDP static void cdp_update_env(void) { @@ -245,4 +244,4 @@ U_BOOT_CMD_START(cdp) U_BOOT_CMD_HELP("[loadAddress] [host ip addr:bootfilename]\n") U_BOOT_CMD_END -#endif /* CFG_CMD_CDP */ +#endif /* CONFIG_NET_CDP */ diff --git a/commands/pwd.c b/commands/pwd.c index 537d54d2a..7034585c7 100644 --- a/commands/pwd.c +++ b/commands/pwd.c @@ -30,7 +30,7 @@ static int do_pwd (cmd_tbl_t *cmdtp, int argc, char *argv[]) } U_BOOT_CMD_START(pwd) - .maxargs = 2, + .maxargs = 1, .cmd = do_pwd, .usage = "print working directory", U_BOOT_CMD_END diff --git a/commands/timeout.c b/commands/timeout.c index aae0f7334..639f361da 100644 --- a/commands/timeout.c +++ b/commands/timeout.c @@ -1,5 +1,5 @@ /* - * ls.c - list files and directories + * timeout - wait for timeout * * Copyright (c) 2007 Sascha Hauer , Pengutronix *