Re: [U-Boot] [PATCH v3 022/108] x86: timer: Use a separate flag for whether timer is inited

2019-10-28 Thread Bin Meng
On Mon, Oct 21, 2019 at 11:39 AM Simon Glass wrote: > > At present the value of the timer base is used to determine whether the > timer has been set up or not. It is true that the timer is essentially > never exactly 0 when it is read. However 'time 0' may indicate the time > that the machine was

Re: [U-Boot] [PATCH v3 021/108] x86: timer: Set up the timer in timer_early_get_count()

2019-10-28 Thread Bin Meng
On Mon, Oct 21, 2019 at 11:33 AM Simon Glass wrote: > > This function can be called before the timer is set up. Make sure that the > init function is called so that it works correctly. > > This is needed so that bootstage can work correctly in TPL. > > Signed-off-by: Simon Glass > --- > > Changes

Re: [U-Boot] [PATCH v3 025/108] x86: tpl: Add a fake PCI bus

2019-10-28 Thread Bin Meng
On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > In TPL we try to minimise code size so do not include the PCI subsystem. > We can use fixed BARs and drivers can directly program the devices that > they need. > > However we do need to bind the devices on the PCI bus and without PCI this > d

Re: [U-Boot] [PATCH v3 024/108] x86: spl: Support init of a PUNIT

2019-10-28 Thread Bin Meng
On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > The x86 power unit handles power management. Support initing this device > which is modelled as a new type of system controller since there are no > operations needed. > > Signed-off-by: Simon Glass > --- > > Changes in v3: > - Fix 'err-%d'

Re: [U-Boot] [PATCH v3 026/108] x86: timer: Reduce timer code size in TPL on Intel CPUs

2019-10-28 Thread Bin Meng
Hi Simon, On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > Most of the timer-calibration methods are not needed on recent Intel CPUs > and just increase code size. Add an option to use the known-good way to > get the clock frequency in TPL. Size reduction is about 700 bytes. > > Signed-off

Re: [U-Boot] [PATCH v3 028/108] x86: Drop unnecessary interrupt code for TPL

2019-10-28 Thread Bin Meng
Hi Simon, On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > We don't expect an exception in TPL and don't need to print out full > details if one happens. Add a reduced version of the code for TPL. > > Signed-off-by: Simon Glass Can we exclude the whole file from building in TPL? > --- >

Re: [U-Boot] [PATCH v3 029/108] x86: Add a CPU init function for TPL

2019-10-28 Thread Bin Meng
On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > For TPL we only need to set up the features and identify the CPU to a > basic level. Add a function to handle that. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None > > arch/x86/cpu/i386/cpu.c | 8

Re: [U-Boot] [PATCH v3 030/108] x86: Move CPU init to before spl_init()

2019-10-28 Thread Bin Meng
On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > At present we call spl_init() before identifying the CPU. This is not a > good idea - e.g. if bootstage is enabled then it will try to set up the > timer which works better if the CPU is identified. > > Put explicit code at each entry pointer

Re: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL

2019-10-28 Thread Bartosz Golaszewski
pt., 25 paź 2019 o 19:25 Rizvi, Mohammad Faiz Abbas napisał(a): > > Hi Barotz, > It's Bartosz - it's literally on the next line of the e-mail too. :) > On 10/25/2019 9:40 PM, Bartosz Golaszewski wrote: > > czw., 26 wrz 2019 o 01:21 Faiz Abbas napisał(a): > >> > >> Hi, > >> > >> On 29/07/19 12:2

Re: [U-Boot] [PATCH v3 011/108] i2c: Tidy up designware PCI support

2019-10-28 Thread Stefan Roese
On 21.10.19 05:31, Simon Glass wrote: This is hacked into the driver at present. It seems better to have it as a separate driver that uses the base driver. Create a new file and put the X86 code into it. Actually the Baytrail settings should really come from the device tree. Signed-off-by: Simo

Re: [U-Boot] [PATCH v3 0/9] tools: Support building U-Boot host tools for Windows via MSYS2

2019-10-28 Thread Bin Meng
Hi Tom, On Sun, Oct 27, 2019 at 8:20 PM Bin Meng wrote: > > Per current U-Boot README, building Windows versions of the utilities > in the tools directory is done via the MinGW toolchain. But testing > shows that it is broken and actually it must have been broken for > quite a long time. > > Fixi

Re: [U-Boot] [PATCH v3 027/108] x86: Drop unnecessary cpu code for TPL

2019-10-28 Thread Bin Meng
Hi Simon, On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > We don't need to know every detail about the CPU in TPL. Drop some > superfluous functions to reduce code size. Add a simple CPU detection > algorithm which just supports Intel and AMD, since we only support TPL > on Intel, so far.

Re: [U-Boot] [PATCH v3 023/108] x86: timer: Allow a timer base of 0

2019-10-28 Thread Bin Meng
Hi Simon, On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > On some platforms the timer is reset to 0 when the SoC is reset. Having > this as the timer base is useful since it provides an indication of how > long it takes before U-Boot is running. > > When U-Boot sets the timer base to some

[U-Boot] [PATCH] cmd: remove NET and CMD_NET dependency for CMD_PXE

2019-10-28 Thread Patrice Chotard
It allows to use sysboot command on board which have no NET support. Currently, sysboot command can't be used if CMD_NET and NET flags are not set, while sysboot allows to load extlinux.conf file from local filesystem, so it doesn't need to depend of CMD_NET and NET flags. One solution would be t

Re: [U-Boot] [PATCH 5/5] Bring all testings in gitlab and travis CI to Azure Pipelines

2019-10-28 Thread Tom Rini
On Sun, Oct 27, 2019 at 05:28:25AM -0700, Bin Meng wrote: > This expands current Azure Pipelines Windows host tools build > testing to cover all the CI testing in gitlab and travis CI. > > Note for some unknown reason, the 'container' cannot be used for > any jobs that have buildman, for buildman

Re: [U-Boot] [PATCH 4/5] .travis.yml: Remove the unneeded '&' for ls20xx buildman

2019-10-28 Thread Tom Rini
On Sun, Oct 27, 2019 at 05:28:24AM -0700, Bin Meng wrote: > Signed-off-by: Bin Meng Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] cmd: remove NET and CMD_NET dependency for CMD_PXE

2019-10-28 Thread Tom Rini
On Mon, Oct 28, 2019 at 02:23:19PM +0100, Patrice Chotard wrote: > It allows to use sysboot command on board which have no NET support. > > Currently, sysboot command can't be used if CMD_NET and NET flags are > not set, while sysboot allows to load extlinux.conf file from local > filesystem, so

Re: [U-Boot] [PATCH v3 0/9] tools: Support building U-Boot host tools for Windows via MSYS2

2019-10-28 Thread Tom Rini
On Mon, Oct 28, 2019 at 08:34:58PM +0800, Bin Meng wrote: > Hi Tom, > > On Sun, Oct 27, 2019 at 8:20 PM Bin Meng wrote: > > > > Per current U-Boot README, building Windows versions of the utilities > > in the tools directory is done via the MinGW toolchain. But testing > > shows that it is broke

Re: [U-Boot] [RESEND PATCHv1 0/5] support remote system update on Intel Stratix10 SoC

2019-10-28 Thread Richard Gong
Hi Simon, Thanks for your comment. I will move files to driver/firmware. Regards, Richard On 10/24/19 10:00 AM, Simon Goldschmidt wrote: On Thu, Oct 24, 2019 at 4:35 PM wrote: From: Richard Gong The Intel Remote System Update (RSU) provides a way for users to update the QSPI configuratio

[U-Boot] [PATCH 1/2] ARM: dts: imx6qdl: Add device tree support for SolidRun Cubox-i

2019-10-28 Thread Walter Lozano
Import SolidRun Cubox-i device tree files from Linux 5.4 to allow the use of Driver Model and Device Tree. Signed-off-by: Walter Lozano --- arch/arm/dts/Makefile | 2 + arch/arm/dts/imx6dl-cubox-i.dts | 51 + arch/arm/dts/imx6q-cubox-i.dts| 59 ++ arch/a

[U-Boot] [PATCH 2/2] ARM: dts: imx6qdl: Add U-Boot specific device tree files for Cubox-i

2019-10-28 Thread Walter Lozano
To make it easier to sync dts files with Linux add specific tweaks for U-Boot in separate files, specifically allowing SPL to make use of MMC. Signed-off-by: Walter Lozano --- arch/arm/dts/Makefile | 2 ++ arch/arm/dts/imx6dl-cubox-i-u-boot.dts | 20 arch/a

Re: [U-Boot] [PATCH 2/4] fdt: Add Kconfig options to control code size

2019-10-28 Thread Tom Rini
On Sun, Oct 27, 2019 at 12:49:28PM -0600, Simon Glass wrote: > Hi Heinrich, > > On Sun, 27 Oct 2019 at 12:06, Heinrich Schuchardt wrote: > > > > On 10/27/19 4:47 PM, Simon Glass wrote: > > > For better or worse libfdt recent grew a lot of code that checks the > > > validity of the device tree in

Re: [U-Boot] [PATCH 0/4] fdt: Switch to the latest libfdt, sort-of

2019-10-28 Thread Tom Rini
On Sun, Oct 27, 2019 at 09:47:38AM -0600, Simon Glass wrote: > This series brings over the latest libfdt with some changes to deal with > the recent code-size bloat. > > With this change U-Boot size increases about 2.5KB on 'rock' and SPL > reduces by about 128 bytes. This should be acceptable. >

Re: [U-Boot] [RESEND PATCHv1 0/5] support remote system update on Intel Stratix10 SoC

2019-10-28 Thread Simon Goldschmidt
Richard Gong schrieb am Mo., 28. Okt. 2019, 14:58: > Hi Simon, > > Thanks for your comment. > > I will move files to driver/firmware. > Would moving to uclass mailbox fit for these kind of things? Regards, Simon > > Regards, > Richard > > On 10/24/19 10:00 AM, Simon Goldschmidt wrote: > > On

Re: [U-Boot] [PATCH 5/5] Bring all testings in gitlab and travis CI to Azure Pipelines

2019-10-28 Thread Bin Meng
Hi Tom, On Mon, Oct 28, 2019 at 9:44 PM Tom Rini wrote: > > On Sun, Oct 27, 2019 at 05:28:25AM -0700, Bin Meng wrote: > > > This expands current Azure Pipelines Windows host tools build > > testing to cover all the CI testing in gitlab and travis CI. > > > > Note for some unknown reason, the 'con

Re: [U-Boot] [PATCH 2/2] ARM: dts: imx6qdl: Add U-Boot specific device tree files for Cubox-i

2019-10-28 Thread Fabio Estevam
Hi Walter, On Mon, Oct 28, 2019 at 11:01 AM Walter Lozano wrote: > > To make it easier to sync dts files with Linux add specific tweaks > for U-Boot in separate files, specifically allowing SPL to make use > of MMC. > > Signed-off-by: Walter Lozano It seems you missed to add CONFIG_OF_CONTROL=y

Re: [U-Boot] [PATCH 5/5] Bring all testings in gitlab and travis CI to Azure Pipelines

2019-10-28 Thread Tom Rini
On Mon, Oct 28, 2019 at 10:08:33PM +0800, Bin Meng wrote: > Hi Tom, > > On Mon, Oct 28, 2019 at 9:44 PM Tom Rini wrote: > > > > On Sun, Oct 27, 2019 at 05:28:25AM -0700, Bin Meng wrote: > > > > > This expands current Azure Pipelines Windows host tools build > > > testing to cover all the CI testi

[U-Boot] [PATCH v2 1/5] tools: buildman: Honor output directory when generating boards.cfg

2019-10-28 Thread Bin Meng
buildman always generates boards.cfg in the U-Boot source tree. When '-o' is given, we should generate boards.cfg to the given output directory. Signed-off-by: Bin Meng --- Changes in v2: None tools/buildman/control.py | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --gi

[U-Boot] [PATCH v2 0/5] Bring all testings in gitlab and travis CI to Azure Pipelines

2019-10-28 Thread Bin Meng
At present we have set up a Microsoft Azure Pipelines to build U-Boot host tools for Windows. We can expand it to cover all the CI testing in gitlab and travis CI. There are issues if we use the 'container' keyword in the pipeline, that buildman seems to not able to exit correctly and hangs foreve

[U-Boot] [PATCH v2 3/5] arm: mvebu: Avoid generating kwbimage.cfg in the source tree

2019-10-28 Thread Bin Meng
At present some boards generate kwbimage.cfg in the source tree during the build. This breaks buildman testing on some systems where the source tree is read-only. Update makefile rules to generate it in the build tree instead. Note some other boards have the kwbimage.cfg file written in advance, h

[U-Boot] [PATCH v2 2/5] tools: buildman: Remove useless mkdir() in Make() in test.py

2019-10-28 Thread Bin Meng
In the 'Make' function, the codes tries to create a directory if current stage is 'build'. But the directory isn't used at all anywhere. Signed-off-by: Bin Meng --- Changes in v2: - remove the unneeded debug codes tools/buildman/test.py | 8 1 file changed, 8 deletions(-) diff --git

[U-Boot] [PATCH v2 5/5] Bring all testings in gitlab and travis CI to Azure Pipelines

2019-10-28 Thread Bin Meng
This expands current Azure Pipelines Windows host tools build testing to cover all the CI testing in gitlab and travis CI. Note for some unknown reason, the 'container' cannot be used for any jobs that have buildman, for buildman does not exit properly and hangs the job forever. As a workaround, w

[U-Boot] [PATCH v2 4/5] .travis.yml: Remove the unneeded '&' for ls20xx buildman

2019-10-28 Thread Bin Meng
Signed-off-by: Bin Meng Reviewed-by: Tom Rini --- Changes in v2: None .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a3e7451..3aaed93 100644 --- a/.travis.yml +++ b/.travis.yml @@ -200,7 +200,7 @@ matrix: - BUILDMAN="fre

Re: [U-Boot] [RESEND PATCHv1 0/5] support remote system update on Intel Stratix10 SoC

2019-10-28 Thread Richard Gong
Hi Simon, On 10/28/19 9:05 AM, Simon Goldschmidt wrote: Richard Gong > schrieb am Mo., 28. Okt. 2019, 14:58: Hi Simon, Thanks for your comment. I will move files to driver/firmware. Would moving to uclass mailbox fit for these kind of thin

[U-Boot] [PATCH 00/10] GE boards initial DM conversion

2019-10-28 Thread Robert Beckett
This searies syncs the device trees from Linux, fixes a couple of issues and starts enabling DM features for GE boards. Denis Zalevskiy (2): configs: ppd: DM for USB and regulators PPD board: ge: bx50v3: Enable DM for PCI and ethernet Ian Ray (4): configs: bx50v3: Fix boot hang with video

[U-Boot] [PATCH 01/10] board: ge: bx50v3: sync devicetrees from Linux

2019-10-28 Thread Robert Beckett
Copy device trees from linux, keeping them as separate files for each board to ease future sync. Update board code to use generic bx50v3 dt initially, then select the specific dt based on board detection. Signed-off-by: Robert Beckett --- arch/arm/dts/Makefile | 7 +- arch/arm/dts/i

[U-Boot] [PATCH 02/10] board: ge: ppd: sync device tree from Linux

2019-10-28 Thread Robert Beckett
Copy device tree from linux for PPD. Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 1080 +++- 1 file changed, 1061 insertions(+), 19 deletions(-) diff --git a/arch/arm/dts/imx53-ppd.dts b/arch/arm/dts/imx53-ppd.dts index f89d6f4672..8f3864998c 1

[U-Boot] [PATCH 03/10] configs: bx50v3: Fix boot hang with video

2019-10-28 Thread Robert Beckett
From: Ian Ray Fixes commit: 0b09f7b15052bb419e318e38da453be46e5a13e5, which converted to DM_VIDEO, but requires more memory. [Inspired by 9002e735e71754a90adbb9676c0ffb1964dbc288] Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- configs/ge_bx50v3_defconfig | 1 + 1 file changed, 1 i

[U-Boot] [PATCH 05/10] board: ge: bx50v3: Fix message output to video console

2019-10-28 Thread Robert Beckett
From: Ian Ray Use vidconsole for output to the LCD, now that DM_VIDEO is used. Write white text on a black background, like before migrating to DM_VIDEO. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c| 21 ++--- configs/ge_bx50v3_defcon

[U-Boot] [PATCH 06/10] configs: ppd: DM for USB and regulators PPD

2019-10-28 Thread Robert Beckett
From: Denis Zalevskiy DM should be used for USB since 2019.07, it also requires DM for regulators. Signed-off-by: Denis Zalevskiy Signed-off-by: Robert Beckett --- configs/mx53ppd_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx53ppd_defconfig b/configs/mx53ppd_defc

[U-Boot] [PATCH 08/10] board: ge: pass rtc_status via device tree

2019-10-28 Thread Robert Beckett
From: Ian Ray Pass rtc_status via the device tree, instead of on kernel command line. Additionally, the 2038 mitigation is reported, if applied successfully. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c| 7 ++- board/ge/common/ge_common.c | 20 ++

[U-Boot] [PATCH 04/10] board: ge: bx50v3: Fix run-time warning

2019-10-28 Thread Robert Beckett
From: Ian Ray Fix GPIO reservation warning on code paths that do not need LVDS power. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/board/ge/bx50v3/bx50v3.c b/boa

[U-Boot] [PATCH 07/10] board: ge: bx50v3: Enable DM for PCI and ethernet

2019-10-28 Thread Robert Beckett
From: Denis Zalevskiy DM for PCI pulls DM for ethernet that also needs other changes described below to build u-boot and keep existing functionality - ability to update MAC addresses of FEC ethernet adapter and I210 adapter connected to the Marvell switch. - fec_mxc driver with DM needs PHYLIB;

[U-Boot] [PATCH 10/10] board: ge: mx53ppd: use imx wdt

2019-10-28 Thread Robert Beckett
Enable DM imx WDT Enable SYSRESET_WATCHDOG to maintain WDT based reset ability Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd-uboot.dtsi | 12 arch/arm/dts/imx53-ppd.dts| 1 + board/ge/mx53ppd/mx53ppd.c| 1 - configs/mx53ppd_defconfig | 3 +++ 4

[U-Boot] [PATCH 09/10] board: ge: bx50v3: use imx wdt

2019-10-28 Thread Robert Beckett
Enable DM imx WDT Enable SYSRESET_WATCHDOG to maintain WDT based reset ability Signed-off-by: Robert Beckett --- arch/arm/dts/imx6q-bx50v3-uboot.dtsi | 12 arch/arm/dts/imx6q-bx50v3.dtsi | 1 + configs/ge_bx50v3_defconfig | 3 +++ 3 files changed, 16 insertions(+)

Re: [U-Boot] [PATCH 6/9] phy: atheros: fix delay configuration

2019-10-28 Thread Vladimir Oltean
On Sat, 26 Oct 2019 at 03:31, Michael Walle wrote: > > The delay_config() code could only set the delay bit. Thus, it could > only enable the delay mode, but not disable it. To make things worse, > the RX delay mode is enabled by default after a hardware reset, so it > could never be disabled. Fix

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (15.10.2019)

2019-10-28 Thread Lukasz Majewski
Hi Marek, > Hi Marek, > > > On 10/15/19 9:45 AM, Lukasz Majewski wrote: > > > Dear Marek, > > > > Hello Lukasz, > > > > > The following changes since commit > > > 7a779ed1755c2d5011bd9598da90291f759ae760: > > > > > > travis: Exclude MIPS from the bcm job (2019-10-13 11:21:56 > > > -0

[U-Boot] [PATCH 00/10] GE boards initial DM conversion

2019-10-28 Thread Robert Beckett
This searies syncs the device trees from Linux, fixes a couple of issues and starts enabling DM features for GE boards. Denis Zalevskiy (2): configs: ppd: DM for USB and regulators PPD board: ge: bx50v3: Enable DM for PCI and ethernet Ian Ray (4): configs: bx50v3: Fix boot hang with video

[U-Boot] [PATCH 01/10] board: ge: bx50v3: sync devicetrees from Linux

2019-10-28 Thread Robert Beckett
Copy device trees from linux, keeping them as separate files for each board to ease future sync. Update board code to use generic bx50v3 dt initially, then select the specific dt based on board detection. Signed-off-by: Robert Beckett --- arch/arm/dts/Makefile | 7 +- arch/arm/dts/i

[U-Boot] [PATCH 02/10] board: ge: ppd: sync device tree from Linux

2019-10-28 Thread Robert Beckett
Copy device tree from linux for PPD. Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd.dts | 1080 +++- 1 file changed, 1061 insertions(+), 19 deletions(-) diff --git a/arch/arm/dts/imx53-ppd.dts b/arch/arm/dts/imx53-ppd.dts index f89d6f4672..8f3864998c 1

[U-Boot] [PATCH 03/10] configs: bx50v3: Fix boot hang with video

2019-10-28 Thread Robert Beckett
From: Ian Ray Fixes commit: 0b09f7b15052bb419e318e38da453be46e5a13e5, which converted to DM_VIDEO, but requires more memory. [Inspired by 9002e735e71754a90adbb9676c0ffb1964dbc288] Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- configs/ge_bx50v3_defconfig | 1 + 1 file changed, 1 i

[U-Boot] [PATCH 04/10] board: ge: bx50v3: Fix run-time warning

2019-10-28 Thread Robert Beckett
From: Ian Ray Fix GPIO reservation warning on code paths that do not need LVDS power. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/board/ge/bx50v3/bx50v3.c b/boa

[U-Boot] [PATCH 05/10] board: ge: bx50v3: Fix message output to video console

2019-10-28 Thread Robert Beckett
From: Ian Ray Use vidconsole for output to the LCD, now that DM_VIDEO is used. Write white text on a black background, like before migrating to DM_VIDEO. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c| 21 ++--- configs/ge_bx50v3_defcon

[U-Boot] [PATCH 06/10] configs: ppd: DM for USB and regulators PPD

2019-10-28 Thread Robert Beckett
From: Denis Zalevskiy DM should be used for USB since 2019.07, it also requires DM for regulators. Signed-off-by: Denis Zalevskiy Signed-off-by: Robert Beckett --- configs/mx53ppd_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx53ppd_defconfig b/configs/mx53ppd_defc

[U-Boot] [PATCH 08/10] board: ge: pass rtc_status via device tree

2019-10-28 Thread Robert Beckett
From: Ian Ray Pass rtc_status via the device tree, instead of on kernel command line. Additionally, the 2038 mitigation is reported, if applied successfully. Signed-off-by: Ian Ray Signed-off-by: Robert Beckett --- board/ge/bx50v3/bx50v3.c| 7 ++- board/ge/common/ge_common.c | 20 ++

[U-Boot] [PATCH 07/10] board: ge: bx50v3: Enable DM for PCI and ethernet

2019-10-28 Thread Robert Beckett
From: Denis Zalevskiy DM for PCI pulls DM for ethernet that also needs other changes described below to build u-boot and keep existing functionality - ability to update MAC addresses of FEC ethernet adapter and I210 adapter connected to the Marvell switch. - fec_mxc driver with DM needs PHYLIB;

[U-Boot] [PATCH 10/10] board: ge: mx53ppd: use imx wdt

2019-10-28 Thread Robert Beckett
Enable DM imx WDT Enable SYSRESET_WATCHDOG to maintain WDT based reset ability Signed-off-by: Robert Beckett --- arch/arm/dts/imx53-ppd-uboot.dtsi | 12 arch/arm/dts/imx53-ppd.dts| 1 + board/ge/mx53ppd/mx53ppd.c| 1 - configs/mx53ppd_defconfig | 3 +++ 4

[U-Boot] [PATCH 09/10] board: ge: bx50v3: use imx wdt

2019-10-28 Thread Robert Beckett
Enable DM imx WDT Enable SYSRESET_WATCHDOG to maintain WDT based reset ability Signed-off-by: Robert Beckett --- arch/arm/dts/imx6q-bx50v3-uboot.dtsi | 12 arch/arm/dts/imx6q-bx50v3.dtsi | 1 + configs/ge_bx50v3_defconfig | 3 +++ 3 files changed, 16 insertions(+)

Re: [U-Boot] [PATCH] usb: ehci: add ehci max xfer size ehci config entry

2019-10-28 Thread Robert Hancock
On 2019-10-25 8:30 a.m., Gilles DOFFE wrote: > Some USB sticks cannot handle SIZE_MAX bytes (65535) blocks transfer, > leading to 'EHCI timed out on TD' errors. > As it is hardly predictable, this commit adds a configuration option > to easily reduce this EHCI max transfer size. The default value i

[U-Boot] [PATCH 2/3] dm: i2c: EEPROM simulator allow tests visibility of addr and offset

2019-10-28 Thread Robert Beckett
Improve i2c EEPROM simulator testing by providing access functions to check the previous chip addr and offset. Given that we can now directly test the offsets, also simplified the offset mapping and allow for wrapping acceses. Signed-off-by: Robert Beckett --- arch/sandbox/include/asm/test.h |

[U-Boot] [PATCH 0/3] i2c: add support for offset overflow in to chip address

2019-10-28 Thread Robert Beckett
Add support for devices that can overflow the offset in to the chip address. This makes the devices effectively steal consecutive chip addresses. Also improve i2c testing and add new test for this new addressing mode. Robert Beckett (3): i2c: add support for offset overflow in to address dm:

[U-Boot] [PATCH 3/3] dm: i2c: EEPROM simulator add tests for addr offset mask

2019-10-28 Thread Robert Beckett
Add support for setting the chip address offset mask to EEPROM sumulator and add tests to test it. Signed-off-by: Robert Beckett --- arch/sandbox/include/asm/test.h | 3 ++ drivers/misc/i2c_eeprom_emul.c | 19 +++--- test/dm/i2c.c | 64 +

[U-Boot] [PATCH 1/3] i2c: add support for offset overflow in to address

2019-10-28 Thread Robert Beckett
Some devices (2 wire eeproms for example) use some bits from the chip address to represent the high bits of the offset instead of or as well as using multiple bytes for the offset, effectively stealing chip addresses on the bus. Add a chip offset mask that can be set for any i2c chip which gets fi

[U-Boot] [PATCH V4] pytest: add a new test for aes

2019-10-28 Thread Philippe Reynes
This commit add a simple test to check that a text may be ciphered and unciphered. Each step are checked with the known result. Signed-off-by: Philippe Reynes --- test/py/tests/test_aes.py | 101 ++ 1 file changed, 101 insertions(+) create mode 100644

[U-Boot] [PATCH 1/2] misc: i2c_eeprom: add fixed partitions support

2019-10-28 Thread Robert Beckett
Add ability to partition eeprom via devicetree bindings Signed-off-by: Robert Beckett --- drivers/misc/i2c_eeprom.c | 98 +++ 1 file changed, 98 insertions(+) diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c index 8f2349ad5a..7add8fcc0f 100

[U-Boot] [PATCH 2/2] misc: i2c_eeprom: add size query

2019-10-28 Thread Robert Beckett
Add ability to query size of eeprom device and partitions Signed-off-by: Robert Beckett --- drivers/misc/i2c_eeprom.c | 145 +- include/i2c_eeprom.h | 12 2 files changed, 138 insertions(+), 19 deletions(-) diff --git a/drivers/misc/i2c_eeprom.c b

[U-Boot] [PATCH 0/2] misc: i2c_eeprom: add paritioning and size query

2019-10-28 Thread Robert Beckett
Add ability to specify paritions for eeprom in device tree, and query eeprom device sizes. Each partition creates a child device, allowing board code to find the eeprom parition by name. Robert Beckett (2): misc: i2c_eeprom: add fixed partitions support misc: i2c_eeprom: add size query driv

[U-Boot] [PATCH] bootcount: add a DM i2c eeprom backing store for bootcount

2019-10-28 Thread Robert Beckett
This driver allows the use of i2c eeprom device or partition as backing store for boot counter values with DM enabled. Signed-off-by: Robert Beckett --- drivers/bootcount/Kconfig | 10 drivers/bootcount/Makefile | 1 + drivers/bootcount/i2c-eeprom.c | 95 +

[U-Boot] [PATCH] rtc: rx8010sj: fix DM initialization

2019-10-28 Thread Robert Beckett
pass the udevice by reference instead of double ref Signed-off-by: Robert Beckett --- drivers/rtc/rx8010sj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rx8010sj.c b/drivers/rtc/rx8010sj.c index 81560e16ce..2876692a37 100644 --- a/drivers/rtc/rx8010sj.c +++ b

[U-Boot] [PATCH] rtc: s35392a: add compatible strings

2019-10-28 Thread Robert Beckett
Add compatible strings used by Linux. Allows for simpler syncing of device trees. Signed-off-by: Robert Beckett --- drivers/rtc/s35392a.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/s35392a.c b/drivers/rtc/s35392a.c index 844f1b72c7..4f478ccfd7 100644 --- a/drivers/rtc/s35

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (15.10.2019)

2019-10-28 Thread Marek Vasut
On 10/28/19 5:51 PM, Lukasz Majewski wrote: > Hi Marek, Hi, >> Hi Marek, >> >>> On 10/15/19 9:45 AM, Lukasz Majewski wrote: Dear Marek, >>> >>> Hello Lukasz, >>> The following changes since commit 7a779ed1755c2d5011bd9598da90291f759ae760: travis: Exclude MIPS f

Re: [U-Boot] [PATCH] usb: ehci: add ehci max xfer size ehci config entry

2019-10-28 Thread Marek Vasut
On 10/28/19 6:35 PM, Robert Hancock wrote: > On 2019-10-25 8:30 a.m., Gilles DOFFE wrote: >> Some USB sticks cannot handle SIZE_MAX bytes (65535) blocks transfer, >> leading to 'EHCI timed out on TD' errors. >> As it is hardly predictable, this commit adds a configuration option >> to easily reduce

Re: [U-Boot] [GIT] Pull request: u-boot-dfu (15.10.2019)

2019-10-28 Thread Lukasz Majewski
Hi Marek, > On 10/28/19 5:51 PM, Lukasz Majewski wrote: > > Hi Marek, > > Hi, > > >> Hi Marek, > >> > >>> On 10/15/19 9:45 AM, Lukasz Majewski wrote: > Dear Marek, > >>> > >>> Hello Lukasz, > >>> > The following changes since commit > 7a779ed1755c2d5011bd9598da9

Re: [U-Boot] [PATCH v2 2/5] sifive: fu540: Enable OF_SEPARATE

2019-10-28 Thread Rick Chen
Hi Jagan Please check the following typos. Or if you don't mind. I can fix it directly on the patches. :) > From: Jagan Teki [mailto:ja...@amarulasolutions.com] > Sent: Wednesday, October 16, 2019 10:58 PM > To: Rick Jian-Zhi Chen(陳建志); Paul Walmsley; Palmer Dabbelt; Anup Patel; > Atish Patra; Bi

Re: [U-Boot] [PATCH v2 1/8] image: android: Add functions for handling dtb field

2019-10-28 Thread Eugeniu Rosca
Hi Sam, On Wed, Oct 23, 2019 at 05:34:20PM +0300, Sam Protsenko wrote: > Android Boot Image v2 adds "DTB" payload (and corresponding field in the > image header). Provide functions for its handling: I believe this totally new degree of freedom brought by "Android Boot Image v2" might unintentiona

Re: [U-Boot] [PATCH v2 1/5] tools: buildman: Honor output directory when generating boards.cfg

2019-10-28 Thread Simon Glass
Hi Bin, On Mon, 28 Oct 2019 at 08:25, Bin Meng wrote: > > buildman always generates boards.cfg in the U-Boot source tree. > When '-o' is given, we should generate boards.cfg to the given > output directory. > > Signed-off-by: Bin Meng > --- > > Changes in v2: None > > tools/buildman/control.py

Re: [U-Boot] [PATCH 0/4] fdt: Switch to the latest libfdt, sort-of

2019-10-28 Thread Simon Glass
Hi Tom, On Mon, 28 Oct 2019 at 08:04, Tom Rini wrote: > > On Sun, Oct 27, 2019 at 09:47:38AM -0600, Simon Glass wrote: > > > This series brings over the latest libfdt with some changes to deal with > > the recent code-size bloat. > > > > With this change U-Boot size increases about 2.5KB on 'rock

Re: [U-Boot] [PATCH v2 3/5] arm: mvebu: Avoid generating kwbimage.cfg in the source tree

2019-10-28 Thread Simon Glass
On Mon, 28 Oct 2019 at 08:25, Bin Meng wrote: > > At present some boards generate kwbimage.cfg in the source tree > during the build. This breaks buildman testing on some systems > where the source tree is read-only. Update makefile rules to > generate it in the build tree instead. > > Note some o

Re: [U-Boot] [PATCH v2 4/5] .travis.yml: Remove the unneeded '&' for ls20xx buildman

2019-10-28 Thread Simon Glass
On Mon, 28 Oct 2019 at 08:25, Bin Meng wrote: > > Signed-off-by: Bin Meng > Reviewed-by: Tom Rini > --- > > Changes in v2: None > > .travis.yml | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass > diff --git a/.travis.yml b/.travis.yml _

Re: [U-Boot] [PATCH v2 2/5] tools: buildman: Remove useless mkdir() in Make() in test.py

2019-10-28 Thread Simon Glass
Hi Bin, On Mon, 28 Oct 2019 at 08:25, Bin Meng wrote: > > In the 'Make' function, the codes tries to create a directory > if current stage is 'build'. But the directory isn't used at > all anywhere. > > Signed-off-by: Bin Meng > > --- > > Changes in v2: > - remove the unneeded debug codes > > t

Re: [U-Boot] [RFC 06/15] secure boot: rename CONFIG_SECURE_BOOT

2019-10-28 Thread AKASHI Takahiro
Priyanka, Stefano and Tom, On Wed, Sep 25, 2019 at 04:19:43AM +, Priyanka Jain wrote: > > > >-Original Message- > >From: Stefano Babic > >Sent: Thursday, September 19, 2019 8:40 PM > >To: Tom Rini ; AKASHI Takahiro > >; Priyanka Jain ; > >Stefano Babic > >Cc: xypron.g...@gmx.de; ag

Re: [U-Boot] [PATCH 20/30] ti: am654: Drop duplicate dm.h inclusion

2019-10-28 Thread Lokesh Vutla
On 27/10/19 9:24 PM, Simon Glass wrote: > We only need to include this header once. Drop the duplicate. > > Signed-off-by: Simon Glass Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > --- > > drivers/ram/k3-am654-ddrss.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drive

[U-Boot] [PATCH v2 0/6] rsa: extend rsa_verify() for UEFI secure boot

2019-10-28 Thread AKASHI Takahiro
# Please note that this patch set is based on v2 of my "importing # x509/pkcs7 parsers from linux" patch[2] and will have to be updated # due to remval of test/lib/Kconfig once v3 or later is submitted. # The needed change is trivial, though. The current rsa_verify() requires five parameters for a

[U-Boot] [PATCH v2 2/6] rsa: add RSA_VERIFY_WITH_PKEY

2019-10-28 Thread AKASHI Takahiro
In the next couple of commits, under new RSA_VERIFY_WITH_PKEY, rsa_verify() will be extended to enable RSA decryption without additional RSA key properties from FIT image, i.e. rr and n0inv. Signed-off-by: AKASHI Takahiro --- lib/rsa/Kconfig | 14 ++ 1 file changed, 14 insertions(+)

[U-Boot] [PATCH v2 3/6] include: image.h: add key info to image_sign_info

2019-10-28 Thread AKASHI Takahiro
For FIT verification, all the properties of a public key come from "control fdt" pointed to by fdt_blob. In UEFI secure boot, on the other hand, a public key is located and retrieved from dedicated signature database stored as UEFI variables. Added two fields may hold values of a public key if fdt

[U-Boot] [PATCH v2 1/6] lib: rsa: decouple rsa from FIT image verification

2019-10-28 Thread AKASHI Takahiro
Introduce new configuration, CONFIG_RSA_VERIFY which will decouple building RSA functions from FIT verification and allow for adding a RSA-based signature verification for other file formats, in particular PE file for UEFI secure boot. Signed-off-by: AKASHI Takahiro --- Kconfig|

[U-Boot] [PATCH v2 5/6] lib: rsa: add rsa_verify_with_pkey()

2019-10-28 Thread AKASHI Takahiro
This function, and hence rsa_verify(), will perform RSA verification with two essential parameters for a RSA public key in contract of rsa_verify_with_keynode(), which requires additional three parameters stored in FIT image. It will be used in implementing UEFI secure boot, i.e. image authenticat

[U-Boot] [PATCH v2 6/6] test: add rsa_verify() unit test

2019-10-28 Thread AKASHI Takahiro
In this patch, a very simple test is added to verify that rsa_verify() using rsa_verify_with_pkey() work correctly. To keep the code simple, all the test data, either public key and verified binary data, are embedded in the source. Signed-off-by: AKASHI Takahiro --- test/lib/Kconfig | 12 +++

[U-Boot] [PATCH v2 4/6] lib: rsa: generate additional parameters for public key

2019-10-28 Thread AKASHI Takahiro
In the current implementation of FIT_SIGNATURE, five parameters for a RSA public key are required while only two of them are essential. (See rsa-mod-exp.h and uImage.FIT/signature.txt) This is a result of considering relatively limited computer power and resources on embedded systems, while such a