Phone used for testing (not that I got that far): Samsung Galaxy A127F

Kernel source code used:

  1. Search for “SM-A127F_CIS_13_Opensource.zip” from samsungs website
  2. Move it to somewhere like ~/projects/postmarketos/stock/SM-A127F_CIS_13_Opensource.zip (referred to as $stock from now on)
  3. unzip $stock using unzip $stock command
  4. there should now be a “Kernel.tar.gz” file. Make a new directory called “Kernel” (the path to this directory would be called $kernel from now on.) Move Kernel.tar.gz to $kernel. Extract $kernel by running tar -xf Kernel.tar.gz

As you can guess I couldn’t find the kernel in a git repo so I followed the wikis advice of running pmbootstrap samsung-a12 --src=/$kernel

[15:44:27] ERROR: Could not find aport for package: samsung-a12
[15:44:27] See also: <https://postmarketos.org/troubleshooting>
Run 'pmbootstrap log' for details.

well that seems interesting

I didn’t find any reference to the error message in the wiki and while I did find a promising google result (proxied through a metasearch engine of course) it was a reddit thread that wasn’t archived by the wayback machine

Why this might have happened:

  • the wiki said that if you didn’t install pmbootstrap through git the places would change. I didn’t install it through git but it might be assuming I did
  • the wiki never said if I had to change anything in “linux-samsung-a12/APKBUILD”, so I assumed I didn’t need to change anything, maybe I did?

Log:

mirrordir_alpine=edge

[v23.06]
description=Latest release / Recommended for best stability
branch_pmaports=v23.06
branch_aports=3.18-stable
mirrordir_alpine=v3.18

[v22.12]
description=Old release (supported until: 2023-07-07)
branch_pmaports=v22.12
branch_aports=3.17-stable
mirrordir_alpine=v3.17

[v22.06]
description=Old release (unsupported)
branch_pmaports=v22.06
branch_aports=3.16-stable
mirrordir_alpine=v3.16

[v21.12]
description=Old release (unsupported)
branch_pmaports=v21.12
branch_aports=3.15-stable
mirrordir_alpine=v3.15

[v21.06]
description=Old release (unsupported)
branch_pmaports=v21.06
branch_aports=3.14-stable
mirrordir_alpine=v3.14

[v21.03]
description=Old release (unsupported)
branch_pmaports=v21.03
branch_aports=3.13-stable
mirrordir_alpine=v3.13

[v20.05]
description=Old release (unsupported)
branch_pmaports=v20.05
branch_aports=3.12-stable
mirrordir_alpine=v3.12
(012374) [15:03:00] ERROR: Could not find aport for package: samsung-a12
(012374) [15:03:00] See also: <https://postmarketos.org/troubleshooting>
(012374) [15:03:00] Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/pmb/__init__.py", line 63, in main
    getattr(frontend, args.action)(args)
  File "/usr/lib/python3.11/site-packages/pmb/helpers/frontend.py", line 114, in build
    arch_package = args.arch or pmb.build.autodetect.arch(args, package)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pmb/build/autodetect.py", line 46, in arch
    aport = pmb.helpers.pmaports.find(args, pkgname)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pmb/helpers/pmaports.py", line 181, in find
    raise RuntimeError("Could not find aport for package: " +
RuntimeError: Could not find aport for package: samsung-a12

(012382) [15:03:04] % tail -n 60 -F /home/user/.local/var/pmbootstrap/log.txt
(012382) [15:03:04] *** output passed to pmbootstrap stdout, not to this log ***

Operating System used for building: Arch (btw)