permacomputing

Source repository for the main permacomputing wiki site
git clone http://git.permacomputing.net/repos/permacomputing.git # read-only access
Log | Files | Refs

commit 6a852d25b830faf8023ef8ae6ca7faffa84115f1
parent 240001e43f23c77ed7b856de873856a0d890b8f3
Author: smeeb <smeeb@web>
Date:   Mon,  4 May 2026 21:19:55 +0200


Diffstat:
Munbrick01.mdwn | 69++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 68 insertions(+), 1 deletion(-)

diff --git a/unbrick01.mdwn b/unbrick01.mdwn @@ -1 +1,68 @@ -test 1 2 +# Installing pmOS on the Samsung A52 4G + +*Install notes by Boris, work in progress* + +> __Status:__ Got pmOS splash screen!! + +## Unlocking the bootloader + +Set up the Android phone. Connect to Wi-Fi and navigate to the phone it’s settings. All the way at the bottom press on `About Phone`. Click on `Software Information` and click 7 times on `Build number` until the phone states: `Developer mode has been enabled`. + +Press `back` twice and scroll down to `Developer Options`. Enable `OEM unlocking` and `USB debugging`. If `OEM unlokcing` is not there, reboot the phone and try again. + +## Compile Heimdall + +I needed a newer version of Heimdall which I couldn’t find without compiling it myself. To do this you can clone Heimdall from: https://git.sr.ht/~grimler/heimdall. + +```bash +git clone https://git.sr.ht/~grimler/Heimdall +cd Heimdall +mkdir build && cd build +cmake -DDISABLE_FRONTEND=ON .. +make -j$(nproc) +sudo make install +``` + +You can copy `heimdall` to your PATH (e.g. `cp bin/heimdall ~/.local/bin/`). Running `heimdall version` should say `v2.2.2` (or higher). + +## postmarketOS (pmbootstrap) + +### installation + +Follow the steps on the [pmOS wiki](https://wiki.postmarketos.org/wiki/Pmbootstrap/Installation) + +### bootstrapping + +Run `pmbootstrap init` for a random device (samsung a5) and set it up. +after that I followed newbytes instructions: + +```bash +cd $(pmbootstrap config aports) +git fetch origin +git switch newbyte/a52-v25.12 +``` + +Run `pmbootstrap init` again. Now you are able to select `a52q`. Pick the following options: + +```bash +Channel [v25.12]: v25.12 +Vendor [samsung]: samsung +Device codename [a5]: a52q +Username [user]: user +Provider [default]: pipewire +User interface [console]: console +Change them? (y/n) [n]: n +Extra packages [none]: none +Use this timezone instead of GMT? (y/n) [y]: n +Locale [en_US]: en_US +``` + +After this boot your device into `Download Mode`. You can get in `Donwload Mode` by fully powering off the device. Then, while holding `Volume Up` & `Volume Down` plug in a USB-C cable that is connected to your computer until you see a ‘Download’ screen. Release the buttons and press `Volume Up` to get in `Download Mode`. You will need to do this a few times :) + +When in `Download Mode`, run `pmbootstrap install` and follow the steps. Then, flash the kernel by running `pmbootstrap flasher --no-reboot flash_kernel`. + +Turn the phone off again, enter `Download Mode` again and flash the rootfs `pmbootstrap flasher --no-reboot flash_rootfs`. + +Turn the phone off again, enter `Download Mode` again and flash the DTBO which you can get from here https://github.com/map220v/postmarket_samsung_a72q/releases/tag/dtbo. You flash this with the compiled heimdall by running `heimdall flash --DTBO emptyDTBO.img` + +When you reboot the phone now you should see the pmOS splash screen.