Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to make a patch to modify the .dts file?

Featured Replies

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?

 

  • Author

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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.