| cfdaf4ca | 17-Nov-2015 |
Patrick Delaunay <patrick.delaunay73@gmail.com> |
part:efi: add bootable parameter in gpt command
The optional parameter bootable is added in gpt command to set the partition attribute flag "Legacy BIOS bootable"
This flag is used in extlinux and
part:efi: add bootable parameter in gpt command
The optional parameter bootable is added in gpt command to set the partition attribute flag "Legacy BIOS bootable"
This flag is used in extlinux and so in with distro to select the boot partition where is located the configuration file (please check out doc/README.distro for details).
With this parameter, U-Boot can be used to create the boot partition needed for device using distro.
example of use:
setenv partitions "name=u-boot,size=60MiB;name=boot,size=60Mib,bootable;\ name=rootfs,size=0"
> gpt write mmc 0 $partitions
> part list mmc 0
Partition Map for MMC device 0 -- Partition Type: EFI
Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00000022 0x0001e021 "u-boot" attrs: 0x0000000000000000 type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 guid: cceb0b18-39cb-d547-9db7-03b405fa77d4 2 0x0001e022 0x0003c021 "boot" attrs: 0x0000000000000004 type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 guid: d4981a2b-0478-544e-9607-7fd3c651068d 3 0x0003c022 0x003a9fde "rootfs" attrs: 0x0000000000000000 type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 guid: 6d6c9a36-e919-264d-a9ee-bd00379686c7
> part list mmc 0 -bootable devplist
> printenv devplist
devplist=2
Then the distro scripts will search extlinux in partition 2 and not in the first partition.
Signed-off-by: Patrick Delaunay <patrick.delaunay73@gmail.com>
show more ...
|
| bbb9ffac | 20-Nov-2015 |
Lukasz Majewski <l.majewski@majess.pl> |
gpt: command: Extend gpt command to support GPT table verification
This commit adds support for "gpt verify" command, which verifies correctness of on-board stored GPT partition table. As the option
gpt: command: Extend gpt command to support GPT table verification
This commit adds support for "gpt verify" command, which verifies correctness of on-board stored GPT partition table. As the optional parameter one can provide '$partitons' environment variable to check if partition data (size, offset, name) is correct.
This command should be regarded as complementary one to "gpt restore".
Signed-off-by: Lukasz Majewski <l.majewski@majess.pl> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| 5af9dd37 | 20-Nov-2015 |
Lukasz Majewski <l.majewski@majess.pl> |
gpt: command: Remove duplicated check for empty partition description
Exactly the same check is performed in set_gpt_info() function executed just after this check.
Signed-off-by: Lukasz Majewski <
gpt: command: Remove duplicated check for empty partition description
Exactly the same check is performed in set_gpt_info() function executed just after this check.
Signed-off-by: Lukasz Majewski <l.majewski@majess.pl> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 7d9cde10 | 23-Nov-2015 |
Stefan Roese <sr@denx.de> |
lib/tiny-printf.c: Add tiny printf function for space limited environments
This patch adds a small printf() version that supports all basic formats. Its intented to be used in U-Boot SPL versions on
lib/tiny-printf.c: Add tiny printf function for space limited environments
This patch adds a small printf() version that supports all basic formats. Its intented to be used in U-Boot SPL versions on platforms with very limited internal RAM sizes.
To enable it, just define CONFIG_USE_TINY_PRINTF in your defconfig. This will result in the SPL using this tiny function and the main U-Boot still using the full-blown printf() function.
This code was copied from: http://www.sparetimelabs.com/printfrevisited With mostly only coding style related changes so that its checkpatch clean.
The size reduction is about 2.5KiB. Here a comparison for the db-mv784mp-gp (Marvell AXP) SPL:
Without this patch: 58963 18536 1928 79427 13643 ./spl/u-boot-spl
With this patch: 56542 18536 1956 77034 12cea ./spl/u-boot-spl
Note: To make it possible to compile tiny-printf.c instead of vsprintf.c when CONFIG_USE_TINY_PRINTF is defined, the functions printf() and vprintf() are moved from common/console.c into vsprintf.c in this patch.
Signed-off-by: Stefan Roese <sr@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Hans de Goede <hdegoede@redhat.com> Cc: Tom Rini <trini@konsulko.com> Cc: Albert Aribaud <albert.u.boot@aribaud.net>
show more ...
|
| ddf7355a | 16-Nov-2015 |
Stefan Roese <sr@denx.de> |
common/console.c: Small coding style cleanup
Change some comments to match the U-Boot coding style rules.
Signed-off-by: Stefan Roese <sr@denx.de> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon
common/console.c: Small coding style cleanup
Change some comments to match the U-Boot coding style rules.
Signed-off-by: Stefan Roese <sr@denx.de> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| d4e69e61 | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Clean up checkpatch issues
Cosmetic fixes to the file, make it checkpatch clean.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.c
eeprom: Clean up checkpatch issues
Cosmetic fixes to the file, make it checkpatch clean.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| d4fec4e9 | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Add support for selecting i2c bus
Add additional parameter into the eeprom command to select the I2C bus on which the eeprom resides.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Gl
eeprom: Add support for selecting i2c bus
Add additional parameter into the eeprom command to select the I2C bus on which the eeprom resides.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| 354e3ed7 | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Add bus argument to eeprom_init()
Add bus argument to eeprom_init(), so that it can select the I2C bus number on which the eeprom resides. Any negative value of the $bus argument will preser
eeprom: Add bus argument to eeprom_init()
Add bus argument to eeprom_init(), so that it can select the I2C bus number on which the eeprom resides. Any negative value of the $bus argument will preserve the old behavior. This is in place so that old code does not randomly break.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de> [trini: Wrap i2c_set_bus_num() call with CONFIG_SYS_I2C test] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 1a37889b | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Pull out the RW loop
Unify the code for doing read/write into single function, since the code for both the read and write is almost identical. This again trims down the code duplication.
Si
eeprom: Pull out the RW loop
Unify the code for doing read/write into single function, since the code for both the read and write is almost identical. This again trims down the code duplication.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| 39b6f98b | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Pull out transfer length computation
Pull out the code which computes the length of the transfer into separate code and clean it up a little. This again trims down the code duplication.
Sig
eeprom: Pull out transfer length computation
Pull out the code which computes the length of the transfer into separate code and clean it up a little. This again trims down the code duplication.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| 6717e3c8 | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_BITS
Implement default value of 8 for this macro and pull out all of this macro out of the code. The default value of 8 actually does implement exactly
eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_BITS
Implement default value of 8 for this macro and pull out all of this macro out of the code. The default value of 8 actually does implement exactly the same behavior as the previous code which was in the #else clause of the ifdef.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| 8eee40a6 | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Suck the ifdef into eeprom_init()
Just suck the ugly ifdef around eeprom_init() call into eeprom_init() function itself. This puts all of the ifdef mess into one place.
Signed-off-by: Marek
eeprom: Suck the ifdef into eeprom_init()
Just suck the ugly ifdef around eeprom_init() call into eeprom_init() function itself. This puts all of the ifdef mess into one place.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| d738746c | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS
Pull this macro to the beginning of the cmd_eeprom.c and remove another nasty ifdef from the code. Note that this is legal, since udelay(0) cha
eeprom: Pull out CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS
Pull this macro to the beginning of the cmd_eeprom.c and remove another nasty ifdef from the code. Note that this is legal, since udelay(0) changes the behavior only such that it pings the WDT if WDT is enabled and otherwise does not wait.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| 52cd47c9 | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Make eeprom_write_enable() weak
Make this function weak and implement it's weak implementation so that the boards can just reimplement it. This zaps the horrid CONFIG_SYS_EEPROM_WREN macro.
eeprom: Make eeprom_write_enable() weak
Make this function weak and implement it's weak implementation so that the boards can just reimplement it. This zaps the horrid CONFIG_SYS_EEPROM_WREN macro.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| 02c321cf | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Pull out address computation
Pull out the code computing the EEPROM address into separate function so that it's not duplicated.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <s
eeprom: Pull out address computation
Pull out the code computing the EEPROM address into separate function so that it's not duplicated.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| 9132088b | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Pull out the I/O code
Pull out the code which does the I2C or SPI read/write, so that the beefy ifdef around it is contained in a single function.
Signed-off-by: Marek Vasut <marex@denx.de>
eeprom: Pull out the I/O code
Pull out the code which does the I2C or SPI read/write, so that the beefy ifdef around it is contained in a single function.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| 53a85ad7 | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Zap CONFIG_SPI_X
This macro is no longer used, so just reap it.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Cc: Heiko Sch
eeprom: Zap CONFIG_SPI_X
This macro is no longer used, so just reap it.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| b7b2e3f7 | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Zap eeprom_probe()
Remove this function as it's no longer used.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Cc: Heiko Sch
eeprom: Zap eeprom_probe()
Remove this function as it's no longer used.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|
| ec7012e3 | 10-Nov-2015 |
Marek Vasut <marex@denx.de> |
eeprom: Zap CONFIG_SYS_EEPROM_X40430
Now that the only user of CONFIG_SYS_EEPROM_X40430 was removed, remove this unused code from cmd_eeprom.c
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rin
eeprom: Zap CONFIG_SYS_EEPROM_X40430
Now that the only user of CONFIG_SYS_EEPROM_X40430 was removed, remove this unused code from cmd_eeprom.c
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Cc: Heiko Schocher <hs@denx.de> Reviewed-by: Heiko Schocher <hs@denx.de>
show more ...
|