08 Dec, 2014
8 commits
-
The U-Boot port runs on a variety of RPi models, not just the B. So,
rename the port to something slightly more generic.Signed-off-by: Stephen Warren
Reviewed-by: Simon Glass
Tested-by: Simon Glass -
Detect the board revision early during boot, and print the decoded
model name.Eventually, this information can be used for tasks such as:
- Allowing/preventing USB device mode; some models have a USB device on-
board so only host mode makes sense. Others connect the SoC directly
to the USB connector, so device-mode might make sense.
- The on-board USB hub/Ethernet requires different GPIOs to enable it,
although luckily the default appears to be fine so far.
- The compute module contains an on-board eMMC device, so we could store
the environment there. Other models use an SD card and so don't support
saving the environment (unless we store it in a file on the FAT boot
partition...)Set $fdtfile based on this information. At present, the mainline Linux
kernel doesn't contain a separate DTB for most models, but I hope that
will change soon.Signed-off-by: Stephen Warren
Reviewed-by: Simon Glass
Tested-by: Simon Glass -
In SPL MMC, boot modes are exclusive. So, if MMCSD_MODE_RAW fails, the board hangs. This patch allows to
try MMCSD_MODE_FS then, if available.It has been tested on a pandaboard (rev. A3).
Signed-off-by: Guillaume GARDET
Cc: Tom Rini -
Add me for UBI custodian.
Signed-off-by: Heiko Schocher
Acked-by: Stefan Roese
Acked-by: Kyungmin Park -
Currenly when CONFIG_BOOTP_SERVERIP is defined, the SERVERIP is not changed
when receive the BOOTP packet. But BOOTFILE is changed via BOOTP packet.As we will load the BOOTFILE from SERVERIP, if the BOOTFILE is modified
by bootp packet but SERVERIP is not, that is not make sense.This patch make SERVERIP and BOOTFILE be consistent. If we define the
CONFIG_BOOTP_SERVERIP, then SERVERIP and BOOTFILE will not changed by
BOOTP packet. Only IP address is changed.Signed-off-by: Josh Wu
-
get_maintainer.pl always fails with following message:
./scripts/get_maintainer.pl: The current directory does not appear to be a linux kernel source tree.This was caused by commit:
commit 548b310c68ac99a0330d8b56c797c09ff0742d1e
Author: Masahiro Yamada
Date: Thu Oct 30 15:50:15 2014 +0900Remove the CREDITS file
This file is not maintained these days.
We use MAINTAINERS for the maintainership of the supported boards.
For dead boards, we have some clues in doc/README.scrapyard and
also imperishable history in git-log.Remove CREDITS from source tree detection to fix this.
Signed-off-by: Daniel Schwierzeck
Acked-by: Simon Glass -
Commit 709ea54 made a subtle change to the way the U-Boot API jump table
is set up. So at present putc(), getc(), tstc() and puts() do not work
correctly from functions that use the U-Boot API.Previously these were set to the stdio functions, but these now take a
parameter specifying which stdio device to use. Instead, we should change
them to use the global functions which do not have a parameter.This is a slight change in behaviour. The functions will now output to
all selected stdio devices - for example putc() will output a character to
all devices selected by stdout. However in most cases there is only one,
and it isn't necessarily incorrect behaviour anyway.The API version is not changed since it is compatible with what was there
before.Reported-by: Martin Dorwig
Signed-off-by: Simon Glass -
Raw images of U-Boot can be stored inside MMC partitions, so it makes sense to
read the partition table, looking for a partition number instead of using
a fixed sector address.Signed-off-by: Paul Kocialkowski
Reviewed-by: Tom Rini
[trini: Only add mmc_load_image_raw_partition() when
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION to avoid warning, add missing
conversion in spl_mmc_load_image()]
Signed-off-by: Tom Rini
05 Dec, 2014
1 commit
-
CONFIG_SYS_MMC_SD_FS_BOOT_PARTITION ought to be called
CONFIG_SYS_MMCSD_FS_BOOT_PARTITION to keep it consistent with other config
options such as: CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR.In addition, it is not related to raw mode booting but to fs mode instead.
Signed-off-by: Paul Kocialkowski
Reviewed-by: Tom Rini
04 Dec, 2014
2 commits
-
It has been found that this change breaks the case of an appended device
tree file, so for the problem in question some other solution must be
found.This reverts commit c6150aaf2f2745141a7c2ceded58d7efbfeace7d.
Reported-by: Bill Pringlemeir
Reported-by: Pantelis Antoniou
Confirmed-by: Bill Pringlemeir
Signed-off-by: Tom Rini
02 Dec, 2014
3 commits
-
The changes to introduce loff_t into filesize means that we need to do
64bit math on 32bit platforms. Make sure we use the right wrappers for
these operations.Cc: Daniel Schwierzeck
Cc: Suriyan Ramasami
Reviewed-by: Simon Glass
Signed-off-by: Tom Rini
Tested-by: Pierre Aubert
01 Dec, 2014
1 commit
-
After commit 933cdbb479: "fdt: Try to use fdt_address_cells()/fdt_size_cells()"
I noticed that allwinner boards would no longer boot.Switching to fdt_address_cells / fdt_size_cells changes the result from
bytes to 32 bit words, so when we increment pointers into the blob, we must
do so by 32 bit words now.This commit makes allwinner boards boot again.
Signed-off-by: Hans de Goede
Tested-by: Masahiro Yamada
Acked-by: Simon Glass
Tested-by: Stefan Roese
Tested-by: Vince Hsu
28 Nov, 2014
9 commits
-
Signed-off-by: Masahiro Yamada
-
Signed-off-by: Masahiro Yamada
-
If CONFIG_OF_CONTROL is defined, search device tree nodes that are
compatible with "panasonic,uniphier-ehci" and take the base address
from their "reg" property.Signed-off-by: Masahiro Yamada
Cc: Marek Vasut -
This commit implements the ofdata_to_platdata handler for the UniPhier
serial driver and adds serial device nodes to the device tree sources.Signed-off-by: Masahiro Yamada
-
This commit adds basic device tree sources for UniPhier SoCs/boards.
Signed-off-by: Masahiro Yamada
-
If CONFIG_OF_CONTROL is enabled, lib/fdtdec.c is compiled.
It includes and then includes
. Consequently, all the SoCs that enable
CONFIG_OF_CONTROL must have even if they do not
support GPIO.In the first place, GPIO has nothing to do with OF_CONTROL.
It is wrong that lib/fdtdec.c includes GPIO functions; it should
be split into two files, FDT-common things and GPIO things.
It is, however, a pretty big work to fix that correctly.This is a compromised commit to add a dummy
to support OF_CONTROL for UniPhier platform. This dummy header
will be removed after FDT-GPIO stuff is fixed correctly.Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass -
Signed-off-by: Masahiro Yamada
-
The fdt_path_offset() checks an alias too.
fdtdec_get_alias_node(blob, "foo") is equivalent to
fdt_path_offset(blob, "foo").Signed-off-by: Masahiro Yamada
Acked-by: Simon Glass
27 Nov, 2014
16 commits
-
Signed-off-by: Daniel Schwierzeck
-
The initramfs is currently only relocated if the user calls
the bootm ramdisk subcommand. If bootm should be used without
subcommands, the arch-specific bootm code needs to implement
the relocation.Signed-off-by: Daniel Schwierzeck
-
After all MIPS boards are switched to generic-board, the
MIPS specific board.c can be removed.Signed-off-by: Daniel Schwierzeck
-
Signed-off-by: Daniel Schwierzeck
Acked-by: Stefan Roese -
Signed-off-by: Daniel Schwierzeck
-
Signed-off-by: Daniel Schwierzeck
-
Signed-off-by: Daniel Schwierzeck
-
To get correct stack walking and backtrace functionality in gdb,
registers fp and ra should be initialized before calling board_init_f
or board_init_r. Thus allocating stack space and zeroing it as it is
currently done in board.c becomes obsolete.Signed-off-by: Daniel Schwierzeck
-
Merge struct s3c2410_nand and struct s3c2440_nand into one unified
struct s3c24x0_nand. While at it, fix up and rename the functions
to retrieve the NAND base address and fix up the s3c NAND driver to
reflect this change.Signed-off-by: Marek Vasut
Cc: Kyungmin Park
Cc: Lukasz Majewski
Cc: Minkyu Kang
Cc: Scott Wood
Cc: Vladimir Zapolskiy -
We probably don't need to enable this option by default. It is useful to
display only failure boards (not errors) and it is easy to add -e if it
is required. Also update the docs.Signed-off-by: Simon Glass
Reported-by: Albert Aribaud -
Ensure that we don't print duplicate board names when -l is used.
Signed-off-by: Simon Glass
Reported-by: Albert Aribaud -
Even with the initial 8 characeters of the hash we will sometimes get a
collision. Use the full hash.Signed-off-by: Simon Glass
-
When saving binary files we likely want to keep any .img files that have
been generated as well.Signed-off-by: Tom Rini
Acked-by: Simon Glass -
This fixes the following two problems:
cppcheck reports:
[arch/sandbox/cpu/start.c:132]: (error) Uninitialized variable: err
[arch/sandbox/cpu/os.c:371]: (error) Memory leak: fnameSigned-off-by: Simon Glass
Reported-by: Wolfgang Denk -
Now that we have inttypes.h, use it in a few more places to avoid compiler
warnings on sandbox when building on 64-bit machines.Signed-off-by: Simon Glass