| da5f7499 | 26-Jul-2016 |
Simon Glass <sjg@chromium.org> |
dtoc: Support packing the device tree
After any node/property deletion the device tree can be packed to remove spare space. Add a way to perform this operation.
Note that for fdt_fallback, fdtput a
dtoc: Support packing the device tree
After any node/property deletion the device tree can be packed to remove spare space. Add a way to perform this operation.
Note that for fdt_fallback, fdtput automatically packs the device tree after deletion, so no action is required here.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| e6628ad7 | 05-Jul-2016 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
cmd: fdt: add fdt overlay application subcommand
The device tree overlays are a good way to deal with user-modifyable boards or boards with some kind of an expansion mechanism where we can easily pl
cmd: fdt: add fdt overlay application subcommand
The device tree overlays are a good way to deal with user-modifyable boards or boards with some kind of an expansion mechanism where we can easily plug new board in (like the BBB or the raspberry pi).
However, so far, the usual mechanism to deal with it was to have in Linux some driver detecting the expansion boards plugged in and then request these overlays using the firmware interface.
That works in most cases, but in some cases, you might want to have the overlays applied before the userspace comes in. Either because the new board requires some kind of an early initialization, or because your root filesystem is accessed through that expansion board.
The easiest solution in such a case is to simply have the component before Linux applying that overlay, removing all these drawbacks.
Reviewed-by: Stefan Agner <stefan@agner.ch> Acked-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
| ddf67f71 | 05-Jul-2016 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
libfdt: Add overlay application function
The device tree overlays are a good way to deal with user-modifyable boards or boards with some kind of an expansion mechanism where we can easily plug new b
libfdt: Add overlay application function
The device tree overlays are a good way to deal with user-modifyable boards or boards with some kind of an expansion mechanism where we can easily plug new board in (like the BBB, the Raspberry Pi or the CHIP).
Add a new function to merge overlays with a base device tree.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
| ea7b1a21 | 05-Jul-2016 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
libfdt: Add fdt_setprop_inplace_namelen_partial
Add a function to modify inplace only a portion of a property..
This is especially useful when the property is an array of values, and you want to up
libfdt: Add fdt_setprop_inplace_namelen_partial
Add a function to modify inplace only a portion of a property..
This is especially useful when the property is an array of values, and you want to update one of them without changing the DT size.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 8e968571 | 05-Jul-2016 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
libfdt: Add fdt_path_offset_namelen
Add a namelen variant of fdt_path_offset to retrieve the node offset using only a fixed number of characters.
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-
libfdt: Add fdt_path_offset_namelen
Add a namelen variant of fdt_path_offset to retrieve the node offset using only a fixed number of characters.
Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
show more ...
|
| 0812d1a0 | 05-Aug-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: disk: Sanitize exposed devices
When a target device is 0 bytes long, there's no point in exposing it to the user. Let's just skip them.
Also, when an offset is passed into the efi disk
efi_loader: disk: Sanitize exposed devices
When a target device is 0 bytes long, there's no point in exposing it to the user. Let's just skip them.
Also, when an offset is passed into the efi disk creation, we should remove this offset from the total number of sectors we can handle.
This patch fixes both things.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| f9d334bd | 05-Aug-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: disk: Fix CONFIG_BLK breakage
When using CONFIG_BLK, there were 2 issues:
1) The name we generate the device with has to match the name we set in efi_set_bootdev()
2) The devi
efi_loader: disk: Fix CONFIG_BLK breakage
When using CONFIG_BLK, there were 2 issues:
1) The name we generate the device with has to match the name we set in efi_set_bootdev()
2) The device we pass into our block functions was wrong, we should not rediscover it but just use the already known pointer.
This patch fixes both issues.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|