DavidJS Posted March 10, 2022 Posted March 10, 2022 Sorry, I know it is a noob question. I want to add something to the "arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts" file, and tried serval methods to make the patch to build, but no luck: Method1: 1. Directly modify the "arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts" file 2. Add "CREATE_PATCHES="yes" in $ARMBIAN_BUILD_HOME/build/userpatches/config-example.conf 3. Compile After compiled, I found my modification was not on "arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts" file. Method2: 1. Command: cd $KERNEL_SOURCE_HOME cp arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts . 2. Modify ./rk3328-roc-cc.dts 3. Command: git diff -up --no-index arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts ./rk3328-roc-cc.dts > mine_modify_rk3328.patch mv mine_modify_rk3328.patch $ARMBIAN_BUILD_HOME/userpatches/kernel/rockchip64-current/ cd $ARMBIAN_BUILD_HOME & ./compile.sh After the compile, I found there is nothing change in the "arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts" file. And I found there is an error on $ARMBIAN_BUILD_HOME/output/debug/patching.log: Processing file $ARMBIAN_BUILD_HOME/userpatches/kernel/rockchip64-current/mine_modify_rk3328.patch 1 out of 1 hunk FAILED -- saving rejects to file arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts.rej Method3: Mostly the same with method2, just change the command mv mine_modify_rk3328.patch $ARMBIAN_BUILD_HOME/userpatches/kernel/rockchip64-current/ to mv mine_modify_rk3328.patch $ARMBIAN_BUILD_HOME/patch/kernel/rockchip64-current/ And the same result on $ARMBIAN_BUILD_HOME/output/debug/patching.log. Could somebody can help? 0 Quote
Werner Posted March 10, 2022 Posted March 10, 2022 Hey, patches created via CREATE_PATCHES are not applied automatically IIRC. A while ago I described how to do this: https://zuckerbude.org/armbian-using-create-patches/ 0 Quote
DavidJS Posted March 10, 2022 Author Posted March 10, 2022 @Werner, thanks for your quick reply. I just read your detailed description. So I made a mistake on method1, I thought I should modify the file before compiled. But there was no pause and asking me to modify during compiling, maybe I should add CREATE_PATCHES = "yes" on shell, but not config-example.conf? I should have a try. 0 Quote
Werner Posted March 10, 2022 Posted March 10, 2022 5 minutes ago, DavidJS said: maybe I should add CREATE_PATCHES = "yes" on shell, but not config-example.conf? I Yes, try this way. 0 Quote
DavidJS Posted March 10, 2022 Author Posted March 10, 2022 Oh, it pause this time! Thanks ! I will continue to see the result. 0 Quote
DavidJS Posted March 10, 2022 Author Posted March 10, 2022 @Werner, it works! Thank you again. 0 Quote
Recommended Posts
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.