Artix Linux Forum

Artix Linux => Other Architectures => ARMtix => Topic started by: n00b on 20 September 2024, 19:26:25

Title: Rock64
Post by: n00b on 20 September 2024, 19:26:25
https://archlinuxarm.org/platforms/armv8/rockchip/rock64

Does anyone have a guide for armtix on Rock64?
Title: Re: Rock64
Post by: phoenix_king_rus on 21 September 2024, 08:47:05
Should be roughly the same as for ALARM. The SoC is rather old and should be well-supported by both kernel and u-boot
Title: Re: Rock64
Post by: n00b on 21 September 2024, 14:00:11
https://archlinuxarm.org/platforms/armv8/rockchip/rock64#installation

Specifically:
How do i force SD boot?

what wget should be used at step 6, 7, and 9 to install armtix?

I guess I replace
Code: [Select]
wget http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
with
Code: [Select]
wget https://repo.armtixlinux.org/armtix/os/aarch64/armtix.files.tar.xz[code]
from https://repo.armtixlinux.org/armtix/os/aarch64/
does that make
[code]bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C root
become
Code: [Select]
bsdtar -xpf armtix.files.tar.xz -C root
?

What do i do with the bootscript in step 7
Title: Re: Rock64
Post by: phoenix_king_rus on 21 September 2024, 18:13:01
ARMtix rootfs images are available here (https://armtixlinux.org/images/). The link you posted is list of files for armtix repository (repo with packages which are only built for ARMtix)
As for boot.scr, check instructions for Firefly RK3399 for example, i suppose it should be the same except for dtb file path. Check the location of the correcponding file in kernel package file list
Title: Re: Rock64
Post by: n00b on 21 September 2024, 21:39:49
If I get this working would you add rock64 to your compatibility?
Title: Re: Rock64
Post by: n00b on 20 January 2025, 00:44:50
following https://info.armtixlinux.org/firefly-rk3399.html
and adapting for RK3328

installed arm-none-eabi-gcc and uboot-tools
clone ATF git repo and cd to it

Code: [Select]
sudo make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3328
  CC      lib/libfdt/fdt.c
make: aarch64-linux-gnu-gcc: No such file or directory
make: *** [lib/libfdt/libfdt.mk:23: /Rock64/arm-trusted-firmware/build/rk3328/release/libfdt/fdt.o] Error 127


please advise

Edit. So derpy... please ignore
Title: Re: Rock64
Post by: n00b on 24 January 2025, 01:01:18
This got me uboot
https://forum.pine64.org/showthread.php?tid=8174

I got to this in the armtix firefly-rk3399 guide

Code: [Select]
Next, you have to create u-boot script u-boot.cmd with following contents:

setenv bootargs "consoleblank=0 root=/dev/<partname> rw rootwait console=ttyS2,1500000n8 earlycon=uart8250,mmio32,0xff1a0000 console=tty1"
load mmc 1:1 ${fdt_addr_r} /dtbs/rockchip/rk3399-firefly.dtb
load mmc 1:1 ${kernel_addr_r} /Image
load mmc 1:1 ${ramdisk_addr_r} /initramfs-linux.uimg
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
I think that becomes
Code: [Select]
setenv bootargs "consoleblank=0 root=/dev/<partname> rw rootwait console=ttyS2,1500000n8 earlycon=uart8250,mmio32,0xff1a0000 console=tty1"
load mmc 1:1 ${fdt_addr_r} /dtbs/rockchip/rk3328-rock64.dtb
load mmc 1:1 ${kernel_addr_r} /Image
load mmc 1:1 ${ramdisk_addr_r} /initramfs-linux.uimg
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
do i assume 
Code: [Select]
root=/dev/<partname>
becomes ??
Code: [Select]
root=/dev/sda

please advise
Title: Re: Rock64
Post by: phoenix_king_rus on 24 January 2025, 07:02:05
I think that becomes
Code: [Select]
setenv bootargs "consoleblank=0 root=/dev/<partname> rw rootwait console=ttyS2,1500000n8 earlycon=uart8250,mmio32,0xff1a0000 console=tty1"
load mmc 1:1 ${fdt_addr_r} /dtbs/rockchip/rk3328-rock64.dtb
load mmc 1:1 ${kernel_addr_r} /Image
load mmc 1:1 ${ramdisk_addr_r} /initramfs-linux.uimg
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
Looks correct. I'm not entirely sure whther earlycon arguments are correct for this board but you can start with those.

do i assume 
Code: [Select]
root=/dev/<partname>
becomes ??
Code: [Select]
root=/dev/sda
It's best to set it in UUID format: root=UUID=<UUID of partition used as root>
When partitioning your disk, keep in mind that u-boot has to pick up kernel, so it must be kept on partition it can read (ext4 fs is fine)
Title: Re: Rock64
Post by: n00b on 24 January 2025, 15:07:12
what is /Image supposed to be?
Title: Re: Rock64
Post by: n00b on 25 January 2025, 00:19:03
is this right?
Code: [Select]
load mmc 1:1 ${kernel_addr_r} /vmlinuz-linux

I looked at https://ca.us.mirror.archlinuxarm.org/os/rockchip/boot/rock64/

but i could not read boot.scr
can i read that to see what alarm is doing?
Title: Re: Rock64
Post by: phoenix_king_rus on 25 January 2025, 07:57:13
Image is actually Image. This is how ALARM and ARMtix kernel file names are named, not vmlinuz. There is a slight difference, though: in ALARM every kernel package provides file called Image, whereas in ARMtix Image is provided only by linux-aarch64 package and kernel files from other packages have prefixes (ltsImage for linux-aarch64-lts, for example).

is this right?
Code: [Select]
load mmc 1:1 ${kernel_addr_r} /vmlinuz-linux
No, keep /Image

but i could not read boot.scr
can i read that to see what alarm is doing?
You actualy can: just use cat. It will show some binary header made by mkimage command (from uboot-tools) and the rest will be the contents of boot.cmd
Title: Re: Rock64
Post by: n00b on 31 January 2025, 01:15:17
I created a chroot following this
https://forum.artixlinux.org/index.php/topic,6921.msg46291/topicseen.html#msg46291

so then I updated with

Code: [Select]
pacman -Syu
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 armtix is up to date
error: restricting filesystem access failed because landlock is not supported by the kernel!
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (62)                      Old Version                  New Version                  Net Change  Download Size

system/artix-keyring              20240425-2                   20250105-1                     0.01 MiB       0.13 MiB
system/artix-mirrorlist           20230501-1                   20241213-1                     0.00 MiB       0.00 MiB
system/audit                      4.0.2-2                      4.0.3-1                        0.00 MiB       0.36 MiB
system/binutils                   2.43+r4+g7999dae6961-1       2.43_1+r171+g01da089627be-1   -0.02 MiB       7.23 MiB
system/brotli                     1.1.0-2                      1.1.0-3                        0.00 MiB       0.34 MiB
system/btrfs-progs                6.12-2                       6.12-2.0                       0.00 MiB       0.95 MiB
system/coreutils                  9.5-2                        9.6-2                         -0.04 MiB       2.55 MiB
system/curl                       8.11.0-3                     8.11.1-3                       0.06 MiB       1.08 MiB
system/dbus                       1.14.10-2                    1.16.1-1.4                     0.00 MiB       0.29 MiB
system/device-mapper              2.03.28-1                    2.03.30-1                      0.00 MiB       0.24 MiB
world/dhcpcd                      10.0.10-1                    10.1.0-1                       0.00 MiB       0.18 MiB
system/e2fsprogs                  1.47.1-4                     1.47.2-1                      -0.04 MiB       1.15 MiB
system/elogind                    255.5-1                      255.17-2                       0.07 MiB       0.82 MiB
system/esysusers                  256.9-1                      257.2-1                        0.00 MiB       0.15 MiB
system/etmpfiles                  256.9-1                      257.2-1                        0.06 MiB       0.21 MiB
system/file                       5.46-2                       5.46-3                         0.00 MiB       0.40 MiB
system/gcc-libs                   14.2.1+r134+gab884fffe3fc-1  14.2.1+r134+gab884fffe3fc-2    0.00 MiB
system/gettext                    0.22.5-2                     0.23.1-2                       0.81 MiB       2.17 MiB
system/glib2                      2.82.2-1                     2.82.4-2                       0.00 MiB       4.64 MiB
system/glibc                      2.40+r16+gaa533d58ff-2       2.40+r66+g7d4b6bcae91f-1       0.00 MiB       8.91 MiB
system/gnulib-l10n                                             20241231-1                     0.61 MiB       0.10 MiB
system/gpgme                      1.24.1-1                     1.24.1-3                      -1.54 MiB       0.42 MiB
system/hwdata                     0.390-1                      0.391-1                        0.03 MiB       1.54 MiB
system/iana-etc                   20241016-1                   20241206-1                     0.00 MiB       0.37 MiB
system/icu                        75.1-1                       75.1-2                         0.00 MiB       9.87 MiB
system/kbd                        2.6.4-3                      2.7.1-1                        0.09 MiB       1.21 MiB
world/kexec-tools                 2.0.29-2                     2.0.30-1                       0.00 MiB       0.07 MiB
system/libcap-ng                  0.8.5-2                      0.8.5-3                        0.00 MiB       0.04 MiB
system/libedit                    20240517_3.1-1               20240808_3.1-1                -0.01 MiB       0.10 MiB
system/libelf                     0.192-2                      0.192-2.1                      0.00 MiB       0.48 MiB
system/libelogind                 255.5-1                      255.17-2                       0.00 MiB       0.55 MiB
system/libnghttp3                 1.6.0-1                      1.7.0-1                        0.00 MiB       0.07 MiB
system/libsecret                  0.21.4-1                     0.21.6-1                       0.02 MiB       0.17 MiB
system/libssh2                    1.11.0-1                     1.11.1-1                       0.02 MiB       0.23 MiB
system/libudev                    256.9-1                      257.2-1                        0.00 MiB       0.12 MiB
system/libunistring               1.2-1                        1.3-1                          0.18 MiB       0.55 MiB
world/liburcu                     0.14.1-1                     0.15.0-1                      -0.13 MiB       0.12 MiB
world/libxau                      1.0.11-3                     1.0.12-1                       0.00 MiB       0.01 MiB
system/libxcrypt                  4.4.36-2.1                   4.4.38-1                       0.00 MiB       0.08 MiB
system/libxml2                    2.13.5-1                     2.13.5-2                      -0.03 MiB       0.73 MiB
system/linux-aarch64              6.12.1-1                     6.12.7-1                       0.04 MiB
system/linux-aarch64-headers      6.12.1-1                     6.12.7-1                       0.08 MiB
system/linux-aarch64-lts          6.6.63-1                     6.6.68-1                       0.03 MiB
system/linux-aarch64-lts-headers  6.6.63-1                     6.6.68-1                       0.01 MiB
system/linux-firmware             20241111.b5885ec5-1          20250109.7673dffd-1            5.40 MiB
system/linux-firmware-whence      20241111.b5885ec5-1          20250109.7673dffd-1            0.01 MiB       0.03 MiB
system/mkinitcpio                 39.2-2                       39.2-3                         0.00 MiB       0.06 MiB
system/nano                       8.2-1                        8.3-1                          0.02 MiB       0.54 MiB
system/nettle                     3.10-1                       3.10.1-1                       0.00 MiB       0.43 MiB
world/pcsclite                    2.3.0-1                      2.3.1-1                        0.00 MiB       0.10 MiB
system/perl                       5.40.0-1                     5.40.1-1                      -0.07 MiB      13.18 MiB
world/polkit                      125-1                        126-2                          0.06 MiB       0.39 MiB
system/procps-ng                  4.0.4-3                      4.0.5-2                        0.10 MiB       0.84 MiB
system/sqlite                     3.47.1-1                     3.48.0-2                       8.93 MiB       1.68 MiB
system/sudo                       1.9.16.p1-1                  1.9.16.p2-2                    0.00 MiB       1.72 MiB
system/tzdata                     2024b-2                      2025a-1                        0.00 MiB       0.32 MiB
system/udev                       256.9-1                      257.2-1                        0.01 MiB       1.81 MiB
system/util-linux                 2.40.2-1                     2.40.4-1                       0.30 MiB       2.87 MiB
system/util-linux-libs            2.40.2-1                     2.40.4-1                       0.00 MiB       0.46 MiB
world/xcb-proto                   1.17.0-2                     1.17.0-3                       0.00 MiB       0.12 MiB
system/xfsprogs                   6.11.0-1                     6.12.0-1                       0.00 MiB       1.22 MiB
system/xz                         5.6.3-1                      5.6.4-1                        0.10 MiB       0.68 MiB

Total Download Size:     75.08 MiB
Total Installed Size:  1406.33 MiB
Net Upgrade Size:        15.21 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 glibc-2.40+r66+g7d4b6bcae91f-1-aarch64                                                                               8.9 MiB  68.8 KiB/s 02:13
<snip>
(62/62) upgrading xfsprogs                                                                                                                      [----------------------------------------------------------------------------------------] 100%
:: Running post-transaction hooks...
( 1/12) Creating system user accounts...
( 2/12) Creating temporary files...
Detected unsafe path transition / (owned by armtix) → /run (owned by root) during canonicalization of run.
Detected unsafe path transition / (owned by armtix) → /run (owned by root) during canonicalization of run.
Detected unsafe path transition / (owned by armtix) → /run (owned by root) during canonicalization of run.
Detected unsafe path transition / (owned by armtix) → /run (owned by root) during canonicalization of run.
Detected unsafe path transition / (owned by armtix) → /run (owned by root) during canonicalization of run.
Detected unsafe path transition / (owned by armtix) → /run (owned by root) during canonicalization of run.
Detected unsafe path transition / (owned by armtix) → /run (owned by root) during canonicalization of run.
Detected unsafe path transition / (owned by armtix) → /run (owned by root) during canonicalization of run/sudo.
Detected unsafe path transition / (owned by armtix) → /run (owned by root) during canonicalization of run.
Detected unsafe path transition /etc (owned by armtix) → /etc/audit (owned by root) during canonicalization of etc/audit/audisp-remote.conf.
Detected unsafe path transition /etc (owned by armtix) → /etc/audit (owned by root) during canonicalization of etc/audit/plugins.d.
Detected unsafe path transition /etc (owned by armtix) → /etc/audit (owned by root) during canonicalization of etc/audit/plugins.d/af_unix.conf.
Detected unsafe path transition /etc (owned by armtix) → /etc/audit (owned by root) during canonicalization of etc/audit/plugins.d/au-remote.conf.
Detected unsafe path transition /etc (owned by armtix) → /etc/audit (owned by root) during canonicalization of etc/audit/plugins.d/audispd-zos-remote.conf.
Detected unsafe path transition /etc (owned by armtix) → /etc/audit (owned by root) during canonicalization of etc/audit/plugins.d/filter.conf.
Detected unsafe path transition /etc (owned by armtix) → /etc/audit (owned by root) during canonicalization of etc/audit/plugins.d/syslog.conf.
Detected unsafe path transition /etc (owned by armtix) → /etc/libaudit.conf (owned by root) during canonicalization of etc/libaudit.conf.
Detected unsafe path transition /var/log (owned by armtix) → /var/log/audit (owned by root) during canonicalization of var/log/audit.
Detected unsafe path transition / (owned by armtix) → /dev (owned by root) during canonicalization of dev/snd/seq.
Detected unsafe path transition / (owned by armtix) → /dev (owned by root) during canonicalization of dev/snd/timer.
Detected unsafe path transition / (owned by armtix) → /dev (owned by root) during canonicalization of dev/loop-control.
Detected unsafe path transition / (owned by armtix) → /dev (owned by root) during canonicalization of dev/net/tun.
Detected unsafe path transition / (owned by armtix) → /dev (owned by root) during canonicalization of dev/fuse.
Detected unsafe path transition / (owned by armtix) → /dev (owned by root) during canonicalization of dev/vfio/vfio.
Detected unsafe path transition / (owned by armtix) → /dev (owned by root) during canonicalization of dev/kvm.
Detected unsafe path transition / (owned by armtix) → /dev (owned by root) during canonicalization of dev/vhost-net.
Detected unsafe path transition / (owned by armtix) → /dev (owned by root) during canonicalization of dev/vhost-vsock.
error: command failed to execute correctly
( 3/12) Updating udev hardware database...
( 4/12) Reloading device manager configuration...
  Skipped: Device manager is not running.
( 5/12) Updating module dependencies...
( 6/12) Updating linux-aarch64 module dependencies...
( 7/12) Updating linux-aarch64-lts module dependencies...
( 8/12) Updating linux-aarch64 initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.12.7-1-ARTIX -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
od: '/boot/vmlinuz-*': No such file or directory
od: '/boot/vmlinuz-*': No such file or directory
/usr/lib/initcpio/functions: line 268: /boot/vmlinuz-*: No such file or directory
==> WARNING: Could not find kernel image for version 6.12.7-1-ARTIX
==> Starting build: '6.12.7-1-ARTIX'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
==> WARNING: architecture 'aarch64' not supported, skipping hook
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.12.7-1-ARTIX -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
od: '/boot/vmlinuz-*': No such file or directory
od: '/boot/vmlinuz-*': No such file or directory
/usr/lib/initcpio/functions: line 268: /boot/vmlinuz-*: No such file or directory
==> WARNING: Could not find kernel image for version 6.12.7-1-ARTIX
==> Starting build: '6.12.7-1-ARTIX'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [microcode]
==> WARNING: architecture 'aarch64' not supported, skipping hook
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
==> WARNING: Possibly missing firmware for module: 'msm'
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci_renesas'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qla1280'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
( 9/12) Updating linux-aarch64-lts initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64-lts.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.6.68-1-ARTIX -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
od: '/boot/vmlinuz-*': No such file or directory
od: '/boot/vmlinuz-*': No such file or directory
/usr/lib/initcpio/functions: line 268: /boot/vmlinuz-*: No such file or directory
==> WARNING: Could not find kernel image for version 6.6.68-1-ARTIX
==> Starting build: '6.6.68-1-ARTIX'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
==> WARNING: architecture 'aarch64' not supported, skipping hook
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64-lts.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.6.68-1-ARTIX -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
od: '/boot/vmlinuz-*': No such file or directory
od: '/boot/vmlinuz-*': No such file or directory
/usr/lib/initcpio/functions: line 268: /boot/vmlinuz-*: No such file or directory
==> WARNING: Could not find kernel image for version 6.6.68-1-ARTIX
==> Starting build: '6.6.68-1-ARTIX'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [microcode]
==> WARNING: architecture 'aarch64' not supported, skipping hook
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
==> WARNING: Possibly missing firmware for module: 'msm'
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qla1280'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
(10/12) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64-lts.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.6.68-1-ARTIX -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
od: '/boot/vmlinuz-*': No such file or directory
od: '/boot/vmlinuz-*': No such file or directory
/usr/lib/initcpio/functions: line 268: /boot/vmlinuz-*: No such file or directory
==> WARNING: Could not find kernel image for version 6.6.68-1-ARTIX
==> Starting build: '6.6.68-1-ARTIX'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
==> WARNING: architecture 'aarch64' not supported, skipping hook
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64-lts.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k 6.6.68-1-ARTIX -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
od: '/boot/vmlinuz-*': No such file or directory
od: '/boot/vmlinuz-*': No such file or directory
/usr/lib/initcpio/functions: line 268: /boot/vmlinuz-*: No such file or directory
==> WARNING: Could not find kernel image for version 6.6.68-1-ARTIX
==> Starting build: '6.6.68-1-ARTIX'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [microcode]
==> WARNING: architecture 'aarch64' not supported, skipping hook
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
==> WARNING: Possibly missing firmware for module: 'msm'
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qla1280'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts-fallback.img'
It seems like it is a loop?
it built 6.12.7-1-ARTIX twice, then
6.6.68-1-ARTIX four times, then
6.12.7-1-ARTIX twice more, before concluding with
Code: [Select]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
(11/12) Reloading system bus configuration...
  Skipped: Current root is not booted.
(12/12) Warn about old perl modules
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = (unset),
LC_NUMERIC = "en_US.UTF-8",
LC_COLLATE = (unset),
LC_TIME = "en_US.UTF-8",
LC_MESSAGES = (unset),
LC_MONETARY = "en_US.UTF-8",
LC_ADDRESS = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_NAME = "en_US.UTF-8",
LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

please advise
Title: Re: Rock64
Post by: phoenix_king_rus on 31 January 2025, 07:48:52
It seems like it is a loop?
it built 6.12.7-1-ARTIX twice, then
6.6.68-1-ARTIX four times, then
6.12.7-1-ARTIX twice more, before concluding with
There are two builds for each kernel (default & fallback presets), also there is some ALARM legacy in ARMtix which leads to unneded extra initramfs rebuild hook
Title: Re: Rock64
Post by: n00b on 31 January 2025, 19:33:47
It seems like it is a loop?
it built 6.12.7-1-ARTIX twice, then
6.6.68-1-ARTIX four times, then
6.12.7-1-ARTIX twice more, before concluding with
There are two builds for each kernel (default & fallback presets), also there is some ALARM legacy in ARMtix which leads to unneded extra initramfs rebuild hook
thanks.
Is there a reason we do not remove that legacy? is that the vmlinuz* stuff?

I cat(ed?) alarms boot.scr
Quote
Boot boot script2# After modifying, run ./mkscr

# MAC address (use spaces instead of colons)
setenv macaddr da 19 c8 7a 6d f4

part uuid ${devtype} ${devnum}:${bootpart} uuid
setenv bootargs console=ttyS2,1500000 root=PARTUUID=${uuid} rw rootwait earlycon=uart8250,mmio32,0xff130000
setenv fdtfile rockchip/rk3328-rock64.dtb

if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /boot/Image; then
  if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}; then
    fdt addr ${fdt_addr_r}
    fdt resize
    fdt set /ethernet@ff540000 local-mac-address "[${macaddr}]"
    if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img; then
      booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
    else
      booti ${kernel_addr_r} - ${fdt_addr_r};
    fi;
  fi;
fi

The earlycon is the same, right?
The boot.scr I suggested above has two console=
Code: [Select]
console=ttyS2,1500000n8 console=tty1
Is that right?

is there a reason we, or armtix, does not just use alarms boot.scr?

Does armtix have a gitea or git?

Thank you for your help.
Title: Re: Rock64
Post by: phoenix_king_rus on 31 January 2025, 20:03:43
Is there a reason we do not remove that legacy? is that the vmlinuz* stuff?
I have to check whether it is still present in ALARM. If no, i'll remove it eventually.

Yes, it uses hardware parameters, so if they are set correctly in ALARM, you can use it

The boot.scr I suggested above has two console=
Code: [Select]
console=ttyS2,1500000n8 console=tty1
Is that right?
Won't hurt anything. IIRC only one of them will actually receive dmesg messages, though i don't remember which. Keeping both is good if you need to rebuild boot.scr to see debug messages on different console.

is there a reason we, or armtix, does not just use alarms boot.scr?
IIRC i've just used one of them and adapted parameters for other SBCs i have on the fly. Also, as i mentioned, ALARM can only have one kernel installed whereas ARMtix doesn't have such restriction.

https://gitlab.com/phkr/artixarm for patched/added software, Artix gitea for everything else
Title: Re: Rock64
Post by: n00b on 31 January 2025, 22:54:45
after running the chroot script from here
https://forum.artixlinux.org/index.php/topic,6921.0.html# modified to a path of /mnt/drive/Rock64/armenv/
Code: [Select]
pacman -Syu
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 armtix is up to date
:: Starting full system upgrade...
 there is nothing to do
# dinitctl list
dinitctl: connecting to socket: /run/dinitctl: No such file or directory
# sudo dinitctl list
sudo: /etc/sudoers is owned by uid 1000, should be 0
sudo: error initializing audit plugin sudoers_audit

what am i doing wrong?
Title: Re: Rock64
Post by: cat herders of linux on 31 January 2025, 23:37:07
after running the chroot script from here
https://forum.artixlinux.org/index.php/topic,6921.0.html# modified to a path of /mnt/drive/Rock64/armenv/
Code: [Select]
pacman -Syu
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 armtix is up to date
:: Starting full system upgrade...
 there is nothing to do
# dinitctl list
dinitctl: connecting to socket: /run/dinitctl: No such file or directory
# sudo dinitctl list
sudo: /etc/sudoers is owned by uid 1000, should be 0
sudo: error initializing audit plugin sudoers_audit

what am i doing wrong?
well you need to change the permissions on your sudoers file.  looks like you edited it with something other than vim?

Happy Sabbath.  I'm out until sabbath ends.
Title: Re: Rock64
Post by: phoenix_king_rus on 01 February 2025, 08:43:03
Code: [Select]
# dinitctl list
dinitctl: connecting to socket: /run/dinitctl: No such file or directory
There is no dinit runtime directory inside chroot. If you want to add services, you have to create appropriate symlinks
Title: Re: Rock64
Post by: n00b on 01 February 2025, 17:08:42
Code: [Select]
# dinitctl list
dinitctl: connecting to socket: /run/dinitctl: No such file or directory
There is no dinit runtime directory inside chroot. If you want to add services, you have to create appropriate symlinks
should the dinit armtix create this?
Title: Re: Rock64
Post by: phoenix_king_rus on 02 February 2025, 16:22:55

There is no dinit runtime directory inside chroot. If you want to add services, you have to create appropriate symlinks
should the dinit armtix create this?
Yes, at boot time. It is not persisted (/run is tmpfs)
Title: Re: Rock64
Post by: n00b on 02 February 2025, 23:23:17

should the dinit armtix create this?
Yes, at boot time. It is not persisted (/run is tmpfs)
I see. So i need to create it for chroot.

Why not persist it?
Title: Re: Rock64
Post by: phoenix_king_rus on 03 February 2025, 07:28:30

 Yes, at boot time. It is not persisted (/run is tmpfs)
I see. So i need to create it for chroot.

Why not persist it?
That's how /run is designed. It only contains runtime data which should be erased after shutdown. Same for dinit socket - it makes no sense to keep unix socket file if nothing listens to it