Building Jeboo Kernel
Here's a tutorial that should get you going on building your own copy of the kernel. Good luck and have fun!
1. Download all dependencies (java/android sdk/etc) for your OS. If you search for generic kernel building threads, they usually have a good list to start from. You will also know if you're missing
something when you try compiling later. For reference, I'm building on Ubuntu 12.10 64-bit under VMware.
2. Get the GCC 4.4.3 toolchain: It's available from many places, but I put up a copy as well:
http://d-h.st/5dV
Extract the toolchain to a folder upstream of the current project in case you decide to delete & start over.
3. Now create a directory and clone the kernel and initramfs gits. The initramfs should always be in the path ../initramfs from the kernel:
git clone
https://github.com/jeboo/kernel_JB_ZSLS6_i777.git
git clone
https://github.com/jeboo/initramfs_XXLSJ.git ./initramfs
4. Go into the kernel directory and edit mk.sh. You need to adjust the CROSS_COMPILE variable (line 2) to match your location of the toolchain from #2.
5. Now we are going to run 'make u1_defconfig' which will create '.config'. The u1_defconfig is located in arch/arm/configs if you want to modify some build settings.
6. If all goes well, now all that's left is to run './mk.sh' and you should have a working zImage. There are 2 lines in mk.sh that will error out because they are specific to my comp:
Line 12 'cp -v ..' which copies my latest built CWM to the kernel dir, and line 14 which builds an ODIN-flashable tar. Don't worry about the CWM copy error,
there's a copy in the kernel dir. I'll include the maketar.sh script below if you want to use it.
7. The first time you build the kernel, be sure to do a 2nd run of './mk.sh' to ensure your initramfs has the proper /lib/modules installed.
Code:
#!/bin/bash
#NOTE: If you use maketar.sh at the end, you should add a simple file .name (to kernel dir) with 1 line containing the name to use in the tar file name.
CURR_KERN="$(cat .name)_"
CURR_DATE="$CURR_KERN$(date +%b%d_%H%M)"
tar -H ustar -c zImage >> cust_kernel_$CURR_DATE.tar
md5sum -t cust_kernel_$CURR_DATE.tar >> cust_kernel_$CURR_DATE.tar
mv cust_kernel_$CURR_DATE.tar cust_kernel_$CURR_DATE.tar.md5
echo Created cust_kernel_$CURR_DATE.tar.md5