A06 build your own system with new kernel

I wrote it as a blog

https://blog.estela.moe/2024/10/27/build-your-own-linux-for-uconsole-a06/

3 Likes

Is it supposed to look like this?

Repaired, thanks. hard reload if colour not taking effect. It seems something was broken in last update

1 Like

hello Is there any way to do the same with kali linux on A06 or dragon OS for raspi ?

hey, all the same except the packaging part, you will have to make the deb kernel package with patches.
this page may help:
https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-official

So I can I manage this ?

I retreive a raspi kali image or a dragon OS raspi image . I put it on a SD card and then ?

I have to patch using a raspi board ?

Native kali or dragon won’t start on the A06 clockpi board

Flashing the raspi image is not expected to work.
You will have to follow “Preparing the SD card”, “Build U-Boot” chapters in the blog (so at least it will boot), then follow Chapter 4. Common kernel-related tasks to make a kernel package with patches given at GitHub - saeziae/linux-clockworkpi-a06u . Then continue with mounting the sdcard and extracting rootfs and so on like “INSTALL THE SYSTEM” chapter.
I am not familiar with Deb packaging so i can’t give detailed help about that part.

Following your instructions but i am a little confused on this part:

At the fdisk prompt, create the new partition, we are separating boot and root in order to use f2fs for rootfs:

  1. Type o. This will clear out any partitions on the drive.
  2. Type p to list partitions. There should be no partitions left.
  3. Type n, then p for primary, 1 for the first partition on the drive, 32768 for the first sector, then +2G for the last sector (boot partition, 2GB)
  4. Type p and note the end sector number for the partition freshly created.
  5. Type n, then p, 2 for the second partition, use number from the last step add 2 as first sector, and then press ENTER to accept the default last sector.
    What does add 2 mean at step5? Add 2 bytes as an offset? add 2G as the size?

UPDATE:

The required packages needed for compiling are not listed in the tutorial. I have received and error and cannot figure out what package is needed for a successful compilation:

In file included from tools/lib/rsa/rsa-sign.c:1:
./tools/…/lib/rsa/rsa-sign.c:22:10: fatal error: openssl/engine.h: No such file or directory
22 | #include <openssl/engine.h>
| ^~~~~~~~~~~~~~~~~~

UPDATE2:
Got rid of the error by compiling openssl locally

Now i get signature errors on:
sudo pacman -S aarch64-linux-gnu-gcc aarch64-linux-gnu-binutils aarch64-linux-gnu-glibc aarch64-linux-gnu-linux-api-headers:
…
66/66) checking keys in keyring [#####################################] 100%
(66/66) checking package integrity [#####################################] 100%
error: linux-api-headers: signature from “Frederik Schwan freswa@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/linux-api-headers-6.10-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]