Dasharo / dasharo-issues

The Dasharo issue tracker
https://dasharo.com/
23 stars 0 forks source link

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

Open mkopec opened 3 months ago

mkopec commented 3 months ago

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

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 commented 3 months ago

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

miczyg1 commented 3 months ago

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

The cbmem buffer size has been increased

pkubaj commented 3 months ago

Are there new binaries to be flashed?

macpijan commented 3 months ago

Are there new binaries to be flashed?

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