dasharo-issues icon indicating copy to clipboard operation
dasharo-issues copied to clipboard

CBMEM buffer too small to fill full boot log on PC Engines apu2

Open mkopec opened this issue 11 months ago • 4 comments

Device

PC Engines apu4

Dasharo version

Dasharo (coreboot+UEFI) v0.9.0

Affected component(s) or functionality

CBMEM logging

Brief summary

logs from cbmem -c start somewhere during verstage, so we lose some logs, including Vboot recovery / selected slot

How reproducible

100%

How to reproduce

  • boot apu4 into linux OS
  • run cbmem -c

Expected behavior

Full boot logs starting in bootblock are displayed

Actual behavior

Beginning of logs is cut off:

*** Pre-CBMEM romstage console overflowed, log truncated! ***

Screenshots

No response

Additional context

cbmem.log

Also, can we pass the Vboot workbuf or just recovery / slot selection via an EFI var instead of relying on logs?

Solutions you've tried

No response

mkopec avatar Mar 22 '24 13:03 mkopec

Minimal tool for retrieving the needed Vboot data is added in: https://github.com/Dasharo/dasharo-tools/pull/5

mkopec avatar Mar 26 '24 15:03 mkopec

https://github.com/Dasharo/coreboot/blob/pcengines_apu2_v0.9.0/configs/config.pcengines_apu4#L6

The cbmem buffer size has been increased

miczyg1 avatar Mar 28 '24 09:03 miczyg1

Are there new binaries to be flashed?

pkubaj avatar Mar 29 '24 16:03 pkubaj

Are there new binaries to be flashed?

No, but the tests have been adjusted to not rely on this.

macpijan avatar Apr 02 '24 15:04 macpijan