w568w / alarm_repo

Personal ArchLinux ARM Repo.
6 stars 1 forks source link

Cannot Build linux-aarch64-rockchip-opi3b-npu-w568w #4

Open defencedog opened 2 months ago

defencedog commented 2 months ago

System Info

OS: Arch Linux ARM aarch64 
Host: Rockchip RK3566 OPi 3B 
Kernel: 5.10.160-1 
Uptime: 27 mins 
Packages: 994 (pacman) 
Shell: bash 5.2.26 
Resolution: 1920x1080 
DE: Xfce 4.18 
WM: Xfwm4 
WM Theme: Default 
Theme: Adwaita [GTK2/3] 
Icons: Papirus-Luminous [GTK2], Adwaita [GTK3] 
Terminal: xfce4-terminal 
Terminal Font: Monospace 12 
CPU: (4) @ 1.800GHz 
Memory: 992MiB / 3922MiB 

Error

[opi3b@opi3b linux-aarch64-rockchip-opi3b-npu-w568w]$ makepkg -si
==> Making package: linux-aarch64-rockchip-opi3b-npu-w568w 6.6.15-1 (Fri 26 Jul 2024 03:39:21 AM +03)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found linux-6.6.15.tar.xz
  -> Found 1001-arm64-dts-rockchip-add-opi3b.patch
  -> Found 1002-net-wireless-uwe5622-driver.patch
  -> Found 1003-rknpu.patch
  -> Found config
  -> Found linux.preset
==> Validating source files with sha256sums...
    linux-6.6.15.tar.xz ... Passed
    1001-arm64-dts-rockchip-add-opi3b.patch ... Passed
    1002-net-wireless-uwe5622-driver.patch ... Passed
    1003-rknpu.patch ... Passed
    config ... Passed
    linux.preset ... Passed
==> Extracting sources...
  -> Extracting linux-6.6.15.tar.xz with bsdtar
==> Starting prepare()...
Applying patch 1001-arm64-dts-rockchip-add-opi3b
patching file arch/arm64/boot/dts/rockchip/Makefile
The next patch would create the file arch/arm64/boot/dts/rockchip/rk3566-orangepi-3b.dts,
which already exists!  Skipping patch.
1 out of 1 hunk ignored
==> ERROR: A failure occurred in prepare().
    Aborting...
w568w commented 2 months ago
The next patch would create the file arch/arm64/boot/dts/rockchip/rk3566-orangepi-3b.dts,
which already exists!  Skipping patch.

This does not seem right. linux-6.6.15.tar.xz, the upstream Linux source archive, certainly doesn't have DTS file for rk3566-orangepi-3b.

I guess you might have executed makepkg -si more than once? Try cleaning the source directory with makepkg --clean first.

Besides, 7Ji's Arch repository contains a ready-to-use version of linux-aarch64-rockchip-opi3b-npu-w568w. Just download linux-aarch64-rockchip-opi3b-npu-w568w-6.6.15-1-aarch64.pkg.tar.zst and sudo pacman -U it.

defencedog commented 2 months ago

@w568w my running Kernel: 5.10.160-1 is different from linux-6.6.15.tar.xz will it work? I think I have to rebuilt it