All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Please pull u-boot-fdt
@ 2019-11-05 12:23 Simon Glass
  2019-11-05 20:56 ` [U-Boot] [PATCH] travis: Rework how we write the ~/.buildman file Tom Rini
  2019-11-05 23:12 ` [U-Boot] Please pull u-boot-fdt Tom Rini
  0 siblings, 2 replies; 7+ messages in thread
From: Simon Glass @ 2019-11-05 12:23 UTC (permalink / raw)
  To: u-boot

Hi Tom,

Passing run here:

https://gitlab.denx.de/u-boot/custodians/u-boot-dm/pipelines/1210


The following changes since commit 73b6e6ad254b36763419cdd3fdf406c0094517b7:

  Merge tag 'u-boot-imx-20191104' of
https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2019-11-04
12:57:41 -0500)

are available in the Git repository at:

  git://git.denx.de/u-boot-fdt.git tags/fdt-pull-5nov19

for you to fetch changes up to 388560134b99dc4cc752627d3a7e9f8c8c2a89a7:

  binman: Move to use Python 3 (2019-11-04 18:15:32 -0700)

----------------------------------------------------------------
Update to latest libfdt and pylibfdt, with added size control
Update binman, dtoc, patman, buildman to Python 3
Update move_config, rkmux, microcode_tool to Python 3

----------------------------------------------------------------
Simon Glass (20):
      fdt: Add INT32_MAX to kernel.h for libfdt
      fdt: Add Kconfig options to control code size
      mx6: tbs2910: Minimise libfdt code size
      fdt: Sync up to the latest libfdt
      patman: Adjust 'command' to return strings instead of bytes
      patman: Use unicode for file I/O
      patman: Move to use Python 3
      buildman: Convert to Python 3
      test_fdt: Move to use Python 3
      test_dtoc: Move to use Python 3
      microcode_tool: Convert to Python 3
      move_config: Convert to Python 3
      rkmux: Convert to Python 3
      pylibfdt: Convert to Python 3
      pylibfdt: Sync up with upstream
      pylibfdt: Correct the type for fdt_property_stub()
      binman: Remember the pre-reset entry size
      binman: Convert a few tests to Python 3
      dtoc: Convert fdt.py to Python 3
      binman: Move to use Python 3

 configs/tbs2910_defconfig             |   1 +
 include/linux/kernel.h                |   2 +
 include/linux/libfdt_env.h            |   1 +
 lib/Kconfig                           |  33 +++
 lib/libfdt/Makefile                   |   3 +-
 lib/libfdt/fdt_ro.c                   | 420 +++++++++++++++++++++++++---------
 scripts/dtc/libfdt/Makefile.libfdt    |   7 +
 scripts/dtc/libfdt/fdt.c              | 182 ++++++++++-----
 scripts/dtc/libfdt/fdt.h              |  47 +---
 scripts/dtc/libfdt/fdt_addresses.c    |  94 ++++----
 scripts/dtc/libfdt/fdt_empty_tree.c   |  47 +---
 scripts/dtc/libfdt/fdt_overlay.c      |  91 +++-----
 scripts/dtc/libfdt/fdt_ro.c           | 341 ++++++++++++++++++---------
 scripts/dtc/libfdt/fdt_rw.c           | 119 +++++-----
 scripts/dtc/libfdt/fdt_strerror.c     |  47 +---
 scripts/dtc/libfdt/fdt_sw.c           | 241 ++++++++++++-------
 scripts/dtc/libfdt/fdt_wip.c          |  47 +---
 scripts/dtc/libfdt/libfdt.h           | 268 +++++++++++++++++-----
 scripts/dtc/libfdt/libfdt_env.h       |  48 +---
 scripts/dtc/libfdt/libfdt_internal.h  | 144 +++++++-----
 scripts/dtc/pylibfdt/Makefile         |   2 +-
 scripts/dtc/pylibfdt/libfdt.i_shipped |  51 +++--
 scripts/dtc/pylibfdt/setup.py         |   2 +-
 tools/binman/binman.py                |   2 +-
 tools/binman/cbfs_util_test.py        |   2 +-
 tools/binman/entry.py                 |  25 +-
 tools/binman/entry_test.py            |  15 --
 tools/binman/etype/intel_fit.py       |   2 +-
 tools/binman/ftest.py                 |  16 +-
 tools/buildman/board.py               |   9 +-
 tools/buildman/bsettings.py           |  20 +-
 tools/buildman/builder.py             |  47 ++--
 tools/buildman/builderthread.py       |  24 +-
 tools/buildman/buildman.py            |  10 +-
 tools/buildman/control.py             |  44 ++--
 tools/buildman/func_test.py           |  16 +-
 tools/buildman/test.py                |  22 +-
 tools/buildman/toolchain.py           |  99 ++++----
 tools/dtoc/dtoc.py                    |   2 +-
 tools/dtoc/fdt.py                     |  17 +-
 tools/dtoc/test_dtoc.py               |   1 +
 tools/dtoc/test_fdt.py                |   2 +-
 tools/libfdt/fdt_rw.c                 |   3 +-
 tools/microcode-tool.py               |  28 +--
 tools/moveconfig.py                   |  82 +++----
 tools/patman/command.py               |  31 ++-
 tools/patman/func_test.py             |   8 +-
 tools/patman/patchstream.py           |   4 +-
 tools/patman/patman.py                |   2 +-
 tools/patman/series.py                |   2 +-
 tools/patman/settings.py              |   4 +-
 tools/patman/test.py                  |   4 +-
 tools/patman/tools.py                 |  29 ++-
 tools/rkmux.py                        |  16 +-
 54 files changed, 1645 insertions(+), 1181 deletions(-)
 mode change 100644 => 100755 tools/dtoc/test_dtoc.py

Regards,
Simon

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] travis: Rework how we write the ~/.buildman file
  2019-11-05 12:23 [U-Boot] Please pull u-boot-fdt Simon Glass
@ 2019-11-05 20:56 ` Tom Rini
  2019-11-05 23:12   ` Tom Rini
  2019-11-05 23:12 ` [U-Boot] Please pull u-boot-fdt Tom Rini
  1 sibling, 1 reply; 7+ messages in thread
From: Tom Rini @ 2019-11-05 20:56 UTC (permalink / raw)
  To: u-boot

With python3 we're now tripping over a long-standing problem with how we
add to the buildman file with some toolchains.  We cannot have multiple
toolchain-alias sections as that leads to a parse error.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 .travis.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 2369da97f9e5..1e9837869508 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,7 +47,9 @@ install:
  # prepare buildman environment
  - echo -e "[toolchain]\nroot = /usr" > ~/.buildman
  - echo -e "arc = /tmp/arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install" >> ~/.buildman
- - echo -e "\n[toolchain-alias]\nsh = sh2\n" >> ~/.buildman
+ - echo -e "\n[toolchain-alias]\nsh = sh2" >> ~/.buildman
+ - echo -e "x86 = i386" >> ~/.buildman;
+ - echo -e "riscv = riscv64" >> ~/.buildman;
  - cat ~/.buildman
  - grub-mkimage --prefix="" -o ~/grub_x86.efi -O i386-efi normal  echo lsefimmap lsefi lsefisystab efinet tftp minicmd
  - grub-mkimage --prefix="" -o ~/grub_x64.efi -O x86_64-efi normal  echo lsefimmap lsefi lsefisystab efinet tftp minicmd
@@ -74,7 +76,6 @@ before_script:
   - if [[ "${TOOLCHAIN}" == *sh* ]]; then ./tools/buildman/buildman --fetch-arch sh2 ; fi
   - if [[ "${TOOLCHAIN}" == *i386* ]]; then
       ./tools/buildman/buildman --fetch-arch i386;
-      echo -e "\n[toolchain-alias]\nx86 = i386" >> ~/.buildman;
     fi
   - if [[ "${TOOLCHAIN}" == arc ]]; then
        wget https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/download/arc-2018.09-release/arc_gnu_2018.09_prebuilt_uclibc_le_archs_linux_install.tar.gz &&
@@ -98,7 +99,6 @@ before_script:
   - if [[ "${TOOLCHAIN}" == "powerpc" ]]; then ./tools/buildman/buildman --fetch-arch powerpc; fi
   - if [[ "${TOOLCHAIN}" == "riscv" ]]; then
        ./tools/buildman/buildman --fetch-arch riscv64;
-       echo -e "\n[toolchain-alias]\nriscv = riscv64" >> ~/.buildman;
     fi
   - if [[ "${QEMU_TARGET}" != "" ]]; then
        git clone git://git.qemu.org/qemu.git /tmp/qemu;
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [U-Boot] Please pull u-boot-fdt
  2019-11-05 12:23 [U-Boot] Please pull u-boot-fdt Simon Glass
  2019-11-05 20:56 ` [U-Boot] [PATCH] travis: Rework how we write the ~/.buildman file Tom Rini
@ 2019-11-05 23:12 ` Tom Rini
  2019-11-17 14:07   ` [U-Boot] [U-Boot-Board-Maintainers] " Bin Meng
  1 sibling, 1 reply; 7+ messages in thread
From: Tom Rini @ 2019-11-05 23:12 UTC (permalink / raw)
  To: u-boot

On Tue, Nov 05, 2019 at 05:23:51AM -0700, Simon Glass wrote:

> Hi Tom,
> 
> Passing run here:
> 
> https://gitlab.denx.de/u-boot/custodians/u-boot-dm/pipelines/1210
> 
> 
> The following changes since commit 73b6e6ad254b36763419cdd3fdf406c0094517b7:
> 
>   Merge tag 'u-boot-imx-20191104' of
> https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2019-11-04
> 12:57:41 -0500)
> 
> are available in the Git repository at:
> 
>   git://git.denx.de/u-boot-fdt.git tags/fdt-pull-5nov19
> 
> for you to fetch changes up to 388560134b99dc4cc752627d3a7e9f8c8c2a89a7:
> 
>   binman: Move to use Python 3 (2019-11-04 18:15:32 -0700)
> 

Now first,
Applied to u-boot/master, thanks!

And second, which is why I've included the board maintainers list and
custodian lists, this causes a bit of size growth everywhere just about
(tbs2910 being the exception) because by default upstream now has
various input validation routines.  It doesn't catch "tell the hardware
to overvolt something" but does catch "pass garbage in the property so
we can overwrite the stack and ..." type problems.  And it's
configurable.  If you turn off all of the validation stuff, which we do
in SPL/TPL by default (size concerns!), in the main U-Boot we go from a
size growth to a size shrink.  An arbitrary PowerPC board I picked to
confirm this on grows by 985 bytes now, but if I turned everything off
it would shrink by 1100 bytes.  There's an inbetween setting that would
probably result in neutral size change.

The default is all of the input validation we can do because I believe
it's important to validate inputs when we can validate them.  I also
firmly believe board maintainers know their requirements best and can
provide a different value for their board(s).

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191105/c6a6dc99/attachment.sig>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [PATCH] travis: Rework how we write the ~/.buildman file
  2019-11-05 20:56 ` [U-Boot] [PATCH] travis: Rework how we write the ~/.buildman file Tom Rini
@ 2019-11-05 23:12   ` Tom Rini
  0 siblings, 0 replies; 7+ messages in thread
From: Tom Rini @ 2019-11-05 23:12 UTC (permalink / raw)
  To: u-boot

On Tue, Nov 05, 2019 at 03:56:29PM -0500, Tom Rini wrote:

> With python3 we're now tripping over a long-standing problem with how we
> add to the buildman file with some toolchains.  We cannot have multiple
> toolchain-alias sections as that leads to a parse error.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20191105/fb3d53ce/attachment.sig>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [U-Boot-Board-Maintainers] Please pull u-boot-fdt
  2019-11-05 23:12 ` [U-Boot] Please pull u-boot-fdt Tom Rini
@ 2019-11-17 14:07   ` Bin Meng
  2019-11-17 15:46     ` Simon Glass
  0 siblings, 1 reply; 7+ messages in thread
From: Bin Meng @ 2019-11-17 14:07 UTC (permalink / raw)
  To: u-boot

Hi Simon,

On Wed, Nov 6, 2019 at 7:12 AM Tom Rini <trini@konsulko.com> wrote:
>
> On Tue, Nov 05, 2019 at 05:23:51AM -0700, Simon Glass wrote:
>
> > Hi Tom,
> >
> > Passing run here:
> >
> > https://gitlab.denx.de/u-boot/custodians/u-boot-dm/pipelines/1210
> >
> >
> > The following changes since commit 73b6e6ad254b36763419cdd3fdf406c0094517b7:
> >
> >   Merge tag 'u-boot-imx-20191104' of
> > https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2019-11-04
> > 12:57:41 -0500)
> >
> > are available in the Git repository at:
> >
> >   git://git.denx.de/u-boot-fdt.git tags/fdt-pull-5nov19
> >
> > for you to fetch changes up to 388560134b99dc4cc752627d3a7e9f8c8c2a89a7:
> >
> >   binman: Move to use Python 3 (2019-11-04 18:15:32 -0700)
> >
>
> Now first,
> Applied to u-boot/master, thanks!
>
> And second, which is why I've included the board maintainers list and
> custodian lists, this causes a bit of size growth everywhere just about
> (tbs2910 being the exception) because by default upstream now has
> various input validation routines.  It doesn't catch "tell the hardware
> to overvolt something" but does catch "pass garbage in the property so
> we can overwrite the stack and ..." type problems.  And it's
> configurable.  If you turn off all of the validation stuff, which we do
> in SPL/TPL by default (size concerns!), in the main U-Boot we go from a
> size growth to a size shrink.  An arbitrary PowerPC board I picked to
> confirm this on grows by 985 bytes now, but if I turned everything off
> it would shrink by 1100 bytes.  There's an inbetween setting that would
> probably result in neutral size change.
>
> The default is all of the input validation we can do because I believe
> it's important to validate inputs when we can validate them.  I also
> firmly believe board maintainers know their requirements best and can
> provide a different value for their board(s).

I found the following commits breaks SiFive FU540 board, that U-Boot
no longer boots:

commit f0921f5098d8d98ac38121837aaf7c4b4cb13bb4
Author: Simon Glass <sjg@chromium.org>
Date:   Sun Oct 27 09:47:42 2019 -0600

    fdt: Sync up to the latest libfdt

Reverting this commit makes U-Boot boot again.

The failure is serial_find_console_or_panic() no longer finds the
serial port with the latest libfdt. Any ideas?

Regards,
Bin

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [U-Boot-Board-Maintainers] Please pull u-boot-fdt
  2019-11-17 14:07   ` [U-Boot] [U-Boot-Board-Maintainers] " Bin Meng
@ 2019-11-17 15:46     ` Simon Glass
  2019-11-18  7:48       ` Bin Meng
  0 siblings, 1 reply; 7+ messages in thread
From: Simon Glass @ 2019-11-17 15:46 UTC (permalink / raw)
  To: u-boot

Hi Bin,

On Sun, 17 Nov 2019 at 07:07, Bin Meng <bmeng.cn@gmail.com> wrote:
>
> Hi Simon,
>
> On Wed, Nov 6, 2019 at 7:12 AM Tom Rini <trini@konsulko.com> wrote:
> >
> > On Tue, Nov 05, 2019 at 05:23:51AM -0700, Simon Glass wrote:
> >
> > > Hi Tom,
> > >
> > > Passing run here:
> > >
> > > https://gitlab.denx.de/u-boot/custodians/u-boot-dm/pipelines/1210
> > >
> > >
> > > The following changes since commit 73b6e6ad254b36763419cdd3fdf406c0094517b7:
> > >
> > >   Merge tag 'u-boot-imx-20191104' of
> > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2019-11-04
> > > 12:57:41 -0500)
> > >
> > > are available in the Git repository at:
> > >
> > >   git://git.denx.de/u-boot-fdt.git tags/fdt-pull-5nov19
> > >
> > > for you to fetch changes up to 388560134b99dc4cc752627d3a7e9f8c8c2a89a7:
> > >
> > >   binman: Move to use Python 3 (2019-11-04 18:15:32 -0700)
> > >
> >
> > Now first,
> > Applied to u-boot/master, thanks!
> >
> > And second, which is why I've included the board maintainers list and
> > custodian lists, this causes a bit of size growth everywhere just about
> > (tbs2910 being the exception) because by default upstream now has
> > various input validation routines.  It doesn't catch "tell the hardware
> > to overvolt something" but does catch "pass garbage in the property so
> > we can overwrite the stack and ..." type problems.  And it's
> > configurable.  If you turn off all of the validation stuff, which we do
> > in SPL/TPL by default (size concerns!), in the main U-Boot we go from a
> > size growth to a size shrink.  An arbitrary PowerPC board I picked to
> > confirm this on grows by 985 bytes now, but if I turned everything off
> > it would shrink by 1100 bytes.  There's an inbetween setting that would
> > probably result in neutral size change.
> >
> > The default is all of the input validation we can do because I believe
> > it's important to validate inputs when we can validate them.  I also
> > firmly believe board maintainers know their requirements best and can
> > provide a different value for their board(s).
>
> I found the following commits breaks SiFive FU540 board, that U-Boot
> no longer boots:
>
> commit f0921f5098d8d98ac38121837aaf7c4b4cb13bb4
> Author: Simon Glass <sjg@chromium.org>
> Date:   Sun Oct 27 09:47:42 2019 -0600
>
>     fdt: Sync up to the latest libfdt
>
> Reverting this commit makes U-Boot boot again.
>
> The failure is serial_find_console_or_panic() no longer finds the
> serial port with the latest libfdt. Any ideas?

I wonder if it is relying on a feature that never made it upstream?

There was a change to fdt_path_next_separator() which got dropped -
perhaps that is it? I had assumed it was incorporated but perhaps no
action was taken? If so, the thread is here:

http://patchwork.ozlabs.org/patch/462756/

Regards,
Simon

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot] [U-Boot-Board-Maintainers] Please pull u-boot-fdt
  2019-11-17 15:46     ` Simon Glass
@ 2019-11-18  7:48       ` Bin Meng
  0 siblings, 0 replies; 7+ messages in thread
From: Bin Meng @ 2019-11-18  7:48 UTC (permalink / raw)
  To: u-boot

Hi Simon,

On Sun, Nov 17, 2019 at 11:46 PM Simon Glass <sjg@chromium.org> wrote:
>
> Hi Bin,
>
> On Sun, 17 Nov 2019 at 07:07, Bin Meng <bmeng.cn@gmail.com> wrote:
> >
> > Hi Simon,
> >
> > On Wed, Nov 6, 2019 at 7:12 AM Tom Rini <trini@konsulko.com> wrote:
> > >
> > > On Tue, Nov 05, 2019 at 05:23:51AM -0700, Simon Glass wrote:
> > >
> > > > Hi Tom,
> > > >
> > > > Passing run here:
> > > >
> > > > https://gitlab.denx.de/u-boot/custodians/u-boot-dm/pipelines/1210
> > > >
> > > >
> > > > The following changes since commit 73b6e6ad254b36763419cdd3fdf406c0094517b7:
> > > >
> > > >   Merge tag 'u-boot-imx-20191104' of
> > > > https://gitlab.denx.de/u-boot/custodians/u-boot-imx (2019-11-04
> > > > 12:57:41 -0500)
> > > >
> > > > are available in the Git repository at:
> > > >
> > > >   git://git.denx.de/u-boot-fdt.git tags/fdt-pull-5nov19
> > > >
> > > > for you to fetch changes up to 388560134b99dc4cc752627d3a7e9f8c8c2a89a7:
> > > >
> > > >   binman: Move to use Python 3 (2019-11-04 18:15:32 -0700)
> > > >
> > >
> > > Now first,
> > > Applied to u-boot/master, thanks!
> > >
> > > And second, which is why I've included the board maintainers list and
> > > custodian lists, this causes a bit of size growth everywhere just about
> > > (tbs2910 being the exception) because by default upstream now has
> > > various input validation routines.  It doesn't catch "tell the hardware
> > > to overvolt something" but does catch "pass garbage in the property so
> > > we can overwrite the stack and ..." type problems.  And it's
> > > configurable.  If you turn off all of the validation stuff, which we do
> > > in SPL/TPL by default (size concerns!), in the main U-Boot we go from a
> > > size growth to a size shrink.  An arbitrary PowerPC board I picked to
> > > confirm this on grows by 985 bytes now, but if I turned everything off
> > > it would shrink by 1100 bytes.  There's an inbetween setting that would
> > > probably result in neutral size change.
> > >
> > > The default is all of the input validation we can do because I believe
> > > it's important to validate inputs when we can validate them.  I also
> > > firmly believe board maintainers know their requirements best and can
> > > provide a different value for their board(s).
> >
> > I found the following commits breaks SiFive FU540 board, that U-Boot
> > no longer boots:
> >
> > commit f0921f5098d8d98ac38121837aaf7c4b4cb13bb4
> > Author: Simon Glass <sjg@chromium.org>
> > Date:   Sun Oct 27 09:47:42 2019 -0600
> >
> >     fdt: Sync up to the latest libfdt
> >
> > Reverting this commit makes U-Boot boot again.
> >
> > The failure is serial_find_console_or_panic() no longer finds the
> > serial port with the latest libfdt. Any ideas?
>
> I wonder if it is relying on a feature that never made it upstream?
>
> There was a change to fdt_path_next_separator() which got dropped -
> perhaps that is it? I had assumed it was incorporated but perhaps no
> action was taken? If so, the thread is here:
>
> http://patchwork.ozlabs.org/patch/462756/

Thanks for the pointers.

I simply applied similar changes to fdt_ro.c but it did not make any
difference. I will need have a further debug.

Regards,
Bin

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-11-18  7:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05 12:23 [U-Boot] Please pull u-boot-fdt Simon Glass
2019-11-05 20:56 ` [U-Boot] [PATCH] travis: Rework how we write the ~/.buildman file Tom Rini
2019-11-05 23:12   ` Tom Rini
2019-11-05 23:12 ` [U-Boot] Please pull u-boot-fdt Tom Rini
2019-11-17 14:07   ` [U-Boot] [U-Boot-Board-Maintainers] " Bin Meng
2019-11-17 15:46     ` Simon Glass
2019-11-18  7:48       ` Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.