5db66b3a | 29-Sep-2018 |
Miquel Raynal <miquel.raynal@bootlin.com> |
cmd: mtd: add 'mtd' command
There should not be a 'nand' command, a 'sf' command and certainly not a new 'spi-nand' command. Write a 'mtd' command instead to manage all MTD devices/partitions at onc
cmd: mtd: add 'mtd' command
There should not be a 'nand' command, a 'sf' command and certainly not a new 'spi-nand' command. Write a 'mtd' command instead to manage all MTD devices/partitions at once. This should be the preferred way to access any MTD device.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Jagan Teki <jagan@openedev.com> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
show more ...
|
18f201ea | 19-Sep-2018 |
Neil Stainton <nstainton@asl-control.co.uk> |
u-boot: align cache flushes in load_elf_image_shdr to line boundaries
Prevent cache warning messages when using the 'bootelf' command on an Arm target. Round down each section start address and roun
u-boot: align cache flushes in load_elf_image_shdr to line boundaries
Prevent cache warning messages when using the 'bootelf' command on an Arm target. Round down each section start address and round up the respective section end to the nearest cache line.
Signed-off-by: Neil Stainton <nstainton@asl-control.co.uk> [trini: Manually apply, rework whitespace] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
d71b029d | 12-Sep-2018 |
Neil Stainton <nstainton@asl-control.co.uk> |
cmd: env: Fix CRC calculation for 'env export -c -s'
Fix failure to reimport exported checksummed, size constrained data block.
'env export -c' command ignores optional -s size argument when calcul
cmd: env: Fix CRC calculation for 'env export -c -s'
Fix failure to reimport exported checksummed, size constrained data block.
'env export -c' command ignores optional -s size argument when calculating checksum causing subsequent 'env import -c' to fail.
Signed-off-by: Neil Stainton <nstainton@asl-control.co.uk>
show more ...
|
ff8eee03 | 08-Aug-2018 |
Marek Vasut <marex@denx.de> |
cmd: clk: Add trivial implementation of clock dump for DM
Add trivial implementation of the clk dump in case DM is enabled. This implementation just iterates over all the clock registered with the C
cmd: clk: Add trivial implementation of clock dump for DM
Add trivial implementation of the clk dump in case DM is enabled. This implementation just iterates over all the clock registered with the CLK uclass and prints their rate.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Chin Liang See <chin.liang.see@intel.com> Cc: Dinh Nguyen <dinguyen@kernel.org> Cc: Ley Foon Tan <ley.foon.tan@intel.com> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
show more ...
|
577c40ae | 09-Sep-2018 |
Adam Ford <aford173@gmail.com> |
cmd: Relocate poweroff under Device access commands
Previously poweroff was located under boot. It seems to make more sense to have it located under the Device access commands.
Signed-off-by: Adam
cmd: Relocate poweroff under Device access commands
Previously poweroff was located under boot. It seems to make more sense to have it located under the Device access commands.
Signed-off-by: Adam Ford <aford173@gmail.com>
show more ...
|
d05266f7 | 18-Sep-2018 |
Eugen Hristev <eugen.hristev@microchip.com> |
w1: add command for onewire protocol
Add basic command for bus information and read for onewire bus using Dallas 1-Wire protocol.
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> |
14dfc648 | 06-Jul-2018 |
Tien Fong Chee <tien.fong.chee@intel.com> |
cmd: ubifs: Factor out some checking codes into cmd_ubifs_mount()
cmd_ubifs_mount() function would be called directly instead of involving whole command machinery for mounting ubifs in generic firmw
cmd: ubifs: Factor out some checking codes into cmd_ubifs_mount()
cmd_ubifs_mount() function would be called directly instead of involving whole command machinery for mounting ubifs in generic firmware loader, so some checking codes need to be factored out into cmd_ubifs_mount() without breaking original functionality design.
Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com> Reviewed-by: Marek Vasut <marex@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
10c20440 | 06-Jul-2018 |
Tien Fong Chee <tien.fong.chee@intel.com> |
cmd: ubifs: Move ubifs_initialized checking into cmd_ubifs_umount()
cmd_ubifs_umount() function would be called directly instead of involving whole command machinery in generic firmware loader, so c
cmd: ubifs: Move ubifs_initialized checking into cmd_ubifs_umount()
cmd_ubifs_umount() function would be called directly instead of involving whole command machinery in generic firmware loader, so checking on ubifs_initialized status need to be done in cmd_ubifs_umount() without breaking original functionality design.
Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com> Reviewed-by: Marek Vasut <marex@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de> [trini: Fix conflicting type error in cmd/ubi.c] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
3bf65cb5 | 27-Sep-2018 |
Mario Six <mario.six@gdsys.cc> |
cmd: Add osd commands
Add command to query information from and write text to on-screen display (OSD) devices.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.o
cmd: Add osd commands
Add command to query information from and write text to on-screen display (OSD) devices.
Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
29cfc096 | 07-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
cmd: add conitrace command
The 'conitrace' command prints the codes received from the console input as hexadecimal numbers.
This developer utility is useful for testing the handling of special keys
cmd: add conitrace command
The 'conitrace' command prints the codes received from the console input as hexadecimal numbers.
This developer utility is useful for testing the handling of special keys by keyboard drivers.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
show more ...
|
c982874e | 23-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: refactor efi_setup_loaded_image()
Create the handle of loaded images and the EFI_LOADED_IMAGE_PROTOCOL inside efi_setup_loaded_image(). Do not use local variables.
Currently we expect t
efi_loader: refactor efi_setup_loaded_image()
Create the handle of loaded images and the EFI_LOADED_IMAGE_PROTOCOL inside efi_setup_loaded_image(). Do not use local variables.
Currently we expect the loaded image handle to point to the loaded image protocol. Additionally we have appended private fields to the protocol.
With the patch the handle points to a loaded image object and the private fields are added here. This matches how we handle the net and the gop object.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
24638a1f | 23-Sep-2018 |
Alexander Graf <agraf@suse.de> |
efi_loader: Fix loaded_image handle passing from EL3
When running in EL3 mode on AArch64, we have to first drop to EL2 to execute a UEFI payload. When dropping down, the arguments to the entry point
efi_loader: Fix loaded_image handle passing from EL3
When running in EL3 mode on AArch64, we have to first drop to EL2 to execute a UEFI payload. When dropping down, the arguments to the entry point have to stay identical to the ones for normal entry though.
In commit ea54ad59286 ("efi_loader: pass handle of loaded image") we incorrectly changed that logic and had the el3 entry path diverge. Fix it up by syncing it back to what it's supposed to be.
Fixes: ea54ad59286 ("efi_loader: pass handle of loaded image") Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
show more ...
|
4e6b5d65 | 20-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: create root node
Currently we assign a lot of protocols to loaded images though these protocols are not related to them. Instead they should be installed on a separate handle. Via the de
efi_loader: create root node
Currently we assign a lot of protocols to loaded images though these protocols are not related to them. Instead they should be installed on a separate handle. Via the device path it is the parent to the devices like the network adapter.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
79276eb2 | 16-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: memory leak in efi_set_bootdev()
efi_set_bootdev() may be called repeatedly. Free the memory allocated for device paths in previous calls.
Signed-off-by: Heinrich Schuchardt <xypron.glp
efi_loader: memory leak in efi_set_bootdev()
efi_set_bootdev() may be called repeatedly. Free the memory allocated for device paths in previous calls.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
8887acc6 | 16-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: do not use local variable for handle
Do not use a local variable for the handle backing the memory device path. Adjust relate comments.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@g
efi_loader: do not use local variable for handle
Do not use a local variable for the handle backing the memory device path. Adjust relate comments.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
d4b751e9 | 11-Sep-2018 |
AKASHI Takahiro <takahiro.akashi@linaro.org> |
cmd: fat: add fatrm command
In this patch, a new command, fatrm, is added so as to delete a file or directory.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander G
cmd: fat: add fatrm command
In this patch, a new command, fatrm, is added so as to delete a file or directory.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
0349da51 | 11-Sep-2018 |
AKASHI Takahiro <takahiro.akashi@linaro.org> |
cmd: fat: add fatmkdir command
In this patch, a new command, fatmkdir, is added.
Please note that, as there is no notion of "current directory" on u-boot, a directory name specified must contains a
cmd: fat: add fatmkdir command
In this patch, a new command, fatmkdir, is added.
Please note that, as there is no notion of "current directory" on u-boot, a directory name specified must contains an absolute directory path as a parent directory. Otherwise, "/" (root directory) is assumed.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
cda40b2a | 11-Sep-2018 |
AKASHI Takahiro <takahiro.akashi@linaro.org> |
cmd: fat: add offset parameter to fatwrite
In this patch, fatwrite command is extended so as to accept an additional parameter of file offset.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro
cmd: fat: add offset parameter to fatwrite
In this patch, fatwrite command is extended so as to accept an additional parameter of file offset.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
7086a71a | 31-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: buffer size for load options
The number of bytes in an utf-8 string is an upper limit for the number of words in the equivalent utf-16 string. In so far the inumbant coding works correct
efi_loader: buffer size for load options
The number of bytes in an utf-8 string is an upper limit for the number of words in the equivalent utf-16 string. In so far the inumbant coding works correctly. For non-ASCII characters the utf-16 string is shorter. With the patch only the necessary buffer size is allocated for the load options.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
9dff4900 | 08-Aug-2018 |
Simon Glass <sjg@chromium.org> |
efi: sandbox: Tidy up copy_fdt() to work with sandbox
At present this function takes a pointer as its argument, then passes this to efi_allocate_pages(), which actually takes an address. It uses cas
efi: sandbox: Tidy up copy_fdt() to work with sandbox
At present this function takes a pointer as its argument, then passes this to efi_allocate_pages(), which actually takes an address. It uses casts, which are not supported on sandbox.
Also the function calculates the FDT size rounded up to the neared EFI page size, then its caller recalculates the size and adds a bit more to it.
This function is much better written as something that works with addresses only, and returns both the address and the size of the relocated FDT.
Also, copy_fdt() returns NULL on error, but really should propagate the error from efi_allocate_pages(). To do this it needs to return an efi_status_t, not a void *.
Update the code in this way, so that it is easier to follow, and also supports sandbox.
Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
baf70c02 | 08-Aug-2018 |
Simon Glass <sjg@chromium.org> |
efi: Relocate FDT to 127MB instead of 128MB
Sandbox only has 128MB of memory so we cannot relocate the device tree up to start at 128MB. Use 127MB instead, which should be safe.
Signed-off-by: Simo
efi: Relocate FDT to 127MB instead of 128MB
Sandbox only has 128MB of memory so we cannot relocate the device tree up to start at 128MB. Use 127MB instead, which should be safe.
Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
d60aea94 | 06-Sep-2018 |
Miquel Raynal <miquel.raynal@bootlin.com> |
cmd: mtdparts: remove mandatory 'mtdparts=' prefix
All U-Boot users must define the mtdparts environment variable with: setenv mtdparts mtdparts=...
While this may ease the partition declaration jo
cmd: mtdparts: remove mandatory 'mtdparts=' prefix
All U-Boot users must define the mtdparts environment variable with: setenv mtdparts mtdparts=...
While this may ease the partition declaration job to be passed to Linux, this is a pure software limitation and forcing this prefix is a complete non-sense. Let the user to declare manually the mtdparts variable without the prefix.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Jagan Teki <jagan@openedev.com> Reviewed-by: Stefan Roese <sr@denx.de>
show more ...
|
00ac922d | 06-Sep-2018 |
Miquel Raynal <miquel.raynal@bootlin.com> |
cmd: mtdparts: accept spi-nand devices
Let spi-nand devices be recognized by mtdparts. This is superfluous but a full mtdparts rework would be very time-consuming.
Signed-off-by: Miquel Raynal <miq
cmd: mtdparts: accept spi-nand devices
Let spi-nand devices be recognized by mtdparts. This is superfluous but a full mtdparts rework would be very time-consuming.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Jagan Teki <jagan@openedev.com> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Stefan Roese <sr@denx.de>
show more ...
|
2b9ace55 | 16-Aug-2018 |
Miquel Raynal <miquel.raynal@bootlin.com> |
cmd: mtdparts: add fallthrough in switch statement
Switch blocks for deriving size naturally use fallthrough between 'case' statements. Make it explicit.
Signed-off-by: Miquel Raynal <miquel.raynal
cmd: mtdparts: add fallthrough in switch statement
Switch blocks for deriving size naturally use fallthrough between 'case' statements. Make it explicit.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
show more ...
|
b01c146d | 16-Aug-2018 |
Miquel Raynal <miquel.raynal@bootlin.com> |
cmd: ubi: delete useless and misleading definitions
These definitions are simply not used and are misleading because similar definitions exist in jffs2/load_kernel.h and are used widely to define MT
cmd: ubi: delete useless and misleading definitions
These definitions are simply not used and are misleading because similar definitions exist in jffs2/load_kernel.h and are used widely to define MTD device types (which is, by the way, totally redundant with what the MTD core does). Remove these definitions.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Jagan Teki <jagan@openedev.com> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
show more ...
|