[U-Boot] [PATCH 2/2] move booti_setup to arch/arm/lig/image.c

2018-01-26 Thread Bin Chen
Follow bootz's pattern by moving the booti_setup to arch/arm/lib. This allows to use booti_setup in other paths, e.g booting an Android image containing Image format. Note that kernel relocation is move out of booti_setup and it is the caller's responsibility to do it and allows them do it differe

[U-Boot] [PATCH 1/2] parse the second area of android image

2018-01-26 Thread Bin Chen
The second area of android image was intended to put a 2nd stage bootloader but in practice were rarely used (in my knowledge). An proposal was made to the AOSP to (re)use the second area as the dtb[1], This patch itself doesn't depend on that proposal being accepted but it won't be that helpful a

[U-Boot] [PATCH 0/2] Android and arm64 improvement

2018-01-26 Thread Bin Chen
I rebased the two patches submitted (quite )a while ago on top of current U-boot master fb4413295c765aa8c013650984dc2d908964c81d (and there were no conflicts). The first patch added the support of parsing the second area of Android image so that it can be used for good. On Poplar board, we ar

[U-Boot] [PATCH] sunxi: Pine64: temporarily remove extra Pine64 non-plus DT

2018-01-26 Thread Andre Przywara
With the merge of the new u-boot.itb size check now the build for pine64_plus_defconfig breaks, as this file gets too large: = u-boot.itb exceeds file size limit: limit: 516096 bytes actual: 521852 bytes excess: 5756 bytes make: *** [u-boot.itb] Error 1 = One easily f

Re: [U-Boot] Please pull u-boot-dm

2018-01-26 Thread Tom Rini
On Fri, Jan 26, 2018 at 02:45:29PM -0700, Simon Glass wrote: > Hi Tom, > > Here are some additions to logging and 64-bit sandbox support. > > > The following changes since commit ab12aa24e619b5e81cbde7de88c6d9a19f04313b: > > ARM: socfpga: Convert callers of cm_write_with_phase for > wait_for

Re: [U-Boot] [PATCH V3] imx: mx25: Remove SION bit in all pin-mux that are safe

2018-01-26 Thread Fabio Estevam
Hi Michael, On Thu, Jan 25, 2018 at 11:06 AM, Michael Trimarchi wrote: > SION bit should be used in the situation that we need > to read back the value of a pin and should not be set by > default macro. > > We get some malfunction as raised by following thread > > https://www.spinics.net/lists/li

[U-Boot] How to build standalone app *outside* u-boot build tree

2018-01-26 Thread Brett Stahlman
I'd like to build my own application - something like examples/standalone/hello_world - but if possible, I'd like to build it outside the u-boot tree. The standalone examples are meant to be invoked with a recursive make from an ancestor directory in the u-boot tree. They don't work if you just cop

Re: [U-Boot] [PATCH V3] imx: mx25: Remove SION bit in all pin-mux that are safe

2018-01-26 Thread Stefano Babic
Hi Michael, On 26/01/2018 23:14, Michael Nazzareno Trimarchi wrote: > Hi Stefano > > Do I need to resend with you in CC? > > For some reason I forget to include you > No, don't worry, I have already got it :-) Regards, Stefano > Michael > > On Fri, Jan 26, 2018 at 12:00 PM, Benoît Thébaudea

Re: [U-Boot] [PATCH V3] imx: mx25: Remove SION bit in all pin-mux that are safe

2018-01-26 Thread Michael Nazzareno Trimarchi
Hi Stefano Do I need to resend with you in CC? For some reason I forget to include you Michael On Fri, Jan 26, 2018 at 12:00 PM, Benoît Thébaudeau wrote: > On 25/01/2018 at 22:48, Benoît Thébaudeau wrote: >> On Thu, Jan 25, 2018 at 2:06 PM, Michael Trimarchi >> wrote: >>> SION bit should be u

[U-Boot] [PATCH] mips: bmips: select OF_EMBED for all boards

2018-01-26 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- configs/comtrend_ar5315u_ram_defconfig | 1 + configs/comtrend_ar5387un_ram_defconfig | 1 + configs/comtrend_ct5361_ram_defconfig| 1 + configs/comtrend_vr3032u_ram_defconfig | 1 + configs/comtrend_wap5813n_ram_defconfig | 1 + configs/netgear

Re: [U-Boot] MIPS relocation DT error

2018-01-26 Thread Álvaro Fernández Rojas
I just found out I was missing OF_EMBED, which confirms that it was working because CFE was relocating u-boot and not u-boot itself... Sorry for the noise... El 26/01/2018 a las 22:53, Álvaro Fernández Rojas escribió: Hello Paul & Daniel, I've finally had some time to do more testing and it

[U-Boot] MIPS relocation DT error

2018-01-26 Thread Álvaro Fernández Rojas
Hello Paul & Daniel, I've finally had some time to do more testing and it appears that the relocation error I saw on BMIPS is due to a DT not found error caused by mips relocation: https://gist.github.com/Noltari/9017b3d28e2109d1de4158e5ad5b1c65 Any ideas on how to fix it? BTW, the reason

[U-Boot] Please pull u-boot-dm

2018-01-26 Thread Simon Glass
Hi Tom, Here are some additions to logging and 64-bit sandbox support. The following changes since commit ab12aa24e619b5e81cbde7de88c6d9a19f04313b: ARM: socfpga: Convert callers of cm_write_with_phase for wait_for_bit_le32 (2018-01-26 13:08:03 -0500) are available in the Git repository at:

Re: [U-Boot] [PATCH 7/9] log: Add tests for the new log features

2018-01-26 Thread Simon Glass
On 28 December 2017 at 13:14, Simon Glass wrote: > Add a test of the 'log format' and 'log rec' commands. This also covers > things like log_get_cat_by_name(), since they are used by these commands. > Fix a style nit in the tests also. > > Signed-off-by: Simon Glass > --- > > test/py/tests/test_

Re: [U-Boot] [PATCH v2 1/1] log: add category LOGC_EFI

2018-01-26 Thread Simon Glass
On 26 January 2018 at 08:25, Simon Glass wrote: > On 22 January 2018 at 12:10, Heinrich Schuchardt wrote: >> The EFI implementation does not fit into any of the existing categories. >> >> Provide LOGC_EFI so that EFI related message can be filtered. >> >> Signed-off-by: Heinrich Schuchardt >> --

Re: [U-Boot] [PATCH v2] sandbox: Add 64-bit sandbox

2018-01-26 Thread Simon Glass
On 19 January 2018 at 00:17, Mario Six wrote: > From: Mario Six > > To debug device tree issues involving 32- and 64-bit platforms, it is useful > to > have a generic 64-bit platform available. > > Add a version of the sandbox that uses 64-bit integers for its physical > addresses as well as a m

Re: [U-Boot] [PATCH 9/9] log: Add a way to log error-return values

2018-01-26 Thread Simon Glass
On 28 December 2017 at 13:14, Simon Glass wrote: > When functions return an error it propagates up the stack to the point > where it is reported. Often the error code provides enough information > about the root cause of the error that this is obvious what went wrong. > > However in some cases the

Re: [U-Boot] [PATCH 6/9] log: Add a command to output a log record

2018-01-26 Thread Simon Glass
On 28 December 2017 at 13:14, Simon Glass wrote: > Add a 'log rec' command which allows a log record to be manually output. > This is useful for scripts which want full control over what is logged. It > also permits easy testing of the log system. > > Signed-off-by: Simon Glass > --- > > cmd/log

Re: [U-Boot] [PATCH 5/9] log: Add a command to control the log output format

2018-01-26 Thread Simon Glass
On 28 December 2017 at 13:14, Simon Glass wrote: > Add a 'log format' command which can display or change the log output > format. This is useful for changing how much information is displayed. The > ordering of the fields is fixed. > > Signed-off-by: Simon Glass > --- > > cmd/log.c | 43 +++

Re: [U-Boot] [PATCH 8/9] log: Add documentation for commands and formatting

2018-01-26 Thread Simon Glass
On 28 December 2017 at 13:14, Simon Glass wrote: > Add some notes about recent new features. > > Signed-off-by: Simon Glass > --- > > doc/README.log | 27 +++ > 1 file changed, 27 insertions(+) Applied to u-boot-dm. ___ U-Boot

Re: [U-Boot] [PATCH 3/9] log: Add control over log formatting

2018-01-26 Thread Simon Glass
On 28 December 2017 at 13:14, Simon Glass wrote: > It is useful to be able to control the output format of log records on the > console. As a starting point, add definitions for controlling which > elements of the log record are displayed. Use function and message as the > default, since these are

Re: [U-Boot] [PATCH 4/9] log: Update log_console to honour the log format

2018-01-26 Thread Simon Glass
On 28 December 2017 at 13:14, Simon Glass wrote: > At present this just outputs the message. Update it to output whatever the > format requests. > > Signed-off-by: Simon Glass > --- > > common/log_console.c | 27 ++- > test/py/tests/test_log.py | 4 ++-- > 2 files c

Re: [U-Boot] [PATCH 2/9] log: Add functions to convert IDs to/from names

2018-01-26 Thread Simon Glass
On 28 December 2017 at 13:14, Simon Glass wrote: > Category and level both use an enum for their ID values. Add functions to > convert these IDs to strings and vice versa. This will allow the log to > output the strings instead of the (inscrutable) values. > > At the same time, add a new 'driver-m

Re: [U-Boot] [PATCH 1/9] dm: core: Add a function to look up a uclass by name

2018-01-26 Thread Simon Glass
On 28 December 2017 at 13:14, Simon Glass wrote: > Each uclass has a driver name which we can use to look up the uclass. This > is useful for logging, where the uclass ID is used as the category. > > Add a function to handle this, as well as a test. > > Signed-off-by: Simon Glass > --- > > drive

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

2018-01-26 Thread Tom Rini
On Fri, Jan 26, 2018 at 08:05:41PM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > thanks! > Jagan. > > The following changes since commit 557767ed29968af0294e3aae48433e5d5a298e0b: > > Merge git://git.denx.de/u-boot-marvell (2018-01-20 08:39:47 -0500) > > are available in th

[U-Boot] [PATCH 3/3] MIPS: add BMIPS Netgear DGND3700v2 board

2018-01-26 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/Makefile | 1 + arch/mips/dts/netgear,dgnd3700v2.dts | 121 +++ arch/mips/mach-bmips/Kconfig | 12 +++ board/netgear/dgnd3700v2/Kconfig | 12 +++ board/netgear/dgnd370

[U-Boot] [PATCH 2/3] MIPS: add support for Broadcom MIPS BCM6362 SoC family

2018-01-26 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- arch/mips/dts/brcm,bcm6362.dtsi| 186 + arch/mips/mach-bmips/Kconfig | 12 ++ include/configs/bmips_bcm6362.h| 25 +++ include/dt-bindings/clock/bcm6362-clock.h |

[U-Boot] [PATCH 1/3] dm: cpu: bmips: add BCM6362 support

2018-01-26 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- drivers/cpu/bmips_cpu.c | 51 + 1 file changed, 51 insertions(+) diff --git a/drivers/cpu/bmips_cpu.c b/drivers/cpu/bmips_cpu.c index 4ad291a56e..6c612bacdc 100644 --- a/drivers/cpu/bmips_cpu.c +++ b/driver

[U-Boot] [PATCH 0/3] mips: bmips: add BCM6362 SoC support

2018-01-26 Thread Álvaro Fernández Rojas
BCM6362 is a dual core BCM63xx SoC. Álvaro Fernández Rojas (3): dm: cpu: bmips: add BCM6362 support MIPS: add support for Broadcom MIPS BCM6362 SoC family MIPS: add BMIPS Netgear DGND3700v2 board arch/mips/dts/Makefile | 1 + arch/mips/dts/brcm,bcm6362.dtsi

[U-Boot] [PATCH 1/1] efi_loader: split README.efi into two separate documents

2018-01-26 Thread Heinrich Schuchardt
README.efi describes two different concepts: * U-Boot exposing the UEFI API * U-Boot running on top of UEFI. This patch splits the document in two. Religious references are removed. The separation of the concepts makes sense before detailing the internals of U-Boot exposing the UEFI API in a futu

[U-Boot] [PATCH v2 1/1] efi_loader: add a README.iscsi describing booting via iSCSI

2018-01-26 Thread Heinrich Schuchardt
The appended README explains how U-Boot and iPXE can be used to boot a diskless system from an iSCSI SAN. The maintainer for README.efi and README.iscsi is set. Signed-off-by: Heinrich Schuchardt --- v2 mention work on TCP and wget remove VLAN drawing fix reference of EFI

Re: [U-Boot] [PATCH] ARM: socfpga: Convert callers of cm_write_with_phase for wait_for_bit_le32

2018-01-26 Thread Goldschmidt Simon
On 01/26/2018 17:28, Tom Rini wrote: > Now that we have and use wait_for_bit_le32() available, the callers of > cm_write_with_phase() should not be casting values to u32 and instead we > expect a const void *, so provide that directly. > > Fixes: 48263504c8d5 ("wait_bit: use wait_for_bit_le32 and

Re: [U-Boot] [PULL] u-boot-mips/master

2018-01-26 Thread Tom Rini
On Fri, Jan 26, 2018 at 01:45:32PM +0100, Daniel Schwierzeck wrote: > The following changes since commit fb4413295c765aa8c013650984dc2d908964c81d: > > Merge git://git.denx.de/u-boot-mmc (2018-01-24 11:28:44 -0500) > > are available in the Git repository at: > > git://git.denx.de/u-boot-mips

Re: [U-Boot] [PATCH] ARM: socfpga: Convert callers of cm_write_with_phase for wait_for_bit_le32

2018-01-26 Thread Tom Rini
On Fri, Jan 26, 2018 at 11:28:22AM -0500, Tom Rini wrote: > Now that we have and use wait_for_bit_le32() available, the callers of > cm_write_with_phase() should not be casting values to u32 and instead we > expect a const void *, so provide that directly. > > Fixes: 48263504c8d5 ("wait_bit: use

Re: [U-Boot] Please pull u-boot-coldfire/master

2018-01-26 Thread Tom Rini
On Wed, Jan 24, 2018 at 12:32:33AM +0100, Angelo Dureghello wrote: > The following changes since commit c761a7e29d703d60208585bb7d8415e00aa22556: > > Revert "travis-ci: Add qemu-x86_64 target" (2018-01-22 21:06:41 -0500) > > are available in the Git repository at: > > git://git.denx.de/u-bo

Re: [U-Boot] Pull request v2: u-boot-spi/master

2018-01-26 Thread Tom Rini
On Fri, Jan 26, 2018 at 11:57:27AM +0530, Jagan Teki wrote: > Hi Tom, > > Please pull this PR. > > Changes for v2: > - Fixed patches on wait_bit > - Collected new patches. > > thanks! > Jagan. > > The following changes since commit 98691a60abffb44303d7dae6e9e699d0daded930: > > Merge git://g

[U-Boot] [RFC] i2c, omap24xx: Fixup High Speed Initialization

2018-01-26 Thread Adam Ford
For devices running I2C over 400KHz, this needs to be in HS mode. Currently, the code is only running in HS mode when the speed is equal or greater than 3.4MHz. Using the Linux kernel setup as a reference, I used much of their calculation for fsscll, fssclh, hsscll, and hssclh. However, Linux use

Re: [U-Boot] [PATCH v4 2/2] imx: mx7: run sec_init for CAAM RNG

2018-01-26 Thread Fabio Estevam
On Fri, Jan 26, 2018 at 2:27 PM, Bryan O'Donoghue wrote: > This patch adds a sec_init call into arch_misc_init(). Doing so in > conjunction with the patch "drivers/crypto/fsl: assign job-rings to > non-TrustZone" enables use of the CAAM in Linux when OPTEE/TrustZone is > active. > > u-boot will in

Re: [U-Boot] [PATCH v4 2/2] imx: mx7: run sec_init for CAAM RNG

2018-01-26 Thread Auer, Lukas
On Fri, 2018-01-26 at 16:27 +, Bryan O'Donoghue wrote: > This patch adds a sec_init call into arch_misc_init(). Doing so in > conjunction with the patch "drivers/crypto/fsl: assign job-rings to > non-TrustZone" enables use of the CAAM in Linux when OPTEE/TrustZone > is > active. > > u-boot wil

Re: [U-Boot] [PATCH] ARM: socfpga: Convert callers of cm_write_with_phase for wait_for_bit_le32

2018-01-26 Thread Marek Vasut
On 01/26/2018 05:28 PM, Tom Rini wrote: > Now that we have and use wait_for_bit_le32() available, the callers of > cm_write_with_phase() should not be casting values to u32 and instead we > expect a const void *, so provide that directly. > > Fixes: 48263504c8d5 ("wait_bit: use wait_for_bit_le32 a

Re: [U-Boot] [RESEND PATCH v3 2/2] imx: mx7: run sec_init for CAAM RNG

2018-01-26 Thread Auer, Lukas
On Fri, 2018-01-26 at 12:24 +, Bryan O'Donoghue wrote: > This patch adds a sec_init call into arch_misc_init(). Doing so in > conjunction with the patch "drivers/crypto/fsl: assign job-rings to > non-TrustZone" enables use of the CAAM in Linux when OPTEE/TrustZone > is > active. > > u-boot wil

[U-Boot] [PATCH] ARM: socfpga: Convert callers of cm_write_with_phase for wait_for_bit_le32

2018-01-26 Thread Tom Rini
Now that we have and use wait_for_bit_le32() available, the callers of cm_write_with_phase() should not be casting values to u32 and instead we expect a const void *, so provide that directly. Fixes: 48263504c8d5 ("wait_bit: use wait_for_bit_le32 and remove wait_for_bit") Cc: Marek Vasut Signed-o

[U-Boot] [PATCH v4 2/2] imx: mx7: run sec_init for CAAM RNG

2018-01-26 Thread Bryan O'Donoghue
This patch adds a sec_init call into arch_misc_init(). Doing so in conjunction with the patch "drivers/crypto/fsl: assign job-rings to non-TrustZone" enables use of the CAAM in Linux when OPTEE/TrustZone is active. u-boot will initialise the RNG and assign ownership of the job-ring registers to a

[U-Boot] [PATCH v4 0/2] Fix CAAM for TrustZone enable for warp7

2018-01-26 Thread Bryan O'Donoghue
V4: - Fix dim-witted omission of #include to remove warning V3: - Changed location of sec_init() from warp.c::board_init() to soc.c::arch_misc_init() which will allow any i.MX7 which defines CONFIG_FSL_CAAM to forget about running sec_init(). V2: - Add an explicit assignment of JRMID when se

[U-Boot] [PATCH v4 1/2] drivers/crypto/fsl: assign job-rings to non-TrustZone

2018-01-26 Thread Bryan O'Donoghue
After enabling TrustZone various parts of the CAAM silicon become inaccessible to non TrustZone contexts. The job-ring registers are designed to allow non TrustZone contexts like Linux to still submit jobs to CAAM even after TrustZone has been enabled. The default job-ring permissions after the Bo

Re: [U-Boot] [PATCH] imx-common: spl: Allow booting from eMMC when SPL is loaded from non-eMMC device

2018-01-26 Thread Marek Vasut
On 01/26/2018 05:16 PM, Marek Vasut wrote: > On 01/26/2018 05:05 PM, Stefano Babic wrote: >> On 26/01/2018 15:57, Lukasz Majewski wrote: >>> This patch tries to solve the problem described in following patch: >>> https://patchwork.ozlabs.org/patch/796237/ >>> >>> The main argument against the above

Re: [U-Boot] [PATCH] imx-common: spl: Allow booting from eMMC when SPL is loaded from non-eMMC device

2018-01-26 Thread Marek Vasut
On 01/26/2018 05:05 PM, Stefano Babic wrote: > On 26/01/2018 15:57, Lukasz Majewski wrote: >> This patch tries to solve the problem described in following patch: >> https://patchwork.ozlabs.org/patch/796237/ >> >> The main argument against the above code was the potential lack of >> consistency if

Re: [U-Boot] [PATCH] imx-common: spl: Allow booting from eMMC when SPL is loaded from non-eMMC device

2018-01-26 Thread Stefano Babic
On 26/01/2018 15:57, Lukasz Majewski wrote: > This patch tries to solve the problem described in following patch: > https://patchwork.ozlabs.org/patch/796237/ > > The main argument against the above code was the potential lack of > consistency if we boot SPL from the SD card (and then eMMC may loa

Re: [U-Boot] [PATCH v2 3/4] travis.yml: fix 'set +e' in build script

2018-01-26 Thread Tom Rini
On Fri, Jan 26, 2018 at 04:31:06PM +0100, Daniel Schwierzeck wrote: > The build script should not manipulate shell flags (especially '-e'). > A non-zero exit value can also be catched with 'cmd || ret=$?'. > > Signed-off-by: Daniel Schwierzeck Reviewed-by: Tom Rini -- Tom signature.asc Des

Re: [U-Boot] [RFC PATCH 2/2] ARM: Introduce ability to enable invalidate of BTB on Cortex-A15 for CVE-2017-5715

2018-01-26 Thread Nishanth Menon
On 01/26/2018 03:17 AM, Marc Zyngier wrote: On 25/01/18 21:45, Nishanth Menon wrote: As recommended by Arm in [1], ACR needs to be set[2] to enable invalidation of BTB. This has to be enabled unconditionally for ICIALLU to be functional on Cortex-A15 processors. Provide a config Not quite. ACT

Re: [U-Boot] [PATCH 1/1] efi_loader: add a README.iscsi describing booting via iSCSI

2018-01-26 Thread Duncan Hare
From: Heinrich Schuchardt To: Duncan Hare ; Alexander Graf Subject: Re: [U-Boot] [PATCH 1/1] efi_loader: add a README.iscsi describing booting via iSCSI On 01/25/2018 08:39 PM, Duncan Hare wrote: >>> - Forwarded Message - >>>  From: Alexander Graf >>>  To: Heinrich Schuchardt >>

[U-Boot] [PATCH v2 2/4] buildman: add option -E for treating compiler warnings as errors

2018-01-26 Thread Daniel Schwierzeck
Add a new option '-E' for treating all compiler warnings as errors. Eventually this will pass 'KCFLAGS=-Werror' to Kbuild. Signed-off-by: Daniel Schwierzeck --- Changes in v2: - replace 'W=err' with 'KCFLAGS=-Werror' tools/buildman/builder.py | 5 - tools/buildman/builderthread.py |

[U-Boot] [PATCH v2 4/4] travis.yml: run buildman with option -E

2018-01-26 Thread Daniel Schwierzeck
This forces all compiler warnings to be treated as errors. Signed-off-by: Daniel Schwierzeck --- Changes in v2: None .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1e55e1b7f1..59d1dd99e8 100644 --- a/.travis.yml +++ b/.travis.ym

[U-Boot] [PATCH v2 3/4] travis.yml: fix 'set +e' in build script

2018-01-26 Thread Daniel Schwierzeck
The build script should not manipulate shell flags (especially '-e'). A non-zero exit value can also be catched with 'cmd || ret=$?'. Signed-off-by: Daniel Schwierzeck --- Changes in v2: None .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.tr

[U-Boot] [PATCH v2 1/4] README: add doc for how to supply user specific compiler flags to Kbuild

2018-01-26 Thread Daniel Schwierzeck
Probably not all users are aware of this possibility, thus add a pointer to the README. Also add a useful example. Signed-off-by: Daniel Schwierzeck --- Changes in v2: - new patch README | 5 + 1 file changed, 5 insertions(+) diff --git a/README b/README index b53ea7dfe3..b055ae7ef2 1006

[U-Boot] [PATCH v2 0/4] Add support for treating compiler warnings as errors

2018-01-26 Thread Daniel Schwierzeck
To enforce a zero-warnings policy (e.g. in CI builds), all compiler warnings have to be treated as errors. Extend Kbuild and buildman with according options to achieve this. Enable these new options in all Travis CI builds. All builds with compiler warnings will now fail. Only DTC warnings are sti

Re: [U-Boot] [PATCH] host-tools: use python2 explicitly for shebang

2018-01-26 Thread Simon Glass
Hi Masahiro, On 21 January 2018 at 02:34, Masahiro Yamada wrote: > All of these host tools are apparently written for Python2, > not Python3. > > Use 'python2' in the shebang line according to PEP 394 > (https://www.python.org/dev/peps/pep-0394/). > > Signed-off-by: Masahiro Yamada > --- > > I s

Re: [U-Boot] [PATCH v2 1/1] log: add category LOGC_EFI

2018-01-26 Thread Simon Glass
On 22 January 2018 at 12:10, Heinrich Schuchardt wrote: > The EFI implementation does not fit into any of the existing categories. > > Provide LOGC_EFI so that EFI related message can be filtered. > > Signed-off-by: Heinrich Schuchardt > --- > v2 > rebase on git://git.denx.de/u-boot-dm.gi

Re: [U-Boot] [PATCH] imx-common: spl: Allow booting from eMMC when SPL is loaded from non-eMMC device

2018-01-26 Thread Marek Vasut
On 01/26/2018 03:57 PM, Lukasz Majewski wrote: > This patch tries to solve the problem described in following patch: > https://patchwork.ozlabs.org/patch/796237/ You should explain what the problem is in the commit message. Random link to a random website which may go away at some point is useless

[U-Boot] [PATCH] imx-common: spl: Allow booting from eMMC when SPL is loaded from non-eMMC device

2018-01-26 Thread Lukasz Majewski
This patch tries to solve the problem described in following patch: https://patchwork.ozlabs.org/patch/796237/ The main argument against the above code was the potential lack of consistency if we boot SPL from the SD card (and then eMMC may load u-boot proper). This patch preserves this consisten

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

2018-01-26 Thread Jagan Teki
Hi Tom, Please pull this PR. thanks! Jagan. The following changes since commit 557767ed29968af0294e3aae48433e5d5a298e0b: Merge git://git.denx.de/u-boot-marvell (2018-01-20 08:39:47 -0500) are available in the git repository at: git://git.denx.de/u-boot-sunxi.git master for you to fetch c

Re: [U-Boot] [PATCH v2 00/12] sunxi: arm64 binary size fixes

2018-01-26 Thread Jagan Teki
On Wed, Jan 24, 2018 at 10:12 PM, Jagan Teki wrote: > On Tue, Jan 16, 2018 at 2:14 PM, Maxime Ripard > wrote: >> Hi, >> >> As we discussed already, this is the list of options that we will need >> to disable by default. >> >> I also added to the mix a size check, which even though it's not >> rea

[U-Boot] [PATCH 2/2] i2c: imx: Take mx6dqp in consideration in the I2C_PADS_INFO macro

2018-01-26 Thread Eran Matityahu
We should take the MX6DP and MX6QP options in consideration in the I2C_PADS_INFO macro. Based on a patch by Pierluigi Passaro Signed-off-by: Eran Matityahu --- arch/arm/include/asm/mach-imx/mxc_i2c.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/include/asm/mac

[U-Boot] [PATCH 1/2] iomux-v3: Take mx6dqp in consideration for imx_iomux_v3_setup_pad()

2018-01-26 Thread Eran Matityahu
We should take the MX6DP and MX6QP options in consideration when defining imx_iomux_v3_setup_pad(). Based on a patch by Pierluigi Passaro Signed-off-by: Eran Matityahu --- arch/arm/include/asm/mach-imx/iomux-v3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/incl

[U-Boot] [PATCH 2/6] Add Broadwell-DE include header files

2018-01-26 Thread vnktux
This patch contain all the include headers for Broadwell-DE architecture. Signed-off-by: Vincenzo Bove --- .../asm/arch-broadwell-de/acpi/global_nvs.asl | 15 + .../asm/arch-broadwell-de/acpi/irq_helper.h| 36 ++ .../asm/arch-broadwell-de/acpi/irqlinks.asl| 454 ++

Re: [U-Boot] [U-Boot, v2, 1/2] spi: zynqmp_qspi: Add support for ZynqMP qspi drivers

2018-01-26 Thread Liam Beguin
Hi Siva, Sorry for the very late reply! > -Original Message- > From: Siva Durga Prasad Paladugu [mailto:siva.durga.palad...@xilinx.com] > Sent: Thursday, January 04, 2018 1:08 PM > To: u-boot@lists.denx.de > Cc: jagannadh.t...@gmail.com; Siva Durga Prasad Paladugu > > Subject: [PATCH v2

[U-Boot] [PATCH v3 22/26] flash: Fix spelling of "ERR_TIMOUT"

2018-01-26 Thread Mario Six
checkpatch.pl complains about the spelling of ERR_TIMOUT. Since the error is only used in a handful of files, we rename the error to ERR_TIMEOUT. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- board/cobra5272/flash.c | 2 +- common/flash.c

[U-Boot] [PATCH v3 24/26] cfi_flash: Fix long lines

2018-01-26 Thread Mario Six
Long lines (>80 characters) should be avoided where possible. Break up some long lines where it's not detrimental to readability. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 31 +++ 1 file change

[U-Boot] Antwort: [PATCH 4/5] Convert CONFIG_SPL_NAND_BASE et al to Kconfig

2018-01-26 Thread Hannes Schmelzer
> Betreff: [PATCH 4/5] Convert CONFIG_SPL_NAND_BASE et al to Kconfig > > This converts the following to Kconfig: >CONFIG_SPL_NAND_BASE >CONFIG_SPL_NAND_LOAD >CONFIG_SPL_NAND_SOFTECC >CONFIG_SPL_NAND_RAW_ONLY > > Signed-off-by: Adam Ford > --- > configs/brppt1_nand_defconfig

[U-Boot] [PATCH v3 13/26] cfi_flash: Add missing braces in blocks

2018-01-26 Thread Mario Six
In if/else statements, either both blocks (if and else) should have braces or both blocks should not have braces, but mixed configurations are discouraged. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/

[U-Boot] Antwort: [PATCH 3/5] Convert CONFIG_SPL_NAND_DRIVERS et al to Kconfig

2018-01-26 Thread Hannes Schmelzer
> Datum: 24.01.2018 21:57 > Betreff: [PATCH 3/5] Convert CONFIG_SPL_NAND_DRIVERS et al to Kconfig > > This converts the following to Kconfig: >CONFIG_SPL_NAND_DRIVERS >CONFIG_SPL_NAND_ECC > > Signed-off-by: Adam Ford > --- > configs/brppt1_nand_defconfig| 2 ++ > includ

[U-Boot] [PATCH v3 26/26] cfi_flash: Always define cfi_flash_num_flash_banks

2018-01-26 Thread Mario Six
The variable cfi_flash_num_flash_banks is defined iff CONFIG_SYS_MAX_FLASH_BANKS_DETECT is defined, but it is used unconditionally in the function cfi_flash_init_dm. This leads to a undefined variable compile error when CONFIG_SYS_MAX_FLASH_BANKS_DETECT is not defined, but DM is enabled. Fix this

[U-Boot] [PATCH v3 15/26] cfi_flash: Fix else after break

2018-01-26 Thread Mario Six
If in a loop, the if block in a if/else statement ends in a break, the statements in the else blockcan be extracted, since the break stops the execution. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 6 +++--- 1 file changed,

[U-Boot] [PATCH v3 19/26] cfi_flash: Use u8 pointers instead of void pointers

2018-01-26 Thread Mario Six
According to the C standard, pointer arithmetic for pointers of type void is undefined behavior (the assumption that they're 8-bit wide is a GCC-specific assumption). In the interest of keeping the code standards-compliant, and also better communicate intent, switch all void* variables where pointe

[U-Boot] [PATCH v3 21/26] cfi_flash: Rename camel-case variables

2018-01-26 Thread Mario Six
Camel-case naming should be avoided. Rename two camel-case variables, and fix their usage accordingly. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff -

[U-Boot] [PATCH v3 12/26] cfi_flash: Remove unnecessary braces

2018-01-26 Thread Mario Six
"==" and "!=" bind tighter than the boolean operators, so parentheses around them in compound logical statements are unnecessary. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 48 +

[U-Boot] [PATCH v3 20/26] cfi_flash: Fix strings split across lines

2018-01-26 Thread Mario Six
Strings should not be split accross multiple lines. Where possible and not detrimental to readability, fix the instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 17 - 1 file changed, 8

[U-Boot] [PATCH v3 09/26] cfi_flash: Fix logical continuations

2018-01-26 Thread Mario Six
When splitting long logical statements across multiple lines, the logical operators should be at the end of the lines. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 26 +---

[U-Boot] [PATCH v3 25/26] cfi_flash: Fix indention

2018-01-26 Thread Mario Six
When long expressions surrounded by parentheses are split into multiple lines, each consecutive line should be aligned with the corresponding parenthesis. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/c

[U-Boot] [PATCH v3 01/26] cfi_flash: Fix space between function name and parenthesis

2018-01-26 Thread Mario Six
There should not be a space between a function name and a parenthesis ("func (...)"). Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 428 1

[U-Boot] [PATCH v3 11/26] cfi_flash: Fix comment style

2018-01-26 Thread Mario Six
Comment blocks should end with a "*/" on a separate line, not with the "*/" attached to the end of the last line of text. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 6 -- 1 file cha

[U-Boot] [PATCH v3 05/26] cfi_flash: Fix indent of case statements

2018-01-26 Thread Mario Six
case statements should be at the same level of indent as the switch keyword. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 200 1 file chan

[U-Boot] [PATCH v3 07/26] cfi_flash: Fix missing/superfluous lines

2018-01-26 Thread Mario Six
There should be no consecutive blank lines, and no blank lines at the end of blocks. But there should be blank lines between variable declarations and code. Fix all instances where either occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/m

[U-Boot] [PATCH v3 16/26] cfi_flash: Fix placement of brace

2018-01-26 Thread Mario Six
The opening brace of block statements should be attached to the statement itself, and not be on a separate line. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 08/26] cfi_flash: Remove braces for single-statement blocks

2018-01-26 Thread Mario Six
Blocks with a single statement should not be enclosed in braces. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --

[U-Boot] [PATCH v3 23/26] cfi_flash: Bound-check index before array access

2018-01-26 Thread Mario Six
In a while loop in cfi_flash.c the array "start" is accessed at the index "sector" before the index variable "sector" is bounds-checked, which might lead to accesses beyond the bounds of the array. Swap the order of the checks in the "&&" expression, so that the short-circuit evaluation prevents o

[U-Boot] [PATCH v3 18/26] cfi_flash: Remove assignments from if conditions

2018-01-26 Thread Mario Six
The condition in if statements should not be used for variable assignment. Instead, the assignment should be done in a separate step beforehand. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c

[U-Boot] [PATCH v3 10/26] cfi_flash: Use __func__ macro instead of function name

2018-01-26 Thread Mario Six
printf/debug statements should not include the file name as a hardcoded string, but instead use the __func__ macro. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 2 +- 1 file changed, 1 in

[U-Boot] [PATCH v3 14/26] cfi_flash: Fix spelling of "Unknown"

2018-01-26 Thread Mario Six
"Unkown" should be spelled "Unknown". Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 53842443eb..4c5e156

[U-Boot] [PATCH v3 17/26] cfi_flash: Remove return from void function

2018-01-26 Thread Mario Six
void functions don't need an explicit return at the end. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 7aa379b0d8..d1635

[U-Boot] [PATCH v3 02/26] cfi_flash: Fix style of pointer declarations

2018-01-26 Thread Mario Six
In a pointer declaration there should not be a space between the asterisk and the pointer name. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 48 ---

[U-Boot] [PATCH v3 03/26] cfi_flash: Fix Parenthesis spacing

2018-01-26 Thread Mario Six
There should not be additional spaces when nesting parentheses ("( (...) )"). Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 22 +++--- 1 file changed, 11 insertions(+), 11

[U-Boot] [PATCH v3 04/26] cfi_flash: Fix whitespace with casting

2018-01-26 Thread Mario Six
When casting to a pointer type, the asterisk should be attached to the type name, not separated by a space. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 4 ++-- 1 file changed, 2 insertio

[U-Boot] [PATCH v3 06/26] cfi_flash: Fix spacing around casts/operators

2018-01-26 Thread Mario Six
There should be spaces around operators, and no spaces between a cast and the variable its being applied to. Fix all instances where this occurs. Signed-off-by: Mario Six --- v2 -> v3: * Added proper commit message v1 -> v2: None --- drivers/mtd/cfi_flash.c | 18 +- 1 file cha

Re: [U-Boot] [PATCH 1/1] efi_loader: add a README.iscsi describing booting via iSCSI

2018-01-26 Thread Heinrich Schuchardt
On 01/25/2018 08:39 PM, Duncan Hare wrote: >> - Forwarded Message - >> From: Alexander Graf >> To: Heinrich Schuchardt > >>> The appended README explains how U-Boot and iPXE can be used >>> to boot a diskless system from an iSCSI SAN. >>> >>> The maintainer for README.efi and README.i

Re: [U-Boot] [PATCH 1/4] Kbuild: support W=[N, ]err for passing '-Werror' to the compiler

2018-01-26 Thread Daniel Schwierzeck
Hi Masahiro, On 26.01.2018 02:09, Masahiro Yamada wrote: > Hi Daniel, > > > 2018-01-26 2:21 GMT+09:00 Daniel Schwierzeck : >> Extend the Kbuild's W=N option with an optional 'err' value. This >> will pass -Werror to the compiler to treat all warnings as errors. >> This is useful to enforce a zer

Re: [U-Boot] [RFC PATCH] Allow providing default environment from file

2018-01-26 Thread Sean Nyekjaer
On 24-01-2018 10:55, Rasmus Villemoes wrote: It is sometimes useful to be able to define the entire default environment in an external file. This implements a Kconfig option for allowing that. It is somewhat annoying to have two visible Kconfig options; it would probably be more user-friendly to

[U-Boot] [PATCH 7/7] powerpc/8xx: refactorise reginfo

2018-01-26 Thread Christophe Leroy
reginfo is redundant with some of the commands in immap.c, so move reginfo into that file and remove duplicated info. Signed-off-by: Christophe Leroy --- arch/powerpc/cpu/mpc8xx/Makefile | 1 - arch/powerpc/cpu/mpc8xx/immap.c | 20 2 files changed, 20 insertions(+), 1 dele

[U-Boot] [PATCH 5/7] powerpc/8xx: Change CONFIG_8xx to CONFIG_MPC8xx

2018-01-26 Thread Christophe Leroy
CONFIG_8xx doesn't mean much outside of arch/powerpc. This patch renames it CONFIG_MPC8xx just like CONFIG_MPC85xx etc ... It also rename 8xx_immap.h to immap_8xx.h to be consistent with other file names. Signed-off-by: Christophe Leroy --- api/api_platform-powerpc.c|

[U-Boot] [PATCH 6/7] powerpc/8xx: get rid of the multiple PVR_ values

2018-01-26 Thread Christophe Leroy
None of those values are used at the time being. Just keep one and call it PVR_8xx Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/processor.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/p

  1   2   >