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.

Have problem with kernel patching

Featured Replies

Hi!

 

I try make a patch file, but after image building my patched code do not work.
What I do wrong?

SRC=$(pwd)
# source file
SOURCES=$SRC/sources/linux-sunxi/sunxi-3.4/sound/soc/sunxi/i2s/
# create user patch file
diff -u $SOURCES/sunxi-i2s.c $SRC/mod/sunxi-i2s.c > $SRC/userpatches/kernel/sun7i-default/9999-i2s-mod.patch

for the patch to be created & applied properly you have to pay attention to the path

 

example:





--- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
+++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts

assuming you have 2 folders (a, b ) and you want to create a patch for the file arch/arm/boot/dts/sun4i-a10-cubieboard.dts

 

you have to "cd" on the higher directory then

 

diff a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts > $HOME/my.patch

 

note: usually the patch command is used with the option "-p1" so ignoring folder a & b when patching

 

of course, you can trick the patch and

diff sun4i-a10-cubieboard.dts.old sun4i-a10-cubieboard.dts.new

then replace the header with

--- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
+++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts

--

you may need to read some more piece of info

https://duckduckgo.com/?q=creating+a+patch+with+diff

 

http://stackoverflow.com/questions/23390823/creating-patch-file-for-linux-kernel#23390933

http://linux.byexamples.com/archives/163/how-to-create-patch-file-using-patch-and-diff/

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.