From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: Initial EFI Support
Date: Tue, 8 Jul 2014 10:49:56 +0200 [thread overview]
Message-ID: <1404809417-21477-1-git-send-email-s.hauer@pengutronix.de> (raw)
The following adds initial support for running barebox as an EFI
payload on X86 PCs.
Several things are implemented already to make it useful and
to look around in an EFI system:
- Simple Network Protocol for networking
- Start applications for installing drivers and starting Linux
- Access EFI provided filesystems
- Block device access
The EFI Port still has some rough edges. The screen output is limited
to 80x25 and the keyboard driver doesn't recognize ctrl-C. I couldn't
get find a proper UEFI serial driver yet, so the serial port is accessed
via inb/outb on ioport 0x3f8 and not via UEFI.
For those interested in EFI and X86 hardware this port still offers
some interesting insights in EFI.
There's also even Documentation available, see Patch 16/21.
Sascha
----------------------------------------------------------------
Sascha Hauer (21):
Make IPaddr_t a 32bit type
oftree command: Use size_t for size
fat: Use correct format specifier
readkey: keys are unsugned char
of: platform: Use PRINTF_CONVERSION_RESOURCE for printing resources
console: Add puts callback to console devices
Add hex_byte_pack and hex_byte_pack_upper from kernel
vsprintf: Support pU for printing UUIDs
Add beginning wchar support
block: Add flush callback
Move efi.h to include/
filetype: Add DOS EXE file detection support
efi: Add more error codes
serial: ns16550: Add mmiobase to private data
serial: ns16550: Add register read/write function pointers to private data
Documentation: Add EFI documentation
Add initial EFI architecture support
net: Add EFI Simple Network Protocol Driver
serial: Add EFI stdio driver
fs: implement EFI filesystem driver
fs: implement EFI variable filesystem driver
Documentation/boards/efi.rst | 279 ++++++
Documentation/glossary.rst | 3 +
arch/efi/Kconfig | 47 +
arch/efi/Makefile | 41 +
arch/efi/configs/efi_defconfig | 73 ++
arch/efi/efi/Makefile | 2 +
arch/efi/efi/clocksource.c | 60 ++
arch/efi/efi/efi-block-io.c | 174 ++++
arch/efi/efi/efi-device.c | 348 +++++++
arch/efi/efi/efi-image.c | 105 +++
arch/efi/efi/efi.c | 342 +++++++
arch/efi/efi/env-efi/network/eth0-discover | 5 +
arch/efi/include/asm/barebox.h | 1 +
arch/efi/include/asm/bitops.h | 15 +
arch/efi/include/asm/byteorder.h | 8 +
arch/efi/include/asm/common.h | 4 +
arch/efi/include/asm/dma.h | 13 +
arch/efi/include/asm/elf.h | 60 ++
arch/efi/include/asm/io.h | 55 ++
arch/efi/include/asm/posix_types.h | 93 ++
arch/efi/include/asm/sections.h | 1 +
arch/efi/include/asm/string.h | 1 +
arch/efi/include/asm/swab.h | 6 +
arch/efi/include/asm/types.h | 73 ++
arch/efi/include/asm/unaligned.h | 19 +
arch/efi/include/mach/debug_ll.h | 20 +
arch/efi/include/mach/efi-device.h | 45 +
arch/efi/include/mach/efi.h | 24 +
arch/efi/lib/.gitignore | 2 +
arch/efi/lib/Makefile | 4 +
arch/efi/lib/crt0-efi-ia32.S | 76 ++
arch/efi/lib/crt0-efi-x86_64.S | 75 ++
arch/efi/lib/elf_ia32_efi.lds.S | 102 +++
arch/efi/lib/elf_x86_64_efi.lds.S | 93 ++
arch/efi/lib/reloc_ia32.c | 97 ++
arch/efi/lib/reloc_x86_64.c | 96 ++
commands/edit.c | 11 +-
commands/oftree.c | 2 +-
common/Kconfig | 8 +
common/Makefile | 4 +-
common/block.c | 3 +
common/console.c | 29 +
common/efi-devicepath.c | 1370 ++++++++++++++++++++++++++++
common/efi-guid.c | 11 +
common/filetype.c | 4 +
common/memory.c | 2 +-
common/partitions/efi.c | 2 +-
common/partitions/efi.h | 2 +-
drivers/net/Kconfig | 4 +
drivers/net/Makefile | 1 +
drivers/net/efi-snp.c | 296 ++++++
drivers/of/Kconfig | 2 +-
drivers/of/platform.c | 3 +-
drivers/serial/Kconfig | 4 +
drivers/serial/Makefile | 1 +
drivers/serial/efi-stdio.c | 367 ++++++++
drivers/serial/serial_ns16550.c | 237 ++---
fs/Kconfig | 15 +
fs/Makefile | 2 +
fs/efi.c | 559 ++++++++++++
fs/efivarfs.c | 340 +++++++
fs/fat/fat.c | 4 +-
include/block.h | 1 +
include/console.h | 1 +
include/efi.h | 508 +++++++++++
include/filetype.h | 1 +
include/linux/efi.h | 547 -----------
include/linux/kernel.h | 23 +-
include/param.h | 2 +-
include/wchar.h | 16 +
lib/Kconfig | 3 +
lib/Makefile | 1 +
lib/misc.c | 3 +
lib/readkey.c | 2 +-
lib/vsprintf.c | 62 ++
lib/wchar.c | 80 ++
76 files changed, 6319 insertions(+), 676 deletions(-)
create mode 100644 Documentation/boards/efi.rst
create mode 100644 arch/efi/Kconfig
create mode 100644 arch/efi/Makefile
create mode 100644 arch/efi/configs/efi_defconfig
create mode 100644 arch/efi/efi/Makefile
create mode 100644 arch/efi/efi/clocksource.c
create mode 100644 arch/efi/efi/efi-block-io.c
create mode 100644 arch/efi/efi/efi-device.c
create mode 100644 arch/efi/efi/efi-image.c
create mode 100644 arch/efi/efi/efi.c
create mode 100644 arch/efi/efi/env-efi/network/eth0-discover
create mode 100644 arch/efi/include/asm/barebox.h
create mode 100644 arch/efi/include/asm/bitops.h
create mode 100644 arch/efi/include/asm/byteorder.h
create mode 100644 arch/efi/include/asm/common.h
create mode 100644 arch/efi/include/asm/dma.h
create mode 100644 arch/efi/include/asm/elf.h
create mode 100644 arch/efi/include/asm/io.h
create mode 100644 arch/efi/include/asm/posix_types.h
create mode 100644 arch/efi/include/asm/sections.h
create mode 100644 arch/efi/include/asm/string.h
create mode 100644 arch/efi/include/asm/swab.h
create mode 100644 arch/efi/include/asm/types.h
create mode 100644 arch/efi/include/asm/unaligned.h
create mode 100644 arch/efi/include/mach/debug_ll.h
create mode 100644 arch/efi/include/mach/efi-device.h
create mode 100644 arch/efi/include/mach/efi.h
create mode 100644 arch/efi/lib/.gitignore
create mode 100644 arch/efi/lib/Makefile
create mode 100644 arch/efi/lib/crt0-efi-ia32.S
create mode 100644 arch/efi/lib/crt0-efi-x86_64.S
create mode 100644 arch/efi/lib/elf_ia32_efi.lds.S
create mode 100644 arch/efi/lib/elf_x86_64_efi.lds.S
create mode 100644 arch/efi/lib/reloc_ia32.c
create mode 100644 arch/efi/lib/reloc_x86_64.c
create mode 100644 common/efi-devicepath.c
create mode 100644 common/efi-guid.c
create mode 100644 drivers/net/efi-snp.c
create mode 100644 drivers/serial/efi-stdio.c
create mode 100644 fs/efi.c
create mode 100644 fs/efivarfs.c
create mode 100644 include/efi.h
delete mode 100644 include/linux/efi.h
create mode 100644 include/wchar.h
create mode 100644 lib/wchar.c
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2014-07-08 8:50 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-08 8:49 Sascha Hauer [this message]
2014-07-08 8:49 ` [PATCH 01/21] Make IPaddr_t a 32bit type Sascha Hauer
2014-07-08 8:49 ` [PATCH 02/21] oftree command: Use size_t for size Sascha Hauer
2014-07-08 8:49 ` [PATCH 03/21] fat: Use correct format specifier Sascha Hauer
2014-07-08 8:50 ` [PATCH 04/21] readkey: keys are unsugned char Sascha Hauer
2014-07-08 8:50 ` [PATCH 05/21] of: platform: Use PRINTF_CONVERSION_RESOURCE for printing resources Sascha Hauer
2014-07-08 8:50 ` [PATCH 06/21] console: Add puts callback to console devices Sascha Hauer
2014-07-08 8:50 ` [PATCH 07/21] Add hex_byte_pack and hex_byte_pack_upper from kernel Sascha Hauer
2014-07-08 8:50 ` [PATCH 08/21] vsprintf: Support pU for printing UUIDs Sascha Hauer
2014-07-08 8:50 ` [PATCH 09/21] Add beginning wchar support Sascha Hauer
2014-07-11 12:35 ` Antony Pavlov
2014-07-14 6:05 ` Sascha Hauer
2014-07-08 8:50 ` [PATCH 10/21] block: Add flush callback Sascha Hauer
2014-07-08 8:50 ` [PATCH 11/21] Move efi.h to include/ Sascha Hauer
2014-07-08 8:50 ` [PATCH 12/21] filetype: Add DOS EXE file detection support Sascha Hauer
2014-07-08 8:50 ` [PATCH 13/21] efi: Add more error codes Sascha Hauer
2014-07-08 8:50 ` [PATCH 14/21] serial: ns16550: Add mmiobase to private data Sascha Hauer
2014-07-08 8:50 ` [PATCH 15/21] serial: ns16550: Add register read/write function pointers " Sascha Hauer
2014-07-08 8:50 ` [PATCH 16/21] Documentation: Add EFI documentation Sascha Hauer
2014-07-08 9:04 ` Jean-Christophe PLAGNIOL-VILLARD
2014-07-08 8:50 ` [PATCH 17/21] Add initial EFI architecture support Sascha Hauer
2014-07-08 8:50 ` [PATCH 18/21] net: Add EFI Simple Network Protocol Driver Sascha Hauer
2014-07-08 8:50 ` [PATCH 19/21] serial: Add EFI stdio driver Sascha Hauer
2014-07-08 8:50 ` [PATCH 20/21] fs: implement EFI filesystem driver Sascha Hauer
2014-07-08 8:50 ` [PATCH 21/21] fs: implement EFI variable " Sascha Hauer
2014-07-08 8:53 ` Initial EFI Support Jean-Christophe PLAGNIOL-VILLARD
2014-07-08 8:59 ` Sascha Hauer
2014-07-08 9:52 ` Sascha Hauer
2014-07-08 10:04 ` Jean-Christophe PLAGNIOL-VILLARD
2014-07-08 16:38 ` [PATCH 1/2] EFI: enable printf UUID support Jean-Christophe PLAGNIOL-VILLARD
2014-07-08 16:38 ` [PATCH 2/2] EFI: introduce efi_strguid to convert GUID to human readable names Jean-Christophe PLAGNIOL-VILLARD
2014-07-11 7:23 ` 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=1404809417-21477-1-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@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