|
From: Timo L. <tim...@ik...> - 2020-05-31 21:57:18
|
On Fri, 29 May 2020, Lukasz Hawrylko wrote:
> On Fri, 2020-05-29 at 12:36 +0300, Timo Lindfors wrote:
> I see "Failed to get EFI memory map" message, did you configure BIOS to
> use legacy boot? "set debug=mmap" should enable EFI memory map print in
> grub_efi_mmap_iterate(), but this does not work when booted in legacy
> mode.
Yes, Thinkpad R400 does not seem to support EFI. Finding a laptop
that that does TPM 2.0, UEFI, TXT and serial port seems to be bit
tricky but I'll keep looking.
> As printk is blocking call you can add few additional prints somewhere
> around tboot.c:384 and inside copy_e820_map() and efi_memmap_copy() to
> find out where exactly it hangs.
It seems to be stuck in the while loop in find_mb2_tag_type. Placing
printk(TBOOT_INFO"start=%p tag_type=%d start->type=%d start->size=%d\n",
start,
tag_type,
start->type,
start->size);
inside the while loop prints
TBOOT: start=0x10008 tag_type=17 start->type=3031684 start->size=-2147418113
TBOOT: start=0x80020008 tag_type=17 start->type=-1 start->size=-1
TBOOT: start=0x80020008 tag_type=17 start->type=-1 start->size=-1
TBOOT: start=0x80020008 tag_type=17 start->type=-1 start->size=-1
TBOOT: start=0x80020008 tag_type=17 start->type=-1 start->size=-1
TBOOT: start=0x80020008 tag_type=17 start->type=-1 start->size=-1
TBOOT: start=0x80020008 tag_type=17 start->type=-1 start->size=-1
TBOOT: start=0x80020008 tag_type=17 start->type=-1 start->size=-1
TBOOT: start=0x80020008 tag_type=17 start->type=-1 start->size=-1
TBOOT: start=0x80020008 tag_type=17 start->type=-1 start->size=-1
TBOOT: start=0x80020008 tag_type=17 start->type=-1 start->size=-1
...
-Timo
|