Reputation Activity
-
Murat Demirtas got a reaction from going in armbian-build, dts patch, can't find file to patch at input line 9...thank you very much guys, both two method is works. i successfully patched.
-
Murat Demirtas reacted to IBV in armbian-build, dts patch, can't find file to patch at input line 9...For the dts, I would take the
patch/kernel/archive/rockchip64-6.12/dt/rk3399-orangepi-4-lts.dts
, modify it according to your needs and put it in the user patches directory (using the recommended way to replace a patch).
-
Murat Demirtas reacted to going in armbian-build, dts patch, can't find file to patch at input line 9...To do this, you will need to open two sessions in the terminal.
The test here is my configuration file
1 session ~/armbian$ ./compile.sh test kernel-patch ...... # build system printed: [✨] Starting [ interactive patching process for kernel ] [🌱] Creating commit to start from clean source [🌱] Patches will be created [ with the following maintainer information ] [🌱] MAINTAINER (Real name): [ The-going ] [🌱] MAINTAINERMAIL (Email): [ 48602507+The-going@users.noreply.github.com ] [🌿] If those are not correct, set them in your environment, command line, or config file and restart the process [🚸] Make your changes in this directory: [ /home/leo/armbian/cache/sources/linux-kernel-worktree/6.13__sunxi64__arm64 ] [🚸] Press <ENTER> after you are done [ editing files in /home/leo/armbian/cache/sources/linux-kernel-worktree/6.13__sunxi64__arm64 ] Press ENTER to show a preview of your patch, or type 'stop' to stop patching... The build system will apply all the patches and make a commit that will include all the changes.
Leave this session alone.
In the second session, you make your changes and record the results.
2 session leo@armbuild:~/armbian$ cd /home/leo/armbian/cache/sources/linux-kernel-worktree/6.13__sunxi64__arm64 ### open root session leo@armbuild:~/armbian/cache/sources/linux-kernel-worktree/6.13__sunxi64__arm64$ sudo su root@armbuild:/home/leo/armbian/cache/sources/linux-kernel-worktree/6.13__sunxi64__arm64# ls arch/arm64/boot/dts/rockchip/rk3399-* linux-kernel-worktree/6.13__sunxi64__arm64# nano arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts linux-kernel-worktree/6.13__sunxi64__arm64# git add --all linux-kernel-worktree/6.13__sunxi64__arm64# git commit -m "Add a comment" ###close root session: linux-kernel-worktree/6.13__sunxi64__arm64# exit linux-kernel-worktree/6.13__sunxi64__arm64$ git format-patch -1 -o /home/leo/armbian/userpatches/ /home/leo/armbian/userpatches/0001-Add-a-comment.patch linux-kernel-worktree/6.13__sunxi64__arm64$ cat /home/leo/armbian/userpatches/0001-Add-a-comment.patch From 4dad6a3fa967235ea7eef35f81733bdafd806b53 Mon Sep 17 00:00:00 2001 From: The-going <48602507+The-going@users.noreply.github.com> Date: Tue, 18 Mar 2025 12:54:11 +0000 Subject: [PATCH] Add a comment --- arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts b/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts index 2ddd4da15..29eec7e65 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-orangepi.dts @@ -78,6 +78,7 @@ keys: gpio-keys { compatible = "gpio-keys"; autorepeat; + /* key-power */ key-power { debounce-interval = <100>; gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; -- 2.34.1 What should I do with the first session?
Decide for yourself!!
-
Murat Demirtas reacted to IBV in armbian-build, dts patch, can't find file to patch at input line 9...Indeed you are trying to patch a file that is created by an armbian patch. I suppose you can overwrite the armbian patch that creates the rk3399-orangepi-4-lts.dts with a patch that creates the dts with your modifications.
-
Murat Demirtas reacted to thc013 in Orange Pi 4/B Mainline Uboot HDMI SD > USB3 ,USB-C,Sd,?EMMC,NVME? SPI > USB3 ,SD,USBC, ?EMMC,NVME?Thnx Werner little cryptic message
Yah already updated topic titel i made some fixes
HDMI Uboot support works it was a dts change in the kernel dts , &cdn_dp and hantro are not good friends with hdmi yet
so
from SD
SD (duh) ,USB3, USB-C works so pi 4b users can have some more options as the sd and mmc ,emmc and nvme not tested yet.
From SPI
SD ,USB3 , somehow fusb302 keeps his f up to still be fuzzy so no USB-C yet Uboot gives it no power and mmc and nvme not tested yet .
HavE Fun
Ps you can now change pi to his own
elif [[ $BOARD == orangepi4 ]]; then
BOOT_USE_BLOBS=yes
BOOT_SUPPORT_SPI=yes
BOOT_SOC=rk3399
DDR_BLOB='rk33/rk3399_ddr_933MHz_v1.24.bin' # Orange Pi 4 does it has 4gb standard and is cheaper and b has also a ai
MINILOADER_BLOB='rk33/rk3399_miniloader_v1.19.bin'
BL31_BLOB='rk33/rk3399_bl31_v1.30.elf'
or
elif [[ $BOARD == orangepi4 ]]; then
BOOT_USE_MAINLINE_ATF=yes
BOOT_SUPPORT_SPI=yes
BOOT_SOC=rk3399
ATFPATCHDIR='atf-rk3399'
if you apply the changes
kernel-rockchip64-dev.patch linux-dtb-dev-rockchip64_21.02.0-trunk_arm64.deb linux-u-boot-dev-orangepi4_21.02.0-trunk_arm64.deb orangepi-4-rk3399_defconfig rk3399-orangepi-4-kernel.dts rk3399-orangepi-4-u-boot.dtsi rk3399-orangepi-4-uboot.dts sd-usbc-dmesg.txt spi-uboot-atf-log.txt u-boot-rockchip64-dev.patch
-
Murat Demirtas got a reaction from robertoj in armbian-build, custom dts and kernel driver patch, needs fixing: can't find file to patch.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
-
Murat Demirtas reacted to Werner in armbian-build, custom dts and kernel driver patch, needs fixing: can't find file to patch.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.