I am using the AMD64 architecture (x86_64).
Yes, I'm attempting to compile the kernel myself, but I only have a Debian 12 virtual machine with two virtual CPU cores, and the compilation process is extremely slow.
In fact, support for the AMD XDNA NPU driver wasn't introduced until Linux 6.14 and later versions. TinyCore 17 is the first distribution to include this capability, likely because the driver was stripped down. As a result, it only detects the PCIe device but cannot utilize it.
I made the following modifications to .config and hope to successfully enable the XDNA NPU:
# Enable the base acceleration framework (NPU driver dependency)
sed -i 's/# CONFIG_ACCEL is not set/CONFIG_ACCEL=y/' .config
# Remove any existing AMD_XDNA configuration entries to avoid redundant definitions
sed -i '/CONFIG_AMD_XDNA/d' .config
# Compile the NPU driver as a kernel module (m indicates compiling as a .ko module, not built-in)
echo "CONFIG_AMD_XDNA=m" >> .config
# Disable NPU debug mode (unnecessary in production, reduces compilation overhead)
echo "CONFIG_AMD_XDNA_DEBUG=n" >> .config
# Fallback to ensure PCI/cryptography dependencies are enabled (already included in official config, prevents accidental omission)
sed -i 's/# CONFIG_PCI is not set/CONFIG_PCI=y/' .config
sed -i 's/# CONFIG_CRYPTO is not set/CONFIG_CRYPTO=y/' .config
The compilation has been running for 12 hours and has failed once. I'm trying to obtain amdxdna.ko, though I'd much prefer to get vmlinuz64, which directly includes the required drivers
