Re: [U-Boot] [PATCH v2] sandbox: Build with -fPIC

2018-09-14 Thread Simon Glass
On 3 September 2018 at 11:08, Andy Shevchenko wrote: > Sandbox is not a real bootloader and it does require > a position independent code to be supported. > > Thus, build it with -fPIC explicitly. > > Fixes: 16940f720f9b ("Makefile: Don't generate position independent code") > Signed-off-by: Andy

[U-Boot] [PATCH v2 1/2] arm: at91: wdt: Convert watchdog driver to dm/dt

2018-09-14 Thread Prasanthi Chellakumar
Convert the Watchdog driver for AT91SAM9x processors to support the driver model and device tree. Signed-off-by: Prasanthi Chellakumar --- arch/arm/mach-at91/include/mach/at91_wdt.h | 12 +++- drivers/watchdog/Kconfig | 7 ++ drivers/watchdog/Makefile | 2

[U-Boot] [PATCH 1/1] efi_loader: check parameter new_handle of efi_file_open()

2018-09-14 Thread Heinrich Schuchardt
We should not check parameter file twice. We should check parameter new_handle. Signed-off-by: Heinrich Schuchardt --- fs/fat/fat_write.c| 2 ++ lib/efi_loader/efi_file.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index

[U-Boot] [PATCH 1/1] efi_loader: more debug info for efi_file_getinfo()

2018-09-14 Thread Heinrich Schuchardt
efi_file_getinfo() is called with a GUID. In EFI_ENTRY use %pUl as format type. This way the GUID is printed in debug mode. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_file.c

Re: [U-Boot] [PATCH] linux/compat.h: Add netdev_### log macros

2018-09-14 Thread Joe Hershberger
Hi Bin, On Tue, Sep 11, 2018 at 5:07 AM Bin Meng wrote: > > Hi Joe, > > On Fri, Jul 27, 2018 at 2:52 AM Joe Hershberger > wrote: > > > > On Thu, Jul 26, 2018 at 5:15 AM, Bin Meng wrote: > > > Currently there are two ethernet drivers (mvneta.c and mvpp2.c) that > > > has netdev_### (eg:

[U-Boot] [PATCH 6/6] pico-imx7d: Add a new defconfig with PICO-Hobbit selected

2018-09-14 Thread Otavio Salvador
This adds a new defconfig which pre-selects the PICO-Hobbit baseboard allowing a completely non-interactive boot process. Signed-off-by: Otavio Salvador --- board/technexion/pico-imx7d/MAINTAINERS | 5 ++ configs/pico-hobbit-imx7d_defconfig | 61 + 2 files changed,

[U-Boot] [PATCH 3/6] pico-imx6ul: Add a new defconfig with PICO-Pi selected

2018-09-14 Thread Otavio Salvador
This adds a new defconfig which pre-selects the PICO-Pi baseboard allowing a completely non-interactive boot process. Signed-off-by: Otavio Salvador --- board/technexion/pico-imx6ul/MAINTAINERS | 5 +++ configs/pico-pi-imx6ul_defconfig | 53 2 files changed,

[U-Boot] [PATCH 5/6] pico-imx7d: Add PICO-Hobbit baseboard support

2018-09-14 Thread Otavio Salvador
This adds the device tree to the DFU and bootmenu environment setting. Signed-off-by: Otavio Salvador --- include/configs/pico-imx7d.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h index

[U-Boot] [PATCH 2/6] pico-imx6ul: Add PICO-Pi baseboard support

2018-09-14 Thread Otavio Salvador
This adds the device tree to the DFU and bootmenu environment setting. Signed-off-by: Otavio Salvador --- include/configs/pico-imx6ul.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico-imx6ul.h index 8c657c13ac..3d93205535 100644 ---

[U-Boot] [PATCH 4/6] pico-imx7d: Fix TechNexion spelling on MAINTAINERS file

2018-09-14 Thread Otavio Salvador
Signed-off-by: Otavio Salvador --- board/technexion/pico-imx7d/MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/technexion/pico-imx7d/MAINTAINERS b/board/technexion/pico-imx7d/MAINTAINERS index 0755bd8366..1505c4da9a 100644 ---

[U-Boot] [PATCH 1/6] pico-imx6ul: Fix TechNexion spelling on MAINTAINERS file

2018-09-14 Thread Otavio Salvador
Signed-off-by: Otavio Salvador --- board/technexion/pico-imx6ul/MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/technexion/pico-imx6ul/MAINTAINERS b/board/technexion/pico-imx6ul/MAINTAINERS index 334847cf71..fec5868015 100644 ---

Re: [U-Boot] [PATCH v2 1/2] rockchip: add support for veyron-speedy (ASUS Chromebook C201)

2018-09-14 Thread Marty E. Plummer
On Fri, Sep 14, 2018 at 12:55:16PM +0200, Simon Glass wrote: > On 13 September 2018 at 23:55, Marty E. Plummer > wrote: > > This adds support for the ASUS C201, a RK3288-based clamshell > > device. The device tree comes from linus's linux tree at > > 3f16503b7d2274ac8cbab11163047ac0b4c66cfe. The

Re: [U-Boot] [PATCH v2 2/2] rockchip: fix incorrect detection of ram size

2018-09-14 Thread Marty E. Plummer
On Fri, Sep 14, 2018 at 12:55:19PM +0200, Simon Glass wrote: > Hi Marty, > > > On 13 September 2018 at 23:55, Marty E. Plummer > wrote: > > Taken from coreboot's src/soc/rockchip/rk3288/sdram.c > > > > Without this change, my u-boot build for the asus c201 chromebook (4GiB) > > is incorrectly

Re: [U-Boot] Please pull from u-boot-i2c

2018-09-14 Thread Tom Rini
On Fri, Sep 14, 2018 at 5:50 AM, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-i2c.git master > > The following changes since commit d1e15041abf3ccd38169ae7aa8736f > 78200f8ee3: > > Merge branch 'master' of git://git.denx.de/u-boot-uniphier (2018-09-11 > 08:50:10 -0400) > >

[U-Boot] [PATCH 1/1] efi_loader: terminal left upper corner is [1, 1]

2018-09-14 Thread Heinrich Schuchardt
For the VT102 and the Linux console the left upper corner is [1, 1]. EFI uses [0, 0] as left upper corner. Check parameters of the SetCursorPosition() service. Use CSI H like EDK2 for positioning. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_console.c | 24

Re: [U-Boot] [PATCH v9 13/18] efi: Add a call to exit() along with why we can't use it

2018-09-14 Thread Simon Glass
Hi Alex, On 26 August 2018 at 19:13, Alexander Graf wrote: > > > On 23.08.18 22:37, Heinrich Schuchardt wrote: >> On 08/08/2018 11:54 AM, Simon Glass wrote: >>> The test should exit like any other EFI application, by calling exit() >>> in the boot services API. But this crashes at present on

Re: [U-Boot] [PATCH v9 12/18] sandbox: Enhance map_to_sysmem() to handle foreign pointers

2018-09-14 Thread Simon Glass
Hi Alex, On 26 August 2018 at 19:11, Alexander Graf wrote: > > > On 08.08.18 11:54, Simon Glass wrote: >> At present map_sysmem() maps an address into the sandbox RAM buffer, >> return a pointer, while map_to_sysmem() goes the other way. >> >> The mapping is currently just 1:1 since a case was

Re: [U-Boot] [PATCH v9 10/18] sandbox: Try to start the RAM buffer at a particular address

2018-09-14 Thread Simon Glass
Hi Alex, On 26 August 2018 at 19:01, Alexander Graf wrote: > > > On 08.08.18 11:54, Simon Glass wrote: >> Use a starting address of 256MB which should be available. This helps to >> make sandbox RAM buffers pointers more recognisable. >> >> Signed-off-by: Simon Glass > > Is this really

Re: [U-Boot] [PATCH v9 00/18] efi: Enable sandbox support for EFI loader

2018-09-14 Thread Simon Glass
Hi Alex, On 26 August 2018 at 19:28, Alexander Graf wrote: > > > On 08.08.18 11:54, Simon Glass wrote: >> A limitation of the EFI loader at present is that it does not build with >> sandbox. This makes it hard to write tests, since sandbox is used for most >> testing in U-Boot. >> >> This series

Re: [U-Boot] [PATCH v9 06/18] efi: sandbox: Add a simple 'bootefi test' command

2018-09-14 Thread Simon Glass
Hi Alex, On 26 August 2018 at 18:58, Alexander Graf wrote: > > > On 08.08.18 11:54, Simon Glass wrote: >> This jumps to test code which can call directly into the EFI support. It >> does not need a separate image so it is easy to write tests with it. >> >> This test can be executed without

Re: [U-Boot] [PATCH v9 04/18] efi: sandbox: Enable EFI loader build for sandbox

2018-09-14 Thread Simon Glass
Hi Alex, On 26 August 2018 at 18:55, Alexander Graf wrote: > > > On 08.08.18 11:54, Simon Glass wrote: >> This allows this feature to build within sandbox. This is for testing >> purposes only since it is not possible for sandbox to load native code. > > Last time I tried I successfully ran

Re: [U-Boot] [PATCH v9 02/18] efi: Don't allow CMD_BOOTEFI_SELFTEST on sandbox

2018-09-14 Thread Simon Glass
Hi Alex, On 26 August 2018 at 18:53, Alexander Graf wrote: > > > On 08.08.18 11:54, Simon Glass wrote: >> This does not work at present and gives the following error: >> >> output: 'ld.bfd: read in flex scanner failed >> scripts/Makefile.lib:390: recipe for target >>

[U-Boot] [PATCH] serial: omap: Add support for AM654 uart controller

2018-09-14 Thread Lokesh Vutla
AM654 uses a UART controller that is compatible (partially) with existing OMAP UART, Introduce a compatible for adding support for this controller. Signed-off-by: Lokesh Vutla --- - Similar kernel patch: https://lore.kernel.org/patchwork/patch/949227/ drivers/serial/serial_omap.c | 1 + 1 file

[U-Boot] Pull request: u-boot-ubi/master

2018-09-14 Thread Heiko Schocher
Hello Tom, please pull from u-boot-ubi-git master The following changes since commit d1e15041abf3ccd38169ae7aa8736f78200f8ee3: Merge branch 'master' of git://git.denx.de/u-boot-uniphier (2018-09-11 08:50:10 -0400) are available in the Git repository at: git://git.denx.de/u-boot-ubi.git

Re: [U-Boot] [PATCH 0/7] Exynos4412 SPL support

2018-09-14 Thread Simon Shields
Hi Anand, On Fri, Sep 14, 2018 at 05:31:38PM +0530, Anand Moon wrote: > Hi Simon, > On Fri, 14 Sep 2018 at 08:00, Simon Shields wrote: > > > > Hi Anand, > > > > On Thu, Sep 13, 2018 at 08:39:52PM +0530, Anand Moon wrote: > > > Hi Simon, > > > > > > On Wed, 12 Sep 2018 at 17:25, Simon Shields

Re: [U-Boot] [PATCH v3 13/14] pico-imx6ul: Add Falcon mode support

2018-09-14 Thread Stefano Babic
On 14/09/2018 15:19, Otavio Salvador wrote: > On Fri, Sep 14, 2018 at 10:07 AM Stefano Babic wrote: >> On 14/09/2018 14:49, Otavio Salvador wrote: >>> On Fri, Sep 14, 2018 at 8:53 AM Stefano Babic wrote: On 13/09/2018 21:57, Otavio Salvador wrote: > Falcon mode boots the kernel directly

Re: [U-Boot] [PATCH v3 13/14] pico-imx6ul: Add Falcon mode support

2018-09-14 Thread Otavio Salvador
On Fri, Sep 14, 2018 at 10:07 AM Stefano Babic wrote: > On 14/09/2018 14:49, Otavio Salvador wrote: > > On Fri, Sep 14, 2018 at 8:53 AM Stefano Babic wrote: > >> On 13/09/2018 21:57, Otavio Salvador wrote: > >>> Falcon mode boots the kernel directly from SPL, without loading > >>> the full

Re: [U-Boot] [PATCH v3 13/14] pico-imx6ul: Add Falcon mode support

2018-09-14 Thread Stefano Babic
On 14/09/2018 14:49, Otavio Salvador wrote: > On Fri, Sep 14, 2018 at 8:53 AM Stefano Babic wrote: >> On 13/09/2018 21:57, Otavio Salvador wrote: >>> Falcon mode boots the kernel directly from SPL, without loading >>> the full U-Boot. >>> >>> As pico-imx6ul does not have a GPIO for selecting

Re: [U-Boot] [PATCH v3 13/14] pico-imx6ul: Add Falcon mode support

2018-09-14 Thread Otavio Salvador
On Fri, Sep 14, 2018 at 8:53 AM Stefano Babic wrote: > On 13/09/2018 21:57, Otavio Salvador wrote: > > Falcon mode boots the kernel directly from SPL, without loading > > the full U-Boot. > > > > As pico-imx6ul does not have a GPIO for selecting Falcon versus normal > > mode, enter in Falcon mode

[U-Boot] [PATCH 3/3] net: phy: mscc: add support for VSC8574 PHY

2018-09-14 Thread Quentin Schulz
The VSC8574 PHY is a 4-port PHY that is 10/100/1000BASE-T, 100BASE-FX, 1000BASE-X and triple-speed copper SFP capable, can communicate with the MAC via SGMII, QSGMII or 1000BASE-X, supports WOL, downshifting and can set the blinking pattern of each of its 4 LEDs, supports SyncE as well as HP

[U-Boot] [PATCH 2/3] net: phy: mscc: factorize part of config function for VSC8584

2018-09-14 Thread Quentin Schulz
Part of the config is common between the VSC8584 and the VSC8574, so to prepare for the upcoming support of VSC8574, use the phy_device.priv pointer that will keep the function that holds code that is PHY-specific and that should be called during config function. Signed-off-by: Quentin Schulz

[U-Boot] [PATCH 1/3] net: phy: mscc: add support for VSC8584 PHY

2018-09-14 Thread Quentin Schulz
The VSC8584 PHY is a 4-port PHY that is 10/100/1000BASE-T, 100BASE-FX, 1000BASE-X and triple-speed copper SFP capable, can communicate with the MAC via SGMII, QSGMII or 1000BASE-X, supports downshifting and can set the blinking pattern of each of its 4 LEDs, supports hardware offloading of MACsec

[U-Boot] [PATCH 0/3] add support for VSC8584 and VSC8574 Microsemi PHYs

2018-09-14 Thread Quentin Schulz
The VSC8584 and VSC8574 PHYs are 4-port PHYs that are 10/100/1000BASE-T, 100BASE-FX, 1000BASE-X and triple-speed copper SFP capable, can communicate with the MAC via SGMII, QSGMII or 1000BASE-X, supports WOL, downshifting and can set the blinking pattern of each of its 4 LEDs, supports SyncE as

Re: [U-Boot] [PATCH 0/7] Exynos4412 SPL support

2018-09-14 Thread Anand Moon
Hi Simon, On Fri, 14 Sep 2018 at 08:00, Simon Shields wrote: > > Hi Anand, > > On Thu, Sep 13, 2018 at 08:39:52PM +0530, Anand Moon wrote: > > Hi Simon, > > > > On Wed, 12 Sep 2018 at 17:25, Simon Shields wrote: > > > > > > Hi, > > > > > > This patch series adds support for using U-Boot's SPL as

[U-Boot] [PATCH] ls1088a: remove dhcp function from u-boot env as boot source

2018-09-14 Thread Pramod Kumar
Signed-off-by: Pramod Kumar --- include/configs/ls1088ardb.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/configs/ls1088ardb.h b/include/configs/ls1088ardb.h index eb220bf6e9..363154a40b 100644 --- a/include/configs/ls1088ardb.h +++ b/include/configs/ls1088ardb.h

Re: [U-Boot] [PATCH v3 13/14] pico-imx6ul: Add Falcon mode support

2018-09-14 Thread Stefano Babic
Hi Otavio, On 13/09/2018 21:57, Otavio Salvador wrote: > Falcon mode boots the kernel directly from SPL, without loading > the full U-Boot. > > As pico-imx6ul does not have a GPIO for selecting Falcon versus normal > mode, enter in Falcon mode when the customer selects the > CONFIG_SPL_OS_BOOT

[U-Boot] [PATCH 20/31] patman: Detect missing tools and report them

2018-09-14 Thread Simon Glass
When tools are needed but not present, at present we just get an error which can be confusing for the user. Try to be helpful by reporting the tool as missing and suggesting a possible remedy. Also update the Run() method to support this. Signed-off-by: Simon Glass --- tools/patman/tools.py |

[U-Boot] [PATCH 16/31] binman: Centralise device-tree updates within binman

2018-09-14 Thread Simon Glass
At present we have a few calls to device-tree functions in binman and plan to add more as we add new entry types which need to report their results. It makes sense to put this code in a central place so that we can make sure all device trees are updated. At present we only have U-Boot proper, but

[U-Boot] [PATCH 23/31] binman: Support adding files

2018-09-14 Thread Simon Glass
In some cases it is useful to add a group of files to the image and be able to access them at run-time. Of course it is possible to generate the binman config file with a set of blobs each with a filename. But for convenience, add an entry type which can do this. Add required support (for adding

[U-Boot] [PATCH 05/31] binman: Add x86 support for starting TPL

2018-09-14 Thread Simon Glass
Sometimes we want to include TPL for x86 platforms, such as when we want to select between different SPL images (e.g. for Chrome OS verified boot). Add support for this. Signed-off-by: Simon Glass --- tools/binman/README.entries | 17 ++

[U-Boot] [PATCH 10/31] dtoc: Support adding new nodes

2018-09-14 Thread Simon Glass
Add a way to add new nodes and sync them back to the blob. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 20 tools/dtoc/test_fdt.py | 8 2 files changed, 28 insertions(+) diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index ccf3b23ced4..26f4a4ee562

[U-Boot] [PATCH 26/31] binman: Support hashing entries

2018-09-14 Thread Simon Glass
Sometimesi it us useful to be able to verify the content of entries with a hash. Add an easy way to do this in binman. The hash information can be retrieved from the device tree at run time. Signed-off-by: Simon Glass --- tools/binman/README| 22

[U-Boot] [PATCH 17/31] binman: Obtain the list of device trees from the config

2018-09-14 Thread Simon Glass
We always have a device tree for U-Boot proper. But we may also have one for SPL and TPL. Add a new Entry method to find out what DTs an entry has, and use that list when updating DTs. Signed-off-by: Simon Glass --- tools/binman/bsection.py | 8 tools/binman/control.py | 2 +-

Re: [U-Boot] [PATCH 1/9] dm: allow 4GB of DRAM on 32bit systems

2018-09-14 Thread Philipp Tomsich
> On 14.09.2018, at 12:53, Simon Glass wrote: > > Hi, > > On 3 September 2018 at 16:29, Lokesh Vutla wrote: >> >> >> On Sunday 02 September 2018 11:19 PM, Alexander Graf wrote: >>> >>> Am 02.09.2018 um 18:04 schrieb Vagrant Cascadian : > On 2018-09-02, Alexander Graf

[U-Boot] [PATCH 18/31] binman: Allow control of whether a fake DT is used

2018-09-14 Thread Simon Glass
We use a fake device tree in tests most of the time since tests don't normally care about the actual data. For example, for U-Boot proper we use U_BOOT_DTB_DATA which is just a four-character string. This makes testing the image output against an expected value very easy. However in some cases,

[U-Boot] [PATCH 14/31] binman: Move state information into a new module

2018-09-14 Thread Simon Glass
At present the control module has state information in it, since it is the primary user of this. But it is a bit odd to have entries and other modules importing control to obtain this information. It seems better to have a dedicated state module, which control can use as well. Create a new module

[U-Boot] [PATCH 25/31] binman: Mention section attributes in docs

2018-09-14 Thread Simon Glass
Images and sections have the same attributes, since an image is mostly just a top-level section. Update the docs to explain this. Signed-off-by: Simon Glass --- tools/binman/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/binman/README b/tools/binman/README

[U-Boot] [PATCH 04/31] binman: Generate an error when text is not provided

2018-09-14 Thread Simon Glass
When the value of a text entry is not provided an execption is generated talking about a None type. This is confusing. Add a more explanatory error and a test for this case. Signed-off-by: Simon Glass --- tools/binman/etype/text.py | 3 +++ tools/binman/ftest.py | 7 +++ 2 files

Re: [U-Boot] [PATCH v2 1/2] rockchip: add support for veyron-speedy (ASUS Chromebook C201)

2018-09-14 Thread Simon Glass
On 13 September 2018 at 23:55, Marty E. Plummer wrote: > This adds support for the ASUS C201, a RK3288-based clamshell > device. The device tree comes from linus's linux tree at > 3f16503b7d2274ac8cbab11163047ac0b4c66cfe. The SDRAM parameters > are for 4GB Samsung LPDDR3, decoded from coreboot's

[U-Boot] [PATCH 27/31] binman: Support x86 microcode in TPL

2018-09-14 Thread Simon Glass
When TPL is used on x86 we may want to program the microcode (at least for the first CPU) early in boot. Add support for this by refactoring the existing code to be more generic. Signed-off-by: Simon Glass --- tools/binman/README.entries | 20 +

[U-Boot] [PATCH 29/31] binman: Correct fmap output on x86

2018-09-14 Thread Simon Glass
Normally x86 platforms use the end-at-4gb option. This currently produces an FMAP with positions which have a large offset. The use of end-at-4gb is a useful convenience within binman, but we don't really want to export a map with these offsets. Fix this by subtracting the 'skip at start'

Re: [U-Boot] [PATCH 2/4] ata: ahci: Don't cap AHCI port count under CONFIG_DM_SCSI

2018-09-14 Thread Tuomas Tynkkynen
Hi, On 09/14/2018 01:55 PM, Simon Glass wrote: On 13 September 2018 at 00:28, Tuomas Tynkkynen wrote: When using device model this sort of hardcoded limits aren't used or necessary. Signed-off-by: Tuomas Tynkkynen --- drivers/ata/ahci.c | 2 ++ 1 file changed, 2 insertions(+)

[U-Boot] [PATCH 02/31] binman: Move 'special properties' docs to README.entries

2018-09-14 Thread Simon Glass
This information should be in the entry it relates to, not in the main README. Move it. Signed-off-by: Simon Glass --- tools/binman/README | 11 --- tools/binman/README.entries | 5 - tools/binman/etype/u_boot_with_ucode_ptr.py | 3 +++ 3

[U-Boot] [PATCH 07/31] binman: Support building a selection of images

2018-09-14 Thread Simon Glass
Sometimes it is useful to build only a subset of the images provided by the binman configuration. Add a -i option for this. It can be given multiple times to build several images. If the option is not given, all images are built. Signed-off-by: Simon Glass --- tools/binman/cmdline.py | 2 ++

[U-Boot] [PATCH 21/31] binman: Support compressed entries

2018-09-14 Thread Simon Glass
Add support for compressing blob entries. This can help reduce image sizes for many types of data. It requires that the firmware be able to decompress the data at run-time. Signed-off-by: Simon Glass --- tools/binman/README | 16 ++ tools/binman/README.entries | 7

[U-Boot] [PATCH 00/31] binman: Expand support for SPL and TPL

2018-09-14 Thread Simon Glass
At present binman only has basic support for SPL and very little for TPL. This series expands that a bit. Included are: - Update SPL and TPL device trees with image offset, etc. - Improvements to the Fdt class to allow it to automatically sync DT changes back to the file from the Python Prop

[U-Boot] [PATCH 09/31] dtoc: Fixed endianness in Prop.GetEmpty()

2018-09-14 Thread Simon Glass
This should be big endian, since that is what device tree uses. Fix it. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index 76cd66fbf95..ccf3b23ced4 100644 --- a/tools/dtoc/fdt.py +++

[U-Boot] [PATCH 28/31] binman: Record the parent section of each section

2018-09-14 Thread Simon Glass
At present sections have no record of their parent so it is not possible to traverse up the tree to the root and figure out the position of a section within the image. Change the constructor to record this information. Signed-off-by: Simon Glass --- tools/binman/bsection.py | 5 -

[U-Boot] [PATCH 22/31] binman: Allow zero-size sections

2018-09-14 Thread Simon Glass
At present if there is only a zero-size entry in a section this is reported as an error, e.g.: Offset 0x0 (0) is outside the section starting at 0x0 (0) Adjust the logic in CheckEntries() to avoid this. Signed-off-by: Simon Glass --- tools/binman/bsection.py | 2 +- 1 file changed, 1

[U-Boot] [PATCH 06/31] binman: Tidy up the vblock entry

2018-09-14 Thread Simon Glass
At present if there are two vblock entries an image their contents are written to the same file in the output directory. This prevents checking the contents of each separately. Fix this by adding part of the entry path to the filename, and add some missing comments. Signed-off-by: Simon Glass

Re: [U-Boot] [PATCH 4/4] configs: Drop CONFIG_SYS_SCSI_MAXDEVICE

2018-09-14 Thread Simon Glass
On 13 September 2018 at 00:28, Tuomas Tynkkynen wrote: > This option has never been used for anything. Drop it. > > Signed-off-by: Tuomas Tynkkynen > --- > include/configs/MPC8544DS.h | 3 +-- > include/configs/MPC8572DS.h | 1 - > include/configs/MPC8610HPCD.h | 1 - >

[U-Boot] [PATCH 11/31] dtoc: Add methods for adding and updating properties

2018-09-14 Thread Simon Glass
Add a few more functions which allow creating and modifying property values. If only we could do this so easily in the real world. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 70 ++ tools/dtoc/test_fdt.py | 43 ++ 2

Re: [U-Boot] [PATCH v3 20/20] Kconfig: sandbox: enable cmd_avb and dependencies

2018-09-14 Thread Simon Glass
On 3 September 2018 at 16:47, Jens Wiklander wrote: > Enables cmd_avb and its dependencies need to run the AVB tests. > > Signed-off-by: Jens Wiklander > --- > arch/Kconfig | 4 > drivers/fastboot/Kconfig | 2 ++ > 2 files changed, 6 insertions(+) Reviewed-by: Simon Glass

[U-Boot] [PATCH 08/31] dtoc: Allow syncing of the device tree back to a file

2018-09-14 Thread Simon Glass
At present we require the caller to manually update the device tree using individual calls to libfdt functions. This is not ideal. It would be better if we could make changes using the Python structure and then call a Sync() function to write them back. Add this feature to the Fdt class. Update

Re: [U-Boot] [PATCH v2 21/23] test/py: convert fs-test.sh to pytest

2018-09-14 Thread Simon Glass
Hi Akashi, On 4 September 2018 at 09:49, AKASHI Takahiro wrote: > In this commit, the same set of test cases as in test/fs/fs-test.sh > is provided using pytest framework. > Actually, fs-test.sh provides three variants:"sb" (sb command), "nonfs" > (fatxx and etc.) and "fs" (hostfs), and this

[U-Boot] [PATCH 19/31] binman: Support updating all device tree files

2018-09-14 Thread Simon Glass
Binman currently supports updating the main device tree with things like the position of each entry. Extend this support to SPL and TPL as well, since they may need (a subset of) this information. Also adjust DTB output files to have a .out extension since this seems clearer than having a .dtb

[U-Boot] [PATCH 24/31] binman: Support expanding entries

2018-09-14 Thread Simon Glass
It is useful to have entries which can grow automatically to fill available space. Add support for this. Signed-off-by: Simon Glass --- tools/binman/README | 4 +++ tools/binman/bsection.py | 22 +++- tools/binman/entry.py| 11

[U-Boot] [PATCH 30/31] binman: Support ELF files for U-Boot and SPL

2018-09-14 Thread Simon Glass
For sandbox we want to put ELF files in the image since that is what we need to execute. Add support for this. Signed-off-by: Simon Glass --- tools/binman/README.entries | 22 tools/binman/etype/u_boot_elf.py | 39

Re: [U-Boot] [PATCH v3 18/20] test_avb: Update pymark.buildconfigspec information for the AVB tests

2018-09-14 Thread Simon Glass
On 3 September 2018 at 16:47, Jens Wiklander wrote: > Update the pymark.buildconfigspec to depend on 'cmd_mmc' in addition to > 'cmd_avb' for those tests that needs more a more complete MMC > implementation or the "mmc" command. > > Signed-off-by: Jens Wiklander > --- >

[U-Boot] [PATCH 31/31] binman: Allow writing a map file when something goes wrong

2018-09-14 Thread Simon Glass
When we get a problem like overlapping regions it is sometimes hard to figure what what is going on. At present we don't write the map file in this case. However the file does provide useful information. Catch any packing errors and write a map file (if enabled with -m) to aid debugging.

Re: [U-Boot] [PATCH v3 17/20] avb_verify: support using OP-TEE TA AVB

2018-09-14 Thread Simon Glass
On 3 September 2018 at 16:47, Jens Wiklander wrote: > With CONFIG_OPTEE_TA_AVB use the trusted application AVB provided by > OP-TEE to manage rollback indexes and device lock status. Should this be device-lock status? > > Signed-off-by: Jens Wiklander > --- > common/avb_verify.c | 118

[U-Boot] [PATCH 13/31] binman: Add an entry method for getting the default filename

2018-09-14 Thread Simon Glass
Various entry implementations provide a way to obtain the default filename for an entry. But at present there is no base-class implementation for this function. Add one so that the API is defined. Signed-off-by: Simon Glass --- tools/binman/entry.py | 3 +++ tools/binman/entry_test.py | 5

Re: [U-Boot] [PATCH 2/4] ata: ahci: Don't cap AHCI port count under CONFIG_DM_SCSI

2018-09-14 Thread Simon Glass
On 13 September 2018 at 00:28, Tuomas Tynkkynen wrote: > When using device model this sort of hardcoded limits aren't used or > necessary. > > Signed-off-by: Tuomas Tynkkynen > --- > drivers/ata/ahci.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass But please see below >

Re: [U-Boot] [PATCH v3 19/20] avb_verify: support sandbox configuration

2018-09-14 Thread Simon Glass
Hi Jens, On 3 September 2018 at 16:47, Jens Wiklander wrote: > With CONFIG_SANDBOX malloc a buffer in get_sector_buf() and return that > instead of returning CONFIG_FASTBOOT_BUF_ADDR since there's no such > buffer reserved. > > Signed-off-by: Jens Wiklander > --- > include/avb_verify.h | 9

Re: [U-Boot] [PATCH v3 14/20] sandbox: imply CONFIG_TEE (TEE uclass)

2018-09-14 Thread Simon Glass
On 3 September 2018 at 16:47, Jens Wiklander wrote: > Signed-off-by: Jens Wiklander > --- > arch/Kconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] [PATCH 15/31] binman: Move state logic into the state module

2018-09-14 Thread Simon Glass
Rather than reaching into this module from control, move the code that needs this info into state. Signed-off-by: Simon Glass --- tools/binman/control.py | 21 tools/binman/state.py | 43 + 2 files changed, 56 insertions(+), 8

Re: [U-Boot] [PATCH] dm: uclass: Adding missing child_pre_probe description

2018-09-14 Thread Simon Glass
On 7 September 2018 at 16:51, Bin Meng wrote: > The comment of child_pre_probe, one of the 'struct uclass_driver' > members, is currently missing. > > Signed-off-by: Bin Meng > --- > > include/dm/uclass.h | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Simon Glass > diff --git

Re: [U-Boot] [PATCH v3 04/20] avb_verify: bugfix avb_ops_free() skipping free

2018-09-14 Thread Simon Glass
On 3 September 2018 at 16:46, Jens Wiklander wrote: > Before this patch avb_ops_free() was returning early if supplied "ops" > argument was not NULL. This patch fixes this by inverting the condition. > > Signed-off-by: Jens Wiklander > --- > common/avb_verify.c | 2 +- > 1 file changed, 1

Re: [U-Boot] [PATCH 3/4] ata: Drop CONFIG_SYS_SCSI_MAX_* from boards using DM_SCSI

2018-09-14 Thread Simon Glass
On 13 September 2018 at 00:28, Tuomas Tynkkynen wrote: > These options are not used or necessary when device model is being used > for SCSI. Just drop them. > > Signed-off-by: Tuomas Tynkkynen > --- > include/configs/dra7xx_evm.h| 4 > include/configs/qemu-arm.h | 3 --- >

[U-Boot] [PATCH 03/31] binman: Allow 'fill' entry to have a size of 0

2018-09-14 Thread Simon Glass
The check for this should be for None, not 0. Fix it and add a test. Signed-off-by: Simon Glass --- tools/binman/etype/fill.py | 2 +- tools/binman/ftest.py | 5 + tools/binman/test/80_fill_empty.dts | 15 +++ 3 files changed, 21 insertions(+), 1

Re: [U-Boot] [PATCH 1/9] dm: allow 4GB of DRAM on 32bit systems

2018-09-14 Thread Simon Glass
Hi, On 3 September 2018 at 16:29, Lokesh Vutla wrote: > > > On Sunday 02 September 2018 11:19 PM, Alexander Graf wrote: >> >> >>> Am 02.09.2018 um 18:04 schrieb Vagrant Cascadian : >>> On 2018-09-02, Alexander Graf wrote: > On 02.08.18 23:31, Dr. Philipp Tomsich wrote: > >> On

Re: [U-Boot] [PATCH 1/4] ata: ahci: Loop over the actual number of ports, not the maximum

2018-09-14 Thread Simon Glass
On 13 September 2018 at 00:28, Tuomas Tynkkynen wrote: > The loop in ahci_start_ports() is looping over the maximum number of > SCSI devices in the system, which can be larger than the amount of ports > a particular AHCI controller has. The extra looping isn't directly > harmful because the

[U-Boot] [PATCH 12/31] dtoc: Add a way to create an Fdt object from a data block

2018-09-14 Thread Simon Glass
Support creating an Fdt object without having to write the data to a file first. Signed-off-by: Simon Glass --- tools/dtoc/fdt.py | 14 ++ tools/dtoc/test_fdt.py | 8 2 files changed, 22 insertions(+) diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index

[U-Boot] [PATCH 01/31] fdt: Add Python support for adding/removing nodes

2018-09-14 Thread Simon Glass
Pull this support from these upstream commits: bfbfab0 pylibfdt: Add a means to add and delete notes 9005f41 pylibfdt: Allow delprop() to return errors Signed-off-by: Simon Glass --- scripts/dtc/pylibfdt/libfdt.i_shipped | 34 ++- 1 file changed, 28

Re: [U-Boot] [PATCH v2 2/2] rockchip: fix incorrect detection of ram size

2018-09-14 Thread Simon Glass
Hi Marty, On 13 September 2018 at 23:55, Marty E. Plummer wrote: > Taken from coreboot's src/soc/rockchip/rk3288/sdram.c > > Without this change, my u-boot build for the asus c201 chromebook (4GiB) > is incorrectly detected as 0 Bytes of ram. > > Signed-off-by: Marty E. Plummer > --- >

Re: [U-Boot] [PATCH v3 15/20] tee: add sandbox driver

2018-09-14 Thread Simon Glass
Hi Jens, On 3 September 2018 at 16:47, Jens Wiklander wrote: > Adds a sandboxtee driver which emulates a generic TEE with the OP-TEE sandbox tee > AVB TA. > > Signed-off-by: Jens Wiklander > --- > drivers/tee/Kconfig | 12 +- > drivers/tee/Makefile | 1 + >

Re: [U-Boot] [PATCH v3 6/8] powerpc: mpc85xx: Use binman to embed dtb inside U-Boot

2018-09-14 Thread Simon Glass
On 3 September 2018 at 18:05, Jagdish Gediya wrote: > Below is the sequence to embed dtb inside U-Boot, > 1. Remove bootpg and resetvec section if needed > 2. Append dtb > 3. Append bootpg and resetvec section back if removed in step 1 > > Above procedure is required only when CONFIG_MPC85xx and

Re: [U-Boot] [PATCH v3 07/20] dt/bindings: add bindings for optee

2018-09-14 Thread Simon Glass
On 3 September 2018 at 16:46, Jens Wiklander wrote: > Sync with c8bfafb15944 ("dt/bindings: add bindings for optee") > from Linux kernel. > > Introduces linaro prefix and adds bindings for ARM TrustZone based OP-TEE > implementation. > > Signed-off-by: Jens Wiklander > --- >

Re: [U-Boot] [PATCH v3 7/8] powerpc: dts: Add u-boot.dtsi to use binman for MPC85xx boards

2018-09-14 Thread Simon Glass
On 3 September 2018 at 18:05, Jagdish Gediya wrote: > Signed-off-by: Jagdish Gediya > Reviewed-by: Bin Meng > --- > Changes for v2: > - Remove mpc85xx-u-boot.dtsi > - Update u-boot.dtsi to use CONFIG_MPC85XX_HAVE_RESET_VECTOR > > Changes for v3: > - Use 'sort-by-offset'

Re: [U-Boot] [PATCH v3 05/20] mmc: rpmb: add mmc_rpmb_route_frames()

2018-09-14 Thread Simon Glass
Hi Jens, On 3 September 2018 at 16:46, Jens Wiklander wrote: > Adds mmc_rpmb_route_frames() to route RPMB data frames from/to an > external entity. > > Tested-by: Igor Opaniuk > Signed-off-by: Jens Wiklander > --- > drivers/mmc/rpmb.c | 160 + >

Re: [U-Boot] [RFC PATCH 1/2] Makefile: Use -fno-strict-aliasing globally

2018-09-14 Thread Simon Glass
On 10 September 2018 at 15:53, Bin Meng wrote: > The -fstrict-aliasing option is implicitly enabled at levels -O2, > -O3, -Os by GCC. This option allows the compiler to assume the > strictest aliasing rules applicable to the language being compiled. > For example, the practice of reading from a

Re: [U-Boot] [PATCH v3 8/8] powerpc: dts: Enable device tree support for T2080QDS

2018-09-14 Thread Simon Glass
On 3 September 2018 at 18:05, Jagdish Gediya wrote: > Add device tree for T2080QDS board and enable CONFIG_OF_CONTROL > so that device tree can be compiled. > > Update board README for device tree usage. > > Signed-off-by: Jagdish Gediya > Reviewed-by: Bin Meng > --- > Changes for v2: >

Re: [U-Boot] [PATCH v3 4/8] binman: Add support for PowerPC mpc85xx 'bootpg + resetvec' entry

2018-09-14 Thread Simon Glass
On 3 September 2018 at 18:05, Jagdish Gediya wrote: > This entry contains the PowerPC mpc85xx boot page and resetvec > sections. > > Signed-off-by: Jagdish Gediya > --- > Changes for v2: > - Updated README for new binman entry > - Added test > > Changes for v3: > -

Re: [U-Boot] [PATCH v3 3/8] binman: Add a new "skip-at-start" property in Section class

2018-09-14 Thread Simon Glass
On 3 September 2018 at 18:05, Jagdish Gediya wrote: > Currently binman calculates '_skip_at_start' based on 'end-at-4gb' > property and it is used for x86 images. > > For PowerPC mpc85xx based CPU, CONFIG_SYS_TEXT_BASE is the entry > offset of the first entry. It can be 0xeff4 or 0xfff4

Re: [U-Boot] [PATCH v3 5/8] powerpc: mpc85xx: Select BINMAN by default

2018-09-14 Thread Simon Glass
On 3 September 2018 at 18:05, Jagdish Gediya wrote: > Signed-off-by: Jagdish Gediya > Reviewed-by: Bin Meng > --- > No changes for v2 and v3. > > arch/powerpc/Kconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass This is more than a default - with 'select' it will not be

Re: [U-Boot] [PATCH v3 1/8] powerpc/dts: Define '_end' symbol in mpc85xx U-Boot lds files

2018-09-14 Thread Simon Glass
On 3 September 2018 at 18:05, Jagdish Gediya wrote: > 'board_fdt_blob_setup' function sets up fdt blob at '&_end' so > define '_end' symbol in mpc85xx lds files. > > Signed-off-by: Jagdish Gediya > --- > Changes for v2: > - Define '_end' symbol in lds file instead of defining new >

Re: [U-Boot] [PATCH v3] drivers: spi: migrate cf_spi to DM

2018-09-14 Thread Simon Glass
Hi Angelo, On 28 June 2018 at 21:48, Angelo Dureghello wrote: > Hi Jagan, > > On Wed, Jun 27, 2018 at 02:54:42PM +0530, Jagan Teki wrote: >> On Wed, Jun 27, 2018 at 2:27 PM, Angelo Dureghello wrote: >> > Hi Jagan, >> > >> > On Wed, Jun 27, 2018 at 12:08:26PM +0530, Jagan Teki wrote: >> >> On

[U-Boot] Please pull from u-boot-i2c

2018-09-14 Thread Heiko Schocher
Hello Tom, please pull from u-boot-i2c.git master The following changes since commit d1e15041abf3ccd38169ae7aa8736f78200f8ee3: Merge branch 'master' of git://git.denx.de/u-boot-uniphier (2018-09-11 08:50:10 -0400) are available in the Git repository at: git://git.denx.de/u-boot-i2c.git

Re: [U-Boot] [PATCH 1/1] efi_loader: environment variables for terminal size

2018-09-14 Thread Mark Kettenis
> From: Alexander Graf > Date: Fri, 14 Sep 2018 07:21:56 +0200 > > On 14.09.18 06:41, Heinrich Schuchardt wrote: > > Correct scrolling in EFI applications like the EFI Shell requires correct > > setting of the terminal size. Detecting the terminal size over the serial > > interface is often not

[U-Boot] [PATCH v4 2/2] arm: qemu-arm: enable RTC (PL031) by default

2018-09-14 Thread Akashi, Takahiro
From: AKASHI Takahiro Virtual machine provided by qemu-arm has a ARM PL031 Real Time Clock device. With this patch, the driver is enabled by default. Signed-off-by: AKASHI Takahiro --- arch/arm/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig

  1   2   >