Skip to content
Snippets Groups Projects
  1. Sep 15, 2017
  2. Sep 14, 2017
  3. Sep 12, 2017
  4. Sep 11, 2017
  5. Sep 07, 2017
  6. Sep 06, 2017
  7. Sep 05, 2017
  8. Sep 03, 2017
  9. Aug 23, 2017
  10. Aug 20, 2017
    • Anatolij Gustschin's avatar
      Fix 'notes' typos · f1a7ba1d
      Anatolij Gustschin authored
      
      s/notes/nodes
      
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      f1a7ba1d
    • Clément Bœsch's avatar
      Makefile: honor PYTHON configuration properly · 3809e302
      Clément Bœsch authored
      
      On some systems `python` is `python3` (for instance, Archlinux). The
      `PYTHON` variable can be used to point to `python2` to have a successful
      build.
      
      The use of `PYTHON` is currently limited in the Makefile and needs to be
      extended in other places:
      
      First, pylibfdt is required to be a Python 2 binding (binman imports
      pylibfdt and is only compatible Python 2), so its setup.py needs to be
      called accordingly. An alternative would be to change the libfdt
      setup.py shebang to python2, but the binding is actually portable. Also,
      it would break on system where there is no such thing as `python2`.
      
      Secondly, the libfdt import checks need to be done against Python 2 as
      well since the Python 2 compiled modules (in this case _libdft.so) can
      not be imported 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: default avatarJonathan Gray <jsg@jsg.id.au>
      3809e302
  11. Aug 16, 2017
  12. Aug 15, 2017
  13. Aug 13, 2017
  14. Jul 25, 2017
    • Paul Burton's avatar
      mips-relocs: Fix warning from gcc 6.3 · e94136bd
      Paul Burton authored
      
      It seems that gcc 6.3 at least is smart enough to warn about the _val
      variable being unassigned in the default case in the set_hdr_field()
      macro, but not smart enough to figure out that the default case is never
      taken. This results in warnings such as the following:
      
        pfx##hdr32[idx].field = _val;   \
                                ^
       ../tools/mips-relocs.c:51:11: note: _val was declared here
         uint64_t _val;      \
                  ^
       ../tools/mips-relocs.c:88:2: note: in expansion of macro set_hdr_field
         set_hdr_field(p, idx, field, val)
         ^~~~~~~~~~~~~
       ../tools/mips-relocs.c:408:3: note: in expansion of macro set_phdr_field
          set_phdr_field(i, p_filesz, load_sz);
          ^~~~~~~~~~~~~~
       ../tools/mips-relocs.c: In function main:
       ../tools/mips-relocs.c:77:25: warning: _val may be used uninitialized
          in this function [-Wmaybe-uninitialized]
      
      Avoid this by assigning _val = 0 in the default case, and asserting that
      we didn't actually hit it for good measure.
      
      For reference gcc 7.1.1 seems to be smart enough to not hit the above
      warning without this patch.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      Fixes: 011dd93ca97a ("MIPS: Stop building position independent code")
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: u-boot@lists.denx.de
      e94136bd
    • Paul Burton's avatar
      MIPS: Stop building position independent code · 703ec9dd
      Paul Burton authored
      
      U-Boot has up until now built with -fpic for the MIPS architecture,
      producing position independent code which uses indirection through a
      global offset table, making relocation fairly straightforward as it
      simply involves patching up GOT entries.
      
      Using -fpic does however have some downsides. The biggest of these is
      that generated code is bloated in various ways. For example, function
      calls are indirected through the GOT & the t9 register:
      
        8f998064   lw     t9,-32668(gp)
        0320f809   jalr   t9
      
      Without -fpic the call is simply:
      
        0f803f01   jal    be00fc04 <puts>
      
      This is more compact & faster (due to the lack of the load & the
      dependency the jump has on its result). It is also easier to read &
      debug because the disassembly shows what function is being called,
      rather than just an offset from gp which would then have to be looked up
      in the ELF to discover the target function.
      
      Another disadvantage of -fpic is that each function begins with a
      sequence to calculate the value of the gp register, for example:
      
        3c1c0004   lui    gp,0x4
        279c3384   addiu  gp,gp,13188
        0399e021   addu   gp,gp,t9
      
      Without using -fpic this sequence no longer appears at the start of each
      function, reducing code size considerably.
      
      This patch switches U-Boot from building with -fpic to building with
      -fno-pic, in order to gain the benefits described above. The cost of
      this is an extra step during the build process to extract relocation
      data from the ELF & write it into a new .rel section in a compact
      format, plus the added complexity of dealing with multiple types of
      relocation rather than the single type that applied to the GOT. The
      benefit is smaller, cleaner, more debuggable code. The relocate_code()
      function is reimplemented in C to handle the new relocation scheme,
      which also makes it easier to read & debug.
      
      Taking maltael_defconfig as an example the size of u-boot.bin built
      using the Codescape MIPS 2016.05-06 toolchain (gcc 4.9.2, binutils
      2.24.90) shrinks from 254KiB to 224KiB.
      
      Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: u-boot@lists.denx.de
      Reviewed-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Tested-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      703ec9dd
  15. Jul 23, 2017
  16. Jul 22, 2017
  17. Jul 12, 2017
    • Stefano Babic's avatar
      imx: reorganize IMX code as other SOCs · 552a848e
      Stefano Babic authored
      
      Change is consistent with other SOCs and it is in preparation
      for adding SOMs. SOC's related files are moved from cpu/ to
      mach-imx/<SOC>.
      
      This change is also coherent with the structure in kernel.
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      
      CC: Fabio Estevam <fabio.estevam@nxp.com>
      CC: Akshay Bhat <akshaybhat@timesys.com>
      CC: Ken Lin <Ken.Lin@advantech.com.tw>
      CC: Marek Vasut <marek.vasut@gmail.com>
      CC: Heiko Schocher <hs@denx.de>
      CC: "Sébastien Szymanski" <sebastien.szymanski@armadeus.com>
      CC: Christian Gmeiner <christian.gmeiner@gmail.com>
      CC: Stefan Roese <sr@denx.de>
      CC: Patrick Bruenn <p.bruenn@beckhoff.com>
      CC: Troy Kisky <troy.kisky@boundarydevices.com>
      CC: Nikita Kiryanov <nikita@compulab.co.il>
      CC: Otavio Salvador <otavio@ossystems.com.br>
      CC: "Eric Bénard" <eric@eukrea.com>
      CC: Jagan Teki <jagan@amarulasolutions.com>
      CC: Ye Li <ye.li@nxp.com>
      CC: Peng Fan <peng.fan@nxp.com>
      CC: Adrian Alonso <adrian.alonso@nxp.com>
      CC: Alison Wang <b18965@freescale.com>
      CC: Tim Harvey <tharvey@gateworks.com>
      CC: Martin Donnelly <martin.donnelly@ge.com>
      CC: Marcin Niestroj <m.niestroj@grinn-global.com>
      CC: Lukasz Majewski <lukma@denx.de>
      CC: Adam Ford <aford173@gmail.com>
      CC: "Albert ARIBAUD (3ADEV)" <albert.aribaud@3adev.fr>
      CC: Boris Brezillon <boris.brezillon@free-electrons.com>
      CC: Soeren Moch <smoch@web.de>
      CC: Richard Hu <richard.hu@technexion.com>
      CC: Wig Cheng <wig.cheng@technexion.com>
      CC: Vanessa Maegima <vanessa.maegima@nxp.com>
      CC: Max Krummenacher <max.krummenacher@toradex.com>
      CC: Stefan Agner <stefan.agner@toradex.com>
      CC: Markus Niebel <Markus.Niebel@tq-group.com>
      CC: Breno Lima <breno.lima@nxp.com>
      CC: Francesco Montefoschi <francesco.montefoschi@udoo.org>
      CC: Jaehoon Chung <jh80.chung@samsung.com>
      CC: Scott Wood <oss@buserror.net>
      CC: Joe Hershberger <joe.hershberger@ni.com>
      CC: Anatolij Gustschin <agust@denx.de>
      CC: Simon Glass <sjg@chromium.org>
      CC: "Andrew F. Davis" <afd@ti.com>
      CC: "Łukasz Majewski" <l.majewski@samsung.com>
      CC: Patrice Chotard <patrice.chotard@st.com>
      CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      CC: Hans de Goede <hdegoede@redhat.com>
      CC: Masahiro Yamada <yamada.masahiro@socionext.com>
      CC: Stephen Warren <swarren@nvidia.com>
      CC: Andre Przywara <andre.przywara@arm.com>
      CC: "Álvaro Fernández Rojas" <noltari@gmail.com>
      CC: York Sun <york.sun@nxp.com>
      CC: Xiaoliang Yang <xiaoliang.yang@nxp.com>
      CC: Chen-Yu Tsai <wens@csie.org>
      CC: George McCollister <george.mccollister@gmail.com>
      CC: Sven Ebenfeld <sven.ebenfeld@gmail.com>
      CC: Filip Brozovic <fbrozovic@gmail.com>
      CC: Petr Kulhavy <brain@jikos.cz>
      CC: Eric Nelson <eric@nelint.com>
      CC: Bai Ping <ping.bai@nxp.com>
      CC: Anson Huang <Anson.Huang@nxp.com>
      CC: Sanchayan Maity <maitysanchayan@gmail.com>
      CC: Lokesh Vutla <lokeshvutla@ti.com>
      CC: Patrick Delaunay <patrick.delaunay@st.com>
      CC: Gary Bisson <gary.bisson@boundarydevices.com>
      CC: Alexander Graf <agraf@suse.de>
      CC: u-boot@lists.denx.de
      Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
      Reviewed-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
      552a848e
    • Baruch Siach's avatar
      tools/kwbimage: fix v1 header verification · db7cd4ed
      Baruch Siach authored
      
      The verify_header callback in kwbimage.c only verifies v0 headers checksum.
      Running 'mkimage -l' on a v1 image gives the following misleading output:
      
      GP Header: Size ae000000 LoadAddr 34160600
      
      Implement support for v1 headers. For that, factor out the header checksum code
      to a separate main_hdr_checksum_ok() routine. This routine relies on the fact
      that the checksum field offset is the same in both v0 and v1 headers. With this
      patch applied 'mkimage -l' correctly identifies the image:
      
      Image Type:   MVEBU Boot from sdio Image
      Image version:1
      Data Size:    398904 Bytes = 389.55 KiB = 0.38 MiB
      Load Address: 007fffc0
      Entry Point:  00800000
      
      Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      db7cd4ed
    • Baruch Siach's avatar
      tools/kwbimage.h: make offset marks style consistent · 37d108b6
      Baruch Siach authored
      
      The offset marking in kwbimage.h is inconsistent. main_hdr_v0 uses decimals,
      main_hdr_v1 uses hex without '0x' prefix, secure_hdr_v1 uses hex with '0x'
      prefix. Make all offset marks hex with '0x' prefix.
      
      Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      37d108b6
    • Baruch Siach's avatar
      tools/kwbimage: update the list of SoCs using v1 header · ed72741d
      Baruch Siach authored
      
      Armada 38x also uses image header v1.
      
      Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      ed72741d
  18. Jul 11, 2017
Loading