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

SD Card durability #1427

Open
andreaskuster opened this issue Jul 21, 2023 · 0 comments
Open

SD Card durability #1427

andreaskuster opened this issue Jul 21, 2023 · 0 comments

Comments

@andreaskuster
Copy link

Environment

  • PYNQ version: all
  • Board name: all
  • Pull request type (bug fix/improvement): not yet submitted
  • Description:

Problem description

By design, the Ubuntu distro tailored for the PYNQ framework boots from an external SD card. In the default configuration, some settings will significantly reduce the durability of that flash storage device (extensive write requests), which can cause early failures and higher wear than necessary. The most prominent one is swapping.

Solution

An extensive list of measures can be found in the thread on raspberrypi.stackexchange.com. At the very least, I would disable the swap functionality.

This could be done by adding the following snippet to sdbuild/scripts/setup_host.sh:

sudo swapoff -a
sudo rm /var/swap

Let me know if I should open a PR with that code change.

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