9
0
Fork 0
Commit Graph

828 Commits

Author SHA1 Message Date
Sascha Hauer 6f680b638b saveenv: close file
Close the file in saveenv before calling envfs_save and reopen it
afterwards. NAND Bad block aware devices allow opening a file only
once.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:15 +02:00
Sascha Hauer ccd76741c4 NAND: nand command updates
- allow removal of bad block aware devices
- turn printfs into debug

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00
Sascha Hauer da4d33969e CFI Flash driver: Fix error path
We forgot to close the file when parse_area_spec() failed.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:41:22 +02:00
Sascha Hauer 932b57873d move several commands into extra files
move false, true, help, insmod, lsmod, version into extra files

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:29:17 +02:00
Sascha Hauer f295acb556 lseek: return -1 for errors and check for that return value
We cannot check for < 0 in lseek, otherwise we get problems with files > 0x7fffffff

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-01 08:59:27 +02:00
Sascha Hauer ee6d36a540 - introduce ioctl call
- pass open/close/lseek through to drivers
2008-06-06 09:30:48 +02:00
Sascha Hauer 3d45abb7c4 [NAND] continue to make it work. Now works partly on at91sam9260 2008-06-06 09:30:39 +02:00
Sascha Hauer f3351ebd78 add basic at91sam9260 support. Currently only second stage
bootloader is supported:
- No SDRAM initialisation
- No UART init / baudrate change
2008-06-06 09:30:32 +02:00
Nishanth Menon 296ea53c68 008-fixloadb
[Patch 08/17] U-Boot-V2:Commands Unbreak loadb support

This patch provides support for loadb and loady and enables the broken feature

Signed-off-by: Nishanth Menon<x0nishan@ti.com>
2008-06-05 19:45:20 +02:00
Sascha Hauer 596c845072 [memory layout]: streamline memory layout
Memory layout can now be specified via kconfig options. Two
possibilities exist: default layout means the layout is stack
/ malloc heap / U-Boot. The user can also specify fixed addresses
for each TEXT_BASE / stack / malloc heap.
2008-06-04 11:54:03 +02:00
Sascha Hauer dabec3a7a1 Merge branch 'master' of git://www.denx.de/git/u-boot-v2 2008-06-02 16:13:14 +02:00
Sascha Hauer 59fd84bd7f [net]: remove CONFIG_BOOTP_MASK 2008-04-07 11:40:19 +02:00
Sascha Hauer 50cc8c5412 Subject: [PATCH] [general] Fixed constant strings in data section issue
For practical reasons I changed all string literals assumed to be constant
to reside in .rodata subsection at end of .text section.

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-04-04 14:45:04 +02:00
Sascha Hauer 3e6eeed016 netboot commands: When downloading a file and no local filename is given,
just use the filename as resulting file, not the whole path.
2008-03-31 21:48:27 +02:00
Sascha Hauer 14056577fd md command: Close filedescriptor after use 2008-03-14 13:02:53 +01:00
Sascha Hauer ce172e152e add ls -c and -l 2008-03-11 21:41:56 +01:00
Sascha Hauer 4dba16c692 close net_store_fd after usage. Man there are bugs to find... 2008-03-10 23:56:47 +01:00
Sascha Hauer 6e08f55368 memory_display() used to show the ascii output on the
last line not exactly under the other lines. fix it.
2008-03-01 21:03:35 +01:00
Sascha Hauer f95ec8a32d - Add functions to register image handlers for booting uImages 2008-02-20 19:01:54 +01:00
Carsten Schlote 0372f48749 [general] Added more outputs to partition.c
Added more outputs to partition code.

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
2008-02-19 09:29:44 +01:00
Marc Kleine-Budde 2ddf98f348 remove leftover Makefile entries
This patch removed leftover Makefile entries from
commit "d59c600c656d08410ea862c582fbd77432c3ca47". They should
have been reverted, but somehow survived

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2008-01-24 11:50:14 +01:00
Enrik Berkhan e02f84dd0b Fix typo in commands/Makefile to allow inclusion of mem write commands
Signed-Off-By: Enrik Berkhan <Enrik.Berkhan@ge.com>
2008-01-23 12:13:23 +01:00
Enrik Berkhan bd0aed0ae0 Avoid memtest at scratch address
When the tested address equals the scratch location, memtest will fail.

Signed-Off-By: Enrik Berkhan <Enrik.Berkhan@ge.com>
2008-01-23 12:13:23 +01:00
Marc Kleine-Budde 7b2a8252bd [cat] use define for buffer size not hardcoded value
With this patch a define is used for the buffer size not a hardcoded value
in two places in the node.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 08:27:38 +01:00
Marc Kleine-Budde e68ac6368d Revert "separating memory commands"
This reverts commit d59c600c65.

Conflicts:

	commands/Makefile
	common/Kconfig
	common/Makefile

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-27 23:19:55 +01:00
Robert Schwebel d6ddc7fbfc flinfo is not there any more, remove reference in kconfig
The flinfo command has been removed because it's functionality is now
integrated into the driver model. Fix the kconfig entry accordingly.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-11-27 21:32:33 +01:00
Marc Kleine-Budde ba6382fe2a dynamically added partition: check against FIXED partitions
The dynamic partition adding is improved with this patch.
When adding dynamic partitions they are checked against the existing
FIXED ones to ensure that they match.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-27 20:45:36 +01:00
Juergen Beisert 8121f788c0 adding copy docu
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2007-11-12 16:28:23 +01:00
Juergen Beisert 8413d78ab3 separating environment commands, part 2
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2007-11-12 16:28:23 +01:00
Juergen Beisert 2966bba216 separating environment commands, part 1
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2007-11-12 16:28:23 +01:00
Juergen Beisert d59c600c65 separating memory commands
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2007-11-12 16:28:23 +01:00
Marc Kleine-Budde 57cae4e826 Merge branch 'ipe337' 2007-11-12 15:58:53 +01:00
Marc Kleine-Budde 9d27950d06 use 10 digits for filesize in ls
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-12 14:36:52 +01:00
Marc Kleine-Budde aae8d892db use unsigned for filesize in ls
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-12 12:01:18 +01:00
Marc Kleine-Budde c991486d56 commands/bootm.c:872:4: warning: no newline at end of file
added newline at end of commands/bootm.c

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-12 10:56:15 +01:00
Juergen Beisert 9b07bdbbdc Merge branch 'docu' 2007-11-09 14:06:57 +01:00
Juergen Beisert 3ff14ef200 various doc added
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2007-11-09 14:05:23 +01:00
Juergen Beisert 2cb737d95d using a consistent ipaddr parameter all over the place
Signed-off-by: Juergen Beisert <jbe@octopus.labnet.pengutronix.de>
2007-11-08 17:06:48 +01:00
Juergen Beisert 8fe25ecf12 adding various doku 2007-11-08 12:01:52 +01:00
Juergen Beisert 0a13be8de2 various docu added 2007-11-05 15:20:31 +01:00
Juergen Beisert 4cd877a840 saving added docu 2007-11-05 14:39:07 +01:00
Juergen Beisert 1cb7062653 integrating sha's changes into jbe's branch 2007-11-05 12:26:29 +01:00
Sascha Hauer a26a5ef28f Replace all occurences of UBoot with U-Boot
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2007-10-24 13:20:27 +02:00
Juergen Beisert 53dd8423a5 adding new doc 2007-10-19 15:23:48 +02:00
Juergen Beisert afe73cff56 doc added and some reorganised 2007-10-19 14:56:45 +02:00
sascha ad72b775f1 Merge octopus:/home/git/projects/u-boot-v2 2007-10-19 13:07:01 +02:00
Juergen Beisert 6ad2703e6e Merge branch 'master' of jbe@octopus:/home/git/projects/u-boot-v2 2007-10-19 11:58:33 +02:00
Juergen Beisert 34c23b6f6e debug support added 2007-10-19 11:50:58 +02:00
sascha 8a46c1102f move readline command to a file of its own 2007-10-19 11:28:58 +02:00
sascha 95db50e812 Fix documentation for addpart/delpart/devinfo. These commands
now take a device file, not a device id.
2007-10-19 11:23:24 +02:00
sascha 3b6d6a45e7 - Implement tree structure for devices
- Use device tree structure to implement partitions
- Let devinfo print a nice tree
- Introduce 'fixed' partitions which are not removable
- Fix mount: It was not possible to mount on a relative path.
2007-10-19 08:45:57 +02:00
Juergen Beisert 8c6c055de6 adding some useful error messages 2007-10-18 18:32:02 +02:00
sascha b36fca0cb8 cp command: Allow to copy multiple files 2007-10-17 11:12:57 +02:00
sascha 288c97b89c editor: Do not use ansi code for screen scrolling by default.
Add an aliases 'sedit' which does this.
2007-10-16 22:35:42 +02:00
sascha a09b455fce Merge octopus:/home/git/projects/u-boot-v2 2007-10-16 20:57:53 +02:00
sascha 089c998ad9 mem.c: allow memcpy and memcmp to handle files. 2007-10-16 20:57:37 +02:00
Juergen Beisert 26def3fd2c various small typos fixed 2007-10-16 19:07:21 +02:00
sascha 25850aa80a fix error path in cp command. 2007-10-16 16:40:29 +02:00
Sascha Hauer bd1910d500 fix area parsing for erase/protect, add error parsing 2007-10-09 17:16:08 +02:00
Sascha Hauer bd6af38017 tristate commands to compile as modules 2007-10-07 14:33:07 +02:00
Sascha Hauer 2443c7a6f1 export symbols 2007-10-07 14:27:24 +02:00
Sascha Hauer 828dbf9f3c edit: add 8 as backspace code 2007-10-04 18:36:24 +02:00
Sascha Hauer 6905ed5bf3 timeout command: Use do {} while; insteal of while {}; to allow interrupt
with timeout = 0.
2007-10-04 18:35:53 +02:00
Sascha Hauer 42bc579215 change semantics of tftpboot command:
Change name to tftp and allow to only specify a remote filename.
Localfilename, if given, has to be specified with the second
argument, not the first one.
2007-10-04 13:05:56 +02:00
Sascha Hauer 9cce63fa33 add argument checking for edit.c 2007-10-04 12:38:40 +02:00
Sascha Hauer 6b7fdcb970 Use safe_strncpy() instead of copy_filename(). The shell has already removed
quotes, so we don't need this functionality from copy_filename()
2007-09-28 10:47:19 +02:00
Sascha Hauer 63c292b019 remove i2c from kconfig 2007-09-28 10:25:32 +02:00
Sascha Hauer d7ce9b9403 remove mii.c 2007-09-28 10:24:44 +02:00
Sascha Hauer b3dc734018 declare lots of functions static 2007-09-28 10:07:26 +02:00
Sascha Hauer 79ed00ba92 pass file size from read_file 2007-09-27 16:33:35 +02:00
Sascha Hauer 9e13a384c0 use xrealloc instead of realloc 2007-09-27 16:28:26 +02:00
Sascha Hauer 6057d62524 learn to realloc 2007-09-27 16:27:20 +02:00
Sascha Hauer 04f2ec0263 fix usage of normalise_path 2007-09-27 14:14:24 +02:00
Sascha Hauer e15abc0da7 activate memcmp and memcpy 2007-09-27 12:06:01 +02:00
Sascha Hauer 6dfc34d297 reactivate mtest 2007-09-27 12:04:59 +02:00
Sascha Hauer 7c17ff7c45 Reimplement environment. Now we only have one crc for the whole image. 2007-09-27 12:04:17 +02:00
Sascha Hauer 85db86ab5b implement mkdir -p #2 2007-09-27 11:59:36 +02:00
Sascha Hauer 326e4bddc3 print_size() -> size_human_readable()
return a pointer to a human readable string rather than printingit directly
2007-09-26 15:23:46 +02:00
Sascha Hauer 913691eccd add directory handling for environment 2007-09-25 12:58:52 +02:00
Sascha Hauer f132b2e073 - change function declarations for better standard conformity:
int open(const char *pathname, int flags);
-> int open(const char *pathname, int flags, ...);
   int mkdir(const char *pathname);
-> int mkdir(const char *pathname, mode_t mode);
2007-09-24 17:03:20 +02:00
Sascha Hauer 3cbc5c5c12 remove u-boot command paramter flag 2007-09-24 12:31:08 +02:00
Sascha Hauer 14b5c2a647 - teach hush to honour PATH variable
- remove common/main.c. This is now handled in the different shells.
2007-09-24 01:40:06 +02:00
Sascha Hauer 64caff6c94 remove debug printf 2007-09-21 15:18:39 +02:00
Sascha Hauer e3f34e28da implement test options -f, -e and -d 2007-09-21 15:16:24 +02:00
Sascha Hauer 0dd68e795e - putc is now putchar for better standard conformity
- make printf return int
2007-09-21 09:09:06 +02:00
Sascha Hauer 9436833b11 fix return values for some cases in envfs_load() 2007-09-16 11:16:58 +02:00
Sascha Hauer ca8ae5695a add the possibility to have a arch specific 'go' command. Some
architectures need this (e.g. blackfin and i386)
2007-09-16 11:16:08 +02:00
Sascha Hauer 1ef73a95be add timeout command 2007-09-16 11:13:16 +02:00
Sascha Hauer 2a9c1de93f whitespace cleanup 2007-09-13 16:06:02 +02:00
Sascha Hauer dc7a1f0931 add Kconfig option for showing the image type 2007-09-13 15:25:22 +02:00
Sascha Hauer 442b7bfa3f fix error handling in envfs_load() 2007-09-13 15:24:32 +02:00
Sascha Hauer 46f6648adb - fix handling of images on not mappable devices in bootm.
- split up image information string function into several functions
2007-09-13 15:11:16 +02:00
Sascha Hauer 6251a54a68 add rom driver 2007-09-13 15:08:55 +02:00
Sascha Hauer 466078dbb2 fix a bug in the editor when reading files which do not have
a \n at the last line
2007-09-13 12:56:29 +02:00
Sascha Hauer 99978d467a add (un)protect to saveenv 2007-09-12 17:12:16 +02:00
Sascha Hauer 58f1051598 Do not use -f <file> to specify the device for erase and protect, but
instead se positional parameters.
2007-09-11 10:17:49 +02:00
Sascha Hauer 056a695c15 implement flash protection 2007-07-16 10:29:28 +02:00
Sascha Hauer 8881fb7984 use memmap() to save one memcpy call in bootm 2007-07-15 14:02:53 +02:00
Sascha Hauer 665291e693 implement memmap().
With this function we can get a pointer to directly memory mapped
devices like nor flash or RAM. Useful for bootm where we save one
memcopy when the image is mappable
2007-07-15 13:50:04 +02:00
Sascha Hauer 8dc7fe1648 Lindent commands/partition.c 2007-07-14 15:20:43 +02:00
Sascha Hauer 7c809ab519 allow calculationg checksums of files 2007-07-14 14:47:35 +02:00
Sascha Hauer 66b61fda62 fix printf in do_flerase() 2007-07-14 14:45:45 +02:00
Sascha Hauer 41fd1f6625 add O_RDONLY flag to open() call 2007-07-14 14:44:29 +02:00
Sascha Hauer 828fe2d8e4 add missing include 2007-07-14 14:43:53 +02:00
Sascha Hauer 6f779cc1c5 - fix memory hole
- fix reading of empty lines
- put the command prompt at the beginning of the line when exiting edit
2007-07-13 20:42:18 +02:00
Sascha Hauer ef54cffe97 add missing flash.o and meminfo.o to Makefile 2007-07-13 20:41:41 +02:00
Sascha Hauer dc41557d1b Merge sascha@brannigan.homelinux.org:/home/sascha/ptx/u-boot/u-boot-2.0.0 2007-07-12 09:56:19 +02:00
Sascha Hauer 30788385d9 fix compiler warning 2007-07-11 11:07:04 +02:00
Sascha Hauer e755ab4535 minor fixes 2007-07-05 21:50:14 +02:00
Sascha Hauer 75a10b942c svn_rev_706
add file headers
2007-07-05 18:02:19 +02:00
Sascha Hauer 89f0c5c94f svn_rev_701
move do_test to own file and reimplement
2007-07-05 18:02:18 +02:00
Sascha Hauer b165a680c3 svn_rev_696
pass O_CREATE
2007-07-05 18:02:18 +02:00
Sascha Hauer 8eebe20fb6 svn_rev_695 2007-07-05 18:02:18 +02:00
Sascha Hauer 9afd20bdb0 svn_rev_693
remove do_reset
2007-07-05 18:02:18 +02:00
Sascha Hauer ccfa1e06a5 svn_rev_692 2007-07-05 18:02:17 +02:00
Sascha Hauer 98432d3925 svn_rev_683
more cleanups, fix compiler warnings
2007-07-05 18:02:16 +02:00
Sascha Hauer 6e7d2478fc svn_rev_680
remove crc32 (extra file now)
2007-07-05 18:02:16 +02:00
Sascha Hauer 5a7d488510 svn_rev_676 2007-07-05 18:02:16 +02:00
Sascha Hauer 3b4bad17b3 svn_rev_664 2007-07-05 18:02:15 +02:00
Sascha Hauer b2c5310d4d svn_rev_653
restructure tree, add reginfo command
2007-07-05 18:02:14 +02:00
Sascha Hauer fda840672d svn_rev_652 2007-07-05 18:02:13 +02:00
Sascha Hauer 59410692ca svn_rev_651 2007-07-05 18:02:13 +02:00
Sascha Hauer bba475d70e svn_rev_650 2007-07-05 18:02:13 +02:00
Sascha Hauer 3f35315b90 svn_rev_648 2007-07-05 18:02:13 +02:00
Sascha Hauer 40e4e2e659 svn_rev_647 2007-07-05 18:02:13 +02:00
Sascha Hauer ab0f254650 svn_rev_645
moved
2007-07-05 18:02:13 +02:00
Sascha Hauer f37394d8b4 svn_rev_644 2007-07-05 18:02:13 +02:00
Sascha Hauer 4b07af6730 svn_rev_643
structure cleanup
2007-07-05 18:02:13 +02:00