Jump to content

Noob trying to patch kernel can not get patch directory correct


tjmarch

Recommended Posts

I have a BPI-M2 and I am trying to patch kernel 4.4.1 with contents of archive

patches-4.4.1-rt6.tar.gz

for RT-Preempt while making Debian Wheezy xfce desktop image.

 

I have tried putting patches in

 

/userpatches/kernel/sunxi-dev

 

and

 

/userpatches/kernel/sunxi-dev/linux-vanilla/v4.4.1

 

nether worked. Made image but patches were not applied

 

Any help would be appreciated

 

Tim

Link to comment
Share on other sites

Kernel 4.4.1 is "next" branch, not "dev".

Patching process displays what directory is used for user patches:

[ o.k. ] Started patching process for [ kernel sunxi-next 4.4.1 ]
[ o.k. ] Looking for user patches in [ userpatches/kernel/sunxi-next ]

I would suggest using single file patch ("patch-4.4.1-rt6.patch" extracted from "patch-4.4.1-rt6.patch.gz") instead of "patches-4.4.1-rt6.tar.gz" which contains multiple small patches.

Link to comment
Share on other sites

Thank you for the quick reply

I noticed in the last day armbian updated and process is different but this is what I just done and it failed

 

#Reinstalled Ubuntu 14.04 LTS x64 server in Virtualbox and booted up
sudo su -

#Install armbian building script
apt-get -y -qq install git
git clone --depth 1 https://github.com/igorpecovnik/lib
cp lib/compile.sh .

#Run building script first time to set-up, (source, directorys ect.)
./compile.sh
#Wheezy
#XFCE desktop
#Latest stable @kernel.org

#Failed first run during install armbian on top debian wheezy base system while installing package x-11-server-utils, directorys were set up though

#Setup patch
cd ~/userpatches/kernel/sunxi-next

wget https://www.kernel.org/pub/linux/kernel/projects/rt/4.4/patch-4.4.1-rt6.patch.gz

gunzip *.gz
cd ~

#Run armbian tool again
./compile.sh KERNEL_ONLY=no KERNEL_CONFIGURE=yes CLEAN_LEVEL=make,debs,images

#menuconfig did not start I do not know if patch was applied screen scroll was to fast
#Failed again on second run during install armbian on top debian wheezy base system while installing package x-11-server-utils

 

Am I doing something wrong

Link to comment
Share on other sites

Am I doing something wrong

Don't know, but rather than enable full logging and trying to build image from scratch you can build only kernel and install it on top of one of prebuilt images.

 

BTW, I think Wheezy desktop is not fully supported (as in, not tested if it works or not, only Jessie and Trusty desktop builds are present in "build all" configuration)

Link to comment
Share on other sites

#Run armbian tool again
#Changes to compile.sh

# KERNEL_ONLY="no" KERNEL_CONFIGURE="yes" CLEAN_LEVEL="make,debs,images" PROGRESS_LOG_TO_FILE="yes" EXPERIMENTAL_DEBOOTSTRAP="yes"

# I was using the first 3 choices on command line in terminal before with no changes to compile.sh

./compile.sh

#This time prompt came up with choices for RT PREEMPT then menuconfig also opened

 

It is runniing hopefuly it finishes without failure

Link to comment
Share on other sites

Finished successfuly final file

 

Armbian_5.00_Bananapim2_Debian_wheezy_4.4.1-rt6_desktop.zip

 

Wrote raw to sdcard

 

hung for a bit then I had

 

bananapim2 login:

 

I logged in

 

Thank you for choosing Armbian Support: www.armbian.com

 

root@bananapim2:~#

 

typed

startx

 

result

 

-bash: startx: command not found

 

typed uname -a

 

result

 

Linux bananapim2_4.4.1-rt6-suxi #4 SMP PREEMPT RT Sat Feb 13 12:55:50 EST 2016 arm71 GNU/Linux

 

Will I have to

 

apt-get install xfce4 xfce4-goodies

 

or is something else missing that will take less time

 

By the way THANKS A BUNCH

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines