Closed tlaurion closed 1 year ago
Interesting find: if Skiboot fails to load kernel, it somehow tells BMC to drop mounted PNOR image and get back to real flash device. After that, mboxctl --lpc-state
still reports LPC Bus Maps: BMC Memory
. This makes debugging much harder, and may explain some of the strange behaviour we've seen. It is possible that other errors can also somehow change PNOR device.
I am not sure if another issue should be opened or this one bonified with more logs already posted at https://github.com/osresearch/heads/pull/1313#issuecomment-1492333112 ?
Continuation here: https://github.com/Dasharo/dasharo-issues/issues/415
Closing
Dasharo version Heads running release. Command line download of required images, links obtained from CircleCI build of master's server board's artifacts:
user@talos-tests:~/QubesIncoming/heads-tests$ rm * && wget https://output.circle-artifacts.com/output/job/90adf917-76d4-4d26-be2a-e1f0cf121724/artifacts/0/build/ppc64/talos-2_server/heads-talos-2_server-v0.2.0-1296-g139ecb8-zImage.bundled https://output.circle-artifacts.com/output/job/90adf917-76d4-4d26-be2a-e1f0cf121724/artifacts/0/build/ppc64/talos-2_server/heads-talos-2_server-v0.2.0-1296-g139ecb8.bootblock https://output.circle-artifacts.com/output/job/90adf917-76d4-4d26-be2a-e1f0cf121724/artifacts/0/build/ppc64/talos-2_server/heads-talos-2_server-v0.2.0-1296-g139ecb8.rom
Upload:
rsync -ravczz --inplace --delete /home/user/QubesIncoming/heads-tests root@192.168.2.187:/tmp/images/
BMC creation of test image (boot from BMC flash without actually flashing):
ssh -l root 192.168.2.187 "pflash -r /tmp/talos.pnor && cd /tmp/images/heads-tests && pflash -F ../../talos.pnor -f -P HBB -p *.bootblock && pflash -F ../../talos.pnor -f -P HBI -p *.rom && pflash -F ../../talos.pnor -f -P BOOTKERNEL -p *zImage.bundled && mboxctl --backend file:/tmp/talos.pnor"
Boot from modified BMC image:
ssh -l root 192.168.2.187
obmcutil poweron && obmc-console-client
Dasharo variant
Server
Affected component(s) or functionality
TPM module, first revision is not detected
Brief summary
How reproducible
100%
How to reproduce Test with above instructions with a TPM module connected
Expected behavior
TPM being detected from coreboot (cbmem -L) then detected under Heads and used to extend measurements
Actual behavior
TPM is not discovered
Screenshots
I replicated connection/orientation as shown under https://github.com/3mdeb/talos-tpm-module/issues/2#issuecomment-1325144582, connected with and without jumper to obtain same undetected module from coreboot and Heads
Additional context
Solutions you've tried
None