|
| 1 | +# Manual Intervention For Upgrades |
| 2 | + |
| 3 | +Not all of Plebian's stuff is packages in a way where apt can upgrade it as |
| 4 | +of the time of writing. That's why occasionally, manual intervention is needed |
| 5 | +to fully transition from an earlier release of Plebian to a newer one. This |
| 6 | +document tells you how to do this depending on what release you're updating |
| 7 | +from. |
| 8 | + |
| 9 | +If you're in need of doing multiple upgrades, do them in order. |
| 10 | + |
| 11 | + |
| 12 | +## From 2023.01.* to 2023.02.28 |
| 13 | + |
| 14 | +During this upgrade, u-boot will need to be updated. The third party repository |
| 15 | +needs to be added as well. |
| 16 | + |
| 17 | +### Upgrading u-boot |
| 18 | + |
| 19 | +1. Find the latest release for your device [from the Actions workflow](https://github.com/Plebian-Linux/quartz64-images/actions/workflows/build-image.yml). |
| 20 | +2. Unzip it so that you have `idbloader.img` and `u-boot.itb` |
| 21 | +3. Find the device you have u-boot on with `lsblk`, it's probably the one your |
| 22 | + `/` resides on as well, i.e. `/dev/mmcblk0` for SD and `/dev/mmcblk1` for |
| 23 | + eMMC. |
| 24 | +4. Flash `idbloader.img` to `p1` of that device, e.g. |
| 25 | + `sudo dd if=idbloader.img of=/dev/mmcblk0p1 oflag=dsync bs=4096` |
| 26 | + Remember to change `/dev/mmcblk0p1` to `/dev/mmcblk1p1` if you're using eMMC. |
| 27 | +5. Flash `u-boot.itb` to `p2` of that device, e.g. |
| 28 | + `sudo dd if=u-boot.itb of=/dev/mmcblk0p2 oflag=dsync bs=4096` |
| 29 | + Remember to change `/dev/mmcblk0p2` to `/dev/mmcblk1p2` if you're using eMMC. |
| 30 | + |
| 31 | +### Adding The Plebian Repo |
| 32 | + |
| 33 | +Run the following: |
| 34 | + |
| 35 | +``` |
| 36 | +sudo curl https://raw.githubusercontent.com/Plebian-Linux/quartz64-images/c2e5a4864a9cd41ebe9ba2671c564dc36ab2c87a/debos-recipes/overlays/apt/sources.list.d/plebian.sources -o /etc/apt/sources.list.d/plebian.sources |
| 37 | +sudo curl https://github.com/Plebian-Linux/quartz64-images/raw/c2e5a4864a9cd41ebe9ba2671c564dc36ab2c87a/debos-recipes/overlays/keyrings/plebian-build-key.gpg -o /usr/share/keyrings/plebian-build-key.gpg |
| 38 | +sudo apt update |
| 39 | +sudo apt install devicetrees-plebian-quartz64 |
| 40 | +``` |
0 commit comments