February 14, 20251 yr Hello, I'm trying to make a change for kernel panel driver for custom mipi dsi panel and orangepi-4-lts dts file. I could successfully flashed my armbian and bringed on our orangepi-4-lts board. I have configured to. debian minimal server rootfs and current linux kernel git tree in menuconfig with that command. sudo apt-get -y install git git clone --depth=1 --branch=v24.11 https://github.com/armbian/build cd build/ ./compile.sh ./compile.sh KERNEL_GIT=shallow After bring up, i tried to change existing linux kernel driver to our customized one using userpatches and that worked well. But i forgot the change dts file of orangepi4-lts and i have changed necessary lines in the existing orangepi-4-lts.dts file and linux kernel driver and used same command with kernel patch, but no luck, i got errors. Command for kernel patching, ./compile.sh kernel-patch BOARD=orangepi-4-lts BRANCH=current After changed, the patch file generated successfully. I moved it to userpatches kernel directory with that command sudo mv /home/oem/Desktop/build/output/patch/kernel-rockchip64-current.patch userpatches/kernel/archive/rockchip64-6.6/kernel-rockchip64-current.patch Command for building only kernel, ./compile.sh kernel BOARD=orangepi4-lts BRANCH=current the command works well if i patch only panel-newvision-nv3051d.c in /Desktop/build/cache/sources/linux-kernel-worktree/6.6__rockchip64__arm64/drivers/gpu/drm/panel/panel-newvision-nv3051d.c. If the patch file include changes both panel-newvision-nv3051d.c and rk3399-orangepi-4-lts.dts files then armbian build shows me error message. [🔨] Patch ->kernel-rockchip64-current(:1) (+97/-2)[2M] {rk3399-orangepi-4-lts.dts, panel-newvision-nv3051d.c}<- needs fixing: can't find file to patch. [🔨] Problem with ->kernel-rockchip64-current(:1) (+97/-2)[2M] {rk3399-orangepi-4-lts.dts, panel-newvision-nv3051d.c}<-: Failed to apply patch /home/oem/Desktop/build/userpatches/kernel/archive/rockchip64-6.6/kernel-rockchip64-current.patch those two file is exists in the directory and i will share full log as attachment in here(tried to upload log via armbian-build but it doesnt work). I tried everything and couldnt found a root issue. My host environment is fresh installed ubuntu 22-04 jammy on amd64. Thank you for your help and suggestions. kernel-rockchip64-current.patch build.log Edited February 14, 20251 yr by Murat Demirtas syntax fix.
February 14, 20251 yr I noticed it is applied somewhere between the existing patches. Have you tried to rename it to something like zzzz_yourpatchfile.patch so, since they are ordered alphabetically, it is applied at the very end, just like your chances have been made with all the previous patches already applied.
February 14, 20251 yr Author Hello @Werner, you are right, i changed name of the patch file to zzz-kernel-patch-nv3051f1-lcd-panel.patch and its worked. thank you very much. Edited February 14, 20251 yr by Murat Demirtas
February 14, 20251 yr Author Thank you again, the lcd panel works.. Have a good days!!!.. armbian v25.02 rolling for Orange Pi 4 LTS running Armbian Linux 6.12.13-current-rockchip64 Linux orangepi4-lts 6.6.62-current-rockchip64 #1 SMP PREEMPT Tue Feb 11 11:37:33 +03 2025 aarch64 GNU/Linux
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.