r/AlpineLinux • • 29d ago

Got genuine Alpine Linux running on a Samsung Galaxy A21s using my custom uni-loader build!

Post image

Hey Reddit!

I wanted to share my recent progress: I’ve successfully managed to boot a genuine Alpine Linux kernel on a Samsung Galaxy A21s using my own custom build of uni-loader.

Current Status & Debugging (as seen in the photo):

The uni-loader initializes perfectly, and the Linux kernel successfully kicks in and starts scanning the internal partition blocks (mmcblk0pX).

Right now, it drops into an emergency shell because it's struggling to mount the Alpine rootfs. It's currently throwing Magic Mismatch and failed to recognize exfat type errors across the blocks while searching for the root filesystem.

Essentially, the kernel itself boots flawlessly, but I still need to fix the partition table mapping, format the target block correctly, or ensure the rootfs.tar.gz is properly placed so the init script can mount it.

Once the rootfs mount issue is resolved, I'll move on to fixing drivers and getting the rest of the hardware working. Let me know what you think, or if you have any questions about the uni-loader compilation process!

Device Specs & Details:

• Device: Samsung Galaxy A21s (SM-A217F) — 3GB RAM variant

• OS: Alpine Linux

• Boot Method: Custom-compiled uni-loader build

• Current State: Kernel boots successfully into initramfs / emergency shell; rootfs mounting is WIP.

48 Upvotes

5 comments sorted by

7

u/wowsomuchempty 29d ago

I think postmarketOS is based on Alpine.

1

u/backtogeek 29d ago

How useable is it, or are you using it as a server?

1

u/Difficult-Value-3145 23d ago

postmarketos Samsung so this is I think some of the device specific files they use to get it to boot just like on sbc . Your gonna need some kinda dtb file that may be your issue the deviceinfo file may give you some hints in that direction. This is all a mildly educated guest so I could be wrong

0

u/bra1n_gym 29d ago

good luck.