Repository navigation
Conversation
The recipe builds for aarch64 as well as x86_64: its own config.aarch64, the arm64 header directory in the headers package, and the raw EFI-stub Image as vmlinuz, because arm64's image_name is the gzip Image.gz, which neither UEFI nor systemd-stub can start. config.aarch64 is derived from config.x86_64 for 7.2.8: every option that exists on arm64 keeps its x86 value (9288 shared options, 174 differ). The x86_64 build is unchanged.
Hardware video decoding on Snapdragon X needs the Iris driver and, for the X1 Elite, the SM8550 video clock controller its device tree binds to. Both were off, so video was decoded on the CPU. The X2 Elite (Glymur) clock controllers, pin controller, interconnect and M31 eUSB2 PHY were off as well. They follow the X1 Elite choices: global clocks, TCSR, pinctrl and interconnect built in, the rest as modules. All ten options resolve unchanged through olddefconfig in the patched 7.2.8 tree, and none exists in config.x86_64.
Snapdragon laptops and most other arm64 boards boot from a device tree, and the package shipped none. Install them next to the modules, in /usr/lib/modules/<version>/dtbs/<vendor>/, as linux-aurora already does for Apple Silicon: they always match the kernel they were built with, stay off the ESP, and do not collide with the trees another installed kernel owns under /boot/dtbs. Build them with symbols (dtc -@), as Arch Linux ARM does, so overlays can be applied to them.
|
Tested the CI build of linux-omarchy 7.2.8-2 on a DGX Spark (GB10) with NVIDIA open 615.71.09 via DKMS. Boot from NVMe with nvme as a module, both displays, ConnectX at 200 Gb/s with RDMA, and the DGX Dashboard all work. CUDA hangs, though: a GPU write into ordinary process memory, such as a device-to-host cudaMemcpy into a stack variable, never completes. This config enables DEVICE_PRIVATE, so nvidia-uvm builds HMM and CUDA uses process memory directly. On GB10 that needs SVA, and CONFIG_ARM_SMMU_V3_SVA isn't set, so the GPU never gets a translation. NVIDIA's DGX OS kernel sets both, and so does linux-omarchy-n1x on the gb10 branch. A local build of this branch with ARM_SMMU_V3_SVA=y passes everything on the same Spark with default driver settings: the hanging case, GPU access to malloc and mmap memory, both Docker GPU paths and a 1 GiB copy. The commit is here if you want to cherry-pick it: https://github.com/jdvmi00/omarchy-pkgs/commits/linux-omarchy-aarch64-sva. ARM_SMMU_V3_SVA isn't in config.x86_64, so it would need to join your arm64-only list to survive regeneration. |
|
Closing as #930 was merged |
Makes
linux-omarchybuild for aarch64 from the same recipe as x86_64. The x86_64 build is unchanged.What changes
arch=gainsaarch64, with its ownconfig.aarch64next toconfig.x86_64.Imageasvmlinuzon arm64.make image_namegives the gzipImage.gzthere, which neither UEFI nor systemd-stub can start; Arch Linux ARM ships the raw image for the same reason./usr/lib/modules/<version>/dtbs/<vendor>/, wherelinux-auroraalready puts the Apple ones. Snapdragon laptops and most other arm64 boards boot from a device tree. Next to the modules they always match the kernel they were built with, stay off the ESP, and do not collide with the trees Arch Linux ARM'slinux-aarch64owns under/boot/dtbs, so both kernels can be installed side by side.dtc -@), as Arch Linux ARM does, so overlays can be applied to them. The flag is set in the environment, not on themakecommand line, so the kernel's own dtc flags still apply.aarch64to the kernel'sarm64directory.The config
config.aarch64is derived fromconfig.x86_64for 7.2.8: every option that exists on arm64 keeps its x86 value. 9,288 options are shared and 174 differ, mostly options that need x86, ACPI features or x86-only drivers.Ten arm64-only options are switched on beyond that. None exists in
config.x86_64, and all ten resolve unchanged througholddefconfigin the patched 7.2.8 tree:VIDEO_QCOM_IRIS, andSM_VIDEOCC_8550, the video clock controller the X1 Elite device tree binds to. Arch Linux ARM's kernel builds neither, so video is decoded on the CPU there.CLK_GLYMUR_GCC,CLK_GLYMUR_TCSRCC,PINCTRL_GLYMURandINTERCONNECT_QCOM_GLYMURbuilt in,CLK_GLYMUR_DISPCC,CLK_GLYMUR_GPUCC,CLK_GLYMUR_VIDEOCCandPHY_QCOM_M31_EUSBas modules. The split follows the X1 Elite options.Tested
linux-omarchy 7.2.8-2andlinux-omarchy-headersfor aarch64: 62 minutes on 32 AmpereOne cores from an empty compiler cache, 10 minutes with a warm ccache.7.2.8-2-omarchy, staterunning, no failed units.Open questions before this can merge
ubuntu-24.04-armrunner is not known yet. The native build above took 62 minutes on 32 AmpereOne cores from an empty cache. If it does not fit, arm64 kernel builds need a larger arm64 runner, a compiler cache or a cross build, in the publish workflow as well.config.aarch64has to followconfig.x86_64on every kernel update. The tooling that regenerates it is not part of this PR./boot/dtbs/qcom, whichlinux-aarch64populates, and the installer still selectslinux-aarch64by name. Both need a follow-up change before a Snapdragon machine can boot this kernel.