9
0
Fork 0
Commit Graph

4720 Commits

Author SHA1 Message Date
Jean-Christophe PLAGNIOL-VILLARD 81d2b141e7 MAKEALL: make it generic
it's allow you to compile specific defconfig or ARCH or all
as

CROSS_COMPILE=arm-linux- ARCH=arm ./MAKEALL at91sam9263ek_defconfig
CROSS_COMPILE=arm-linux- ARCH=arm ./MAKEALL

The cross-compiler can be specify via
    CROSS_COMPILE               default
    CROSS_COMPILE_<arch>        arch default
    CROSS_COMPILE_<target>      deconfig specifc

it will be evaluated in the invert order

or via config

you can specify it via env CONFIG or option -c (overwrite env)

CONFIG=./MAKEALL.cfg ARCH=arm ./MAKEALL at91sam9263ek_defconfig
CONFIG=./MAKEALL.cfg ARCH=arm ./MAKEALL

and for all

CONFIG=./MAKEALL.cfg ./MAKEALL

you can specify via env or option
env       option
ARCH      -a      arch
CONFIG    -c      config
JOBS      -j      jobs
BUILDDIR  -O      build dir
LOGDIR    -l      log dir

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-02 12:43:47 +02:00
Marc Reilly f6c9a98079 Update flash headers for boards supporting internal boot.
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-01 10:01:14 +02:00
Marc Reilly 5785072b37 imx: Internal boot sources, handle all header offsets
Makes the internal boot source configurable.
Also changes section names slightly so that .flash_header_0x1000 isn't
matched to .flash_header_0x100* etc.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-01 10:01:14 +02:00
Marc Reilly b82ee742d0 i2c-imx: wait for STOP before disabling controller
Makes sure that the STOP condition is transmitted before the I2C
controller is disabled.
This fixes a problem where writing to an external EEPROM was not working
because the EEPROM waits until the STOP before initiating the write
internally.

Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-01 10:01:14 +02:00
Marc Reilly 056dd7906f imx35: add base addresses for I2C and SDHC
Signed-off-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-01 10:01:10 +02:00
Jean-Christophe PLAGNIOL-VILLARD 5156e781bd import __stringify from linux
update the current code

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-29 09:30:32 +02:00
Juergen Beisert 683e4ef357 Fix watchdog's register size for the i.MX27 CPU
commit 5bd9c57d575126448c7d325547538a55e5cd81d6
Author: Juergen Beisert <jbe@pengutronix.de>
Date:   Fri Sep 24 14:51:42 2010 +0200

    Fix watchdog's register size for the i.MX27 CPU

    The watchdog registers on the i.MX27 CPU are 16 bit registers. This patch
    just fixes the access macro.

    Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:23:34 +02:00
Jean-Christophe PLAGNIOL-VILLARD 4bdfe4df0a pcm038: fix initialization makes pointer from integer without a cast
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:17:40 +02:00
Jean-Christophe PLAGNIOL-VILLARD a19d7809d7 imx-ipu-fb: set default bits per pixel at 16 for mx3
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:17:40 +02:00
Jean-Christophe PLAGNIOL-VILLARD c16ec1f886 imx/fb: struct imx_ipu_fb_platform_data remove const for mode
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:17:40 +02:00
Juergen Beisert a3b1c7de3b The i.MX27 has no second level cache, remove include file (Subject fixed)
commit 60b66d0c59013da3294d0b5fb09b937a8b73cf14
Author: Juergen Beisert <jbe@pengutronix.de>
Date:   Fri Sep 24 15:00:04 2010 +0200

    The i.MX27 has no second level cache, remove include file

    Just a little bit cleanup.

    Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-27 09:17:40 +02:00
Jean-Christophe PLAGNIOL-VILLARD c7173d0f0f mk68: rename macro __M68K__ to __m68k__ as it's prodive by gcc
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 09:51:15 +02:00
Jean-Christophe PLAGNIOL-VILLARD 3531d4acf1 ipe337: fix default env
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 09:51:15 +02:00
Jean-Christophe PLAGNIOL-VILLARD be37e67c1f blackfin: remove duplicated PAGE_SIZE define
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 09:51:14 +02:00
Jean-Christophe PLAGNIOL-VILLARD 3f03b507d1 host: introduce compiler.h to handle host include
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 09:50:32 +02:00
Jean-Christophe PLAGNIOL-VILLARD 098e9e8f20 console: set device_d id at -1
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 08:46:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD 0231b5b3a7 netconsole: remove non-needed setbaudrate
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 08:46:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD d424ce77f5 image: factorise image printing contents
before we duplicate it between command/bootm.c and scripts/mkimage.c

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-24 08:46:40 +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 aba80a2d2d image: rename IH_CPU to IH_ARCH to be more concistant
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-23 09:55:50 +02:00
Jean-Christophe PLAGNIOL-VILLARD 7bd7d59e60 image: factorise string helper
before we duplicate it between common/bootm.c and scripts/mkimage.c

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-23 09:55:50 +02:00
Jean-Christophe PLAGNIOL-VILLARD fa1b191b4d nhk8815: rename nand parts uboot as barebox
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-23 09:55:49 +02:00
Sascha Hauer 9b7aede404 Merge branch 'for-mainline' of git://git.pengutronix.de/git/rsc/barebox into next 2010-09-22 16:01:07 +02:00
Jean-Christophe PLAGNIOL-VILLARD b41f4ffdac nhk8815: update defconfig
fix env patch
enable cramfs, ubi, login/password and menu

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-22 10:32:58 +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
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
Robert Schwebel 038163e9df sandbox: add longopts and fix segfault
Until now, the main function of the sandbox port wants to use the libc
getopt(), but as we have a getopt() implementation in barebox as well,
it is silently used instead. This works in the usual case, but if an
error occurs (i.e. by using an unknown argument) in getopt(), the
implementation tries to write to the console, which is not initialized
and thus breaks with a null pointer exception.

This patch changes the main function to use getopt_long() instead of
getopt(). This makes us use the implementation in glibc and while being
there, we get long options, which makes us look more professional...

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2010-09-21 06:37:23 +02:00
Robert Schwebel 48357cbe6b partition.c: c files are not executable
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2010-09-21 06:37:12 +02:00
Sascha Hauer 8eea33562a netx eth: Fix compilation
Also, replace __FUNCTION__ with __func__

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:43:14 +02:00
Sascha Hauer 1e559dfdf1 scb9328: Fix compilation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:42:48 +02:00
Sascha Hauer e6bfa1174f guf-neso: Update defconfig (fix env path)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:36:31 +02:00
Sascha Hauer 6bf3b065d9 guf-neso: Update defconfig (add nand and ubi)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:34:54 +02:00
Sascha Hauer f89f81995e guf-neso: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:33:42 +02:00
Sascha Hauer a645fe3a4f ep93xx net driver: Fix compilation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:30:18 +02:00
Sascha Hauer 2db4aa5c32 rename __initdata to __early_initdata
The __initdata define was present before Jean-Christophe
added it as fake value for Linux compatibility. Rename
the previous define to a different name to avoid
clashes

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:21:31 +02:00
Sascha Hauer e4c138e028 fec_mpc5200: Fix compilation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:20:59 +02:00
Marek Belisko fc2c1660f1 mach-s3c24xx: Fix compilation problem when make a9m2410 or a9m2440 defconfig
Following steps lead to compilation error (barebox v2010.09.0):

1. make a9m2440_defconfig (or a9m2410) ARCH=arm
2. make CROSS_COMPILE=arm-linux- ARCH=arm

This patch should fix problems.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:20:04 +02:00
Sascha Hauer 6f14f046fd pcm038: Update defconfig (add nand and ubi)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:11:38 +02:00
Sascha Hauer 2d2274015c pcm038: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:10:47 +02:00
Sascha Hauer f0e78bacd2 let linux16 command depend on X86
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:07:34 +02:00
Sascha Hauer aca7d68372 pcm043: Update defconfig (add nand and ubi)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:06:21 +02:00
Sascha Hauer 3f624056fd pcm043: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:03:41 +02:00
Sascha Hauer 1b2f03e580 twl4030: Fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:02:12 +02:00
Jean-Christophe PLAGNIOL-VILLARD d8f3ee103a Support for the at91sam9g20 : Atmel 400Mhz ARM 926ej-s SOC.
AT91sam9g20 is an evolution of the at91sam9260 with a faster clock
speed.
We created a new board for this device but based the chip support
directly on 9260 files with little updates.
Here is the chip page on Atmel wabsite:
http://atmel.com/dyn/products/product_card.asp?part_id=4337

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 08:58:53 +02:00
Jean-Christophe PLAGNIOL-VILLARD d8f747bb99 at91sam9263: move MACH_HAS_LOWLEVEL_INIT to board
as not all board support it

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 08:58:53 +02:00
Jean-Christophe PLAGNIOL-VILLARD 345dccf8d9 at91: add HAVE_NAND_ATMEL_BUSWIDTH_16 to Enable 16-bit data bus interface
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 08:58:53 +02:00
Jean-Christophe PLAGNIOL-VILLARD a47575911d Menu: add box style entry
this will allow you to create a box style entry

via C API by specifying the type as

struct menu_entry me = {
	.display "test",
	.type = MENU_ENTRY_BOX,
	.box_state = 1,
	.action = action_to_run,
}

and via shell
menu -e -a -m <menu> -c <command> [-R] [-b 0|1] -d <description>
menu -e -a -m <menu> -u submenu -d [-b 0|1] <description>

-b with 0 for not selected and 1 for selected
and -c for the command to run when changing state

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 08:58:53 +02:00
Jean-Christophe PLAGNIOL-VILLARD 7923392c56 menu: add auto select support
this will allow to automaticaly run an entry if the user do no choice

this is usefull for boot menu as example

with menu -s -m boot -A 3 -d "Auto Boot in"

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 3212e8462e menu: shell fix do_menu_select
invert the error report

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