| 49271666 | 20-Jul-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: Make exposed image loader path absolute
When loading an efi image, we pass it the location it was loaded from.
On file system backends, there are no relative paths, so we should always
efi_loader: Make exposed image loader path absolute
When loading an efi image, we pass it the location it was loaded from.
On file system backends, there are no relative paths, so we should always pass in absolute ones. For network paths, we may be relative.
This fixes distro booting with grub2 for me when it fetches the grub2 config file from the loader partition.
Reported-by: york sun <york.sun@nxp.com> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| af324436 | 12-Jul-2016 |
Ladislav Michl <ladis@linux-mips.org> |
cmd: mtdparts: support runtime generated mtdparts
Some CPUs contains boot ROM code capable reading first few blocks (where SPL resides) of NAND flash and executing it. It is wise to create separate
cmd: mtdparts: support runtime generated mtdparts
Some CPUs contains boot ROM code capable reading first few blocks (where SPL resides) of NAND flash and executing it. It is wise to create separate partition here for SPL. As block size depends on NAND chip used, we could either use worst case (biggest) partition size or base its size on actual block size. This patch adds support for the latter option.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
show more ...
|
| f8f744a3 | 12-Jul-2016 |
Ladislav Michl <ladis@linux-mips.org> |
cmd: mtdparts: use defaults by default
Boards which are defining default mtdparts often need them early in boot process (to load environment from UBI volume, for example). This is currently solved b
cmd: mtdparts: use defaults by default
Boards which are defining default mtdparts often need them early in boot process (to load environment from UBI volume, for example). This is currently solved by adding mtdparts and mtdids variable definitions also to default environment. With this change, default partitions are used by default unless explicitely deleted or redefined.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
show more ...
|
| 06a040a3 | 12-Jul-2016 |
Ladislav Michl <ladis@linux-mips.org> |
cmd: mtdparts: fix null pointer dereference in parse_mtdparts
In case there is no mtdparts variable in relocated environment, NULL is assigned to p, which is later fed to strncpy. Also function para
cmd: mtdparts: fix null pointer dereference in parse_mtdparts
In case there is no mtdparts variable in relocated environment, NULL is assigned to p, which is later fed to strncpy. Also function parameter mtdparts is completely ignored, so use it in case mtdparts variable is not found in environment. This parameter is checked not to be NULL in caller.
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
show more ...
|
| e6e188f5 | 03-Jul-2016 |
Hans de Goede <hdegoede@redhat.com> |
usb: dm: Make "usb info" use usb_for_each_root_dev()
The old dm "usb info" implementation has several issues:
1) NULL pointer deref when a bus has no children 2) Not showing usb devices on busses w
usb: dm: Make "usb info" use usb_for_each_root_dev()
The old dm "usb info" implementation has several issues:
1) NULL pointer deref when a bus has no children 2) Not showing usb devices on busses without an emulated root-hub (otg host) 3) Attempting to show devices on inactive busses 4) "usb info" Would cause some hosts to get re-probed something which only "usb reset" should do
TL;DR: proper iterating over usb bus root devs is hard, use the helper for it.
Reported-by: Bernhard Nortmann <bernhard.nortmann@web.de> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
show more ...
|
| 41598c82 | 20-Jun-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
autoboot: add CONFIG_AUTOBOOT to allow to not compile autoboot.c
Since commit bb597c0eeb7e ("common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option"), CONFIG_BOOTDELAY is defined for all boa
autoboot: add CONFIG_AUTOBOOT to allow to not compile autoboot.c
Since commit bb597c0eeb7e ("common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option"), CONFIG_BOOTDELAY is defined for all boards.
Prior to that commit, it was allowed to unset CONFIG_BOOTDELAY to not compile common/autoboot.c, as described in common/Makefile:
# This option is not just y/n - it can have a numeric value ifdef CONFIG_BOOTDELAY obj-y += autoboot.o endif
It was a bit odd to enable/disable code with an integer type option, but it was how this option worked before that commit, and several boards actually unset it to opt out of the autoboot feature.
This commit adds a new bool option, CONFIG_AUTOBOOT, and makes CONFIG_BOOTDELAY depend on it.
I chose "default y" for this option because most boards use the autoboot. I added "# CONFIG_AUTOBOOT is not set" for the boards that had not set CONFIG_BOOTDELAY prior to the bad commit.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
show more ...
|