-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest SKL, GRUB and Linux #45
Conversation
ef4d990
to
f567255
Compare
edf24b5
to
543a022
Compare
Add `-L` flag to make the deployment work instead of skipping over the source symbolic link. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
It's probably not updated after force-pushing linux branch ?
|
That branch was removed after the PR was merged. Updated that commit, improved commit messages and bumped Xen as well. SKL from master won't work with that Linux though. |
Switch to patches targeting 6.11 version (not just a rebase, includes incompatible changes done during upstream review). Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Not simply a rebase, the changes are incompatible with older versions of TrenchBoot Linux and SKL. Bash completion seems to get installed now. Also work around a workaround in poky: Tarballs of 2.12 are missing an automatically created file, so poky creates it not taking into account that this breaks out-of-tree builds: Make finds the file as "extra_deps.lst" in the source tree for its dependency checking through VPATH, but shell commands run in the build tree don't check the source tree and just fail. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This is to allow testing that kexec doesn't produce unexpected effects with DRTM. Example usage: kexec -l /boot/bzImage --reuse-cmdline && kexec -e Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This includes changes which align it against latest GRUB and Linux. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
0dec086
to
a0c8eea
Compare
pre-commit.ci autofix |
I let CI did the changes it wanted and it did this nonsense: e91a44f. Not sure what to make of it. @macpijan, I suspect that #49 broke
|
It is actually correct and important to add this space when using append: https://docs.yoctoproject.org/bitbake/2.2/bitbake-user-manual/bitbake-user-manual-metadata.html#appending-and-prepending-override-style-syntax Instead |
@SergiiDmytruk I fixed the xen recipe in: 0f96933 Can you please test it again, and publish results in some form to: https://github.com/dasharo/osfv-results ? We could merge it and assign some tag in meta-trenchboot, so in the future we know which set of components resulted in these results. |
dynamic-layers/virtualization-layer/recipes-extended/xen/xen-tb.inc
Outdated
Show resolved
Hide resolved
That's what I tried to use at first, but CI didn't like it:
Will take the space change then, maybe doubled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also getting a kernel panic on HP t630 (both legacy and UEFI, both with and without slaunch) regarding TPM code:
[ 2.681030] BUG: unable to handle page fault for address: ffffb2f100062000
[ 2.681694] #PF: supervisor read access in kernel mode
[ 2.681694] #PF: error_code(0x0000) - not-present page
[ 2.681694] PGD 100000067 P4D 100000067 PUD 100213067 PMD 100214067 PTE 0
[ 2.681694] Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI
[ 2.681694] CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.11.0-rc7-yocto-standard #1
[ 2.681694] Hardware name: HP HP t630 Thin Client/8158, BIOS M40 v01.05 07/07/2017
[ 2.681694] RIP: 0010:ioread8+0x35/0x70
[ 2.681694] Code: 77 28 48 81 ff 00 00 01 00 76 0b 89 fa ec 0f b6 c0 e9 4f af 7a 00 8b 05 89 06 21 01 85 c0 75 14 b8 ff 00 00 00 e9 3b af 7a 00 <8a> 07 0f b6 c0 e9 31 af 7a 00 55 83 e8 01 48 89 fe 48 c7 c2 58 71
[ 2.681694] RSP: 0018:ffffb2f100037ad0 EFLAGS: 00010292
[ 2.681694] RAX: 0000000000000000 RBX: ffffb2f100037b10 RCX: ffffb2f100037b0f
[ 2.681694] RDX: 0000000000000001 RSI: 0000000000001000 RDI: ffffb2f100062000
[ 2.681694] RBP: ffffb2f100037af8 R08: 0000000000000000 R09: 0000000000000010
[ 2.681694] R10: ffffb2f100037aa0 R11: ffffffff9241b210 R12: 0000000000001000
[ 2.681694] R13: ffff8ea34303bd28 R14: ffffb2f100037b10 R15: 0000000000000000
[ 2.681694] FS: 0000000000000000(0000) GS:ffff8ea513c00000(0000) knlGS:0000000000000000
[ 2.681694] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.681694] CR2: ffffb2f100062000 CR3: 000000021dc32000 CR4: 00000000001506f0
[ 2.681694] Call Trace:
[ 2.681694] <TASK>
[ 2.681694] ? show_regs+0x68/0x80
[ 2.681694] ? __die+0x28/0x70
[ 2.681694] ? page_fault_oops+0x17f/0x4c0
[ 2.681694] ? ioread8+0x35/0x70
[ 2.681694] ? search_bpf_extables+0x64/0x90
[ 2.681694] ? ioread8+0x35/0x70
[ 2.681694] ? kernelmode_fixup_or_oops.isra.0+0x5f/0x70
[ 2.681694] ? __bad_area_nosemaphore+0x17b/0x240
[ 2.681694] ? bad_area_nosemaphore+0x16/0x20
[ 2.681694] ? do_kern_addr_fault.part.0+0x6e/0x80
[ 2.681694] ? exc_page_fault+0x140/0x1a0
[ 2.681694] ? asm_exc_page_fault+0x2b/0x30
[ 2.681694] ? ioread8+0x35/0x70
[ 2.681694] ? tpm_tcg_read_bytes+0x51/0xb0
[ 2.681694] check_locality+0x4b/0x90
[ 2.681694] tpm_tis_core_init+0x2f7/0x8f0
[ 2.681694] tpm_tis_init.part.0+0xa3/0x120
[ 2.681694] ? __pfx_tpm_tis_pnp_init+0x10/0x10
[ 2.681694] tpm_tis_pnp_init+0xda/0x110
[ 2.681694] pnp_device_probe+0xc4/0x170
[ 2.681694] really_probe+0xde/0x2e0
[ 2.681694] __driver_probe_device+0x78/0x120
[ 2.681694] driver_probe_device+0x24/0xf0
[ 2.681694] __driver_attach+0x8f/0x190
[ 2.681694] ? __pfx___driver_attach+0x10/0x10
[ 2.681694] bus_for_each_dev+0x91/0xe0
[ 2.681694] driver_attach+0x22/0x30
[ 2.681694] bus_add_driver+0xee/0x220
[ 2.681694] driver_register+0x62/0x120
[ 2.681694] ? __pfx_init_tis+0x10/0x10
[ 2.681694] pnp_register_driver+0x24/0x30
[ 2.681694] init_tis+0x73/0xe0
[ 2.681694] do_one_initcall+0x6b/0x260
[ 2.681694] kernel_init_freeable+0x1c6/0x300
[ 2.681694] ? __pfx_kernel_init+0x10/0x10
[ 2.681694] kernel_init+0x1e/0x1b0
[ 2.681694] ret_from_fork+0x41/0x60
[ 2.681694] ? __pfx_kernel_init+0x10/0x10
[ 2.681694] ret_from_fork_asm+0x1a/0x30
[ 2.681694] </TASK>
[ 2.681694] Modules linked in:
[ 2.681694] CR2: ffffb2f100062000
[ 2.681694] ---[ end trace 0000000000000000 ]---
[ 2.681694] RIP: 0010:ioread8+0x35/0x70
[ 2.681694] Code: 77 28 48 81 ff 00 00 01 00 76 0b 89 fa ec 0f b6 c0 e9 4f af 7a 00 8b 05 89 06 21 01 85 c0 75 14 b8 ff 00 00 00 e9 3b af 7a 00 <8a> 07 0f b6 c0 e9 31 af 7a 00 55 83 e8 01 48 89 fe 48 c7 c2 58 71
[ 2.681694] RSP: 0018:ffffb2f100037ad0 EFLAGS: 00010292
[ 2.681694] RAX: 0000000000000000 RBX: ffffb2f100037b10 RCX: ffffb2f100037b0f
[ 2.681694] RDX: 0000000000000001 RSI: 0000000000001000 RDI: ffffb2f100062000
[ 2.681694] RBP: ffffb2f100037af8 R08: 0000000000000000 R09: 0000000000000010
[ 2.681694] R10: ffffb2f100037aa0 R11: ffffffff9241b210 R12: 0000000000001000
[ 2.681694] R13: ffff8ea34303bd28 R14: ffffb2f100037b10 R15: 0000000000000000
[ 2.681694] FS: 0000000000000000(0000) GS:ffff8ea513c00000(0000) knlGS:0000000000000000
[ 2.681694] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.681694] CR2: ffffb2f100062000 CR3: 000000021dc32000 CR4: 00000000001506f0
[ 2.681694] note: swapper/0[1] exited with irqs disabled
[ 3.072368] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009
[ 3.073356] Kernel Offset: 0xfa00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 3.073356] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000009 ]---
This particular platform has TPM1.2, I have the same platform with TPM2.0 at home, I'll check if the same problem exists there.
With UEFI, on VGA I'm getting this:
error: no such device: ((hd0,msdos1)/EFI/BOOT)/EFI/BOOT/grub.cfg
Normal GRUB output doesn't show there, IIUC this is because grub.cfg
is built-in into EFI binary. Serial output works fine.
Done this way because things in SKL will change more drastically later and there is no point in committing this. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
There is no UEFI slaunch in these changes, it's not Oracle's GRUB, so don't bother testing UEFI.
|
It is remapped, so the offset doesn't matter. I've analyzed last instructions leading to the fault and the locality address (locality << 12) is in
|
Don't know why I thought that 64K-alignment is reasonable to expect...
tpm_tis.c seems to use |
It doesn't get this from ACPI, but it does from PNP:
I will check again if platform with TPM 2.0 (and a newer BIOS) also has this problem. It seems to be firmware issue. |
Since this has been confirmed to work on at least Linux path on APU2 board, I will go ahead and merge it. Let's discuss further improvements in followup MRs or issues. |
Xen is removed until #44 is clarified.