Re: [U-Boot] [RFC 05/11] arm: K3: Introduce System Firmware loader framework

2019-05-20 Thread Chee, Tien Fong
On Thu, 2019-05-16 at 15:54 -0500, Andreas Dannenberg wrote: > Introduce a framework that allows loading the System Firmware (SYSFW) > binary as well as the associated configuration data from an image > tree > blob named "sysfw.itb" from an FS-based boot media using the FS > loader > framework. >

[U-Boot] [PATCH 1/1] cmd: remove unused `display` command

2019-05-20 Thread Heinrich Schuchardt
Compiling the display command leads to an error undefined reference to `display_set' No implementation of display_set() exists in U-Boot. Eliminate the `display` command as well as the accompanying files. Signed-off-by: Heinrich Schuchardt --- cmd/Kconfig| 8 ---

Re: [U-Boot] [RFC 09/11] armv7R: dts: k3: am654: Update for loading SYSFW from MMC

2019-05-20 Thread Chee, Tien Fong
On Thu, 2019-05-16 at 15:54 -0500, Andreas Dannenberg wrote: > From: Lokesh Vutla > > In order to load the sysfw.itb from an MMC device, clocks should be > hard > coded to the same value as ROM configured frequency. Clock updates > cannot > happen at this point as SYSFW is not yet available. So

Re: [U-Boot] [RFC 04/11] misc: fs_loader: Allow initializing blkdev using platform data

2019-05-20 Thread Chee, Tien Fong
On Thu, 2019-05-16 at 15:54 -0500, Andreas Dannenberg wrote: > To give us more flexibility using the FS loader eliminate the need of > always having to use the ENV to configure the block device but rather > allow the respective block device and partition to be setup through > platform data. > >

Re: [U-Boot] [RFC 05/11] arm: K3: Introduce System Firmware loader framework

2019-05-20 Thread Chee, Tien Fong
On Thu, 2019-05-16 at 15:54 -0500, Andreas Dannenberg wrote: > Introduce a framework that allows loading the System Firmware (SYSFW) > binary as well as the associated configuration data from an image > tree > blob named "sysfw.itb" from an FS-based boot media using the FS > loader > framework. >

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-20 Thread Peng Fan
> Subject: Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container > format file > > On 5/21/19 4:55 AM, Peng Fan wrote: > [...] > > > I do not know how other SoC vendor did FIT hardware secure boot, > > please share you have any information. > > The SPL can be in the

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-20 Thread Marek Vasut
On 5/21/19 4:55 AM, Peng Fan wrote: [...] > I do not know how other SoC vendor did FIT hardware secure boot, > please share you have any information. The SPL can be in the custom format, but then can load fitImage with the next stage(s), right ? >>> >>> I am not able to

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-20 Thread Peng Fan
Hi Marek, > Subject: Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container > format file > > On 5/21/19 4:31 AM, Peng Fan wrote: > > Hi Marek, > > > >> Subject: Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX > >> container format file > >> > >> On 5/20/19 3:54 AM, Peng Fan

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-20 Thread Marek Vasut
On 5/21/19 4:31 AM, Peng Fan wrote: > Hi Marek, > >> Subject: Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container >> format file >> >> On 5/20/19 3:54 AM, Peng Fan wrote: >>> Hi Marek, >>> Subject: Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format

Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container format file

2019-05-20 Thread Peng Fan
Hi Marek, > Subject: Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX container > format file > > On 5/20/19 3:54 AM, Peng Fan wrote: > > Hi Marek, > > > >> Subject: Re: [U-Boot] [PATCH 4/6] spl: mmc: support loading i.MX > >> container format file > >> > >> On 5/20/19 3:30 AM, Peng Fan

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

2019-05-20 Thread Tom Rini
On Mon, May 20, 2019 at 01:59:53PM +0200, Mario Six wrote: > Hi Tom, > > The following changes since commit 7eafd61a43b102808dc83066de35a1a51d00330f: > > ihs_mdio: Use new regmap interface (2019-05-20 13:50:35 +0200) > > are available in the Git repository at: > >

[U-Boot] Pull request for mmc sub-system for v2019.07

2019-05-20 Thread Peng Fan
Hi Tom, Please pull mmc-5-20 for v2019.07, this is to avoid break i.MX53 boot. Thanks, Peng The following changes since commit e14d9ca4919e5bc987fc628135104f2b2c91af90: Merge git://git.denx.de/u-boot-x86 (2019-05-19 09:42:19 -0400) are available in the Git repository at:

Re: [U-Boot] [PATCH 17/17] spi: Avoid using malloc() in a critical function

2019-05-20 Thread Simon Glass
Hi Urja, On Mon, 20 May 2019 at 10:36, Urja Rannikko wrote: > > Hi Simon, > > On Mon, May 20, 2019 at 7:09 PM Simon Glass wrote: > > > > Hi Urja, > > > Is it possible to add a build-time assert for this somewhere? > I'm not sure, you'd need to check every user of these operations - i > was

Re: [U-Boot] [PATCH 1/2] fdtdec: test: Fix memory leak

2019-05-20 Thread Simon Glass
Hi Thierry, On Mon, 20 May 2019 at 10:05, Thierry Reding wrote: > > From: Thierry Reding > > Free the memory allocated to store the test FDT upon test completion to > avoid leaking the memory. We don't bother cleaning up on test failure > since the code is broken in that case and should be

Re: [U-Boot] [PATCH v2 7/9] configs: migrate ubispl boards to KConfig

2019-05-20 Thread Enric Balletbo Serra
Missatge de Markus Klotzbuecher del dia dc., 15 de maig 2019 a les 15:16: > > From: Markus Klotzbuecher > > Migrate the ubispl configuration for the omap3_igep00x0 and > am335x_igep003x boards to KConfig. Both boards were built with > SOURCE_DATE_EPOCH=0 and found to be equal before and after. >

Re: [U-Boot] RISC-V: Crashes with OpenSBI+U-Boot on the qemu "virt" machine

2019-05-20 Thread Atish Patra
On 5/20/19 10:26 AM, Björn Töpel wrote: Waking this thread up, because I'm seeing similar behavior as Karsten -- i.e. the system hangs when launching init. Software: QEMU emulator version 4.0.50 (v4.0.0-576-g6d8e75d41c58) Linux kernel v5.2-rc1, defconfig OpenSBI commit 392749f6338a ("docs: Add

Re: [U-Boot] MMC boot broken on OMAP-L138 LCDK

2019-05-20 Thread Adam Ford
On Mon, May 20, 2019 at 10:00 AM Adam Ford wrote: > > On Mon, May 20, 2019 at 7:38 AM Sekhar Nori wrote: > > > > On 20/05/19 5:55 PM, Adam Ford wrote: > > > What about adding a memset function to the end of spl_board_init() so > > > after arch_cpu_init() is called,and after

[U-Boot] [PATCH] davinci: spl: Create board_init_f for explicit initialization

2019-05-20 Thread Adam Ford
The arch_cpu_init() and preloader_console_init() functions were not getting called until board_init_r() as part of the spl_board_init() functions. This patch explicitly moves these initialization sequences earlier in startup, and now clears BSS per the suggested workflow in the README. This also

Re: [U-Boot] [PATCH 1/1] efi_loader: check device path in InstallMultipleProtocolInterfaces

2019-05-20 Thread Heinrich Schuchardt
On 5/16/19 9:59 PM, Heinrich Schuchardt wrote: > According to the UEFI spec InstallMultipleProtocolInterfaces() must check > if a device path has already been installed. In this case it must return > EFI_ALREADY_STARTED. > > Cf. UEFI SCT II 2.6 A (2017), > 3.3.16

Re: [U-Boot] [PATCH v4 0/4] add command env erase

2019-05-20 Thread Frank Wunderlich
Hi, Just a friendly reminder. Any comments on my patches? Regards Frank Am 28. April 2019 10:51:24 MESZ schrieb Frank Wunderlich : >sometimes it is needed to erase the non-volatile environment >e.g. for boot-up with builtin-environment or after resizing env > >this series add basic

Re: [U-Boot] [PATCH] sun50i: a64: Fix broken A64-Teres-I board config

2019-05-20 Thread Jonas Smedegaard
Quoting Jagan Teki (2019-05-20 19:02:52) > On Mon, May 20, 2019 at 10:03 PM Jagan Teki > wrote: > > > > Patchwork show empty while applying, please look into that. > > Anyway, I have created and applied this change. Oh, I saw this follow-up too late: Please ignore my re-post. Thanks for

[U-Boot] [PATCH v2] sun50i: a64: Fix broken A64-Teres-I board config

2019-05-20 Thread Jonas Smedegaard
Set CONFIG_SPL_TEXT_BASE in teres_i_defconfig, as required since commit f89d6133eef2 ("configs: move CONFIG_SPL_TEXT_BASE to Kconfig"). commit f89d6133eef2 ("configs: move CONFIG_SPL_TEXT_BASE to Kconfig") was accepted before commit 997b857ae31f ("sun50i: a64: Add Olimex A64-Teres-I board initial

Re: [U-Boot] [PATCH v2 5/5] rockchip: rk3328: add rock64-rk3328_defconfig

2019-05-20 Thread Vagrant Cascadian
On 2019-05-20, Matwey V. Kornilov wrote: > пн, 20 мая 2019 г. в 20:11, Vagrant Cascadian : >> >> On 2019-05-19, Matwey V. Kornilov wrote: >> > The ROCK64 is a credit card size SBC based on Rockchip RK3328 >> > Quad-Core ARM Cortex A53. >> > >> > This series allow building u-boot SPL and u-boot.itb

Re: [U-Boot] RISC-V: Crashes with OpenSBI+U-Boot on the qemu "virt" machine

2019-05-20 Thread Björn Töpel
Waking this thread up, because I'm seeing similar behavior as Karsten -- i.e. the system hangs when launching init. Software: QEMU emulator version 4.0.50 (v4.0.0-576-g6d8e75d41c58) Linux kernel v5.2-rc1, defconfig OpenSBI commit 392749f6338a ("docs: Add documentation about dynamic firmware")

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

2019-05-20 Thread Tom Rini
On Mon, May 20, 2019 at 11:55:01AM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from u-boot-i2c.git master > > The following changes since commit 5b4b680cfe29a67171ccbe439c66374cb31faca3: > > Prepare v2019.07-rc2 (2019-05-15 15:58:48 -0400) > > are available in the Git

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

2019-05-20 Thread Tom Rini
On Mon, May 20, 2019 at 09:59:13AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the following Marvell related fix: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list

Re: [U-Boot] [PATCH v5 01/13] m68k: add basic set of devicetrees

2019-05-20 Thread Tom Rini
On Mon, May 20, 2019 at 10:58:26PM +0530, Jagan Teki wrote: > On Fri, Apr 26, 2019 at 8:57 PM Jagan Teki wrote: > > > > On Mon, Apr 22, 2019 at 7:36 PM Tom Rini wrote: > > > > > > On Fri, Apr 19, 2019 at 12:10:39PM +0530, Jagan Teki wrote: > > > > Hi Angelo, > > > > > > > > On Thu, Mar 14, 2019

Re: [U-Boot] [PATCH v5 01/13] m68k: add basic set of devicetrees

2019-05-20 Thread Jagan Teki
On Fri, Apr 26, 2019 at 8:57 PM Jagan Teki wrote: > > On Mon, Apr 22, 2019 at 7:36 PM Tom Rini wrote: > > > > On Fri, Apr 19, 2019 at 12:10:39PM +0530, Jagan Teki wrote: > > > Hi Angelo, > > > > > > On Thu, Mar 14, 2019 at 2:17 AM Angelo Dureghello wrote: > > > > > > > > This patch adds a basic

Re: [U-Boot] [PATCH v2 5/5] rockchip: rk3328: add rock64-rk3328_defconfig

2019-05-20 Thread Matwey V. Kornilov
пн, 20 мая 2019 г. в 20:11, Vagrant Cascadian : > > On 2019-05-19, Matwey V. Kornilov wrote: > > The ROCK64 is a credit card size SBC based on Rockchip RK3328 > > Quad-Core ARM Cortex A53. > > > > This series allow building u-boot SPL and u-boot.itb for Rock64 > > board. The proprietary TPL is

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

2019-05-20 Thread Jagan Teki
Hi Tom, Please pull this PR. Summary: - mpc8xxx spi driver fixes (Mario) - mpc8xxx spi dm conversion (Mario, Jagan) - SPI DM Migration update (Jagan) The following changes since commit 748198cb8d32d41bc35e6f492bac9948f339bece: Revert "Makefile: Prioritize external dtb if defined" (2019-05-19

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

2019-05-20 Thread Jagan Teki
Hi Tom, Please pull this PR. Summary: - H6 WDT reset fix (Clément) - H6 SPL_TEXT_BASE fixes (Clément, Jonas) - NPI-M1+ emac enablment (Emmanuel) The following changes since commit 5b4b680cfe29a67171ccbe439c66374cb31faca3: Prepare v2019.07-rc2 (2019-05-15 15:58:48 -0400) are available in the

Re: [U-Boot] [PATCH v2 5/5] rockchip: rk3328: add rock64-rk3328_defconfig

2019-05-20 Thread Vagrant Cascadian
On 2019-05-19, Matwey V. Kornilov wrote: > The ROCK64 is a credit card size SBC based on Rockchip RK3328 > Quad-Core ARM Cortex A53. > > This series allow building u-boot SPL and u-boot.itb for Rock64 > board. The proprietary TPL is stil required for deploy: > > ./tools/mkimage -n rk3328 -T rksd

Re: [U-Boot] [PATCH 0/4] fs: fat: fixes for write under root directory

2019-05-20 Thread Heinrich Schuchardt
On 5/13/19 7:49 AM, AKASHI Takahiro wrote: > This patch set contains three (independent) bug fixes relating to > write operations to root directory. See each commit message > for more details. > > Without those fixes, you may lose files that you created under root > directory or will see the file

Re: [U-Boot] [PATCH] sun50i: a64: Fix broken A64-Teres-I board config

2019-05-20 Thread Jagan Teki
On Mon, May 20, 2019 at 10:03 PM Jagan Teki wrote: > > Patchwork show empty while applying, please look into that. Anyway, I have created and applied this change. ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] sun50i: h6: Fix Beelink GS1 board config

2019-05-20 Thread Jagan Teki
On Mon, May 20, 2019 at 10:14 PM Clément Péron wrote: > > Hi Jagan, > > > On Mon, 20 May 2019 at 18:38, Jagan Teki wrote: > > > > On Mon, May 20, 2019 at 10:07 PM Clément Péron wrote: > > > > > > Hi Jagan, > > > > > > On Mon, 20 May 2019 at 18:34, Jagan Teki > > > wrote: > > > > > > > > On

Re: [U-Boot] [PATCH v2 00/19] spi: Convert MPC8XXX to DM

2019-05-20 Thread Jagan Teki
On Mon, Apr 29, 2019 at 1:59 AM Jagan Teki wrote: > > This would be next version mpc8xxx dm conversion. > > No functional changes in v2 apart from rebase, and this would > merge soon. > > Changes for v2: > - rebase on master > - patch for SPI MIGRATION status > > Any inputs? > Jagan. > > Jagan

Re: [U-Boot] [PATCH] sun50i: h6: Fix Beelink GS1 board config

2019-05-20 Thread Clément Péron
Hi Jagan, On Mon, 20 May 2019 at 18:38, Jagan Teki wrote: > > On Mon, May 20, 2019 at 10:07 PM Clément Péron wrote: > > > > Hi Jagan, > > > > On Mon, 20 May 2019 at 18:34, Jagan Teki wrote: > > > > > > On Tue, May 14, 2019 at 11:56 PM wrote: > > > > > > > > From: Clément Péron > > > > > > >

Re: [U-Boot] [PATCH] sun50i: h6: Fix Beelink GS1 board config

2019-05-20 Thread Jagan Teki
On Mon, May 20, 2019 at 10:07 PM Clément Péron wrote: > > Hi Jagan, > > On Mon, 20 May 2019 at 18:34, Jagan Teki wrote: > > > > On Tue, May 14, 2019 at 11:56 PM wrote: > > > > > > From: Clément Péron > > > > > > SPL_TEXT_BASE has been moved to Kconfig with commit: > > > f89d6133ee configs:

Re: [U-Boot] [linux-sunxi] [PATCH v3 3/3] arm: sunxi: h6: fix reset using r_wdog

2019-05-20 Thread Jagan Teki
On Tue, May 14, 2019 at 8:38 PM Clément Péron wrote: > > Hi Jagan, > > On Tue, 14 May 2019 at 15:49, Jagan Teki wrote: > > > > On Wed, Apr 17, 2019 at 11:11 PM Clément Péron wrote: > > > > > > WDOG is broken for some H6 rev. The board is not > > > reseted correctly. > > > > > > Use the R_WDOG

Re: [U-Boot] [PATCH] sun50i: h6: Fix Beelink GS1 board config

2019-05-20 Thread Clément Péron
Hi Jagan, On Mon, 20 May 2019 at 18:34, Jagan Teki wrote: > > On Tue, May 14, 2019 at 11:56 PM wrote: > > > > From: Clément Péron > > > > SPL_TEXT_BASE has been moved to Kconfig with commit: > > f89d6133ee configs: move CONFIG_SPL_TEXT_BASE to Kconfig > > > > But Beelink GS1 config file has

Re: [U-Boot] [PATCH 17/17] spi: Avoid using malloc() in a critical function

2019-05-20 Thread Urja Rannikko
Hi Simon, On Mon, May 20, 2019 at 7:09 PM Simon Glass wrote: > > Hi Urja, > Is it possible to add a build-time assert for this somewhere? I'm not sure, you'd need to check every user of these operations - i was going to suggest just bailing out with an error code or a runtime assert, and going

Re: [U-Boot] [PATCH] sun50i: h6: Fix Beelink GS1 board config

2019-05-20 Thread Jagan Teki
On Tue, May 14, 2019 at 11:56 PM wrote: > > From: Clément Péron > > SPL_TEXT_BASE has been moved to Kconfig with commit: > f89d6133ee configs: move CONFIG_SPL_TEXT_BASE to Kconfig > > But Beelink GS1 config file has been introduced in the > same time without this modification. > > Fix this by

Re: [U-Boot] [PATCH] sun50i: a64: Fix broken A64-Teres-I board config

2019-05-20 Thread Jagan Teki
Patchwork show empty while applying, please look into that. On Mon, May 20, 2019 at 12:50 PM Jonas Smedegaard wrote: > > [Adding Jagan as recipient] > > Anything more I can do to get below fix included? > > - Jonas > > Quoting Jonas Smedegaard (2019-05-14 14:14:52) > > Set CONFIG_SPL_TEXT_BASE

[U-Boot] [PATCH] arm: davinci: remove leftover assembly

2019-05-20 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There are no more users of lowlevel_init.S. Remove the file. Suggested-by: Adam Ford Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/Makefile| 4 - arch/arm/mach-davinci/lowlevel_init.S | 692 -- 2 files changed, 696

Re: [U-Boot] [PATCH 0/5] arm: remove leftover code for dm* SoCs

2019-05-20 Thread Bartosz Golaszewski
pon., 20 maj 2019 o 17:39 Adam Ford napisał(a): > > On Mon, Apr 29, 2019 at 11:37 AM Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > Commit 6761946fb716 ("arm: Remove unmaintained davinci boards") removed > > support for certain DaVinci platforms. We still want to support

Re: [U-Boot] [PATCH 5/5] configs: nitrogen6x: Add DM_SPI/DM_SPI_FLASH support

2019-05-20 Thread Troy Kisky
No rush, but any comment on this series ? I still need to take care of CONFIG_DM_SCSI/CONFIG_DM_VIDEO before July. Thanks Troy On 5/8/2019 3:23 PM, Troy Kisky wrote: > Add CONFIG_DM_SPI/CONFIG_DM_SPI_FLASH to all defconfigs whose board is > nitrogen6x. > > mx6qsabrelite_defconfig >

Re: [U-Boot] [PATCH v3 00/11] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-20 Thread Simon Glass
Hi Lukasz, On Sun, 19 May 2019 at 15:03, Lukasz Majewski wrote: > > Hi Simon, > > > Hi Lukasz, > > > > On Sat, 18 May 2019 at 15:28, Lukasz Majewski wrote: > > > > > > Hi Simon, > > > > > > This is not the newest patch set version of CCF (v3 vs. v4), but the > > > comments/issues apply. > > > >

Re: [U-Boot] [PATCH v1 04/10] Makefile: allow dm_mmc without of_control

2019-05-20 Thread Simon Glass
Hi Marcel, On Sun, 19 May 2019 at 18:45, Marcel Ziswiler wrote: > > Allow for CONFIG_DM_MMC with platform data rather than > CONFIG_OF_CONTROL. I don't think we want this. Or put it another way, why do we want this? Can you add a motivation here? Can you use OF_PLATDATA instead? > >

Re: [U-Boot] [PATCH v1 05/10] dm: core: gracefully handle alias seq without of

2019-05-20 Thread Simon Glass
Hi Marcel, On Sun, 19 May 2019 at 18:45, Marcel Ziswiler wrote: > > Gracefully handle alias seq in the platform data rather than OF case. I don't understand why this is needed or what it does. Also if this is changing behaviour, then there should be a test for it. Regards, Simon

Re: [U-Boot] [PATCH 17/17] spi: Avoid using malloc() in a critical function

2019-05-20 Thread Simon Glass
Hi Urja, On Sun, 19 May 2019 at 11:04, Urja Rannikko wrote: > > Hi, > > On Sat, May 18, 2019 at 6:05 PM Simon Glass wrote: > > > > In general we should avoid calling malloc() and free() repeatedly in > > U-Boot lest we turn it into tianocore. In SPL this can make SPI flash > > unusable since

Re: [U-Boot] [PATCH v1 06/10] kconfig: mmc: move pxa_mmc_generic to kconfig

2019-05-20 Thread Simon Glass
On Sun, 19 May 2019 at 18:45, Marcel Ziswiler wrote: > > Move CONFIG_PXA_MMC_GENERIC to Kconfig. > > Signed-off-by: Marcel Ziswiler > > --- > > configs/colibri_pxa270_defconfig | 1 + > configs/zipitz2_defconfig| 1 + > drivers/mmc/Kconfig | 8 >

Re: [U-Boot] [PATCH v2 8/8] dm: doc: add documentation for pre-reloc properties in SPL and TPL

2019-05-20 Thread Simon Glass
On Mon, 20 May 2019 at 07:00, Patrick Delaunay wrote: > > Add documentation for the pre-reloc property in SPL and TPL device-tree: > - u-boot,dm-pre-proper > - u-boot,dm-pre-reloc > - u-boot,dm-spl > - u-boot,dm-tpl > > Signed-off-by: Patrick Delaunay > Reviewed-by: Simon Glass > --- > >

Re: [U-Boot] [PATCH v3 1/7] cmd: part: Add 'number' sub-command

2019-05-20 Thread Roman Stratiienko
Are there any updates of this patch? We need this functionality to retrieve UUID of the partition using it's name. But there are lot of commands that supports only partition index as an argument, so I assume it could be very useful there. This command can be also used alone can be used to find

[U-Boot] [PATCH 2/2] fdtdec: Remove fdt_{addr,size}_unpack()

2019-05-20 Thread Thierry Reding
From: Thierry Reding U-Boot already defines the {upper,lower}_32_bits() macros that have the same purpose. Use the existing macros instead of defining new APIs. Signed-off-by: Thierry Reding --- include/fdtdec.h | 24 lib/fdtdec.c | 8 ++--

[U-Boot] [PATCH 1/2] fdtdec: test: Fix memory leak

2019-05-20 Thread Thierry Reding
From: Thierry Reding Free the memory allocated to store the test FDT upon test completion to avoid leaking the memory. We don't bother cleaning up on test failure since the code is broken in that case and should be fixed, in which case the leak would also go away. Reported-by: Tom Rini

[U-Boot] [PATCH v4 2/2] net: eth-uclass: Support device tree MAC addresses

2019-05-20 Thread Thierry Reding
From: Thierry Reding Add the standard Ethernet device tree bindings (imported from v5.0 of the Linux kernel) and implement support for reading the MAC address for Ethernet devices in the Ethernet uclass. If the "mac-address" property exists, the MAC address will be parsed from that. If that

[U-Boot] [PATCH v4 1/2] net: eth-uclass: Write MAC address to hardware after probe

2019-05-20 Thread Thierry Reding
From: Thierry Reding In order for the device to use the proper MAC address, which can have been configured in the environment prior to the device being registered, ensure that the MAC address is written after the device has been probed. For devices that are registered before the network stack is

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-20 Thread Andre Przywara
On Mon, 20 May 2019 14:34:01 +0800 Andy Yan wrote: Hi, > On 2019/5/19 上午12:26, Simon Glass wrote: > > Hi Andy, > > > > Instead of this could you: > > > > - move ATF? > > All rockchip based arm64 ATF run from the start 64KB of dram as this > will give convenient for kernel manage the memory.

[U-Boot] [PATCH 2/2] arm: dts: ficus: Enable booting from eMMC when using SPL

2019-05-20 Thread Manivannan Sadhasivam
This commits enables booting from eMMC when using SPL on 96Boards Ficus board by adding SDHCI to boot order. Since the SDHCI driver already has the reloc flag, this works straightaway. Signed-off-by: Manivannan Sadhasivam --- arch/arm/dts/rk3399-ficus-u-boot.dtsi | 1 +

[U-Boot] [PATCH 1/2] arm: dts: rock960: Enable booting from eMMC when using SPL

2019-05-20 Thread Manivannan Sadhasivam
This commits enables booting from eMMC when using SPL on 96Boards Rock960 board by adding SDHCI to boot order. Since the SDHCI driver already has the reloc flag, this works straightaway. Signed-off-by: Manivannan Sadhasivam --- arch/arm/dts/rk3399-rock960-u-boot.dtsi | 1 +

Re: [U-Boot] [PATCH 0/5] arm: remove leftover code for dm* SoCs

2019-05-20 Thread Adam Ford
On Mon, Apr 29, 2019 at 11:37 AM Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > Commit 6761946fb716 ("arm: Remove unmaintained davinci boards") removed > support for certain DaVinci platforms. We still want to support the > da850 chips though and I'm currently working on converting

Re: [U-Boot] [PATCH v2 6/8] test: check u-boot properties in SPL device tree

2019-05-20 Thread Simon Glass
Hi Patrick, On Mon, 20 May 2019 at 07:00, Patrick Delaunay wrote: > > Add a test to check the management of the u-boot relocation properties > (fdtgrep result) for platdata generation or device tree SPL generation: > - 'dm-pre-proper' and 'dm-tpl' not included in SPL > - 'dm-pre-reloc' and

Re: [U-Boot] [PATCH v2 5/8] test: move SPL test nodes in test device tree

2019-05-20 Thread Simon Glass
Hi Patrick. On Mon, 20 May 2019 at 07:00, Patrick Delaunay wrote: > > Moves spl-test nodes in test device tree, selected by > the new build option '--device-tree'. Where is this build option? > > This patch also executes the version test (test_000_version) to check > the correct start of the

Re: [U-Boot] [PATCH v2 0/8] fdt: Allow indicating a node is for U-Boot proper only

2019-05-20 Thread Simon Glass
Hi Patrick, On Mon, 20 May 2019 at 07:00, Patrick Delaunay wrote: > > > Hi, > > I create this v2 serie with: > > 1/ documentation update for previous patch >[U-Boot,v2] dm: remove pre reloc properties in SPL and TPL device tree >http://patchwork.ozlabs.org/patch/1081155/ > >PS: Code

Re: [U-Boot] [PATCH v2 2/8] fdt: Allow to use EMBEDDED device tree for SPL

2019-05-20 Thread Simon Glass
Hi Patrick, On Mon, 20 May 2019 at 07:00, Patrick Delaunay wrote: > > U-boot continue to use load DT from file system, this patch avoid U-Boot > an error when U-Boot "Error: Out of memory" when it try to map > gd->fdt_blob (EMBEDDED pointer __dtb_dt_begin is not managed). What is EMBEDDED? Do

Re: [U-Boot] [PATCH v2 1/8] sandbox: add config for SPL boot with devicetree

2019-05-20 Thread Simon Glass
Hi Patrick, On Mon, 20 May 2019 at 07:00, Patrick Delaunay wrote: > > Creates defconfig sandbox_spl_dtb_defconfig, same than > sandbox_spl_defconfig but without CONFIG_SPL_OF_PLATDATA; > to allow SPL compilation: > - OF_HOSTFILE is changed to OF_EMBED. What is this for? Each patch should have a

Re: [U-Boot] [PATCH v4 00/13] clk: Port Linux common clock framework [CCF] to U-boot (tag: 5.0-rc3)

2019-05-20 Thread Simon Glass
Hi Lukasz, On Sun, 19 May 2019 at 08:35, Lukasz Majewski wrote: > > Hi Simon, > > > Hi Lukasz, > > > > On Sat, 18 May 2019 at 14:49, Lukasz Majewski wrote: > > > > > > Hi Simon, > > > > > > > kHi Lukasz, > > > > > > > > On Thu, 16 May 2019 at 16:11, Lukasz Majewski > > > > wrote: > > > > > > >

Re: [U-Boot] [PATCH v2 3/8] sandbox: add option show_of_embedded for spl test

2019-05-20 Thread Simon Glass
Hi Patrick, On Mon, 20 May 2019 at 07:00, Patrick Delaunay wrote: > > Add an option show_of_embedded used in SPL to dump the used device tree. > > Signed-off-by: Patrick Delaunay > --- > > Changes in v2: > - add new option for spl test: show embedded dtb > > arch/sandbox/cpu/spl.c |

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-20 Thread Simon Glass
Hi Andy, On Mon, 20 May 2019 at 00:34, Andy Yan wrote: > > Hi Simon: > > On 2019/5/19 上午12:26, Simon Glass wrote: > > Hi Andy, > > > > Instead of this could you: > > > > - move ATF? > > All rockchip based arm64 ATF run from the start 64KB of dram as this > will give convenient for kernel manage

Re: [U-Boot] [PATCH v2 2/2] cmd: Add 'bcb' command to read/modify/write BCB fields

2019-05-20 Thread Sam Protsenko
Anyway, from my side: Reviewed-by: Sam Protsenko On Mon, May 20, 2019 at 6:16 PM Sam Protsenko wrote: > > Hi Eugeniu, > > > On Mon, May 20, 2019 at 10:23 AM Eugeniu Rosca wrote: > > > > Hi Simon > > cc: Sam, Igor, feel free to correct/augment anything of below > > > > On Sat, May 18, 2019 at

[U-Boot] [PATCH 1/2] mips: mt76xx: Implement new d-cache fix in last_stage_init()

2019-05-20 Thread Stefan Roese
With commit 06985289d452 ("watchdog: Implement generic watchdog_reset() version") the init sequence has changed in arch_misc_init(), resulting in a re-appearance of the d-cache issue on MT7688 boards (e.g. gardena). When this happens, the first (or sometimes later ones as well) TFTP command hangs

[U-Boot] [PATCH 2/2] mips: mt76xx: gardena-smart-gateway: Enable CONFIG_USE_PREBOOT

2019-05-20 Thread Stefan Roese
Enable CONFIG_USE_PREBOOT on for the gardena mt7688 platforms, so that this feature can be used here. Signed-off-by: Stefan Roese Cc: Daniel Schwierzeck --- configs/gardena-smart-gateway-mt7688-ram_defconfig | 1 + configs/gardena-smart-gateway-mt7688_defconfig | 1 + 2 files changed, 2

Re: [U-Boot] [PATCH v2 2/2] cmd: Add 'bcb' command to read/modify/write BCB fields

2019-05-20 Thread Sam Protsenko
Hi Eugeniu, On Mon, May 20, 2019 at 10:23 AM Eugeniu Rosca wrote: > > Hi Simon > cc: Sam, Igor, feel free to correct/augment anything of below > > On Sat, May 18, 2019 at 10:33:02AM -0600, Simon Glass wrote: > > Hi Eugeniu, > > > > On Fri, 17 May 2019 at 08:46, Eugeniu Rosca wrote: > > > > > >

Re: [U-Boot] [PATCH v2 1/2] include: android_bootloader_message.h: Minimize the diff to AOSP

2019-05-20 Thread Sam Protsenko
Reviewed-by: Sam Protsenko On Fri, May 17, 2019 at 5:46 PM Eugeniu Rosca wrote: > > Perform the following updates: > - Relocate the commit id from the file to the description of U-Boot >commit. The AOSP commit is c784ce50e8c10eaf70e1f97e24e8324aef45faf5. >This is done to avoid stale

Re: [U-Boot] MMC boot broken on OMAP-L138 LCDK

2019-05-20 Thread Adam Ford
On Mon, May 20, 2019 at 7:38 AM Sekhar Nori wrote: > > On 20/05/19 5:55 PM, Adam Ford wrote: > > What about adding a memset function to the end of spl_board_init() so > > after arch_cpu_init() is called,and after preloader_consol_init() is > > called, we clear BSS? I ran some preliminary tests

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

2019-05-20 Thread Anatolij Gustschin
Hi Tom, please pull video updates for v2019.07-rc3. cx9020 DM_VIDEO migration and splash source patches have been submitted to the list before merge window for v2019.07 closed, so I'm including them with some video fixes here. Travis CI: https://travis-ci.org/vdsao/u-boot-video/builds/534729949

Re: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2

2019-05-20 Thread Jagan Teki
On Mon, May 20, 2019 at 7:37 PM Fabio Estevam wrote: > > Hi Lukasz, > > On Fri, May 17, 2019 at 9:58 AM Lukasz Majewski wrote: > > > I had similar issue on imx53 (hsc). The problem was with not properly > > set GPIO pin by DM/DTS in SPL. The GPIO was responsible for eMMC card > > detect, so the

Re: [U-Boot] Cannot boot mx6qsabred with 2019.07-rc2

2019-05-20 Thread Fabio Estevam
Hi Lukasz, On Fri, May 17, 2019 at 9:58 AM Lukasz Majewski wrote: > I had similar issue on imx53 (hsc). The problem was with not properly > set GPIO pin by DM/DTS in SPL. The GPIO was responsible for eMMC card > detect, so the SPL code after checking this got the impression that the > card is

Re: [U-Boot] [PATCH] Makefile: Prioritize external dtb if defined

2019-05-20 Thread Tom Rini
On Sun, May 19, 2019 at 11:07:03AM -0700, Michal Simek wrote: > On 19. 05. 19 15:15, Marek Vasut wrote: > > On 5/20/19 12:08 AM, Tom Rini wrote: > >> On Mon, May 20, 2019 at 12:03:45AM +0200, Marek Vasut wrote: > >>> On 5/19/19 10:44 PM, Tom Rini wrote: > On Mon, Mar 25, 2019 at 03:55:16PM

Re: [U-Boot] [PATCH v1 10/10] colibri_pxa270_defconfig: enable dm_mmc

2019-05-20 Thread Igor Opaniuk
On Mon, May 20, 2019 at 3:48 AM Marcel Ziswiler wrote: > > Enable CONFIG_DM_MMC. > > Signed-off-by: Marcel Ziswiler > > --- > > configs/colibri_pxa270_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configs/colibri_pxa270_defconfig > b/configs/colibri_pxa270_defconfig >

Re: [U-Boot] [PATCH v1 01/10] mmc: add missing space before comment delimiter

2019-05-20 Thread Igor Opaniuk
On Mon, May 20, 2019 at 3:45 AM Marcel Ziswiler wrote: > > Add missing space before a comment delimiter. > > Signed-off-by: Marcel Ziswiler > > --- > > drivers/mmc/mmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c > index

Re: [U-Boot] [PATCH v1 02/10] mmc: fsl_esdhc: annotate endifs

2019-05-20 Thread Igor Opaniuk
On Mon, May 20, 2019 at 3:46 AM Marcel Ziswiler wrote: > > Annotate endifs to make CONFIG_IS_ENABLED(DM_MMC) or not more obvious. > > Signed-off-by: Marcel Ziswiler > > --- > > drivers/mmc/fsl_esdhc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [U-Boot] [PATCH 1/3] sysreset: switch to using SYSRESET_POWER_OFF for poweroff

2019-05-20 Thread Patrick DELAUNAY
Hi Urja, > > Hi, > > On Thu, May 16, 2019 at 7:44 AM Patrick DELAUNAY > wrote: > > > > Hi Urja, > > > > > - if (type != SYSRESET_POWER) > > > + if (type != SYSRESET_POWER_OFF) > > > return -EPROTONOSUPPORT; > > > > In fact in the next part of the code, we are supporting

Re: [U-Boot] DM for ci_udc

2019-05-20 Thread Adam Ford
On Mon, May 20, 2019 at 7:13 AM Schrempf Frieder wrote: > > Hi Sven, > > On 06.05.19 12:12, Sven Schwermer wrote: > > Hi, > > > > I’m running into linking issues when enabling CONFIG_DM_USB_GADGET with > > CONFIG_CI_UDC because dm_usb_gadget_handle_interrupts is not available. > > That made me

Re: [U-Boot] [PATCH v3 1/7] cmd: part: Add 'number' sub-command

2019-05-20 Thread Igor Opaniuk
+ Roman On Thu, Mar 21, 2019 at 5:42 PM Igor Opaniuk wrote: > > Hi Eugeniu, > > > On Mon, Mar 11, 2019 at 12:42 AM Eugeniu Rosca wrote: > > > > > > Hi Igor, > > > > On Mon, Feb 18, 2019 at 06:21:51PM +0200, Igor Opaniuk wrote: > > > From: Ruslan Trofymenko > > > > > > This sub-command serves

Re: [U-Boot] [PATCH v2 2/3] sysreset: move stm32mp sysreset poweroff implementation to sysreset uclass

2019-05-20 Thread Patrick DELAUNAY
Hi Urja, > > This is a generic implementation. Add CONFIG_SYSRESET_CMD_POWEROFF > to signal when we need it. Enable it from the STPMIC1 config and in sandbox. > > The config flag is transitionary, that is it can be removed after all poweroff > implementations use sysreset, and just have

Re: [U-Boot] [PATCH v2 1/3] sysreset: switch to using SYSRESET_POWER_OFF for poweroff

2019-05-20 Thread Patrick DELAUNAY
Hi Urja, > > It seems that SYSRESET_POWER_OFF was added recently, and all previous > code used SYSRESET_POWER for poweroff. SYSRESET_POWER is supposed > to be a PMIC-level power cycle, not a poweroff. > > Signed-off-by: Urja Rannikko Reviewed-by: Patrick Delaunay For information: complete

[U-Boot] [PATCH v2 0/8] fdt: Allow indicating a node is for U-Boot proper only

2019-05-20 Thread Patrick Delaunay
Hi, I create this v2 serie with: 1/ documentation update for previous patch [U-Boot,v2] dm: remove pre reloc properties in SPL and TPL device tree http://patchwork.ozlabs.org/patch/1081155/ PS: Code is already merged in commit commit c7a88dae997f ("dm: remove pre reloc

[U-Boot] [PATCH v2 6/8] test: check u-boot properties in SPL device tree

2019-05-20 Thread Patrick Delaunay
Add a test to check the management of the u-boot relocation properties (fdtgrep result) for platdata generation or device tree SPL generation: - 'dm-pre-proper' and 'dm-tpl' not included in SPL - 'dm-pre-reloc' and 'dm-spl' included in SPL This patch also executes the version test

[U-Boot] [PATCH v2 5/8] test: move SPL test nodes in test device tree

2019-05-20 Thread Patrick Delaunay
Moves spl-test nodes in test device tree, selected by the new build option '--device-tree'. This patch also executes the version test (test_000_version) to check the correct start of the U-Boot after SPL execution. Signed-off-by: Patrick Delaunay --- Changes in v2: - move all spl test nodes in

[U-Boot] [PATCH v2 8/8] dm: doc: add documentation for pre-reloc properties in SPL and TPL

2019-05-20 Thread Patrick Delaunay
Add documentation for the pre-reloc property in SPL and TPL device-tree: - u-boot,dm-pre-proper - u-boot,dm-pre-reloc - u-boot,dm-spl - u-boot,dm-tpl Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass --- Changes in v2: - rebase on master doc/README.SPL | 16

[U-Boot] [PATCH v2 4/8] test: py: add option to select device tree used during compilation

2019-05-20 Thread Patrick Delaunay
Only used for spl compilation which include the device tree (with platdata or embedded device tree). For U-boot, test use config.dtb, by default : "build_dir + '/arch/sandbox/dts/test.dtb'" Signed-off-by: Patrick Delaunay --- I need to force o_dt = 'all' to avoid make error: make: *** empty

[U-Boot] [PATCH v2 7/8] fdt: Allow indicating a node is for U-Boot proper only

2019-05-20 Thread Patrick Delaunay
This add missing parts for previous commit 06f94461a9f4 ("fdt: Allow indicating a node is for U-Boot proper only") At present it is not possible to specify that a node should be used before relocation (in U-Boot proper) without it also ending up in SPL and TPL device trees. Add a new

[U-Boot] [PATCH v2 3/8] sandbox: add option show_of_embedded for spl test

2019-05-20 Thread Patrick Delaunay
Add an option show_of_embedded used in SPL to dump the used device tree. Signed-off-by: Patrick Delaunay --- Changes in v2: - add new option for spl test: show embedded dtb arch/sandbox/cpu/spl.c | 188 +++ arch/sandbox/cpu/start.c | 9

[U-Boot] [PATCH v2 2/8] fdt: Allow to use EMBEDDED device tree for SPL

2019-05-20 Thread Patrick Delaunay
U-boot continue to use load DT from file system, this patch avoid an error when U-Boot "Error: Out of memory" when it try to map gd->fdt_blob (EMBEDDED pointer __dtb_dt_begin is not managed). Signed-off-by: Patrick Delaunay --- Changes in v2: - solve issue for spl sandbox with dtb

[U-Boot] [PATCH v2 1/8] sandbox: add config for SPL boot with devicetree

2019-05-20 Thread Patrick Delaunay
Creates defconfig sandbox_spl_dtb_defconfig, same than sandbox_spl_defconfig but without CONFIG_SPL_OF_PLATDATA; to allow SPL compilation: - OF_HOSTFILE is changed to OF_EMBED. Signed-off-by: Patrick Delaunay --- Changes in v2: - add sandbox_spl_dtb_defconfig for test

Re: [U-Boot] [PATCH 16/16] mpc83xx: Add gazerbeam board

2019-05-20 Thread Mario Six
On Fri, Mar 29, 2019 at 10:18 AM Mario Six wrote: > > From: Dirk Eibach > > The gdsys gazerbeam board is based on a Freescale MPC8308 SOC. > It boots from NOR-Flash, kernel and rootfs are stored on > SD-Card. > > On board peripherals include: > - 2x 10/100 Mbit/s Ethernet (optional) > >

Re: [U-Boot] MMC boot broken on OMAP-L138 LCDK

2019-05-20 Thread Sekhar Nori
On 20/05/19 5:55 PM, Adam Ford wrote: > What about adding a memset function to the end of spl_board_init() so > after arch_cpu_init() is called,and after preloader_consol_init() is > called, we clear BSS? I ran some preliminary tests on da850evm and it > didn't see to break anything. There are a

Re: [U-Boot] MMC boot broken on OMAP-L138 LCDK

2019-05-20 Thread Adam Ford
On Mon, May 20, 2019 at 4:09 AM Sekhar Nori wrote: > > On 17/05/19 6:34 PM, Adam Ford wrote: > > On Fri, May 17, 2019 at 7:36 AM Sekhar Nori wrote: > >> > >> Hi Adam, > >> > >> MMC/SD boot is broken on OMAP-L138 LCDK. This is since v2018.11. > >> v2018.09 is fine. > >> > >> The first breakage

Re: [U-Boot] [PATCH] drivers: core: use strcmp when find device by name

2019-05-20 Thread Simon Glass
Hi Peng, On Wed, 15 May 2019 at 05:57, Peng Fan wrote: > > Hi Simon, > > > Subject: Re: [PATCH] drivers: core: use strcmp when find device by name > > > > On Sun, 28 Apr 2019 at 03:43, Peng Fan wrote: > > > > > > `if (!strncmp(dev->name, name, strlen(name)))` might find out the > > > wrong

  1   2   >