FORUMS
Remove All Ads from XDA

[DEV] Kernel development HOWTO and Interactive menu

5,530 posts
Thanks Meter: 2,288
 
By Droidzone, Inactive Recognized Developer on 5th December 2011, 05:48 PM
Post Reply Email Thread
5th December 2011, 08:20 PM |#11  
Kalashnikitty's Avatar
Senior Member
Thanks Meter: 488
 
More
lol now i understand how patching works.. i write all this **** by myself.. lol
 
 
5th December 2011, 08:23 PM |#12  
Droidzone's Avatar
OP Inactive Recognized Developer
Flag Kochi
Thanks Meter: 2,288
 
Donate to Me
More
Quote:
Originally Posted by Midian666

lol now i understand how patching works.. i write all this **** by myself.. lol

Ha ha.. that would not have been so easy
5th December 2011, 08:34 PM |#13  
Alex-V's Avatar
Inactive Recognized Developer
Thanks Meter: 5,253
 
More
Quote:
Originally Posted by Droidzone

Added a Howto on how to apply kernel source patch files, to post #3

sorry for offtopic but nice again and you see many people thought like me with the how to..

with kind regards...Alex
5th December 2011, 08:39 PM |#14  
Droidzone's Avatar
OP Inactive Recognized Developer
Flag Kochi
Thanks Meter: 2,288
 
Donate to Me
More
Quote:
Originally Posted by Alex-V

sorry for offtopic but nice again and you see many people thought like me with the how to..

with kind regards...Alex

I like explaining stuff and sharing..

This guide was written specifically because of your request, and I have never forgotten how you helped when I was a newbie to development.. I wouldnt probably have started developing if not for good responses from Firerat and you.
The Following User Says Thank You to Droidzone For This Useful Post: [ View ] Gift Droidzone Ad-Free
5th December 2011, 08:43 PM |#15  
Alex-V's Avatar
Inactive Recognized Developer
Thanks Meter: 5,253
 
More
Quote:
Originally Posted by Droidzone

I like explaining stuff and sharing..

This guide was written specifically because of your request, and I have never forgotten how you helped when I was a newbie to development.. I wouldnt probably have started developing if not for good responses from Firerat and you.

and now i learn from you lol thx

with kind regards..Alex
5th December 2011, 09:35 PM |#16  
ZoneX's Avatar
Member
Flag Poland
Thanks Meter: 7
 
More
Fantastic guide!!!!!!!
5th December 2011, 09:40 PM |#17  
Droidzone's Avatar
OP Inactive Recognized Developer
Flag Kochi
Thanks Meter: 2,288
 
Donate to Me
More
Did some more work on the first post. It now includes a flashable zip template and instructions on how to easily create your own flashable zip after compilation is over.
5th December 2011, 10:14 PM |#18  
Kalashnikitty's Avatar
Senior Member
Thanks Meter: 488
 
More
maybe some improvments to your making a flashable zip.

i did this with my kernels.. it took the version infos from the config files.. and put it into a folder... after this u can make zip.

ive stolen this from manus source

Code:
localVersion=`cat .your-config | fgrep CONFIG_LOCALVERSION= | cut -f 2 -d= | sed s/\"//g`
linuxVersion=`cat .your-config | fgrep "Linux kernel version:" | cut -d: -f 2 | cut -c2-`
VERSION=$linuxVersion$localVersion
echo "Kernel version=$VERSION"


rm -rf flash/system/lib/modules/*
mkdir flash/system/lib/modules/$VERSION
mkdir flash/system/lib/modules/$VERSION/kernel
tar czf modules.tgz `find . -name '*.ko'` 
cd flash/system/lib/modules/$VERSION/kernel
tar xzf ../../../../../../modules.tgz
cd - > /dev/null
rm modules.tgz
6th December 2011, 01:46 AM |#19  
Droidzone's Avatar
OP Inactive Recognized Developer
Flag Kochi
Thanks Meter: 2,288
 
Donate to Me
More
This is good..Actually when I generate kernels I test too many versions that I dont usually change the local version number in the menuconfig. Instead I use the date and time (including second) to name the kernel dir and kernel zip name...

Like this..

Code:
date_str=`date '+%d%m%y_%H%M%S'` 
    dirname="kernel_"$nameflag"_"$date_str
      pckdir="$packagedir/$dirname"
  mkdir $pckdir
  
  lastfolder=$pckdir
  cd $outdir/
  echo
  zipnoname="kbase_"$nameflag"_"$date_str
  zipaddnoname="kmods_"$nameflag"_"$date_str
  zipname=$zipnoname".zip"
  zipaddname=$zipaddnoname".zip" 
  zip -r $zipnoname ./ 
  mv $zipname $pckdir/
As you can see, its part of my script which does a lot of things..

But getting the localversion too is a good thing..I'd put it into a textfile in the zip which users can read..
6th December 2011, 03:15 AM |#20  
Member
Thanks Meter: 14
 
More
Great guide. Thanks a lot

Sent from my HTC Desire using Tapatalk
6th December 2011, 04:41 AM |#21  
sixstringsg's Avatar
Retired Forum Moderator / Retired Recognized Developer
Dallas, TX
Thanks Meter: 6,998
 
Donate to Me
More
A link to our build script: https://github.com/GlitchKernel/Glit...b/V13/cappy.sh
The Following 2 Users Say Thank You to sixstringsg For This Useful Post: [ View ] Gift sixstringsg Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes