9
0
Fork 0
Commit Graph

869 Commits

Author SHA1 Message Date
Juergen Beisert afe73cff56 doc added and some reorganised 2007-10-19 14:56:45 +02:00
sascha 9f252faa9f fix some typos 2007-10-19 13:58:30 +02:00
sascha ad72b775f1 Merge octopus:/home/git/projects/u-boot-v2 2007-10-19 13:07:01 +02:00
sascha 8ed683dddb - Insert commands sorted into the command list. This is useful
for commands added via modules.
- Let command aliases show up in help text
2007-10-19 13:06:45 +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 c166d899b7 doc added only 2007-10-19 11:57:06 +02:00
sascha 8a46c1102f move readline command to a file of its own 2007-10-19 11:28:58 +02:00
sascha ceac76ffce Move display_banner() to console.c. This helps us to show
the banner as first message.
2007-10-19 11:04:33 +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 98839f8010 adding noisy support 2007-10-18 21:03:32 +02:00
Juergen Beisert 8ecd28c819 adding noisy support 2007-10-18 21:03:18 +02:00
Sascha Hauer 4d2a896a7b Collect modules in a linked list and implement lsmod. 2007-10-11 22:01:27 +02:00
Sascha Hauer 82e54558b2 Collect all commands in a linked list. This makes it easier to handle
dynamically registered commands.
2007-10-11 21:58:51 +02:00
Sascha Hauer 9626c6084f add module.o and module.lds to Makefile 2007-10-11 20:56:33 +02:00
Sascha Hauer ac8a1f064e Use Linux Kernel list implementation for console devices instead
of homegrown list.
2007-10-11 20:36:57 +02:00
Sascha Hauer 9b391290c2 Fix use of unitialized Variable. Why didn't this come up earlier??? 2007-10-09 08:18:37 +02:00
Sascha Hauer 236d55a06a __u_boot__symtab -> __usymtab 2007-10-07 14:32:08 +02:00
Sascha Hauer 2443c7a6f1 export symbols 2007-10-07 14:27:24 +02:00
Sascha Hauer a680c7f158 add dependency to include/uboot_default_env.h for startup.c 2007-10-04 13:03:18 +02:00
Sascha Hauer e4401ef8a5 add module linker script 2007-10-04 12:46:11 +02:00
Sascha Hauer e7cdabdbb5 module.c: Due to an extra linking step we do not have u_boot_cmd_*
sections anymore. We now have u_boot_cmd and can properly handle
more than one command in a module
2007-10-04 12:45:36 +02:00
Sascha Hauer c23db507f7 add missing include 2007-10-04 12:41:54 +02:00
Sascha Hauer 17c3e64578 export functions 2007-10-04 12:37:06 +02:00
Sascha Hauer ae53e9ef1d CONFIG_MODULE -> CONFIG_MODULES 2007-10-04 12:33:03 +02:00
Sascha Hauer 400b0abab2 hush.c: split high-density "if(x) something"; into two lines 2007-10-01 23:35:33 +02:00
Sascha Hauer ee5847aac7 hush.c: get_local_var() is used only once, put it into the function
where it is called
2007-10-01 23:28:00 +02:00
Sascha Hauer c1ab45e56d fix indention in hush.c 2007-10-01 23:19:18 +02:00
Sascha Hauer a14c000d59 remove comment about glob in hush.c. We do not use glob 2007-10-01 23:17:27 +02:00
Sascha Hauer 53d327d834 fix indention in hush.c 2007-10-01 23:15:52 +02:00
Sascha Hauer f4f3479f13 fix indention in hush.c 2007-10-01 23:13:21 +02:00
Sascha Hauer 67c7e6eb6f fix indention in hush.c 2007-10-01 23:12:34 +02:00
Sascha Hauer aaa71a1263 Export symbols printf and the ones needed for getopt 2007-10-01 10:26:45 +02:00
Sascha Hauer 3bded8c370 add help texts for KALLSYMS and MODULE 2007-10-01 10:21:30 +02:00
Sascha Hauer 6b58e74d04 Resolve the symbols using an extra section and only resolve explicitly
exported symbols. Using kallsyms for this purpose doesn't do it because
kallsyms do not resolve variables. Also the symbol table gets quite
big using kallsyms.
2007-10-01 10:20:57 +02:00
Sascha Hauer 8b8c95b9fc add missing whitespace in printf output 2007-10-01 10:16:04 +02:00
Sascha Hauer 1e3465553b Add register_command() to register a command in runtime. This
is only needed when modules are enabled, so the change is inside
"#ifdef CONFIG_MODULE"
2007-10-01 10:15:38 +02:00
Sascha Hauer d27e123c53 make simple parser compile again 2007-10-01 09:54:10 +02:00
Sascha Hauer c396c4da49 Add module handling (mostly copied from Linux kernel and stripped down
for U-Boot)
2007-09-28 20:32:15 +02:00
Sascha Hauer 7a49f672c5 add kallsyms from linux kernel 2007-09-28 20:29:52 +02:00
Sascha Hauer 98f845ad58 Extend 'export' command to take the form export a=b 2007-09-28 10:08:30 +02:00
Sascha Hauer b3dc734018 declare lots of functions static 2007-09-28 10:07:26 +02:00
Sascha Hauer 27bf8f1dea set last_return_code to rcode and not 1 or 0 2007-09-27 17:10:14 +02:00
Sascha Hauer 79ed00ba92 pass file size from read_file 2007-09-27 16:33:35 +02:00
Sascha Hauer 299434c85e Merge /home/git/users/rsc/u-boot-v2 2007-09-27 12:22:38 +02:00
Sascha Hauer 811acbb52d indention 2007-09-27 12:21:12 +02:00
Sascha Hauer 52473038dc display malloc space on startup 2007-09-26 15:24:51 +02:00
Sascha Hauer 5efc6836b7 hush.c: use xrealloc instead of realloc to save some bytes 2007-09-26 13:57:18 +02:00
Sascha Hauer fb441a11a0 hush.c: use xzalloc instead of xmalloc to save some bytes 2007-09-26 13:55:01 +02:00
Sascha Hauer 00c65e44ca hush.c: Remove wrong free() of ctx->pipe->progs. After breaking out
of the while loop ctx->pipe is invalid, so we cannot dereference
	ctx->pipe->progs.
2007-09-26 13:53:17 +02:00
Sascha Hauer 8f1559034a remove extern declaration of console_buffer 2007-09-26 13:50:55 +02:00
Robert Schwebel (Laptop) c97886debf Subject: don't use default in choices
It is currently not possible to use defaults in choices.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-09-25 22:07:21 +02:00
Robert Schwebel (Laptop) e6ca62360e Subject: clean up TEXT_BASE
This patch makes TEXT_BASE a consistent per-arch config switch.
Additionally, it converts all TEXT_BASE occurences from string to hex.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-09-25 22:01:01 +02:00
Sascha Hauer 2a286ea208 execute /env/bin/init instead of /env/init 2007-09-25 14:32:32 +02:00
Sascha Hauer 97cf2a9805 fix indention 2007-09-25 13:47:47 +02:00
Sascha Hauer 21281ac59a remove hack from hush which did the wrong thing 2007-09-25 13:47:15 +02:00
Sascha Hauer 603ccc2378 add $# handling for hush 2007-09-25 13:42:33 +02:00
Sascha Hauer 913691eccd add directory handling for environment 2007-09-25 12:58:52 +02:00
Sascha Hauer ddfa0c174e remove debug printf 2007-09-24 16:59:07 +02:00
Sascha Hauer 3cbc5c5c12 remove u-boot command paramter flag 2007-09-24 12:31:08 +02:00
Sascha Hauer b0615cc909 - add 'source' command
- add help text for 'source' and 'sh'
2007-09-24 12:06:52 +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 0aab147904 fix indention 2007-09-23 23:35:32 +02:00
Sascha Hauer 71e2c11ebb introduce local and global variables, add export command 2007-09-23 23:29:37 +02:00
Sascha Hauer ecc1ee6602 allow arguments to be passed to scripts 2007-09-23 23:26:31 +02:00
Sascha Hauer a7f5dd903e unifdef __U_BOOT__ in hush.c 2007-09-22 18:08:18 +02:00
Sascha Hauer a3110c5f8f add console buffering 2007-09-21 21:30:59 +02:00
Sascha Hauer 18db026d12 remove unused include 2007-09-21 14:35:40 +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 2a9c1de93f whitespace cleanup 2007-09-13 16:06:02 +02:00
Sascha Hauer 6634cfe849 add default environment 2007-09-13 15:22:23 +02:00
Sascha Hauer e00be03fe0 Remove all unused files from common. They can be added later from
U-Boot 1.x when needed.
2007-09-05 13:11:49 +02:00
Sascha Hauer 654bb6b0b8 further reloc fixes 2007-07-25 12:25:01 +02:00
Sascha Hauer ca52150cd0 add whitespace in banner string 2007-07-16 10:30:40 +02:00
Sascha Hauer 056a695c15 implement flash protection 2007-07-16 10:29:28 +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 7ec80eb0e9 whitespace cleanup 2007-07-15 12:58:31 +02:00
Sascha Hauer 2557787389 print u-boot bss info only for debug case 2007-07-12 12:09:48 +02:00
Sascha Hauer 646856e394 fix for !CONFIG_HAS_EARLY_INIT 2007-07-12 11:50:48 +02:00
Sascha Hauer 9462256561 add BOARDINFO string to kconfig 2007-07-12 11:24:19 +02:00
Sascha Hauer 793ff46a04 CONFIG_ARCH_HAS_RELOC -> CONFIG_HAS_EARLY_INIT 2007-07-12 11:21:13 +02:00
Sascha Hauer 10fcca1246 add early_init() 2007-07-12 09:54:34 +02:00
Sascha Hauer 149d273b80 add early console for mpc5200 2007-07-12 09:31:07 +02:00
Sascha Hauer 3b90ee9a3d add CONFIG_RELOCATABLE 2007-07-12 09:27:06 +02:00
Sascha Hauer e47fa9d6ef compile common/memsize.c 2007-07-12 09:23:49 +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 e24bb529b1 svn_rev_700 2007-07-05 18:02:18 +02:00
Sascha Hauer e74a1633aa svn_rev_686
implement console baudrate switching
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 f35190d65b svn_rev_682
remove double entry
2007-07-05 18:02:16 +02:00
Sascha Hauer 2eb9efab80 svn_rev_665
change default prompt, add BROKEN label
2007-07-05 18:02:15 +02:00
Sascha Hauer 1db5a31d18 svn_rev_662 2007-07-05 18:02:14 +02:00
Sascha Hauer b2c5310d4d svn_rev_653
restructure tree, add reginfo command
2007-07-05 18:02:14 +02:00
Sascha Hauer bba475d70e svn_rev_650 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
Sascha Hauer d08c60e9d7 svn_rev_642 2007-07-05 18:02:12 +02:00
Sascha Hauer ca5c6cccd5 svn_rev_641
obsoleted
2007-07-05 18:02:12 +02:00
Sascha Hauer 2af5209ba8 svn_rev_635
move LS_* flags to include/fs.h
2007-07-05 18:02:12 +02:00
Sascha Hauer e76747a21b svn_rev_623
use read_file
2007-07-05 18:02:10 +02:00
Sascha Hauer df22d58390 svn_rev_622
ups
2007-07-05 18:02:10 +02:00
Sascha Hauer 9810f2466e svn_rev_618
on our way to boot...
2007-07-05 18:02:10 +02:00
Sascha Hauer 394a93ac03 svn_rev_616 2007-07-05 18:02:10 +02:00
Sascha Hauer b4bf34181a svn_rev_613 2007-07-05 18:02:10 +02:00
Sascha Hauer d173d87f91 svn_rev_608
no global data
2007-07-05 18:02:09 +02:00
Sascha Hauer 3c33700b0e svn_rev_606
remove malloc_bin_reloc()
2007-07-05 18:02:09 +02:00
Sascha Hauer e2f1a28306 svn_rev_605
make read_file global
2007-07-05 18:02:09 +02:00
Sascha Hauer 9d0f3063a7 svn_rev_604
no interrupts
2007-07-05 18:02:09 +02:00
Sascha Hauer 716336f1d4 svn_rev_603 2007-07-05 18:02:09 +02:00
Sascha Hauer ec4e62aaaf svn_rev_587
find a way through bootm
2007-07-05 18:02:07 +02:00
Sascha Hauer a20ab07f6b svn_rev_583
remove cmd_autoscript, it's unneeded
2007-07-05 18:02:07 +02:00
Sascha Hauer f500aa051d svn_rev_582
remove miiphyutil.o
2007-07-05 18:02:07 +02:00
Sascha Hauer f1a3a825c7 svn_rev_581
envsave -> saveenv, envload -> loadenv
2007-07-05 18:02:07 +02:00
Sascha Hauer 367ed9fd09 svn_rev_571
add line break to help messages
2007-07-05 18:02:05 +02:00
Sascha Hauer 0a9a681f21 svn_rev_570
fix error handling, help string, trailing whitespace
2007-07-05 18:02:05 +02:00
Sascha Hauer 15e2990e9b svn_rev_568
remove cmd_console.c. It's obsoleted
2007-07-05 18:02:05 +02:00
Sascha Hauer 645f6e1ebf svn_rev_559
unify help text style
2007-07-05 18:02:05 +02:00
Sascha Hauer 58f2f06794 svn_rev_558
unify menu style
2007-07-05 18:02:04 +02:00
Sascha Hauer 47c44edf23 svn_rev_557
coding style, tw
2007-07-05 18:02:04 +02:00
Sascha Hauer 758a1107f8 svn_rev_538
several powerpc fixes
2007-07-05 18:02:03 +02:00
Sascha Hauer 494c0b32c1 svn_rev_533
Comment out malloc_trim(). This functions gives back memory to the
system via negative calls to sbrk(). This is completely useless in
U-Boot since noone else could make use of this memory.
2007-07-05 18:02:02 +02:00
Sascha Hauer 614ff8b708 svn_rev_532
- Do not zero memory in mem_malloc_init because it takes
  a long time with big memory. Instead zero it when we actually
  need the memory.
- Add sbrk_no_zero() function to allocate memory without zeroing
  it. This is usefull for scratch mem devices which occupy large
  chunks of memory
2007-07-05 18:02:02 +02:00
Sascha Hauer f1b8cfbd1d svn_rev_525
make default behaviour of consoles configurable
2007-07-05 18:02:01 +02:00
Sascha Hauer 4cb9aa4176 svn_rev_523 2007-07-05 18:02:01 +02:00
Sascha Hauer 10bf40f2ad svn_rev_521 2007-07-05 18:02:01 +02:00
Sascha Hauer e935d1a452 svn_rev_511 2007-07-05 18:02:00 +02:00
Sascha Hauer 227c05eb51 svn_rev_503 2007-07-05 18:01:59 +02:00
Sascha Hauer fa668fe184 svn_rev_502
complete multiple console support
2007-07-05 18:01:59 +02:00
Sascha Hauer 5bffd205f6 svn_rev_500 2007-07-05 18:01:59 +02:00
Sascha Hauer 156c1f4531 svn_rev_499
fix compiler warning
2007-07-05 18:01:59 +02:00
Sascha Hauer ac108b6360 svn_rev_498
fix compiler warnings
2007-07-05 18:01:59 +02:00
Sascha Hauer 8a937c0efa svn_rev_497 2007-07-05 18:01:59 +02:00
Sascha Hauer 9ab09222ff svn_rev_487 2007-07-05 18:01:58 +02:00
Sascha Hauer fe2d505d4d svn_rev_481
make more char * const, fix compiler warnings
2007-07-05 18:01:58 +02:00
Sascha Hauer 032d2f0268 svn_rev_473
add help text
2007-07-05 18:01:57 +02:00
Sascha Hauer 17f9b2c9ac svn_rev_463
make ppc compile again
2007-07-05 18:01:56 +02:00
Sascha Hauer d5a108ece3 svn_rev_462
- Add help texts for many commands.
- Let the linker sort the command table.
- Add support for multiple argmuments in several commands
  (mkdir, rmdir, rm, cat)
2007-07-05 18:01:55 +02:00
Sascha Hauer 58c3774381 svn_rev_459 2007-07-05 18:01:55 +02:00
Sascha Hauer 74d709a6dc svn_rev_458 2007-07-05 18:01:55 +02:00
Sascha Hauer 2c835efc1b svn_rev_457 2007-07-05 18:01:55 +02:00
Sascha Hauer 9c9c4db6be svn_rev_456
use xzalloc
2007-07-05 18:01:55 +02:00
Sascha Hauer ec911fa421 svn_rev_454 2007-07-05 18:01:55 +02:00
Sascha Hauer 5d150ba82e svn_rev_445 2007-07-05 18:01:54 +02:00
Sascha Hauer b9d6d30be8 svn_rev_443 2007-07-05 18:01:54 +02:00
Sascha Hauer 5335912a97 svn_rev_441
add errno_str()
2007-07-05 18:01:54 +02:00
Sascha Hauer 49e479cecb svn_rev_439
fix file reading
2007-07-05 18:01:54 +02:00
Sascha Hauer 50f42153cb svn_rev_435
rename
2007-07-05 18:01:53 +02:00
Sascha Hauer b2a900da4c svn_rev_434 2007-07-05 18:01:53 +02:00
Sascha Hauer 145ad2c4be svn_rev_433 2007-07-05 18:01:53 +02:00