Jump to content

Recommended Posts

Posted

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?

 

Posted

@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.

Posted
5 minutes ago, DavidJS said:

maybe I should add CREATE_PATCHES = "yes" on shell, but not config-example.conf? I

Yes, try this way.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines