From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v6 0/7] cmd: add efidebug for efi environment
Date: Tue, 29 Jan 2019 12:07:35 +0900 [thread overview]
Message-ID: <20190129030734.GR20286@linaro.org> (raw)
In-Reply-To: <d02e6a4b-d39f-3a3d-3910-84be491fa077@suse.de>
Alex,
On Fri, Jan 25, 2019 at 12:56:52PM +0100, Alexander Graf wrote:
>
>
> On 24.01.19 12:04, AKASHI Takahiro wrote:
> > This patch set is a collection of patches to enhance efi user interfaces
> > /commands. It will help improve user experience on efi boot and make it
> > more usable *without* edk2's shell utility.
> >
> > Let's see how it works:
> > => efidebug boot add 1 SHELL scsi 1:1 /Shell.efi ""
> > => efidebug boot add 2 HELLO scsi 1:1 /hello.efi ""
> > => efidebug boot dump
> > Boot0001:
> > attributes: A-- (0x00000001)
> > label: SHELL
> > file_path: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/Scsi(1,0)/HD(1,MBR,0x086246ba,0x800,0x40000)/\\Shell.efi
> > data:
> > Boot0002:
> > attributes: A-- (0x00000001)
> > label: HELLO
> > file_path: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/Scsi(1,0)/HD(1,MBR,0x086246ba,0x800,0x40000)/\\hello.efi
> > data:
> >
> > => efidebug boot order 1 2
> > => efidebug boot order
> > 1: Boot0001: SHELL
> > 2: Boot0002: HELLO
> >
> > => run -e Boot0002 (or bootefi bootmgr - 2) ; '-' means no dtb specified
> > WARNING: booting without device tree
> > Booting: HELLO
> > ## Starting EFI application at 000000007db8b040 ...
> > Hello, world!
> > ## Application terminated, r = 0
> >
> > => env set -e PlatformLang en ; important!
> > => env print -e
> > Boot0001: BS|RT, DataSize = 0x79
> > 00000000: 01 00 00 00 66 00 53 00 48 00 45 00 4c 00 4c 00 ....f.S.H.E.L.L.
> > 00000010: 00 00 01 04 14 00 b9 73 1d e6 84 a3 cc 4a ae ab .......s.....J..
> > 00000020: 82 e8 28 f3 62 8b 03 02 08 00 01 00 00 00 04 01 ..(.b...........
> > 00000030: 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 00 *...............
> > 00000040: 04 00 00 00 00 00 ba 46 62 08 00 00 00 00 00 00 .......Fb.......
> > 00000050: 00 00 00 00 00 00 01 01 04 04 1c 00 5c 00 5c 00 ............\.\.
> > 00000060: 53 00 68 00 65 00 6c 00 6c 00 2e 00 65 00 66 00 S.h.e.l.l...e.f.
> > 00000070: 69 00 00 00 7f ff 04 00 00 i........
> > Boot0002: BS|RT, DataSize = 0x79
> > 00000000: 01 00 00 00 66 00 48 00 45 00 4c 00 4c 00 4f 00 ....f.H.E.L.L.O.
> > 00000010: 00 00 01 04 14 00 b9 73 1d e6 84 a3 cc 4a ae ab .......s.....J..
> > 00000020: 82 e8 28 f3 62 8b 03 02 08 00 01 00 00 00 04 01 ..(.b...........
> > 00000030: 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 00 *...............
> > 00000040: 04 00 00 00 00 00 ba 46 62 08 00 00 00 00 00 00 .......Fb.......
> > 00000050: 00 00 00 00 00 00 01 01 04 04 1c 00 5c 00 5c 00 ............\.\.
> > 00000060: 68 00 65 00 6c 00 6c 00 6f 00 2e 00 65 00 66 00 h.e.l.l.o...e.f.
> > 00000070: 69 00 00 00 7f ff 04 00 00 i........
> > BootOrder: BS|RT, DataSize = 0x4
> > 00000000: 01 00 02 00 ....
> > PlatformLang: BS|RT, DataSize = 0x2
> > 00000000: 65 6e en
> >
> > => run -e Boot0001 or bootefi bootmgr
> >
> > (UEFI shell ...)
> >
> > "env set" command now supports UEFI shell-like syntax:
> >
> > => env set -e foo =S\"akashi\" =0x012345 =Habcdef
> > => env print -e foo
> > foo: BS|RT, DataSize = 0xd
> > 00000000: 61 6b 61 73 68 69 45 23 01 00 ab cd ef akashiE#.....
> >
> > Other useful sub commands are:
> > => efidebug devices ; print uefi devices
> > => efidebug drivers ; print uefi drivers
> > => efidebug dh ; print uefi handles
> > => efidebug images ; print loaded images
> > => efidebug memmap ; dump uefi memory map
> >
> > Enjoy!
>
> Did this patch set successfully pass Travis tests? Could you please
> point me to the results?
Not yet, probably next time?
It may take some time for me to set up travis.
-Takahiro Akashi
>
> Thanks,
>
> Alex
prev parent reply other threads:[~2019-01-29 3:07 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-24 11:04 [U-Boot] [PATCH v6 0/7] cmd: add efidebug for efi environment AKASHI Takahiro
2019-01-24 11:04 ` [U-Boot] [PATCH v6 1/7] cmd: env: add "-e" option for handling UEFI variables AKASHI Takahiro
2019-01-25 12:42 ` Alexander Graf
2019-01-29 3:22 ` AKASHI Takahiro
2019-01-24 11:04 ` [U-Boot] [PATCH v6 2/7] cmd: add efidebug command AKASHI Takahiro
2019-02-19 19:32 ` Heinrich Schuchardt
2019-02-20 4:58 ` AKASHI Takahiro
2019-02-20 6:40 ` Heinrich Schuchardt
2019-01-24 11:04 ` [U-Boot] [PATCH v6 3/7] cmd: efidebug: add devices command AKASHI Takahiro
2019-02-19 19:46 ` Heinrich Schuchardt
2019-02-19 19:53 ` Heinrich Schuchardt
2019-02-20 2:20 ` AKASHI Takahiro
2019-02-20 6:49 ` Heinrich Schuchardt
2019-02-20 7:42 ` AKASHI Takahiro
2019-01-24 11:04 ` [U-Boot] [PATCH v6 4/7] cmd: efidebug: add drivers command AKASHI Takahiro
2019-02-19 19:49 ` Heinrich Schuchardt
2019-02-20 2:22 ` AKASHI Takahiro
2019-01-24 11:04 ` [U-Boot] [PATCH v6 5/7] cmd: efidebug: add dh command AKASHI Takahiro
2019-01-24 11:04 ` [U-Boot] [PATCH v6 6/7] cmd: efidebug: add images command AKASHI Takahiro
2019-01-29 15:35 ` Alexander Graf
2019-01-30 0:00 ` AKASHI Takahiro
2019-02-19 19:51 ` Heinrich Schuchardt
2019-01-24 11:04 ` [U-Boot] [PATCH v6 7/7] cmd: efidebug: add memmap command AKASHI Takahiro
2019-02-19 19:11 ` Heinrich Schuchardt
2019-02-20 0:53 ` AKASHI Takahiro
2019-02-20 6:53 ` Heinrich Schuchardt
2019-02-20 7:45 ` AKASHI Takahiro
2019-01-25 11:56 ` [U-Boot] [PATCH v6 0/7] cmd: add efidebug for efi environment Alexander Graf
2019-01-29 3:07 ` AKASHI Takahiro [this message]
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=20190129030734.GR20286@linaro.org \
--to=takahiro.akashi@linaro.org \
--cc=u-boot@lists.denx.de \
/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