Krzysztof Halasa
c5baa0edc4
Fix error handling with malloc, memalign etc. Introduce xmemalign().
...
The idea is to panic() when there is no memory available for normal
operation. Exception: code which can consume arbitrary amount of RAM
(example: files allocated in ramfs) must report error instead of panic().
This patch also fixes code which didn't check for NULL from malloc() etc.
Usage: malloc(), memalign() return NULL when out of RAM.
xmalloc(), xmemalign() always return non-NULL or panic().
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-01-07 10:21:22 +01:00
Krzysztof Halasa
1b6a3e3634
Silence few warnings.
...
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-21 09:02:40 +01:00
Sascha Hauer
32558d1ae5
LED: Add LED trigger support
...
This patch allows to associate LEDs with certain triggers, such
as heartbeat or network activity.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-12-20 09:57:35 +01:00
Robert Schwebel
681f821d05
doc: unify documentation for 'devinfo'
...
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2010-11-01 16:23:09 +01:00
Robert Schwebel
52812cc68f
digest: align menu
...
Align with the other menu entries.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-01 11:44:48 +01:00
Robert Schwebel
6c7f466400
devinfo: use subtree only with devinfo
...
The do_devinfo_subtree() function is only used if devinfo is compiled
in, so put it under the same ifdef. This avoids the following warning
when built with allnoconfig:
lib/driver.c:247: warning: 'do_devinfo_subtree' defined but not used
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-11-01 11:44:48 +01:00
Robert Schwebel
ee1419ec92
doc: fix wrongly named parameter
...
Silence this warning:
lib/parameter.c:85: Warning: argument `value' of command @param is not found in the argument list of dev_set_param(struct device_d *dev, const char *name, const char *val)
lib/parameter.c:85: Warning: The following parameters of dev_set_param(struct device_d *dev, const char *name, const char *val) are not documented:
parameter val
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-22 20:47:03 +02:00
Sascha Hauer
298252bdef
process_escape_sequence: Add missing include
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:42 +02:00
Sascha Hauer
0d1c13019e
libbb: sparse fixes
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:25 +02:00
Sascha Hauer
6bc37ca831
remove dead ldiv code
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:25 +02:00
Sascha Hauer
c89ac15f80
lib/driver.c: sparse fixes
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:25 +02:00
Sascha Hauer
ee6b3e174d
copy_file: sparse fixes
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:23 +02:00
Sascha Hauer
f167796416
crc32: sparse fixes
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:23 +02:00
Sascha Hauer
eff51304a7
readline: sparse fixes
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:22 +02:00
Sascha Hauer
246c053c7a
fnmatch:sparse fixes
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:22 +02:00
Sascha Hauer
e7ef703f07
glob: sparse fixes
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:22 +02:00
Jean-Christophe PLAGNIOL-VILLARD
14f5e927f4
sha1/sha256: use be32_to_cpu and cpu_to_be32
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-22 10:32:09 +02:00
Jean-Christophe PLAGNIOL-VILLARD
7a1033c3a3
sha1: use unit32_t and uint8_t
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-22 10:32:09 +02:00
Jean-Christophe PLAGNIOL-VILLARD
e85c6bb0a7
driver: use id as -1 for auto assigned id
...
before if you specify id = 0 the next available id will be taken
otherwise fail if already registered now as in linux we use -1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 08:58:52 +02:00
Jean-Christophe PLAGNIOL-VILLARD
c3ad283b8b
add sha256 support
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-20 08:57:22 +02:00
Jean-Christophe PLAGNIOL-VILLARD
3b0850e515
add sha1 support
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-20 08:57:21 +02:00
Jean-Christophe PLAGNIOL-VILLARD
0e3339a0e2
add md5 support
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-20 08:57:21 +02:00
Jean-Christophe PLAGNIOL-VILLARD
77a57f4cb4
add digest framework
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-20 08:57:21 +02:00
Jean-Christophe PLAGNIOL-VILLARD
c33a2e503c
device: fix dev_name
...
dev_name is supposed to return the name of the device plus the id
currently we use %s%d format where in the kernel the use %s.%d
we may think to switch to this format for the device name and keeping the %s%d
for the devfs
this will be usefull to not modify the clock device name as example
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-20 08:56:37 +02:00
Jean-Christophe PLAGNIOL-VILLARD
427c608583
driver: allow register device with specific id
...
if you specify id = 0 the next available id will be taken
otherwise fail if already registered
before if you specify one it will have use the next free id anyway
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-17 10:56:24 +08:00
Sascha Hauer
af60e5883e
vsprintf: fix wrong EXPORT_SYMBOL
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-16 08:31:10 +02:00
Jean-Christophe PLAGNIOL-VILLARD
dfcdce8eec
arm: add common clkdev
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Andrea GALLO <andrea.gallo@stericsson.com>
Cc: Gael SALLES <gael.salles@stericsson.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-06 19:09:38 +02:00
Jean-Christophe PLAGNIOL-VILLARD
e0953c5db2
string: add strlcpy support
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Andrea GALLO <andrea.gallo@stericsson.com>
Cc: Gael SALLES <gael.salles@stericsson.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-06 19:09:38 +02:00
Sascha Hauer
a33bc77bdd
add rbtree support (needed for ubi)
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 13:00:01 +02:00
Sascha Hauer
1b5de4c0fe
crc32: activate crc32_no_comp (needed for jffs2 and UBI)
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-05 13:00:01 +02:00
Sascha Hauer
257da5cac0
add progression bar function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-28 10:43:55 +02:00
Sascha Hauer
738d70e430
include support for a simple pseudo number generator
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-22 15:44:44 +02:00
Sascha Hauer
c3789cd49b
rework device parameters
...
Change device parameters so that the memory management is in generic
code. This also removes the need of storing statically initialized
parameters as they are stored in a struct list_head for each device.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:28:25 +02:00
Sascha Hauer
e723f79cb7
make panic and hang __noreturn functions
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer
adaffb5b0c
add process_escape_sequence function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer
362d6375aa
add snprintf function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer
6d079ae2ca
add unlzo support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:14:58 +02:00
Sascha Hauer
922bb41a47
remove typedef cmd_tbl_t and replace it with struct command
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Robert P. J. Day
057125d9b5
Remove obsolete comment referring to CFG_CMD_JFFS2.
...
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-21 15:25:04 +01:00
Sascha Hauer
9ff9388632
vsprintf: Only define PAGE_SIZE if not already defined
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:58 +01:00
Sascha Hauer
73108301d4
Remove unnecessary casts in key defines
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:54 +01:00
Sascha Hauer
8fc2d57024
read_key: Use ARRAY_SIZE instead of hardcoded value
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 11:11:40 +01:00
Sascha Hauer
a3ffa97f40
rename U-Boot-v2 project to barebox
...
This has been done with the following script:
find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \
-e 's/u2boot/barebox/g' \
-e 's/U2Boot/barebox/g' \
-e 's/U-boot V2/barebox/g' \
-e 's/u-boot v2/barebox/g' \
-e 's/U-Boot V2/barebox/g' \
-e 's/U-Boot-v2/barebox/g' \
-e 's/U_BOOT/BAREBOX/g' \
-e 's/UBOOT/BAREBOX/g' \
-e 's/uboot/barebox/g' \
-e 's/u-boot/barebox/g' \
-e 's/u_boot/barebox/g' \
-e 's/U-Boot/barebox/g' \
-e 's/U-boot/barebox/g' \
-e 's/U-BOOT/barebox/g'
find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \
xargs -0 -r rename 's/u[-_]?boot/barebox/'
It needs some manual fixup following in the next patch
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:18:30 +01:00
Juergen Beisert
765cb0028d
Fix some exported names
...
Unsure if this is the/a correct fix, but without it, my build fails.
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-11 10:37:11 +01:00
Sascha Hauer
73d57b1d35
list: remove duplicated list.h
...
We accidently have two list implementations in the tree:
include/list.h and include/linux/list.h. This patch moves
the latter (newer one) to include/linux/list.h.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-11-03 09:48:53 +01:00
Sascha Hauer
420a3173f0
commands: remove maxargs
...
No need to check for maximum argument counts. The commands are
safe to be called with more arguments, so lets safe some bytes.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-19 16:18:33 +02:00
Sascha Hauer
51b0b001d3
stringlist: Fix printing on smaller consoles
...
Do not add additional space between strings, we already
did this by adding 4 to the string length.
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-15 16:06:05 +02:00
Sascha Hauer
82875bfd52
readline: Allow only ascii and printable characters
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-29 08:50:42 +02:00
Sascha Hauer
0a0920af28
add xstrdup function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:33:57 +02:00
Sascha Hauer
a205b87fa2
make copy_file() globally available
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-25 13:33:52 +02:00
Juergen Beisert
afd482e833
Move the parameter's documentation where it belongs to
...
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-31 13:24:35 +02:00
Sascha Hauer
02ba8a0542
get rid of device ids
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:47 +02:00
Sascha Hauer
6459b135d9
Get rid of DEVICE_TYPE_FS usage
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:46 +02:00
Sascha Hauer
a2b7cd183b
introduce cdev
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:44 +02:00
Sascha Hauer
d1a54ab5c4
vsprintf: Update to latest kernel version
...
This adds a function to print into a malloced string
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-06-10 13:55:07 +02:00
Sascha Hauer
06a20b38f8
Add notifier framework
...
This is loosely based on the Linux notifier framework, but
stripped down to the bare minimum.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-13 16:00:11 +02:00
Sascha Hauer
90ef0ccd2c
use bus remove function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer
cbb773d5d6
driver: do not match for devices which already have a driver
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer
e8884fac82
fix compiler warning
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer
4511a8873b
we need different bus types
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer
0255a6643a
driver.c: set errno
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:16:45 +02:00
Sascha Hauer
0b5a776c1e
Shutdown U-Boot before starting an OS
...
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>
2009-03-19 12:21:18 +01:00
Sascha Hauer
c3fc1364d9
Introduce dev_* and pr_* functions
...
Proven to be useful in linux kernel, U-Boot should have such a thing
aswell. We do not distinguish between the various print levels others
than debug and not debug.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-10-31 14:02:25 +01:00
Sascha Hauer
bcb049a702
string: add typechecking for strchr, strrchr, strstr
...
These functions offered an excellent possibility to bypass compiler
type checking.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:54 +02:00
Sascha Hauer
c0d02ffc3d
Fix string_to_ip
...
Use a pointer to an ip address instead of the return value in string_to_ip
and use the return value for error indication only. 0.0.0.0 can be a valid
ip address
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:47 +02:00
Sascha Hauer
ad3b376c3d
parameter: set errno in dev_set_param
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 13:12:42 +02:00
Sascha Hauer
1d35082db5
parameter: make stringlen more readable
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 13:10:48 +02:00
Nishanth Menon
1252331f68
Driver: expose dummy_probe
...
expose Dummy Probe function so that modules can use it.
Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:50 +02:00
Nishanth Menon
5fc0e871d5
U-Boot-V2:Bitops: asm-generic bitops
...
This introduces selected generic bitop files from
kernel. We don't need minix, ext2, sched or lock
based bitops. Those have been dropped.
Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:49 +02:00
Sascha Hauer
d8e2732a0a
only compile devinfo command when selected
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:29:30 +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
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
31b5112b73
[general] remove HAVE_CONFIG_H
2008-04-07 11:40:55 +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
ecc241774a
fix dirname if called with something like "/path"
2008-03-11 21:46:40 +01:00
Sascha Hauer
8f35e16333
add stringlist function. They can be used to build a list
...
of strings. For now mainly useful to print the resulting
list in columns which is used in tab completion and ls.
2008-03-11 21:38:22 +01:00
Sascha Hauer
38e5fc1735
add glob to Makefile
2008-03-09 23:15:22 +01:00
Sascha Hauer
187847b2b4
add globbing support
2008-03-09 22:35:38 +01:00
Sascha Hauer
2209ae02ba
readline: Fix wrong screen reprinting. Try:
...
abcde<BACKSPACE><HOME><DEL>
2008-03-02 17:24:05 +01:00
Sascha Hauer
23d1cead89
readline: Fix a bug when tab completion is used in the middle
...
of the line.
2008-03-02 17:23:10 +01:00
Sascha Hauer
df31bb46be
implement TAB completion
2008-03-01 21:08:14 +01:00
Sascha Hauer
ca558b9097
make dirname/basename behave more standard conform
2008-03-01 21:03:01 +01:00
Marc Kleine-Budde
f94dae59d7
improved codingstyle
...
This patch improved the codingstyle
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:49 +01:00
Marc Kleine-Budde
f0e65e3cf6
[sparse] use NULL for nullpointer
...
fixes:
lib/parameter.c:108:19: warning: Using plain integer as NULL pointer
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:47 +01:00
Marc Kleine-Budde
afe0eaee43
get_device_by_path now obeys cwd
...
With this patch get_device_by_path obeys the cwd, which allows a more
intuitive devinfo command.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-19 10:41:17 +01:00
Marc Kleine-Budde
1d7cb260d8
fixed doku renamed ip -> ipaddr
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-12 12:29:09 +01:00
Juergen Beisert
8fe25ecf12
adding various doku
2007-11-08 12:01:52 +01:00
Juergen Beisert
30e09b83d5
shell info added
2007-10-19 21:35:46 +02:00
sascha
3c0323a650
export symbols get_device_by_path and dev_add_child
2007-10-19 13:13:17 +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
003370b63a
compile fix
2007-10-19 11:06:03 +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
438873e769
remove putc references
2007-10-17 17:51:34 +02:00
sascha
10bdc84297
implement delete key in readline
2007-10-16 23:08:37 +02:00
Sascha Hauer
212f631eb4
let erase and protect functions return int instead of size_t. They
...
only return succes/error but no size.
2007-10-11 22:00:22 +02:00
Sascha Hauer
22c0e805ea
replace 8 spaces with tabs
2007-10-11 20:56:18 +02:00
Sascha Hauer
eadf71abc7
Use Linux kernel list for drivers and devices instead of handmade
...
list.
2007-10-11 20:20:36 +02:00
Sascha Hauer
0fca6b006c
parse_area_spec():
...
- No need to handle strings where only size or end is given. This
form is confusing and does not give real benefit.
- Fix start-end form. The calculation was wrong.
- Return an error if end < start.
- Add function description.
2007-10-09 12:56:20 +02:00
Sascha Hauer
2443c7a6f1
export symbols
2007-10-07 14:27:24 +02:00
Sascha Hauer
17c3e64578
export functions
2007-10-04 12:37:06 +02:00
Sascha Hauer
5017152f13
export functions
2007-10-04 12:33:20 +02:00
Sascha Hauer
aaa71a1263
Export symbols printf and the ones needed for getopt
2007-10-01 10:26:45 +02:00
Sascha Hauer
5931ed5a14
add safe_strncpy() function
2007-09-28 10:45:59 +02:00
Sascha Hauer
b3dc734018
declare lots of functions static
2007-09-28 10:07:26 +02:00
Sascha Hauer
46d5705395
implement mkdir -p
2007-09-27 11:59:18 +02:00
Sascha Hauer
06efc2b81a
disable crc32 complement version for now
2007-09-27 11:26:19 +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
1cc42431c9
add header for libgen.c, add missing includes
2007-09-25 14:36:10 +02:00
Sascha Hauer
fd4cc5d0d3
add debug for xmalloc and xrealloc
2007-09-24 17:04:53 +02:00
Sascha Hauer
ca5ae599d6
add recursive_action() and concat_subpath_file() from busybox
2007-09-24 17:00:49 +02:00
Sascha Hauer
d4ba2f9001
move dirname() and basename() to lib/libgen.c and add header file
2007-09-24 16:57:12 +02:00
Sascha Hauer
3cbc5c5c12
remove u-boot command paramter flag
2007-09-24 12:31:08 +02:00
Sascha Hauer
d97304aef2
add libbb functions
2007-09-24 01:36:07 +02:00
Sascha Hauer
90a17da95c
add kernel kfifo implementation
2007-09-21 21:29:32 +02:00
Sascha Hauer
fd8e989e2e
move mkimage.c to scripts, make it compile
2007-09-21 13:55:04 +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
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
b449ef7374
fix silly bug in unregister_device(). When unregistering devices
...
we have to compare the device pointers and not the names.
2007-07-14 15:36:49 +02:00
Sascha Hauer
34844ba052
check for digit in parse_are_spec()
2007-07-14 14:45:11 +02:00
Sascha Hauer
93abe4f36b
make printf position independent
2007-07-12 09:30:20 +02:00
Sascha Hauer
d7df716367
use debug() macro
2007-07-05 21:42:34 +02:00
Sascha Hauer
bc1e507198
add gunzip
2007-07-05 21:23:42 +02:00
Sascha Hauer
75a10b942c
svn_rev_706
...
add file headers
2007-07-05 18:02:19 +02:00
Sascha Hauer
9afd20bdb0
svn_rev_693
...
remove do_reset
2007-07-05 18:02:18 +02:00
Sascha Hauer
b2c5310d4d
svn_rev_653
...
restructure tree, add reginfo command
2007-07-05 18:02:14 +02:00
Sascha Hauer
4b07af6730
svn_rev_643
...
structure cleanup
2007-07-05 18:02:13 +02:00
Sascha Hauer
4a660c0877
svn_rev_639
2007-07-05 18:02:12 +02:00