Skip to content

Commit b2f3e22

Browse files
committed
Add UPGRADING.md with upgrade instructions
1 parent c2e5a48 commit b2f3e22

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

RUNNING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ You'll then want to force WebRender on in `about:config`, but I forgor 💀 how
3939
do that.
4040

4141

42+
## Upgrading
43+
44+
Generally, the usual `apt update && apt upgrade` will work. Occasionally
45+
however, manual intervention is required. In such cases, please consult
46+
[UPGRADING.md](UPGRADING.md).
47+
48+
4249
## Known Limitations
4350

4451
Here are some known limitations of either software or hardware you should know

UPGRADING.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

Comments
 (0)