Skip to content

provide ELF/KEXEC support for MIPS ath79 and malta

Oleksij Rempel barebox 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10resource: add create_resource() helper functioncommon/resource.c include/linux/ioport.h+17 -00 replies
2/10port resource_overlaps() from kernelinclude/linux/ioport.h+6 -00 replies
3/10filetype: add ELF typecommon/filetype.c include/filetype.h+6 -00 replies
4/10bootm: add kexec ELF supportcommands/Kconfig common/Kconfig include/bootm.h +7 more+1068 -04 replies
5/10MIPS: add kexec ELF loading supportarch/mips/include/asm/elf.h arch/mips/lib/Makefile arch/mips/lib/kexec-mach-generic.c +3 more+468 -13 replies
6/10MIPS: ath79: enable kexecarch/mips/Kconfig+1 -00 replies
7/10MIPS: malta: enable kexecarch/mips/Kconfig+1 -00 replies
8/10MIPS: configs: add KEXEC=y to atheros devicesarch/mips/configs/8devices-lima_defconfig arch/mips/configs/black-swift_defconfig arch/mips/configs/dptechnics-dpt-module_defconfig +2 more+5 -00 replies
9/10MIPS: configs: dptechnics-dpt-module: enable watchdog pollerarch/mips/configs/dptechnics-dpt-module_defconfig+1 -00 replies
10/10MIPS: malta: update malta qemu defconfigarch/mips/configs/qemu-malta_defconfig+10 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 00/10] provide ELF/KEXEC support for MIPS ath79 and malta

This patch set is a squashed and rebased patch set of work primely done by:
Antony Pavlov, Peter Mamonov and Yegor Yefremov.

I did some clean-ups and updates.

This code suppose provide kernel start support for some MIPS machines. For example ath79 (Atheros) and malta should be able to work with it.

So far only two UHI boot protocols are supported:
- second argument is command line
- second argument is address to devicetree

Some work should be done to start using barebox internal devicetree patching to provide cmdline over patched devicetree.

ARM and other arches would probably work with some more or less work.

Antony Pavlov (5):
resource: add create_resource() helper function
filetype: add ELF type
bootm: add kexec ELF support
MIPS: add kexec ELF loading support
MIPS: malta: enable kexec

Oleksij Rempel (5):
port resource_overlaps() from kernel
MIPS: ath79: enable kexec
MIPS: configs: add KEXEC=y to atheros devices
MIPS: configs: dptechnics-dpt-module: enable watchdog poller
MIPS: malta: update malta qemu defconfig

 arch/mips/Kconfig                                 |   2 +
 arch/mips/configs/8devices-lima_defconfig         |   1 +
 arch/mips/configs/black-swift_defconfig           |   1 +
 arch/mips/configs/dptechnics-dpt-module_defconfig |   2 +
 arch/mips/configs/qemu-malta_defconfig            |  13 +-
 arch/mips/configs/tplink-mr3020_defconfig         |   1 +
 arch/mips/configs/tplink-wdr4300_defconfig        |   1 +
 arch/mips/include/asm/elf.h                       |   8 +-
 arch/mips/lib/Makefile                            |   4 +
 arch/mips/lib/kexec-mach-generic.c                |  21 +
 arch/mips/lib/kexec-mips.c                        | 307 ++++++++++++
 arch/mips/lib/machine_kexec.h                     |  21 +
 arch/mips/lib/relocate_kernel.S                   | 108 +++++
 commands/Kconfig                                  |   7 +
 common/Kconfig                                    |   3 +
 common/filetype.c                                 |   5 +
 common/resource.c                                 |  15 +
 include/bootm.h                                   |   3 +
 include/filetype.h                                |   1 +
 include/kexec.h                                   | 118 +++++
 include/linux/ioport.h                            |   8 +
 lib/Makefile                                      |   1 +
 lib/kexec/Makefile                                |   4 +
 lib/kexec/kexec-bootm-elf.c                       |  42 ++
 lib/kexec/kexec-elf-exec.c                        |  70 +++
 lib/kexec/kexec-elf.c                             | 565 ++++++++++++++++++++++
 lib/kexec/kexec.c                                 | 255 ++++++++++
 27 files changed, 1583 insertions(+), 4 deletions(-)
 create mode 100644 arch/mips/lib/kexec-mach-generic.c
 create mode 100644 arch/mips/lib/kexec-mips.c
 create mode 100644 arch/mips/lib/machine_kexec.h
 create mode 100644 arch/mips/lib/relocate_kernel.S
 create mode 100644 include/kexec.h
 create mode 100644 lib/kexec/Makefile
 create mode 100644 lib/kexec/kexec-bootm-elf.c
 create mode 100644 lib/kexec/kexec-elf-exec.c
 create mode 100644 lib/kexec/kexec-elf.c
 create mode 100644 lib/kexec/kexec.c
Signature · 7 lines
2.14.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox