mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Oleksij Rempel <o.rempel@pengutronix.de>
Subject: [PATCH v3 0/4] MIPS: add relocation support
Date: Wed, 10 Apr 2019 09:04:38 +0200	[thread overview]
Message-ID: <20190410070442.10322-1-o.rempel@pengutronix.de> (raw)

with this patches, same main binary version of barebox xan be reused
on different board with different RAM size.
The barebox will find best possible location for it self depending
on RAM size information provided by PBL.

changes v3:
- fix "images/pbl.lds:24: undefined symbol `MALLOC_BASE' referenced in
  expression"
- fix out of tree build.

changes v2:
- don't remove no-pic flag to avoid confusion.
- don't set ggdb flag for barebox tools.


Oleksij Rempel (4):
  MIPS: relocation: pass ram size to pbl_main_entry
  MIPS: relocation: add relocation support
  MIPS: relocation: do not use configurable memory layout
  MIPS: remove request_sdram_region "fdt"

 arch/mips/Kconfig                             |  19 +-
 arch/mips/Makefile                            |   9 +-
 arch/mips/boards/8devices-lima/lowlevel.S     |   3 +-
 arch/mips/boards/black-swift/lowlevel.S       |   3 +-
 arch/mips/boards/dlink-dir-320/lowlevel.S     |   3 +-
 .../boards/dptechnics-dpt-module/lowlevel.S   |   3 +-
 arch/mips/boards/img-ci20/lowlevel.S          |   3 +-
 arch/mips/boards/loongson-ls1b/lowlevel.S     |   3 +-
 arch/mips/boards/qemu-malta/lowlevel.S        |   3 +-
 arch/mips/boards/ritmix-rzx50/lowlevel.S      |   3 +-
 arch/mips/boards/tplink-mr3020/lowlevel.S     |   3 +-
 arch/mips/boards/tplink-wdr4300/lowlevel.S    |   3 +-
 arch/mips/boot/dtb.c                          |   4 -
 arch/mips/boot/main_entry-pbl.c               |  13 +-
 arch/mips/boot/main_entry.c                   |  17 +-
 arch/mips/boot/start.S                        |   4 +-
 arch/mips/include/asm/asm.h                   |   3 +-
 arch/mips/include/asm/pbl_macros.h            |   4 +-
 arch/mips/include/asm/relocs.h                |  23 +
 arch/mips/include/asm/sections.h              |  14 +
 arch/mips/lib/Makefile                        |   2 +
 arch/mips/lib/barebox.lds.S                   |  27 +-
 arch/mips/lib/cpu-probe.c                     |  14 +
 arch/mips/lib/pbl.lds.S                       |  13 +-
 arch/mips/lib/reloc.c                         | 182 ++++++++
 arch/mips/lib/sections.c                      |   9 +
 scripts/Makefile                              |   1 +
 scripts/mips-relocs.c                         | 426 ++++++++++++++++++
 28 files changed, 778 insertions(+), 36 deletions(-)
 create mode 100644 arch/mips/include/asm/relocs.h
 create mode 100644 arch/mips/lib/reloc.c
 create mode 100644 arch/mips/lib/sections.c
 create mode 100644 scripts/mips-relocs.c

-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2019-04-10  7:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-10  7:04 Oleksij Rempel [this message]
2019-04-10  7:04 ` [PATCH v3 1/4] MIPS: relocation: pass ram size to pbl_main_entry Oleksij Rempel
2019-04-10  7:04 ` [PATCH v3 2/4] MIPS: relocation: add relocation support Oleksij Rempel
2019-04-10  7:04 ` [PATCH v3 3/4] MIPS: relocation: do not use configurable memory layout Oleksij Rempel
2019-04-10  7:04 ` [PATCH v3 4/4] MIPS: remove request_sdram_region "fdt" Oleksij Rempel
2019-04-23  8:32 ` [PATCH v3 0/4] MIPS: add relocation support Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190410070442.10322-1-o.rempel@pengutronix.de \
    --to=o.rempel@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox