Skip to content
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

Reduce srcfs / bare-metal image size to no more than 256MiB #346

Open
Googulator opened this issue Dec 14, 2023 · 2 comments
Open

Reduce srcfs / bare-metal image size to no more than 256MiB #346

Googulator opened this issue Dec 14, 2023 · 2 comments

Comments

@Googulator
Copy link
Collaborator

For the Trusted Flash drive project, I have been researching various ways to build some kind of Flash storage (USB, SPI, etc.) that can be verifiably limited to 512 byte capacity at boot, and then fully unlocked later once correct loading of the boot sector (builder-hex0 stage 1) has been verified - all without having to trust some firmware to do the limiting and unlocking.

Some ways to achieve this would be:

  • using parallel storage with true address lines, and physically disconnecting/grounding high address lines using a mechanical switch,
  • hotplugging SPI flash memory chips (512 byte SPI flash chips do exist, with an interface that's compatible with their larger capacity brethren).

Unfortunately, these techniques all seem to top out at about 256MiB - e.g. 256MiB SPI flash storage is available today, but not 512MiB.

The simplify branch has already achieved a reduction to about 290MiB, so 256MiB seems within reach. Maintaining that goal together with #345 seems rather more difficult, but IMO still doable.

@Googulator
Copy link
Collaborator Author

A helpful resource for this is https://ftp.gwdg.de/pub/linux/rocklinux/ROCK-2.1/ - a large repository of BZ2-compressed source downloads, including for software that's only available as GZ elsewhere, such as bash-2.05b.

@Googulator
Copy link
Collaborator Author

#436 achieves this, but the space left over is not enough for a "trivial" version of #345 to be also included in the 256MiB target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant