Skip to content

Conversation

@pelwell
Copy link
Contributor

@pelwell pelwell commented Jul 21, 2022

The next rpi-update and apt firmware packages add the sha256 setting, enabling the logging of hashes for loaded files.

The next rpi-update and apt firmware packages add the sha256 setting, enabling the logging of hashes for loaded files.
[[sha256]]
=== `sha256`

If set to non-zero, enables the logging of SHA256 hashes for loaded files, as generated by the `sha256sum` utility. The logging output goes to the UART if enabled, and is also accessible via `sudo vcdbg log msg`. This option may be useful when debugging booting problems, but at the cost of potentially adding _many_ seconds to the boot time. Defaults to 0 on all platforms.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth clarifying what "loaded files" this is referring to? From the mention of vcdbg I assume it's the boot files (start.elf etc.?) loaded by the VideoCore, rather than anything loaded onto the ARM?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd be wrong. It won't cover start.elf because that's loaded by the 2nd stage loader and the logging is generated by start.elf itself. It's for the kernel, initramfs, device tree and overlays. It does sound like it needs idiotproofing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should definitely turn idiotproofing on by default in GitHub,.

@aallan aallan merged commit 97cf1c2 into raspberrypi:develop Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants