Re: [U-Boot] [PATCH] binman: Explicitly request python2 instead of python from env

2017-02-22 Thread Jonathan Gray
On Mon, Feb 20, 2017 at 07:41:34PM +0100, Paul Kocialkowski wrote: > We now live in a world where python cannot be assumed to be python2. > As a matter of fact, it is no longer the default for python on many > GNU/Linux distributions. > > Running binman with python3 fails, so explicitly request

Re: [U-Boot] am335x: musb: mass storage device issue

2017-02-13 Thread Jonathan Gray
On Mon, Feb 13, 2017 at 04:02:31PM +0100, Yegor Yefremov wrote: > On Mon, Feb 13, 2017 at 3:17 PM, Belisko Marek > wrote: > > Hi Yegor, > > > > On Mon, Feb 13, 2017 at 12:57 PM, Yegor Yefremov > > wrote: > >> > >> My am335x based board

Re: [U-Boot] [PATCH 1/2] rsa: Fix build with OpenSSL 1.1.x

2017-02-15 Thread Jonathan Gray
These version tests should be #if (OPENSSL_VERSION_NUMBER < 0x1010L) || defined(LIBRESSL_VERSION_NUMBER) or better yet have tests based on functionality rather than version. opensslv.h on OpenBSD-current/LibreSSL portable master has /* $OpenBSD: opensslv.h,v 1.39 2017/02/14 03:50:25 bcook

[U-Boot] [PATCH] compiler.h: use system endian macros on OpenBSD

2016-09-03 Thread Jonathan Gray
The u-boot endian macros map directly to system endian macros on OpenBSD. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- include/compiler.h | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/include/compiler.h b/include/compiler.h index 47c296e..6

[U-Boot] [PATCH] image-fit: switch ENOLINK to ENOENT

2016-09-03 Thread Jonathan Gray
ENOLINK is not required by POSIX and does not exist on OpenBSD and likely other systems. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- common/image-fit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/image-fit.c b/common/image-fit.c index d8d4e95..79c0375

Re: [U-Boot] image-fit: switch ENOLINK to ENOENT

2016-09-08 Thread Jonathan Gray
On Wed, Sep 07, 2016 at 02:00:19PM -0400, Tom Rini wrote: > On Sat, Sep 03, 2016 at 08:30:14AM +1000, Jonathan Gray wrote: > > > ENOLINK is not required by POSIX and does not exist on OpenBSD > > and likely other systems. > > > > Signed-off-by: Jonathan Gray <

Re: [U-Boot] image-fit: switch ENOLINK to ENOENT

2016-09-08 Thread Jonathan Gray
On Thu, Sep 08, 2016 at 09:15:45AM -0400, Tom Rini wrote: > On Thu, Sep 08, 2016 at 11:06:34PM +1000, Jonathan Gray wrote: > > On Thu, Sep 08, 2016 at 08:48:53AM -0400, Tom Rini wrote: > > > On Thu, Sep 08, 2016 at 10:01:52PM +1000, Jonathan Gray wrote: > > > > On W

Re: [U-Boot] image-fit: switch ENOLINK to ENOENT

2016-09-08 Thread Jonathan Gray
On Thu, Sep 08, 2016 at 08:48:53AM -0400, Tom Rini wrote: > On Thu, Sep 08, 2016 at 10:01:52PM +1000, Jonathan Gray wrote: > > On Wed, Sep 07, 2016 at 02:00:19PM -0400, Tom Rini wrote: > > > On Sat, Sep 03, 2016 at 08:30:14AM +1000, Jonathan Gray wrote: > > > >

Re: [U-Boot] image-fit: switch ENOLINK to ENOENT

2016-09-08 Thread Jonathan Gray
On Thu, Sep 08, 2016 at 11:17:12AM -0400, Tom Rini wrote: > On Thu, Sep 08, 2016 at 11:53:48PM +1000, Jonathan Gray wrote: > > On Thu, Sep 08, 2016 at 09:15:45AM -0400, Tom Rini wrote: > > > On Thu, Sep 08, 2016 at 11:06:34PM +1000, Jonathan Gray wrote: > > > > On T

Re: [U-Boot] [PATCH] image-fit: switch ENOLINK to ENOENT

2016-09-15 Thread Jonathan Gray
return 0; > else if (rd_noffset < 0) > return 1; > > So, yes, 2016.09 breaks Armada, apparently. The callers of the proposed/rejected kwboot.c errno diff were all checked but the test of the result in the caller of this one seems to have bee

Re: [U-Boot] [PATCH] Revert "image-fit: switch ENOLINK to ENOENT"

2016-09-18 Thread Jonathan Gray
On Sun, Sep 18, 2016 at 03:14:30PM +0200, Marek Vasut wrote: > On 09/17/2016 05:42 AM, Jonathan Gray wrote: > > On Fri, Sep 16, 2016 at 10:21:43PM +0100, Paul Burton wrote: > >> Commit bac17b78dace ("image-fit: switch ENOLINK to ENOENT") changed > >> fit_get_no

Re: [U-Boot] [PATCH] Revert "image-fit: switch ENOLINK to ENOENT"

2016-09-16 Thread Jonathan Gray
INK to > ENOENT"). > > Signed-off-by: Paul Burton <paul.bur...@imgtec.com> > Cc: Jonathan Gray <j...@jsg.id.au> > > --- > > common/image-fit.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/common/image-fit.c b/common/

[U-Boot] kwbimage use after free

2016-10-21 Thread Jonathan Gray
I didn't see a dedicated list to send bug reports so sending it here: There is a use after free in kwbimage, found by building u-boot with the use after free detection enabled with OpenBSD's malloc. When building the clearfog target: MKIMAGE u-boot-spl.kwb Segmentation fault (core dumped)

[U-Boot] [PATCH] compiler.h: use u-boot endian macros on OpenBSD

2016-11-25 Thread Jonathan Gray
and define glibc __BYTE_ORDER __BIG_ENDIAN __LITTLE_ENDIAN names, as at least some parts of the non-cross build assumes those names are present (ie crc32.c). Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- include/compiler.h | 18 -- 1 file changed, 4 insertions(+), 14 del

[U-Boot] [PATCH] relocate-rela: use compiler.h endian macros

2016-12-10 Thread Jonathan Gray
Use the endian macros from u-boot's compiler.h instead of duplicating the definitions. This also avoids a build error on OpenBSD by removing swap64 which collides with a system definition in endian.h pulled in by inttypes.h. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- tools/re

Re: [U-Boot] [PATCH] relocate-rela: use compiler.h endian macros

2016-12-23 Thread Jonathan Gray
Any objections to this? On Sun, Dec 11, 2016 at 02:51:13PM +1100, Jonathan Gray wrote: > Use the endian macros from u-boot's compiler.h instead of duplicating > the definitions. > > This also avoids a build error on OpenBSD by removing swap64 which > collides with a system definit

[U-Boot] [PATCH 1/2] efi_loader: run CreateEvent() notify function based on flags

2017-03-12 Thread Jonathan Gray
. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- include/efi_api.h | 3 +++ lib/efi_loader/efi_boottime.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/efi_api.h b/include/efi_api.h index 5c3836a51b..f071b36b53 100644 --- a/include/efi_api.h

[U-Boot] [PATCH 2/2] efi_loader: check CreateEvent() parameters

2017-03-12 Thread Jonathan Gray
Add some of the invalid parameter checks described in the UEFI specification for CreateEvent(). This does not include checking the validity of the type and tpl parameters. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- lib/efi_loader/efi_boottime.c | 10 ++ 1 file chang

Re: [U-Boot] [linux-sunxi] Re: [PATCH 14/17] sunxi: Pine64: defconfig: enable SPL FIT support

2017-03-04 Thread Jonathan Gray
On Fri, Mar 03, 2017 at 09:55:25AM +, Andre Przywara wrote: > Hi, > > On 03/03/17 09:22, Maxime Ripard wrote: > > On Thu, Mar 02, 2017 at 12:03:20AM +0800, Icenowy Zheng wrote: > >> > >> 2017???3???1??? 23:51??? Maxime Ripard > >> ? > >>> > >>> Hi

Re: [U-Boot] U-boot 2017.07 not working on Raspberry Pi

2017-08-03 Thread Jonathan Gray
On Wed, Aug 02, 2017 at 01:13:30PM +0100, Paul Barker wrote: > I'm currently testing U-boot 2017.07 on Raspberry Pi, both on a Model > B+ and a Raspberry Pi 3. On both devices I'm seeing two issues with > u-boot: > > * U-boot can't boot the Linux kernel, it just hangs at "Starting kernel ...". >

Re: [U-Boot] [RFC] efi_loader: Add test to boot OpenBSD's efi bootloader

2017-08-09 Thread Jonathan Gray
On Sun, Aug 06, 2017 at 03:06:17PM -0400, Rob Clark wrote: > On Sun, Aug 6, 2017 at 2:54 PM, Mark Kettenis wrote: > >> From: Rob Clark > >> Date: Sun, 6 Aug 2017 12:10:28 -0400 > >> > >> Signed-off-by: Rob Clark > >> --- > >>

Re: [U-Boot] [PATCH] Makefile: honor PYTHON configuration properly

2017-08-13 Thread Jonathan Gray
On Sun, Aug 13, 2017 at 11:04:03PM +0200, Cl??ment B??sch wrote: > --- > Makefile | 2 +- > tools/Makefile | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) There is a similiar fragment in scripts/Makefile.spl with the checkdtoc target that should also be fixed. checkdtoc: tools

Re: [U-Boot] [PATCH v3] Makefile: honor PYTHON configuration properly

2017-08-14 Thread Jonathan Gray
d from Python 3. > > Note on the libfdt imports: "@if ! PYTHONPATH=tools $(PYTHON) -c 'import > libfdt'; then..." is probably simpler than the currently sub-optimal > pipe. Reviewed-by: Jonathan Gray <j...@jsg.id.au> This is also helpful for OpenBSD where pyth

Re: [U-Boot] [PATCH] bch: Fix build on FreeBSD host

2017-07-19 Thread Jonathan Gray
On Tue, Jun 20, 2017 at 09:02:29AM +0200, Emmanuel Vadot wrote: > endian.h on FreeBSD system exist in sys/ subdirectory. > FreeBSD already have a fls function defined in strings.h which is included > in string.h if __BSD_VISIBLE is defined, as a check for this. This broke the build of u-boot on

Re: [U-Boot] [PATCH v0 13/20] efi_loader: use proper device-paths for partitions

2017-08-07 Thread Jonathan Gray
On Mon, Aug 07, 2017 at 12:16:54PM -0400, Rob Clark wrote: > On Mon, Aug 7, 2017 at 11:47 AM, Jonathan Gray <j...@jsg.id.au> wrote: > > On Sun, Aug 06, 2017 at 11:34:15AM -0400, Rob Clark wrote: > >> On Sun, Aug 6, 2017 at 10:45 AM, Rob Clark <robdcl...@gmail.com> wro

Re: [U-Boot] [PATCH v0 13/20] efi_loader: use proper device-paths for partitions

2017-08-06 Thread Jonathan Gray
On Sun, Aug 06, 2017 at 11:34:15AM -0400, Rob Clark wrote: > On Sun, Aug 6, 2017 at 10:45 AM, Rob Clark wrote: > > > > I've started trying to hack up test_efi_loader.py to add a test that > > loads OpenBSD's bootloader.. kinda muddling through it at this point, > > since not

Re: [U-Boot] [PATCH v0 13/20] efi_loader: use proper device-paths for partitions

2017-08-07 Thread Jonathan Gray
On Sun, Aug 06, 2017 at 11:34:15AM -0400, Rob Clark wrote: > On Sun, Aug 6, 2017 at 10:45 AM, Rob Clark wrote: > > > > I've started trying to hack up test_efi_loader.py to add a test that > > loads OpenBSD's bootloader.. kinda muddling through it at this point, > > since not

Re: [U-Boot] [PATCH 2/2] mx6cuboxi: Add support for sata

2017-05-15 Thread Jonathan Gray
On Mon, May 15, 2017 at 06:24:46PM +0100, Peter Robinson wrote: > The Cubox-i and Hummingboard series of devices have an option of > SATA on board, and depending on how the fuses are blown even the > option to boot SPL from SATA. So enable support for it so it can > be used to boot the OS from if

Re: [U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case

2017-10-04 Thread Jonathan Gray
On Wed, Oct 04, 2017 at 01:12:48PM -0400, Rob Clark wrote: > On Wed, Oct 4, 2017 at 12:29 PM, Fabio Estevam wrote: > > Since commit ff98cb90514d ("part: extract MBR signature from partitions") > > SPL boot on i.MX6 starts to fail: > > > > U-Boot SPL 2017.09-00221-g0d6ab32

Re: [U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case

2017-10-08 Thread Jonathan Gray
On Sun, Oct 08, 2017 at 09:56:15AM -0300, Fabio Estevam wrote: > On Sat, Oct 7, 2017 at 10:06 PM, Jonathan Gray <j...@jsg.id.au> wrote: > > > I wonder if you have the same kind of fat filesystem. > > No, I have only used ext4 file system. > > > Can you try wr

Re: [U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case

2017-10-07 Thread Jonathan Gray
On Sat, Oct 07, 2017 at 02:46:04PM -0300, Fabio Estevam wrote: > Hi Jonathan, > > On Thu, Oct 5, 2017 at 1:36 AM, Jonathan Gray <j...@jsg.id.au> wrote: > > > This does not seem to be a complete fix, cubox is still broken when > > U-Boot proper loads, unless the e

Re: [U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case

2017-10-06 Thread Jonathan Gray
On Fri, Oct 06, 2017 at 08:21:26AM -0400, Rob Clark wrote: > On Fri, Oct 6, 2017 at 12:35 AM, Jonathan Gray <j...@jsg.id.au> wrote: > > On Thu, Oct 05, 2017 at 05:05:49AM -0400, Rob Clark wrote: > >> On Thu, Oct 5, 2017 at 12:36 AM, Jonathan Gray <j...@jsg.id.au> wrot

[U-Boot] [PATCH] fs/fat: fix unaligned access regression

2017-10-09 Thread Jonathan Gray
: v7_outer_cache_inval_range - stop address is not aligned - 0x8f89e468 ... Switching the malloc() calls to malloc_cache_aligned() avoids the alignment errors and allows booting to continue. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- fs/fat/fat.c | 6 +++--- 1 file changed, 3 insertions

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Jonathan Gray
On Mon, Oct 09, 2017 at 10:17:18AM -0400, Rob Clark wrote: > On Mon, Oct 9, 2017 at 8:25 AM, Jonathan Gray <j...@jsg.id.au> wrote: > > On Mon, Oct 09, 2017 at 06:52:18AM -0400, Rob Clark wrote: > >> On Sun, Oct 8, 2017 at 11:33 PM, Jonathan Gray <j...@jsg.id.au> wrot

[U-Boot] [PATCH] efi_loader: don't increment part twice per loop

2017-10-10 Thread Jonathan Gray
Correct a mistake in the part number handling of 16a73b249d138fedeb188710533902ed7aac1ddc and only increment part once per loop. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- lib/efi_loader/efi_disk.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/efi_loader/efi_disk.c

Re: [U-Boot] efi_loader: search all possible disk partitions

2017-10-10 Thread Jonathan Gray
tching the other callers of > > part_get_info(). > > > > This allows OpenBSD to boot via the efi_loader on rpi_3 again after > > changes made after U-Boot 2017.09. With MBR partitioning OpenBSD will > > by default use the fourth partition for the 0xA6 (OpenBSD) partition.

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Jonathan Gray
On Mon, Oct 09, 2017 at 01:06:26PM -0400, Rob Clark wrote: > On Mon, Oct 9, 2017 at 12:41 PM, Jonathan Gray <j...@jsg.id.au> wrote: > > On Mon, Oct 09, 2017 at 12:06:24PM -0400, Rob Clark wrote: > >> On Mon, Oct 9, 2017 at 11:35 AM, Jonathan Gray <j...@jsg.id.au> wrot

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Jonathan Gray
On Mon, Oct 09, 2017 at 12:06:24PM -0400, Rob Clark wrote: > On Mon, Oct 9, 2017 at 11:35 AM, Jonathan Gray <j...@jsg.id.au> wrote: > > On Mon, Oct 09, 2017 at 10:17:18AM -0400, Rob Clark wrote: > >> On Mon, Oct 9, 2017 at 8:25 AM, Jonathan Gray <j...@jsg.id.au> wrot

[U-Boot] efi_loader triggers fec_mxc messages when booting off mmc

2017-10-14 Thread Jonathan Gray
After the recent changes to add SimpleNetworkProtocol to efi_loader when booting off mmc via an efi payload that doesn't use SimpleNetworkProtocol U-Boot's fec_mxc driver will now display various "error frame" messages. U-Boot SPL 2017.11-rc1-00277-g7b342d8c5d (Oct 15 2017 - 12:55:50) Trying to

Re: [U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case

2017-10-05 Thread Jonathan Gray
On Thu, Oct 05, 2017 at 05:05:49AM -0400, Rob Clark wrote: > On Thu, Oct 5, 2017 at 12:36 AM, Jonathan Gray <j...@jsg.id.au> wrote: > > On Wed, Oct 04, 2017 at 01:12:48PM -0400, Rob Clark wrote: > >> On Wed, Oct 4, 2017 at 12:29 PM, Fabio Estevam <fabio.este...@nxp.com

Re: [U-Boot] [PATCH] Revert "dm: arm: rpi: Drop CONFIG_OF_EMBED"

2017-09-06 Thread Jonathan Gray
U-Boot with CONFIG_OF_EMBED=y on rpi* since Mark Kettenis tracked it down to that commit. Tested-by: Jonathan Gray <j...@jsg.id.au> > --- > configs/rpi_2_defconfig | 1 + > configs/rpi_3_32b_defconfig | 1 + > configs/rpi_3_defconfig | 1 + > configs/rpi_defconfig

Re: [U-Boot] [PATCH] rpi: Enable USB keyboard support

2017-08-24 Thread Jonathan Gray
config but was with CONFIG_DM_KEYBOARD=y added. With CONFIG_DM_KEYBOARD=y having both HDMI and serial connected, input from serial and USB keyboard is output to both HDMI and serial as expected. Tested-by: Jonathan Gray <j...@jsg.id.au> > > Signed-off-by: Simon Glass <s...@chromium.org

[U-Boot] [PATCH] bch: don't use __BSD_VISIBLE to test for fls

2017-08-27 Thread Jonathan Gray
and __FreeBSD__ to unbreak the build on OpenBSD. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- lib/bch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bch.c b/lib/bch.c index 7a2d9d3b86..d0d7e25c4e 100644 --- a/lib/bch.c +++ b/lib/bch.c @@ -117,7 +117,7 @@

Re: [U-Boot] U-boot 2017.07 not working on Raspberry Pi

2017-08-25 Thread Jonathan Gray
On Fri, Aug 25, 2017 at 10:46:55AM +0100, Paul Barker wrote: > On Fri, Aug 25, 2017 at 2:46 AM, Simon Glass wrote: > > Hi, > > > > On 20 August 2017 at 20:59, Simon Glass wrote: > >> Hi Paul, > >> > >> On 3 August 2017 at 11:42, Tom Rini

Re: [U-Boot] [ANN] U-Boot v2017.09-rc3 released

2017-08-29 Thread Jonathan Gray
On Mon, Aug 28, 2017 at 10:56:52PM -0400, Tom Rini wrote: > Hey all, > > It's release day and v2017.09-rc3 is out. I think there's still a few > outstanding important bugfixes that need to come in, and probably a few > more Kconfig migrations as well. The tag/changes not pushed to git yet? >

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-08 Thread Jonathan Gray
arent device. > > Reported-by: Jonathan Gray <j...@jsg.id.au> > Signed-off-by: Rob Clark <robdcl...@gmail.com> Thanks for looking into this. While this lets armv7/bootarm.efi boot again on cubox-i and bbb it doesn't help rpi3. What is the easiest way to get U-Boot to display

Re: [U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case

2017-10-09 Thread Jonathan Gray
On Sun, Oct 08, 2017 at 11:12:28PM -0400, Tom Rini wrote: > On Sun, Oct 08, 2017 at 10:56:26PM -0300, Fabio Estevam wrote: > > On Sun, Oct 8, 2017 at 11:04 AM, Jonathan Gray <j...@jsg.id.au> wrote: > > > > > It turns out to be > > > > > >

[U-Boot] [PATCH] efi_loader: search all possible disk partitions

2017-10-09 Thread Jonathan Gray
changes made after U-Boot 2017.09. With MBR partitioning OpenBSD will by default use the fourth partition for the 0xA6 (OpenBSD) partition. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- lib/efi_loader/efi_disk.c | 20 1 file changed, 12 insertions(+), 8 deletions(-)

Re: [U-Boot] [PATCH] disk: part_dos: Use the original allocation scheme for the SPL case

2017-10-07 Thread Jonathan Gray
On Sat, Oct 07, 2017 at 08:23:31AM -0400, Rob Clark wrote: > On Fri, Oct 6, 2017 at 10:08 PM, Jonathan Gray <j...@jsg.id.au> wrote: > > On Fri, Oct 06, 2017 at 08:21:26AM -0400, Rob Clark wrote: > >> On Fri, Oct 6, 2017 at 12:35 AM, Jonathan Gray <j...@jsg.id.au> wrot

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-10-09 Thread Jonathan Gray
On Mon, Oct 09, 2017 at 06:52:18AM -0400, Rob Clark wrote: > On Sun, Oct 8, 2017 at 11:33 PM, Jonathan Gray <j...@jsg.id.au> wrote: > > On Sun, Oct 08, 2017 at 11:33:08AM -0400, Rob Clark wrote: > >> This fixes an issue with OpenBSD's bootloader, and I think should also

Re: [U-Boot] [PATCH 3/3] efi_loader: Do not enable it by default for sunxi

2017-10-19 Thread Jonathan Gray
On Thu, Oct 19, 2017 at 10:51:04AM +0200, Alexander Graf wrote: > On 10/19/2017 10:26 AM, Maxime Ripard wrote: > > The EFI loader support takes around 31kB on an ARMv7 board, which makes us > > trip across the size limit we've had on the U-Boot binary. > > > > Since it's not an essential feature,

Re: [U-Boot] [PATCH] efi_loader: initialise partition_signature memory

2017-11-30 Thread Jonathan Gray
On Thu, Nov 30, 2017 at 09:24:36AM -0500, Rob Clark wrote: > On Tue, Nov 21, 2017 at 7:24 AM, Jonathan Gray <j...@jsg.id.au> wrote: > > Zero partition_signature in the efi_device_path_hard_drive_path > > structure when signature_type is zero. > > > > This

Re: [U-Boot] [PULL] efi patch queue 2017-12-17

2017-12-18 Thread Jonathan Gray
On Sun, Dec 17, 2017 at 09:33:44PM +0100, Alexander Graf wrote: > Hi Tom, > > This is my current patch queue for efi. Please pull. > > Alex > > > The following changes since commit 15616a0aa58173bce1efe47569bf2e10d023ae9c: > > Merge git://git.denx.de/u-boot-dm (2017-12-14 15:46:07 -0500) >

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-11-20 Thread Jonathan Gray
On Sat, Nov 18, 2017 at 03:25:29PM +1100, Jonathan Gray wrote: > > While U-Boot 2017.11 release works with vexpress/qemu with the > efi loader it is broken on at least rpi_3 and tinker-rk3288. > MEDIA_DEVICE is not found again. The loaded image paths look like the below. vexpress

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-11-21 Thread Jonathan Gray
On Tue, Nov 21, 2017 at 04:59:33PM +1100, Jonathan Gray wrote: > On Sat, Nov 18, 2017 at 03:25:29PM +1100, Jonathan Gray wrote: > > > > While U-Boot 2017.11 release works with vexpress/qemu with the > > efi loader it is broken on at least rpi_3 and tinker-rk3288. > >

[U-Boot] [PATCH] efi_loader: initialise partition_signature memory

2017-11-21 Thread Jonathan Gray
with MEDIA_DEVICE causing the OpenBSD bootloader to fail on rpi_3 and other targets. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- lib/efi_loader/efi_device_path.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c index f6e3

[U-Boot] [PATCH v2] efi_loader: initialise partition_signature memory

2017-11-21 Thread Jonathan Gray
in the specification Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- lib/efi_loader/efi_device_path.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c index f6e368e029..12a81d311c

Re: [U-Boot] [PATCH] efi_loader: Fix disk dp's for pre-DM/legacy devices

2017-11-17 Thread Jonathan Gray
On Tue, Oct 10, 2017 at 04:48:01AM +1100, Jonathan Gray wrote: > On Mon, Oct 09, 2017 at 01:06:26PM -0400, Rob Clark wrote: > > On Mon, Oct 9, 2017 at 12:41 PM, Jonathan Gray <j...@jsg.id.au> wrote: > > > On Mon, Oct 09, 2017 at 12:06:24PM -0400, Rob Clark wrote: > >

Re: [U-Boot] [PATCH] efi_loader: Fix partition offsets

2017-12-07 Thread Jonathan Gray
On Fri, Dec 08, 2017 at 06:55:02AM +0100, Alexander Graf wrote: > > > On 07.12.17 12:45, Jonathan Gray wrote: > > On Thu, Dec 07, 2017 at 11:57:43AM +0100, Heinrich Schuchardt wrote: > >> On 12/07/2017 08:00 AM, Jonathan Gray wrote: > >>> On Fri, Dec 01, 2017

Re: [U-Boot] [PATCH] efi_loader: Fix partition offsets

2017-12-07 Thread Jonathan Gray
On Fri, Dec 08, 2017 at 08:09:46AM +0100, Heinrich Schuchardt wrote: > On 12/07/2017 08:00 AM, Jonathan Gray wrote: > > On Fri, Dec 01, 2017 at 04:10:33PM +0100, Alexander Graf wrote: > > > Commit 884bcf6f65 (efi_loader: use proper device-paths for partitions) > > &g

Re: [U-Boot] [PATCH] efi_loader: Fix partition offsets

2017-12-06 Thread Jonathan Gray
On Fri, Dec 01, 2017 at 04:10:33PM +0100, Alexander Graf wrote: > Commit 884bcf6f65 (efi_loader: use proper device-paths for partitions) tried > to introduce the el torito scheme to all partition table types: Spawn > individual disk objects for each partition on a disk. > > Unfortunately, that

Re: [U-Boot] [PATCH] efi_loader: Fix partition offsets

2017-12-07 Thread Jonathan Gray
On Thu, Dec 07, 2017 at 11:57:43AM +0100, Heinrich Schuchardt wrote: > On 12/07/2017 08:00 AM, Jonathan Gray wrote: > > On Fri, Dec 01, 2017 at 04:10:33PM +0100, Alexander Graf wrote: > >> Commit 884bcf6f65 (efi_loader: use proper device-paths for partitions) > >> tri

Re: [U-Boot] rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC

2018-05-14 Thread Jonathan Gray
there are a few things missing in the designware/gmac part. > But someone is working on it right now :) > > Anyway, it looks like Jonathan fixed the problem, right? > > Regards, > Wadim The patch I sent out works for me. Hasn't landed in u-boot-rockchip or master yet though.

Re: [U-Boot] [U-Boot, v2, 1/2] rockchip: enable SYS_NS16550 for all SoCs by default

2018-05-08 Thread Jonathan Gray
On Thu, Apr 26, 2018 at 09:05:37AM +0200, Philipp Tomsich wrote: > > All rockchip SoCs can use ns16550 driver, enable it for all > > and set SYS_NS16550_MEM32 for all SoCs. > > > > Version-changes: 2 > > - use imply instead of select > > > > Signed-off-by: Kever Yang

[U-Boot] [PATCH] rockchip: clk: rk3288: handle clk_enable requests for GMAC

2018-05-08 Thread Jonathan Gray
Since b0ba1e7e9d9b9441a18048ec67a3b3100c096975 (rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC) Ethernet no longer probes on RK3288. Add no-ops for GMAC clocks observed to be requested which match the clk_enable cases in RK3368 and RK3399. Signed-off-by: Jonathan Gray

Re: [U-Boot] rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC

2018-05-08 Thread Jonathan Gray
On Thu, Apr 26, 2018 at 09:05:33AM +0200, Philipp Tomsich wrote: > > The generic ehci-driver (ehci-generic.c) will try to enable the clocks > > listed in the DTSI. If this fails (e.g. due to clk_enable not being > > implemented in a driver and -ENOSYS being returned by the clk-uclass), > > the

Re: [U-Boot] [U-Boot, v2, 1/2] rockchip: enable SYS_NS16550 for all SoCs by default

2018-05-08 Thread Jonathan Gray
On Tue, May 08, 2018 at 09:41:32AM +0200, Dr. Philipp Tomsich wrote: > Kever, > > Could you analyse and provide (against master) a patch for this? > We???ll need to catch any left-overs from your changes at the start of the > cycle > before we try to merge any of the more invasive changes you

[U-Boot] [PATCH] rockchip: set SYS_NS16550_MEM32 for all SoCs

2018-05-08 Thread Jonathan Gray
<kever.y...@rock-chips.com> Signed-off-by: Jonathan Gray <j...@jsg.id.au> Cc: Philipp Tomsich <philipp.toms...@theobroma-systems.com> --- include/configs/rockchip-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/rockchip-common.h b/include/configs/rockc

Re: [U-Boot] [PATCH v2] rsa: Support LibreSSL in rsa-sign.c

2018-06-27 Thread Jonathan Gray
On Wed, Jun 27, 2018 at 12:33:05PM +0200, parazyd wrote: > At present rsa-sign.c can not be compiled with LibreSSL older than > 2.7.0. This commit adjusts the guards in the rsa-sign.c to check for > LiBRESSL_VERSION_NUMBER where necessary. These tests are wrong, an undefined cpp macro will be 0

Re: [U-Boot] [PATCH] rsa: Support LibreSSL in rsa-sign.c

2018-06-26 Thread Jonathan Gray
On Tue, Jun 26, 2018 at 07:49:47AM +0200, parazyd wrote: > This commit will allow rsa-sign.c to be compiled when LibreSSL is used > instead of OpenSSL. It isn't clear what version of LibreSSL you are using but this is wrong. The latest LibreSSL has RSA_get0_key(), OPENSSL_init_ssl() and

Re: [U-Boot] [PATCH v2 1/4] ARM: qemu-arm: Add support for AArch64

2018-01-12 Thread Jonathan Gray
On Thu, Jan 11, 2018 at 04:11:23PM +0200, Tuomas Tynkkynen wrote: > This adds support for '-machine virt' on AArch64. This is rather simple: > we just add TARGET_QEMU_ARM_xxBIT to select a few different Kconfig > symbols, provide the ARMv8 memory map from the board file and add a new > defconfig

Re: [U-Boot] [PATCH v2 1/4] ARM: qemu-arm: Add support for AArch64

2018-01-13 Thread Jonathan Gray
On Sat, Jan 13, 2018 at 02:45:32PM +0200, Tuomas Tynkkynen wrote: > Hi Jonathan, > > On 01/13/2018 09:08 AM, Jonathan Gray wrote: > > On Thu, Jan 11, 2018 at 04:11:23PM +0200, Tuomas Tynkkynen wrote: > > > This adds support for '-machine virt' on AArch64. This is rather s

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-02 Thread Jonathan Gray
On Sun, Jan 28, 2018 at 01:54:25PM -0500, Tom Rini wrote: > On Tue, Jan 23, 2018 at 06:05:21PM +0100, Alexander Graf wrote: > > > The bcm283x family of SoCs have a GPIO controller that also acts as > > pinctrl controller. > > > > This patch introduces a new pinctrl driver that can actually

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-03 Thread Jonathan Gray
On Sat, Feb 03, 2018 at 09:02:25AM +0100, Alexander Graf wrote: > > > On 03.02.18 02:47, Jonathan Gray wrote: > > On Sun, Jan 28, 2018 at 01:54:25PM -0500, Tom Rini wrote: > >> On Tue, Jan 23, 2018 at 06:05:21PM +0100, Alexander Graf wrote: > >> > >&g

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-05 Thread Jonathan Gray
On Mon, Feb 05, 2018 at 09:37:15AM +0100, Alexander Graf wrote: > > > On 03.02.18 12:38, Jonathan Gray wrote: > > On Sat, Feb 03, 2018 at 09:02:25AM +0100, Alexander Graf wrote: > >> > >> > >> On 03.02.18 02:47, Jonathan Gray wrote: > >>> On

Re: [U-Boot] [PATCH] efi_loader: Fix partition offsets

2018-01-31 Thread Jonathan Gray
On Fri, Dec 08, 2017 at 06:55:02AM +0100, Alexander Graf wrote: > > > On 07.12.17 12:45, Jonathan Gray wrote: > > On Thu, Dec 07, 2017 at 11:57:43AM +0100, Heinrich Schuchardt wrote: > >> On 12/07/2017 08:00 AM, Jonathan Gray wrote: > >>> On Fri, Dec 01, 2017

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-07 Thread Jonathan Gray
On Mon, Feb 05, 2018 at 11:31:42AM +0100, Mark Kettenis wrote: > > Date: Mon, 5 Feb 2018 21:06:59 +1100 > > From: Jonathan Gray <j...@jsg.id.au> > > > > > > booting sd0a:/bsd: open sd0a:/bsd: Device not configured > > > > failed(6). will try /bsd

Re: [U-Boot] [PATCH v3 11/18] efi_loader: make efi_disk_create_partitions a global symbol

2018-02-08 Thread Jonathan Gray
On Fri, Jan 19, 2018 at 08:24:47PM +0100, Heinrich Schuchardt wrote: > Up to now we have been using efi_disk_create_partitions() to create > partitions for block devices that existed before starting an EFI > application. > > We need to call it for block devices created by EFI > applications at

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-08 Thread Jonathan Gray
On Thu, Feb 08, 2018 at 03:44:32PM +0100, Heinrich Schuchardt wrote: > On 02/08/2018 10:49 AM, Jonathan Gray wrote: > > On Thu, Feb 08, 2018 at 08:10:47PM +1100, Jonathan Gray wrote: > >> On Thu, Feb 08, 2018 at 09:11:20AM +0100, Alexander Graf wrote: > >>> >

Re: [U-Boot] [PATCH v2 10/26] mmc: refactor SD startup to make it easier to support new modes

2018-02-08 Thread Jonathan Gray
On Thu, Sep 21, 2017 at 04:29:57PM +0200, Jean-Jacques Hiblot wrote: > The SDcard startup process currently handles only 2 modes. To make it > easier to add support for more modes, let's make the process more generic > and use a list of the modes to try. > The major functional change is that when

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-08 Thread Jonathan Gray
On Thu, Feb 08, 2018 at 08:10:47PM +1100, Jonathan Gray wrote: > On Thu, Feb 08, 2018 at 09:11:20AM +0100, Alexander Graf wrote: > > > > > > > Am 08.02.2018 um 06:49 schrieb Jonathan Gray <j...@jsg.id.au>: > > > > > > On Mon, Feb 05, 2018 at 11:

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-08 Thread Jonathan Gray
On Thu, Feb 08, 2018 at 09:11:20AM +0100, Alexander Graf wrote: > > > > Am 08.02.2018 um 06:49 schrieb Jonathan Gray <j...@jsg.id.au>: > > > > On Mon, Feb 05, 2018 at 11:31:42AM +0100, Mark Kettenis wrote: > >>> Date: Mon, 5 Feb 2018 21:06:59 +1100

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-08 Thread Jonathan Gray
On Fri, Feb 09, 2018 at 04:43:09AM +0100, Heinrich Schuchardt wrote: > On 02/09/2018 12:55 AM, Jonathan Gray wrote: > > On Thu, Feb 08, 2018 at 03:44:32PM +0100, Heinrich Schuchardt wrote: > > > On 02/08/2018 10:49 AM, Jonathan Gray wrote: > > > > On Thu, Feb 08, 2018

Re: [U-Boot] [PATCH v2 1/1] efi_loader: correct efi_disk_register

2018-02-09 Thread Jonathan Gray
system configured with > CONFIG_BLK=n (e.g. i.MX6). > > Reported-by: Jonathan Gray <j...@jsg.id.au> > Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> Thanks, this change resolves the problems I was seeing with master as of e24bd1e79e223aa89854c0be95a53e2d538

Re: [U-Boot] [PATCH v1 1/2] mmc: Fix bug in sd_set_card_speed()

2018-02-09 Thread Jonathan Gray
t by masking the upper bits. > > This fixes a problem seen with QEmu emulating a vexpress-a15. > > Reported-by: Jonathan Gray <j...@jsg.id.au> > Signed-off-by: Jean-Jacques Hiblot <jjhib...@ti.com> With this change the emulated mmc controller can be accessed again here. T

Re: [U-Boot] [U-Boot,v3,1/2] bcm283x: Add pinctrl driver

2018-02-09 Thread Jonathan Gray
On Sat, Feb 03, 2018 at 12:47:48PM +1100, Jonathan Gray wrote: > On Sun, Jan 28, 2018 at 01:54:25PM -0500, Tom Rini wrote: > > On Tue, Jan 23, 2018 at 06:05:21PM +0100, Alexander Graf wrote: > > > > > The bcm283x family of SoCs have a GPIO controller that also acts as

Re: [U-Boot] [PATCH v2] spl: eMMC/SD: Provide one __weak spl_boot_mode() function

2018-02-09 Thread Jonathan Gray
On Sat, Feb 03, 2018 at 11:00:35AM -0200, Fabio Estevam wrote: > On Sat, Feb 3, 2018 at 5:29 AM, Lukasz Majewski wrote: > > The goal of this patch is to clean up the code related to choosing SPL > > MMC boot mode. > > > > The spl_boot_mode() now is called only in

Re: [U-Boot] [PATCH v2] spl: eMMC/SD: Provide one __weak spl_boot_mode() function

2018-02-09 Thread Jonathan Gray
On Sat, Feb 10, 2018 at 01:45:16AM +0100, Lukasz Majewski wrote: > Hi Jonathan, > > > On Sat, Feb 03, 2018 at 11:00:35AM -0200, Fabio Estevam wrote: > > > On Sat, Feb 3, 2018 at 5:29 AM, Lukasz Majewski > > > wrote: > > > > The goal of this patch is to clean up the code related

Re: [U-Boot] Please fix ls1046ardb

2018-02-14 Thread Jonathan Gray
On Wed, Feb 14, 2018 at 07:25:53PM +, York Sun wrote: > Mingkai, > > LS1046ARDB is broken for both QSPI and SD. For QSPI, I cannot use > environmental variables. For SD boot, it fails when trying to init SD > card. Partial log is > > Initializing DDRusing SPD > WARNING: Calling

Re: [U-Boot] [PATCH v2] spl: eMMC/SD: Provide one __weak spl_boot_mode() function

2018-02-10 Thread Jonathan Gray
On Sat, Feb 10, 2018 at 10:57:26AM +0100, Lukasz Majewski wrote: > Hi Jonathan, > > > On Sat, Feb 10, 2018 at 01:45:16AM +0100, Lukasz Majewski wrote: > > > Hi Jonathan, > > > > > > > On Sat, Feb 03, 2018 at 11:00:35AM -0200, Fabio Estevam wrote: > > > > > On Sat, Feb 3, 2018 at 5:29 AM,

Re: [U-Boot] [RESEND PATCH 2/2] net: designware: add clock support

2018-02-16 Thread Jonathan Gray
ml > > Regards > > Patrice > > > On 02/16/2018 08:17 AM, Jonathan Gray wrote: > > On Wed, Nov 29, 2017 at 09:06:11AM +0100, patrice.chot...@st.com wrote: > >> From: Patrice Chotard <patrice.chot...@st.com> > >> > >> This implementation manage

Re: [U-Boot] [RESEND PATCH 2/2] net: designware: add clock support

2018-02-15 Thread Jonathan Gray
On Wed, Nov 29, 2017 at 09:06:11AM +0100, patrice.chot...@st.com wrote: > From: Patrice Chotard > > This implementation manages several clocks, disable and > free all of them in case of error during probe and in remove > callback. > > Signed-off-by: Patrice Chotard

[U-Boot] [PATCH] tools/kwbimage: fix LibreSSL build

2018-02-20 Thread Jonathan Gray
Fix build after addition of RSA_get0_key() to LibreSSL. Patch from Theo Buehler and Stuart Henderson. Signed-off-by: Theo Buehler Signed-off-by: Stuart Henderson --- tools/kwbimage.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH v2] rsa: Fix LibreSSL before v2.7.0

2018-07-26 Thread Jonathan Gray
ings. Builds on OpenBSD -current with 2.8.0. bcm7445 config resulted in building it. Could be 0x207fL not 0x0207fL to match the other uses but that is just cosmetic. Reviewed-by: Jonathan Gray > > Changes for v2: > - fixed commit message conventions > - fixed coding

Re: [U-Boot] [PATCH] Fix LibreSSL before v2.7.0

2018-07-25 Thread Jonathan Gray
On Tue, Jul 24, 2018 at 07:47:48PM -0400, nom...@palism.com wrote: > From: Nomble > > Signed-off-by: Nomble > Signed-off-by: Caliph Nomble > --- > lib/rsa/rsa-sign.c | 13 +++-- > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c

Re: [U-Boot] [PATCH] ARM: qemu-arm: Fix qemu_arm64_defconfig for QEMU 3.0

2018-09-04 Thread Jonathan Gray
gt; unmapped ECAM memory area. > > Reported-by: Jonathan Gray > Signed-off-by: Tuomas Tynkkynen Thanks, qemu-system-aarch64 -M virt works without having to disable highmem with this. Tested-by: Jonathan Gray > --- > board/emulation/qemu-arm/qemu-arm.c | 18 +

Re: [U-Boot] raspberrypi compute module3 emmc not usable

2018-07-10 Thread Jonathan Gray
On Tue, Jul 10, 2018 at 10:37:19PM +0200, Belisko Marek wrote: > Hello, > > I'm trying to use u-boot on CM3 (which contains eMMC) to boot kernel. > I'm using u-boot 2018.05 and it can start fine like: > U-Boot 2018.05 (Jul 10 2018 - 20:32:05 +) > > DRAM: 948 MiB > RPI Compute Module 3

[U-Boot] [PATCH] rpi: Complete table of models with new revision code scheme

2018-04-06 Thread Jonathan Gray
upstreamed in linux. When that happens the name will likely have to be adjusted in the table. Signed-off-by: Jonathan Gray <j...@jsg.id.au> --- board/raspberrypi/rpi/rpi.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/board/raspberrypi/rpi/rpi.c b

Re: [U-Boot] [PATCH] rsa-sign: Fix build against libressl

2018-04-19 Thread Jonathan Gray
On Wed, Apr 18, 2018 at 10:37:43PM +0200, Hauke Mehrtens wrote: > Libressl implements the OpenSSL 1.1 API partially and improved the > support with version 2.7. For some code we have to take use the OpenSSL > 1.0 API and for some parts the OpenSSL 1.1 API can be used. > This was compile tested

Re: [U-Boot] tools/mxsimage: Support building with LibreSSL

2018-03-18 Thread Jonathan Gray
On Sun, Mar 18, 2018 at 01:55:29AM +0100, Hauke Mehrtens wrote: > On 03/18/2018 01:33 AM, Jonathan Gray wrote: > > On Sat, Mar 17, 2018 at 05:24:47PM +0100, Marek Vasut wrote: > >> On 03/17/2018 04:09 PM, Hauke Mehrtens wrote: > >>> On 03/17/2018 03:47 PM, Marek Vas

  1   2   >