03-21-2024, 10:52 AM
While exploring other os's I noticed Maemo Leste has quite a bit of functionality as of late and it's based on Devuan which is possibly the only distribution besides Slack that is systemd free and it's my current desktop OS having left Slack because of the lack of mainstream app support. In the install process (partial copy below) it has a step that seems may help with Slarm64. I obviously don't know the in's and out's but if these steps are necessary then it seems they should be worked into the process.
eMMC Installation
Some notes have been adapted from the Pine64 Wiki.
Preparing the .img file for eMMC boot
Download the .img.xz version of the image and extract it:
$ unxz -k maemo-leste-*-arm64-pinephone-*.img.xz
The image, by default, points to
for SD cards, which must be modified to point to
for the eMMC. To start, mount the image to a loop device.
$ sudo losetup -P /dev/loop0 maemo-leste-*-arm64-pinephone-*.img
Mount the second partition to /mnt and the first partition to /mnt/boot and enter /mnt:
$ sudo mount /dev/loop0p2 /mnt
$ sudo mount /dev/loop0p1 /mnt/boot
$ cd /mnt
Use the editor of your choice to edit
, replacing
with
.
Now we need to edit
. For that you will need to download
from Maemo Leste github:
$ cd /mnt/boot
$ sudo wget https://raw.githubusercontent.com/maemo-...r/boot.txt
Now we do the same step as we did for the fstab, replacing
with
in
.
To regenerate
you need to install
first to be able to use mkimage.
Regenerate
:
$ sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -d boot.txt boot.scr
eMMC Installation
Some notes have been adapted from the Pine64 Wiki.
Preparing the .img file for eMMC boot
Download the .img.xz version of the image and extract it:
$ unxz -k maemo-leste-*-arm64-pinephone-*.img.xz
The image, by default, points to
Code:
/dev/mmcblk0
Code:
/dev/mmcblk2
$ sudo losetup -P /dev/loop0 maemo-leste-*-arm64-pinephone-*.img
Mount the second partition to /mnt and the first partition to /mnt/boot and enter /mnt:
$ sudo mount /dev/loop0p2 /mnt
$ sudo mount /dev/loop0p1 /mnt/boot
$ cd /mnt
Use the editor of your choice to edit
Code:
/mnt/etc/fstab
Code:
/dev/mmcblk0
Code:
/dev/mmcblk2
Now we need to edit
Code:
boot.scr
Code:
boot.txt
$ cd /mnt/boot
$ sudo wget https://raw.githubusercontent.com/maemo-...r/boot.txt
Now we do the same step as we did for the fstab, replacing
Code:
/dev/mmcblk0
Code:
/dev/mmcblk2
Code:
boot.txt
To regenerate
Code:
boot.scr
Code:
u-boot-tools
Regenerate
Code:
boot.scr
$ sudo mkimage -A arm -O linux -T script -C none -a 0 -e 0 -d boot.txt boot.scr