23 Nov, 2014
6 commits
-
Enable md5sum to obtain the MD5 of the read and written files to check
their contents for validity.
Use map_sysmem() to map buffer in a sandbox environment.Signed-off-by: Suriyan Ramasami
Acked-by: Simon Glass
-
Since commit 0defddc851ed (config: Add a default CONFIG_SYS_PROMPT),
each board header does not need to define CONFIG_SYS_PROMPT
as long as it uses the default prompt "=> ".Signed-off-by: Masahiro Yamada
-
This macro can be overridden in source files (before including common.h)
and can be used to specify a prefix for debug and error messages. An
example of how to use this is shown below:#define pr_fmt(fmt) "foo: " fmt
#include
...
debug("bar");The resulting message will read:
foo: bar
Acked-by: Simon Glass
Signed-off-by: Thierry Reding
Signed-off-by: Simon Glass -
When enumerating devices, honour the pci_skip_dev() function. This can
be used by PCI controller drivers to restrict which devices will be
probed.This is required by the NVIDIA Tegra PCIe controller driver, which will
fail with a data abort exception if an access is attempted to a device
number larger than 0 outside of bus 0. pci_skip_dev() is therefore
implemented to prevent any such accesses.Signed-off-by: Thierry Reding
Signed-off-by: Simon Glass -
Some filesystems have a UUID stored in its superblock. To
allow using root=UUID=... for the kernel command line we
need a way to read-out the filesystem UUID.changes rfc -> v1:
- make the environment variable an option parameter. If not
given, the UUID is printed out. If given, it is stored in the env
variable.
- corrected typos
- return error codeschanges v1 -> v2:
- fix return code of do_fs_uuid(..)
- document do_fs_uuid(..)
- implement fs_uuid_unsuported(..) be more consistent with the
way other optional functionality workschanges v2 -> v3:
- change ext4fs_uuid(..) to make use of #if .. #else .. #endif
construct to get rid of unreachable codeHit any key to stop autoboot: 0
=> fsuuid
fsuuid - Look up a filesystem UUIDUsage:
fsuuid :
- print filesystem UUID
fsuuid :
- set environment variable to filesystem UUID=> fsuuid mmc 0:1
d9f9fc05-45ae-4a36-a616-fccce0e4f887
=> fsuuid mmc 0:2
eb3db83c-7b28-499f-95ce-9e0bb21cda81
=> fsuuid mmc 0:1 uuid1
=> fsuuid mmc 0:2 uuid2
=> printenv uuid1
uuid1=d9f9fc05-45ae-4a36-a616-fccce0e4f887
=> printenv uuid2
uuid2=eb3db83c-7b28-499f-95ce-9e0bb21cda81
=>Signed-off-by: Christian Gmeiner
Acked-by: Stephen Warren -
U-Boot has never cared about the type when we get max/min of two
values, but Linux Kernel does. This commit gets min, max, min3, max3
macros synced with the kernel introducing type checks.Many of references of those macros must be fixed to suppress warnings.
We have two options:
- Use min, max, min3, max3 only when the arguments have the same type
(or add casts to the arguments)
- Use min_t/max_t instead with the appropriate type for the first
argumentSigned-off-by: Masahiro Yamada
Acked-by: Pavel Machek
Acked-by: Lukasz Majewski
Tested-by: Lukasz Majewski
[trini: Fixup arch/blackfin/lib/string.c]
Signed-off-by: Tom Rini
21 Nov, 2014
9 commits
-
This commit replaces roundup macro with the one from Linux Kernel.
DEFINE_ALIGN_BUFFER must be fixed because typechecking can not
be used in this context.Signed-off-by: Masahiro Yamada
-
These macros seem to be useful for U-Boot too (or at least
harmless). Imported from Linux 3.18-rc2.Signed-off-by: Masahiro Yamada
-
U-Boot has imported various utility macros from Linux
scattering them to various places without consistency.In include/common.h are min, max, min3, max3, ARRAY_SIZE, ALIGN,
container_of, DIV_ROUND_UP, etc.
In include/linux/compat.h are min_t, max_t, round_up, round_down,
etc.
We also have duplicated defines of min_t in some *.c files.Moreover, we are suffering from too cluttered include/common.h.
This commit moves various macros that originate in
include/linux/kernel.h of Linux to their original position.Note:
This commit simply moves the macros; the macros roundup,
min, max, min2, max3, ARRAY_SIZE are different
from those of Linux at this point.Signed-off-by: Masahiro Yamada
-
All the references of DIV_ROUND have been replaced with
DIV_ROUND_CLOSEST. Remove DIV_ROUND.Signed-off-by: Masahiro Yamada
-
CONFIG_CPU_ARM1136 was introduced into Kconfig by commit 2e07c249a67e
(kconfig: arm: introduce symbol for ARM CPUs).This commit removes all the defines of CONFIG_ARM1136 and replaces
the only reference in arch/arm/lib/cache.c with CONFIG_CPU_ARM1136.Signed-off-by: Masahiro Yamada
-
CONFIG_CPU_ARM926EJS was introduced into Kconfig by commit 2e07c249a67e
(kconfig: arm: introduce symbol for ARM CPUs).This commit removes all the defines of CONFIG_ARM926EJS and replaces
the only reference in arch/arm/lib/cache.c with CONFIG_CPU_ARM926EJS.Signed-off-by: Masahiro Yamada
-
CONFIG_CPU_ARM920T was introduced into Kconfig by commit 2e07c249a67e
(kconfig: arm: introduce symbol for ARM CPUs).This commit removes all the defines of CONFIG_ARM920T and replaces the
only reference in drivers/usb/host/ohci-hcd.c with CONFIG_CPU_ARM920T.Signed-off-by: Masahiro Yamada
-
CONFIG_ARM1176 is defined for some boards but not referenced at all.
Signed-off-by: Masahiro Yamada
-
Some (not all) of ARMv7 boards define CONFIG_ARMV7, which is useless.
Besides, it is never referenced.Signed-off-by: Masahiro Yamada
Acked-by: Nobuhiro Iwamatsu
20 Nov, 2014
3 commits
19 Nov, 2014
6 commits
-
a3m071 and a4m2k share one config header. So adding the generic board defines
in this one file is enough to convert both boards.Signed-off-by: Stefan Roese
Cc: Wolfgang Denk -
Signed-off-by: Stefan Roese
Cc: Wolfgang Denk -
The gdsys hrcon board is based on a Freescale MPC8308 SOC.
It boots from NOR-Flash, kernel and rootfs are stored on
SD-Card.On board peripherals include:
- 1x GbE (optional)
- Lattice ECP3 FPGA connected via eLBC and PCIeSigned-off-by: Dirk Eibach
Signed-off-by: Stefan Roese -
The device id makes u-boot think that this chip needs
cfi_reverse_geometry(), which is not the case.
Add it to jedec_flash, so it is handled properly.Signed-off-by: Dirk Eibach
Signed-off-by: Stefan Roese -
Tune dlvision configuration similar to other gdsys boards to reduce memory
footprint.Signed-off-by: Dirk Eibach
Signed-off-by: Stefan Roese -
The UBI layer will disable much of its error reporting when it is
compiled into the linux kernel to avoid stopping boot. We want this
error reporting in U-Boot since we don't initialize the UBI layer until
it is used and want the error reporting.We force this by telling the UBI layer we are building as a module.
Signed-off-by: Andrew Ruder
Cc: Wolfgang Denk
Cc: Heiko Schocher
Cc: Kyungmin Park
17 Nov, 2014
16 commits
-
The code for this board supports following features:
- Boot media support: NAND flash/SD card/SPI flash
- Support LCD display (optional, disabled by default)
- Support ethernet
- Support USB mass storageSigned-off-by: Bo Shen
Signed-off-by: Andreas Bießmann -
The code for this board supports following features:
- Boot media support: NAND flash/SD card/SPI flash
- Support LCD display
- Support ethernet
- Support USB mass storageSigned-off-by: Bo Shen
Signed-off-by: Andreas Bießmann -
replaces the at91bootstrap code with SPL code.
make the spl image with:
./tools/mkimage -T atmelimage -d spl/u-boot-spl.bin spl/boot.binthis writes the length of the spl image into the 6th
execption vector. This is needed from the ROM bootloader.Signed-off-by: Heiko Schocher
Reviewed-by: Bo Shen
Reviewed-by: Andreas Bießmann
Signed-off-by: Andreas Bießmann -
replaces the at91bootstrap code with SPL code.
make the spl image with:
./tools/mkimage -T atmelimage -d spl/u-boot-spl.bin spl/boot.binthis writes the length of the spl image into the 6th
execption vector. This is needed from the ROM bootloader.Signed-off-by: Heiko Schocher
Reviewed-by: Bo Shen
Signed-off-by: Andreas Bießmann -
erase one nand block in spl code. keep it simple, as size matters
This is used on the upcoming taurus spl support.Signed-off-by: Heiko Schocher
Acked-by: Scott Wood
Reviewed-by: Bo Shen
Reviewed-by: Andreas Bießmann
Signed-off-by: Andreas Bießmann -
enable to boot only a raw u-boot.bin image from nand with the
CONFIG_SPL_NAND_RAW_ONLY define. This option saves space on
boards where spl space is low.Signed-off-by: Heiko Schocher
Reviewed-by: Andreas Bießmann
Reviewed-by: Bo Shen
Signed-off-by: Andreas Bießmann -
Signed-off-by: Heiko Schocher
Reviewed-by: Bo Shen
Reviewed-by: Jagannadha Sutradharudu Teki
Signed-off-by: Andreas Bießmann -
move CONFIG_SYS_SPI_WRITE_TOUT into drivers/spi/atmel_spi.h
and define a default value. Delete this define in the board
config files, where it is possible (all boards use currently
the same value).Signed-off-by: Heiko Schocher
Reviewed-by: Jagannadha Sutradharudu Teki
Reviewed-by: Andreas Bießmann
Signed-off-by: Andreas Bießmann -
Signed-off-by: Bo Shen
Reviewed-by: Andreas Bießmann
Signed-off-by: Andreas Bießmann -
Signed-off-by: Scott Jiang
-
Signed-off-by: Scott Jiang
-
Common part of config for lager, koelsch, alt and gose board will be able to
replace rcar-gen2-common.h.Signed-off-by: Nobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu -
The lager, koelsch, alt, gose board supported in rmobile is
distinguished as the R-Car Gen2 series and has much common setting.
This collect up the common part of config as rcar-gen2-common.h.Signed-off-by: Nobuhiro Iwamatsu
Signed-off-by: Nobuhiro Iwamatsu -
This moves SH_32BIT to Kconfig, and removes SH_32BIT from config
files.Signed-off-by: Nobuhiro Iwamatsu