Sascha Hauer
f7403928a9
Revert "Replace direct header access with the API routines"
...
This reverts commit 0ceafe14be
.
Conflicts:
include/image.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-07 14:11:38 +02:00
Jean-Christophe PLAGNIOL-VILLARD
0ceafe14be
Replace direct header access with the API routines
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 08:46:22 +02:00
Jean-Christophe PLAGNIOL-VILLARD
0eb8686dc2
arm: allow to overwrite the system_rev via bootm
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Tested-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-22 10:32:12 +02:00
Baruch Siach
e74f2160e7
arm: add support for the serial ATAG
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-08-04 09:28:15 +02:00
Baruch Siach
6c1c56744a
bootz: give a proper error on open() failure
...
Currently when running bootz on a nonexistent file, barebox just got stuck. Fix
this.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-22 15:37:48 +02:00
Sascha Hauer
8f1691d58c
armlinux: reorder tag setup
...
We call the individual setup_*_tag functions from three different
boot commands. Waste less space by calling a single setup_tags function
instead.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-24 11:36:32 +02:00
Sascha Hauer
72861584e3
bootu: Allow passing in devices as parameter
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 08:30:38 +02:00
Marc Reilly
55626da787
arm boot: Formatting
...
Changed to be consistent with surrounding code.
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-17 10:52:50 +02:00
Marc Reilly
0df45f5599
arm: Add revision tag to boot parameters
...
Revision info required for some boards at boot time.
Only adds if the system_rev has been set to non-zero.
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-17 10:52:46 +02:00
Sascha Hauer
78104ae181
arm: reimplement startup code in C
...
Lets translate the startup code to a language we all understand better.
Tested on pcm038 (arm v5) and pcm043 (arm v6).
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-03 15:05:38 +02:00
Sascha Hauer
cf2703a6fb
ARM: replace cleanup_before_linux with the generic shutdown_barebox function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Marc Kleine-Budde
9762ce53b2
ioreadsb: put the whole ioreadsb function into the .text.readsb section
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2010-02-16 21:49:33 +01:00
Sascha Hauer
6cbf70a01a
Merge branch 'pu'
2010-02-01 17:25:59 +01: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
Matthias Kaehlcke
3d26aca96d
ARM: Add support for EP93xx SoCs
...
Add support for the Cirrus Logic EP93xx platform
Signed-off-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-14 10:04:12 +01:00
Marc Kleine-Budde
b72645bfa5
arm/lib: add missing abi helper functions __aeabi_idivmod, __aeabi_uidivmod
...
With EABI we have two new helper functions __aeabi_idivmod and
__aeabi_uidivmod. This patch adds them to barebox.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-16 15:39:12 +01:00
Marc Kleine-Budde
8fe23d32d9
arm/lib: add eabi names of helper functions
...
Since commit e2b4a792f8
, we don't
undoncitionally link with OABI. If now EABI is selected there are a
number of missing helper functions, because they have new names now.
This patch add the abi names to the existing helper functions.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-16 15:39:11 +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
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
13d3db22d3
Add MX25 support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:55 +02:00
Sascha Hauer
49ff3691b4
arm: Add bootu command
...
bootu command to start raw (uncompressed) Linux images
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:51:01 +02:00
Sascha Hauer
5db3059ebc
arm: make 'bootz' configurable
...
also, fix compilation with bootm disabled
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:50:31 +02:00
Sascha Hauer
6df1e4b20a
armlinux.c: refactor
...
- remove ifdeffery
- make locally used functions static
- coding style cleanup
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:27:46 +02:00
Sascha Hauer
5e1067792b
armlinux: remove unused atags
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:27:46 +02:00
Sascha Hauer
270c2673a1
arm: implement optimized string functions
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-18 15:45:00 +02:00
Sascha Hauer
224d499e7e
bootz: Speed up bootz command
...
We used to read the whole file with zImage booting. When the
file is really a device which is much bigger than the zImage
it's quite slow. Read the image size from the image instead.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-13 10:43:20 +02:00
Juergen Beisert
b8b205c72b
Improve or fix various parameter documentation
...
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-31 13:24:43 +02:00
Sascha Hauer
8a1d5e11bb
Get rid of DEVICE_TYPE_DRAM usage
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:45 +02:00
Juergen Beisert
cd175ec7d2
Remove all ARM __raw_* functions. They are mixed all over
...
the place. This clean up all ARM architectures to use only one set
of io functions.
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-01 14:35:35 +02:00
Juergen Beisert
97799e8a16
Add IO string functions to also handle 32 bit IO locations
...
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-01 10:45:21 +02:00
Juergen Beisert
a05e312009
Separate all assembler functions into their own section to
...
let the linker remove unused functions.
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-01 10:45:02 +02:00
Sascha Hauer
ee36cf25b5
remove SHOW_BOOT_PROGRESS
...
Though useful it is currently unsued and broken. Should be reimplemented
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-03-19 12:21:40 +01:00
Sascha Hauer
2b8f1b044e
make internal function static
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-20 18:30:26 +01:00
Sascha Hauer
8b59688e1c
ARM: Add a bootz command
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-02-06 14:44:46 +01:00
Sascha Hauer
c09d002eca
update .gitignore files for linker scripts
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-01-21 23:28:14 +01:00
Marc Kleine-Budde
5482395b9e
import io-{read,write}s{b,w} functions from linux
...
This patch imports:
- io-readsb,
- io-readsw,
- io-writesb,
- io-writesw,
from linux
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2008-10-27 12:18:25 +01:00
Nishanth Menon
31f9cb365e
Bitops:Cleanup ARM bitops
...
Cleanup of ARM bitops functions.
Introduce the findbits.S which allows for
optimized algo.
Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:50 +02:00
Sascha Hauer
bbee767a01
init: add section for early code
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00
Nishanth Menon
a5a28b6829
003-lds-handle
...
[Patch 03/17] U-Boot-V2:ARM: Fix lds file for multiple section enable.
By enabling -fdata-sections -ffunction-sections in arch/arm/Makefile, gcc splits the code into multiple section.
by using * wildcard we can bunch them into the areas we want them to be.
Signed-off-by: Nishanth Menon<x0nishan@ti.com>
2008-06-05 19:45:11 +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
8d8f900366
[ARM] Remove CONFIG_ARCH_NUMBER from Kconfig system. Putting too many
...
values into kconfig which are not user configurable at all only
encourages people to put even more stuff in there. This is not
good because people tend to have board patches lying around and
these patches won't apply regularly if they all change the same
file (arch/arm/Kconfig)
Instead, introduce a function armlinux_set_architecture() which
everyone can call during board setup.
Similarly introduce armlinux_set_bootparams() for the boot
parameter pointer.
2008-02-26 15:38:37 +01:00
Sascha Hauer
f95ec8a32d
- Add functions to register image handlers for booting uImages
2008-02-20 19:01:54 +01:00
Robert Schwebel
7067e21f3f
cleanup do_bootm_linux()
...
This patch cleans up the do_bootm_linux() function. It removes most of
the uggly ifdefery and replaces it by a sane function optimizing
structure.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2007-11-28 09:03:27 +01:00
sascha
5d746e8953
add generic linker script for arm
2007-10-17 18:23:34 +02:00
sascha
d59ca7feb3
Linking: Remove linker scripts from (arm based-) boards and add
...
a generic linker script to arch/arm/lib/u-boot.lds.S.
If a board wants to overwrite a linker script it can do
so using CONFIG_BOARD_LINKER_SCRIPT.
There is no generic linker script for ppc and blackfin
yet, so still use the board specific one.
2007-10-17 12:21:53 +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
ae53e9ef1d
CONFIG_MODULE -> CONFIG_MODULES
2007-10-04 12:33:03 +02:00
Sascha Hauer
a07743ea18
module support for arm
2007-10-03 21:09:00 +02:00
Sascha Hauer
153cf7bb6e
add arm specific bits for modules
2007-10-01 09:51:04 +02:00
Sascha Hauer
4283b823e7
add missing include
2007-07-16 10:29:57 +02:00
Sascha Hauer
8881fb7984
use memmap() to save one memcpy call in bootm
2007-07-15 14:02:53 +02:00
Sascha Hauer
3b4647f772
_armboot_start -> _u_boot_start
2007-07-12 11:52:12 +02:00
Sascha Hauer
8edc58b946
add missing include
2007-07-05 21:41:37 +02:00
Sascha Hauer
967e2e4c67
svn_rev_679
2007-07-05 18:02:16 +02:00
Sascha Hauer
b696cd0462
svn_rev_632
2007-07-05 18:02:11 +02:00
Sascha Hauer
327b4128ad
svn_rev_486
2007-07-05 18:01:58 +02:00
Sascha Hauer
a9526a6237
svn_rev_431
2007-07-05 18:01:53 +02:00
Sascha Hauer
2ca176e790
svn_rev_212
2007-07-05 18:01:33 +02:00
Sascha Hauer
0c2b8f687e
svn_rev_194
2007-07-05 18:01:31 +02:00
Sascha Hauer
53d3195be1
svn_rev_167
...
ppc startup cleaunup
2007-07-05 18:01:29 +02:00
Sascha Hauer
708897f52f
svn_rev_165
...
move arm board.c to generic
2007-07-05 18:01:29 +02:00
Sascha Hauer
a8421600d1
svn_rev_152
...
remove global data gd_t and board info bd_t entirely for arm
2007-07-05 18:01:28 +02:00
Sascha Hauer
4a14f424b5
svn_rev_150
...
remove bi_dram from bd_t
2007-07-05 18:01:27 +02:00
Sascha Hauer
42e2dbc120
svn_rev_149
...
no need for bi_dram in global data (untested)
2007-07-05 18:01:27 +02:00
Sascha Hauer
d7313300a5
svn_rev_133
...
remove env_ functions
2007-07-05 18:01:26 +02:00
Sascha Hauer
4a01ad9260
svn_rev_128
...
remove more console stuf
2007-07-05 18:01:25 +02:00
Sascha Hauer
55ebf67d3e
svn_rev_120
...
implement initcalls
2007-07-05 18:01:24 +02:00
Sascha Hauer
658cc34395
svn_rev_118
...
thousands of things
2007-07-05 18:01:24 +02:00
Sascha Hauer
abfbbad1eb
svn_rev_109
...
do not know anymore
2007-07-05 18:01:23 +02:00
Sascha Hauer
67b39350a0
svn_rev_104
...
needed for clocksource
2007-07-05 18:01:23 +02:00
Sascha Hauer
b85ae93995
svn_rev_085
...
generic/u-boot-arm-display-mem-config.diff
2007-07-05 18:01:21 +02:00
Sascha Hauer
f4631034b8
svn_rev_074
...
remove networking stuff
2007-07-05 18:01:19 +02:00
Sascha Hauer
85ca99beb3
svn_rev_015
...
move lib_arm to arch/arm/lib
2007-07-05 18:01:14 +02:00