summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* get rid of device idsSascha Hauer2009-07-212-3/+7
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move some init work into initcallsSascha Hauer2009-07-211-10/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce cdevSascha Hauer2009-07-213-361/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Change return type of function part_remove to void, otherwise the compilerJuergen Beisert2009-07-011-3/+1
| | | | | | | | complains: common/partition.c:245: warning: initialization from incompatible pointer type Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
* add strerror functionSascha Hauer2009-05-251-4/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* simple console: implement console_flushSascha Hauer2009-05-181-0/+16
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console: buffer characters before console is initializedSascha Hauer2009-05-131-10/+21
| | | | | | | | instead of throwing all output away when the console is not initialized, buffer it in a kfifo and print it later when the first console gets initialized. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console: rename console_buffer to console_input_bufferSascha Hauer2009-05-131-5/+11
| | | | | | ...as we want to add an output buffer, too Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix errno_str without text error messagesSascha Hauer2009-04-061-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Flush consoles before exitingSascha Hauer2009-03-191-0/+11
| | | | | | | We use FIFOs on some devices, so flush them before exiting so we do not get funny characters in the output. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Shutdown U-Boot before starting an OSSascha Hauer2009-03-191-0/+10
| | | | | | | | Some devices, especially the ones doing DMA should be disabled before giving control to an OS. We take the simple approach here: Just shutdown the devices in the reverse order they were activated. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Console: Fix baudrate switchingSascha Hauer2009-02-061-1/+4
| | | | | | | When waiting for the user to confirm the new baudrate, wait for '\n' and '\r' instead of only '\r' Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* update .gitignore files for linker scriptsSascha Hauer2009-01-211-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* common:environment: fix mode requirementNishanth Menon2008-12-091-1/+1
| | | | | | | | | | | | | | | | | Issue: Compiling on Ubuntu 8.10 Fails: inlined from 'envfs_save' at scripts/../common/environment.c:135: /usr/include/bits/fcntl2.h:51: error: call to '_open_missing_mod' declared with attribute error: open with O_CREAT in second argument needs 3 arguments Usage: open(filename, O_WRONLY | O_CREAT) Fix: When using open with O_CREAT, it requires mode to be defined. Signed-off-by: Nishanth Menon <nm@ti.com>
* hush: Fix quotingSascha Hauer2008-11-101-1/+1
| | | | | | | | | | | | | | | This patch removes adding of an additional \ when doing echo "\"" which gives \" instead of just " I checked in latest busybox hush and this code is still present there, but it behaves correctly in busybox due to some other code pathes I didn't investigate. If this change has any unwanted side effects feel free to flame on me Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Print error numberSascha Hauer2008-11-101-6/+5
| | | | | | | When we do not have the appropriate error string compiled in, print at least the number Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* partition: route through MEMSETBADBLOCK ioctlSascha Hauer2008-09-021-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Build system: Use setlocalversion from kernelSascha Hauer2008-09-021-0/+20
| | | | | | Autogenerate a local version from git. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* hush: fix compiler warningSascha Hauer2008-08-261-2/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* setenv: Fix warning introduced with last commitSascha Hauer2008-08-201-13/+23
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Common: expose callocNishanth Menon2008-08-151-0/+1
| | | | | | | calloc is not exported by default. This patch exposes the same. Signed-off-by: Nishanth Menon <x0nishan@ti.com>
* Partition: Add an own device id for partitionsSascha Hauer2008-08-141-0/+6
| | | | | | | | Add an own device id for partitions. This is necessary to allow the partition layer to check if the given device is really a partition. Also, check for readonly flag in erase. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Partition layer updatesSascha Hauer2008-08-131-9/+5
| | | | | | | - route MEMGETINFO through partition layer - use dev_erase/dev_protect instead of direct pointers Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clocK: Add ndelay functionSascha Hauer2008-08-131-0/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add help texts for Shell optionsSascha Hauer2008-08-131-14/+18
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: dump stack space on startupSascha Hauer2008-08-131-5/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move several commands into extra filesSascha Hauer2008-08-132-135/+2
| | | | | | move false, true, help, insmod, lsmod, version into extra files Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* console: add a simple console for saving spaceSascha Hauer2008-08-015-5/+138
| | | | | | | Add a simple console layer which is not able to handle multiple consoles for those who don't need it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* - introduce ioctl callSascha Hauer2008-06-061-0/+44
| | | | - pass open/close/lseek through to drivers
* 007-partitionsNishanth Menon2008-06-052-1/+5
| | | | | | | | | [Patch 07/17] U-Boot-V2:Common Make partitions configurable Not all configurations of Uboot require partitions. This patch modifies partition compilation as configurable param Signed-off-by: Nishanth Menon<x0nishan@ti.com>
* 002-clock-overflowNishanth Menon2008-06-051-1/+1
| | | | | | | | | | | | | | [Patch 02/17] U-Boot-V2: Handle case of clock rollover for get_time_ns get_time_ns does a simplistic delta = cycle_now - cycle_last. It is possible that the h/w counter reached max and reset back to 0. This patch addresses this issue by checking for rollover condition. NOTE 1: This does not guarentee that you cannot confuse get_time_ns. You could possibly wait for two reset cycles and then get a messed up value. To fix that we may need interrupt mode timer tick - something on the lines of jiffies on linux. NOTE 2: the question of cs->mask is not clear. if the mask is for the tick, then it is better done with (cycle_now & cs->mask) - (cs->cycle_last & cs->mask). Signed-off-by: Nishanth Menon<x0nishan@ti.com>
* 001-arch-configNishanth Menon2008-06-051-0/+3
| | | | | | | | | | [Patch 01/17][Try 3] U-Boot-V2: ARM: Add ARCH lowlevel Init This Patch adds CONFIG_ARCH_HAS_LOWLEVEL_INIT as discussed in thread http://www.nabble.com/-Patch--U-Boot-V2%3A-Introduce-CONFIG_ARCH_HAS_INIT_LOWLEVEL-to17134638.html#a17188894 Signed-off-by: Nishanth Menon<x0nishan@ti.com>
* [memory layout]: streamline memory layoutSascha Hauer2008-06-041-0/+56
| | | | | | | 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.
* fix warnings in malloc code introduced by last commitsSascha Hauer2008-06-031-2/+2
|
* Remove part #ifdefed with #if (CONFIG_COMMANDS & CFG_CMD_BOOTD) which isMenon, Nishanth2008-05-121-17/+1
| | | | false everytime
* Change CONFIG_SKIP_LOWLEVEL_INIT to CONFIG_MACH_DO_LOWLEVEL_INITMenon, Nishanth2008-05-121-8/+12
| | | | | | | | as we rather use positive logic. Make it dependent on boards that have it rather than on ARM Signed-off-by: Nishanth Menon <x0nishan@ti.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Trivial comment fixSascha Hauer2008-04-041-1/+1
|
* Subject: [PATCH] [general] Fixed constant strings in data section issueSascha Hauer2008-04-043-11/+14
| | | | | | | | 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>
* use newly introduced stringlist functions for tab completionSascha Hauer2008-03-111-48/+15
|
* Add the possibility to have an architecture specific ctrlc() function.Sascha Hauer2008-03-111-0/+2
| | | | | This allows us to return immediately in ctrlc() on sandbox and thus not slow down network througput.
* replace debug_printf with debug in hush.cSascha Hauer2008-03-091-42/+35
|
* add globbing supportSascha Hauer2008-03-092-27/+110
|
* implement TAB completionSascha Hauer2008-03-014-285/+213
|
* Make the early console device/baudrate configurable instead of usingSascha Hauer2008-02-212-1/+20
| | | | hardcoded values
* [general] Fixed crash in memory allocatorCarsten Schlote2008-02-201-1/+3
| | | | | | | | | | | | Fixed a bug in sbrk(). When the new mem_brk value returned by sbrk_no_zero() returns NULL to indicate 'out of memory', sbrk() still memset()s innocent memory at address NULL. For some architectures this memory might be empty, so this never causes a problem. Anyway on Coldfire I still have my vector table there. Nuking them isn't really a good idea :-) Signed-off-by: Carsten Schlote <c.schlote@konzeptpark.de>
* - Add functions to register image handlers for booting uImagesSascha Hauer2008-02-201-0/+28
|
* [general] Fixed endian handling for envfsCarsten Schlote2008-02-191-30/+32
| | | | | | | | | | | Fixed the handling of data similiar as found in cramfs. This fixes the problem with an unreadable defaultenv on big-endian targets. The endian macors are now loaded from /asm/common.h by default. Signed-off-by: Carsten Schlote <c.schlote@konzeptpark.de>
* [sandbox] add propper sandbox detectionMarc Kleine-Budde2007-11-291-1/+1
| | | | | | | | | | | | | | | This patch adds a __SANDBOX__ define to identify compiling for the sandbox. When building for sandbox, don't use sync() workaround. Fixes this error for sandbox on PPC: CC common/memsize.o common/memsize.c:30:38: error: asm/io.h: No such file or directory common/memsize.c: In function 'get_ram_size': common/memsize.c:51: warning: implicit declaration of function 'sync' Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* Revert "separating memory commands"Marc Kleine-Budde2007-11-272-170/+0
| | | | | | | | | | | | This reverts commit d59c600c656d08410ea862c582fbd77432c3ca47. Conflicts: commands/Makefile common/Kconfig common/Makefile Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* add switch to enable debug symbolsRobert Schwebel2007-11-271-0/+6
| | | | | | | | Add a symbol to the "Debugging" menu which enables the debug symbols in u-boot-v2. This makes it possible to view the source code with 'objdump'. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>