| 5c724dc4 | 29-May-2017 |
Simon Glass <sjg@chromium.org> |
patman: Don't convert input data to unicode
The communication filter reads data in blocks and converts each block to unicode (if necessary) one at a time. In the unlikely event that a unicode charac
patman: Don't convert input data to unicode
The communication filter reads data in blocks and converts each block to unicode (if necessary) one at a time. In the unlikely event that a unicode character in the input spans a block this will not work. We get an error like:
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1022-1023: unexpected end of data
There is no need to change the input to unicode, so the easiest fix is to drop this feature.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| 6f8abf76 | 29-May-2017 |
Simon Glass <sjg@chromium.org> |
patman: Adjust handling of unicode email address
Don't mess with the email address when outputting them. Just make sure they are encoded with utf-8.
Signed-off-by: Simon Glass <sjg@chromium.org> Te
patman: Adjust handling of unicode email address
Don't mess with the email address when outputting them. Just make sure they are encoded with utf-8.
Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| 21caa558 | 29-May-2017 |
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
patman: encode CC list to UTF-8
This change encodes the CC list to UTF-8 to avoid failures on maintainer-addresses that include non-ASCII characters (observed on Debian 7.11 with Python 2.7.3).
Wit
patman: encode CC list to UTF-8
This change encodes the CC list to UTF-8 to avoid failures on maintainer-addresses that include non-ASCII characters (observed on Debian 7.11 with Python 2.7.3).
Without this, I get the following failure: Traceback (most recent call last): File "tools/patman/patman", line 159, in <module> options.add_maintainers) File "[snip]/u-boot/tools/patman/series.py", line 234, in MakeCcFile print(commit.patch, ', '.join(set(list)), file=fd) UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 81: ordinal not in range(128) from Heiko's email address: [..., u'"Heiko St\xfcbner" <heiko@sntech.de>', ...]
While with this change added this encodes to: "=?UTF-8?q?Heiko=20St=C3=BCbner?= <heiko@sntech.de>"
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
show more ...
|
| 79fa1573 | 01-Jun-2017 |
Andy Yan <andy.yan@rock-chips.com> |
rockchip: mkimage: Add support for RV1108
Add support to mkimage for rv1108 soc, the max spl code size for rv1108 is 6kb, and the spl code should be packed by rksd, wether boot from emmc or spi nor
rockchip: mkimage: Add support for RV1108
Add support to mkimage for rv1108 soc, the max spl code size for rv1108 is 6kb, and the spl code should be packed by rksd, wether boot from emmc or spi nor flash.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| a1c29d4b | 30-May-2017 |
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
rockchip: mkimage: set init_boot_size to avoid confusing the boot ROM
This change restores the earlier setting of init_boot_size to include the maximum area covered by the the boot ROM of each chip
rockchip: mkimage: set init_boot_size to avoid confusing the boot ROM
This change restores the earlier setting of init_boot_size to include the maximum area covered by the the boot ROM of each chip for resolve issues with back-to-bootrom functionality reported by Kever and Heiko.
To ensure that we don't run into the same issue again in the future, I have updated the comments accordingly and added a reference to the mailing list archive (there's some very helpful info from Andy Yan that provides background on the BootROM requirements regarding these fields).
See https://lists.denx.de/pipermail/u-boot/2017-May/293267.html for some background (by Andy Yan) of how the BootROM processes this field.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| ad972ac3 | 30-May-2017 |
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
rockchip: mkimage: force 2KB alignment for init_size
The Rockchip BootROM relies on init_size being aligned to 2KB (see https://lists.denx.de/pipermail/u-boot/2017-May/293268.html).
This pads the i
rockchip: mkimage: force 2KB alignment for init_size
The Rockchip BootROM relies on init_size being aligned to 2KB (see https://lists.denx.de/pipermail/u-boot/2017-May/293268.html).
This pads the image to 2KB both for SD card images and SPI images and uses a common symbolic constant for the alignment.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 99ed4a2e | 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Drop fdt_select.py
This file was used to select between the normal and fallback libfdt implementations. Now that we only have one, it is not needed.
Drop it and fix up all users.
Signed-off-b
fdt: Drop fdt_select.py
This file was used to select between the normal and fallback libfdt implementations. Now that we only have one, it is not needed.
Drop it and fix up all users.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 7b75b448 | 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Merge fdt_normal with its base class
Since we only have one Fdt implementation now we don't need to have a base class. Merge the implementation and the base class together.
Signed-off-by: Simo
fdt: Merge fdt_normal with its base class
Since we only have one Fdt implementation now we don't need to have a base class. Merge the implementation and the base class together.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 515d3f08 | 27-May-2017 |
Simon Glass <sjg@chromium.org> |
binman: Drop a special case related to fdt_fallback
Previously we were sometimes forced to collate x86 microcode due to not having access to the offset of each individual piece. Now that we never us
binman: Drop a special case related to fdt_fallback
Previously we were sometimes forced to collate x86 microcode due to not having access to the offset of each individual piece. Now that we never use fdt_fallback, we don't have this problem. Drop this special case from the code.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| b4360206 | 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Support use of the new python libfdt library
Use the new library if available, while retaining backwards compatibility with the old library for now.
Signed-off-by: Simon Glass <sjg@chromium.or
fdt: Support use of the new python libfdt library
Use the new library if available, while retaining backwards compatibility with the old library for now.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 4a28b007 | 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: dtoc: Add a full set of property tests
The tests don't currently cover all the different property types. Add a new test which checks each property type in turn, to make sure each has the correc
fdt: dtoc: Add a full set of property tests
The tests don't currently cover all the different property types. Add a new test which checks each property type in turn, to make sure each has the correct type and value.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 1d88ebb2 | 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Update fdt_test to use 'dt' instead of 'fdt'
Since fdt is a module it conflicts with this variable name and prevents it being used in tests. Rename the variable.
Signed-off-by: Simon Glass <sj
fdt: Update fdt_test to use 'dt' instead of 'fdt'
Since fdt is a module it conflicts with this variable name and prevents it being used in tests. Rename the variable.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| ee95d10b | 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Build the new python libfdt module
Build the upstream python libfdt module. At present the legacy module is still built and is the one that it used. Future work will switch this over.
Signed-o
fdt: Build the new python libfdt module
Build the upstream python libfdt module. At present the legacy module is still built and is the one that it used. Future work will switch this over.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 555ba488 | 27-May-2017 |
Simon Glass <sjg@chromium.org> |
fdt: Rename existing python libfdt module
Now that this module has been accepted upstream we should stop using the local U-Boot one. In preparation for this, rename it to indicate it is for legacy u
fdt: Rename existing python libfdt module
Now that this module has been accepted upstream we should stop using the local U-Boot one. In preparation for this, rename it to indicate it is for legacy use.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 7f0ef5a9 | 26-Apr-2017 |
Siarhei Siamashka <siarhei.siamashka@gmail.com> |
sunxi: Store the device tree name in the SPL header
This patch updates the mksunxiboot tool to optionally add the default device tree name string to the SPL header. This information can be used by t
sunxi: Store the device tree name in the SPL header
This patch updates the mksunxiboot tool to optionally add the default device tree name string to the SPL header. This information can be used by the firmware upgrade tools to protect users from harming themselves by trying to upgrade to an incompatible bootloader.
The primary use case here is a non-removable bootable media (such as NAND, eMMC or SPI flash), which already may have a properly working, but a little bit outdated bootloader installed. For example, the user may download or build a new U-Boot image for "Cubieboard", and then attemept to install it on a "Cubieboard2" hardware by mistake as a replacement for the already existing bootloader. If this happens, the flash programming tool can identify this problem and warn the user.
The size of the SPL header is also increased from 64 bytes to 96 bytes to provide enough space for the device tree name string. [Andre: split patch to remove OF_LIST hash feature]
Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
show more ...
|