Android OS Forum banner
Status
Not open for further replies.

[KERNEL][UVKJ6][BETA3] Subtly Modified Stock with CWM5 + Voodoo Lagfix [12/19/2011]

15K views 35 replies 11 participants last post by  jeff 
#1 · (Edited by Moderator)
READ ME FIRST! This is beta. Some things may not work properly. If you find a problem, please either respond to this thread, or add a bug on the issue tracker on github. Thanks!

Introduction
This kernel is built from Samsung's T959VUVKJ6 Kernel source drop with some slight modifications.
There are plans for this kernel to have voodoo sound, bln, and optimizations in the future.
But for now, stability and code cleanliness are top priority.
The thread title will update as I do. I don't have any scheduled plans, so don't ask for ETAs.

Changes
My code is hosted on GitHub. You can find the latest changes there.
Btw... I actually tag my releases


Plans
I sorta did a little brain dump on what I'm thinking here.

Initramfs
We are now on a new version of CWM: v5.0.2.7
Old backups from previous nandroid's WILL NOT restore with this version, as the nandroid backup format changed.

New recovery fixes backup & restore, adds the ability to restart adbd and restart to download mode.

Current Support
AFAIKT, this kernel is basically just like stock, but adds ext4(and jbd2), tun, cifs, fuse, and si4709 modules.
Debug info was recently disabled, which should also speed things up a bit.
ChainDD's Free Superuser.apk and /system/xbin/su are automatically installed/updated if needed.
Same with RaverX3X's bootanimation binary.

DownloadFlashing
Either flash from CWM or:
  1. Install Heimdall
  2. Extract the zImage from the CWM zip file
  3. Change your directory to where the zImage is
  4. Put your phone in download mode
  5. Run the following:
    Code:
    heimdall flash --kernel zImage --recovery zImage

Credits
drhonk (cwm+voodoo initramfs)
krylon360
RaverX3X (moral support, testing, bootanimation binary)
SeafoodExpert, FBis251, and zargeus (for testing)
pawitp (thanks again for your help earlier)
supercurio (for voodoo lagfix and everything else!)
ChainsDD (for Superuser.apk and su)
Benjamin Dobell (for Heimdall, my current favorite program)
Last, but not least...
Samsung (for the source, of course)
 
See less See more
1
#2 · (Edited by Moderator)
  • Beta 3 (tagged in git): sms-T959V-KJ6-v0.1.0-unsigned-update.zip
    • Update CWM to v5.0.2.7
    • Fix backup & restore
    • More kernel cleanup
  • Beta 2d (no kernel update, just initramfs): sms-T959V-KJ6-v0.0.2d-unsigned-update.zip
    • Add bootanimation as a voodoo extension. This will install /system/bin/bootanimation just like su and Superuser.apk.
    • Updated to ChainsDD's Superuser.apk to build v3.0.7 (41). 'su' is still 3.0.3
  • Beta 2c (no kernel update, just initramfs): sms-T959V-KJ6-v0.0.2c-unsigned-update.zip
    • Basically reverted back to v0.0.2
    • Double checked that su and superuser are updated
    • Worked with Krylon360 and RaverX3X to finally get initramfs bootanimation working. Now the rom just needs the right /system/bin/bootanimation (and it needs to be executable! yea. I ran into that one... :sigh: )
  • Beta 2b (no kernel update, just initramfs): sms-T959V-KJ6-v0.0.2b-unsigned-update.zip
    • Removed 'disabled' from bootanimation service, as suggested by Krylon360
    • Updated Superuser.apk and su
  • Beta 2a (no kernel update, just initramfs): sms-T959V-KJ6-v0.0.2a-unsigned-update.zip
    • Removed 'disabled' from samsungani service, as suggested by Krylon360
  • Beta 2 (tagged in git): sms-T959V-KJ6-v0.0.2-unsigned-update.zip
    • More build clean-up
    • Disabled Debug Info and a few other debug options for performance
    • Made ext4 and tun as modules, now also packing cifs, fuse, and si4709
  • Initial Beta (tagged in git): sms-T959V-unsigned-update.zip
 
#9 ·
Hah! Seriously!

You ever see that video "Go the F#$k to sleep - narrated by Samuel L. Jackson"
I woke up my daughter one night flashing stuff. It instantly reminded me of that video.

I think something is still broken with the bootanimation. I'm talking with krylon about it, but I'm having some networking issues. (wifi keeps bouncing)

See comment #50 on that other site. Those are my current plans.
 
#17 · (Edited by Moderator)
The initramfs in this kernel is currently (it will change in the future) the same as the initramfs in drhonk's kj1 cwm+voodoo stock kernel.
I've gone through a lot of cwm and tested each option, and was able to partition my sdcard to each size (using a 16G card).
How did you backup your sdcard?

Personally, I would use a sdcard reader to do a backup:
Code:
<br />
cd /<where_u_mounted_sdcard>/<br />
tar zpcf ${HOME}/sdcard_backup.tar.gz *<br />
Then restore after repartitioning:
Code:
<br />
cd /<where_u_mounted_sdcard>/<br />
tar zpxf ${HOME}/sdcard_backup.tar.gz<br />
 
#20 ·
Thanks! Stability and Functionality over Features is my focus.

It's _still_ beta, so please test lots of different parts of the phone and let me know if you find any problems.

This version has Deep Idle and DMA Acceleration enabled. So, I kinda feel like something might break, but I hope not.
 
#23 ·
This version has Deep Idle and DMA Acceleration enabled. So, I kinda feel like something might break, but I hope not.


Well, I knew there would be some problems.
Deep Idle support doesn't seem to be working, and this latest v0.1.0 does seem to eat my battery.

(From that other forum...)
If all you do is use your phone as a telephone, email, web browsing, I could see you using this phone for multiple days on one charge.

But if you're like me, and have a BT Headphones, listen to music, wifi, bunch of apps running... battery totally sucks!
I'm too paranoid to turn on GPS, but I'm betting that will eat the battery too.

I'll fix it, it's just gonna take a bit.

If you have battery issues or other issues, please, please, please GIMMIE LOGS!
HOW TO: troubleshoot bad battery life with logcat
Learn logcat like a pro!

Attatch them to your complaint.

Even better would be to use the ISSUE TRACKER. That way I can... track the issues. :p
 
#21 · (Edited by Moderator)
Cool have it installed running like a champ so far testing the whole bat issue and seeing what it looks like and will use this knowledge when we test beta 4 see how different it is. Running all the benchmarks making a note about all the scores and definitely will see how everything performs in next build thank you for working on this. Has been very smooth for me so far havent noticed any problems in general use looking in the dmesg and logcats for anything fishy.

Edit: Found this in dmesg i have the full saved if youd like me to email but this looked like maybe an issue
<4>[ 53.425114] !@beginofMediascannerservice
<6>[ 56.075066] [acl set] in aclset_file_cmd_store, input value = 1
<6>[ 65.539941] s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
<6>[ 65.938968] [acl set] in aclset_file_cmd_store, input value = 1
<4>[ 67.735747] tegrak_overclock: bad vermagic: kernel tainted.
<4>[ 67.763191] voodoo_sound: bad vermagic: kernel tainted.
 
#22 ·
Cool have it installed running like a champ so far testing the whole bat issue and seeing what it looks like and will use this knowledge when we test beta 4 see how different it is. Running all the benchmarks making a note about all the scores and definitely will see how everything performs in next build thank you for working on this. Has been very smooth for me so far havent noticed any problems in general use looking in the dmesg and logcats for anything fishy.

Edit: Found this in dmesg i have the full saved if youd like me to email but this looked like maybe an issue
<4>[ 53.425114] !@beginofMediascannerservice
<6>[ 56.075066] [acl set] in aclset_file_cmd_store, input value = 1
<6>[ 65.539941] s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
<6>[ 65.938968] [acl set] in aclset_file_cmd_store, input value = 1
<4>[ 67.735747] tegrak_overclock: bad vermagic: kernel tainted.
<4>[ 67.763191] voodoo_sound: bad vermagic: kernel tainted.
Hmm, I don't see anything bad there. The tegrak and voodoo_sound messages are benign.
The others look ok.
 
#25 · (Edited by Moderator)
No way. I don't see it as wasted time.

RootzWiki is soo much tamer then xda... and I find myself on xda more because there seem to be more sgs4g users there then here... or maybe I'm wrong, but I don't see much happening here in this forum.

By the way, I finally got some electronics to play with (microusb break-out board, proto board, resistor pack(500pc)) from sparkfun, so now I can get factory-mode usb uart we can figure out the cm7 bootloop issue and start on u-boot for the sgs4g!

Things are gonna get exciting!
 
#34 · (Edited by Moderator)
Thanks for this work!

It installed without a hitch over Valhalla and I'll see how it works in the days to come.

Looking forward to tun.ko (unless its already there and not showing in lsmod output) and BLN when you get to it.

Let me know if I can help -- not a lot of Android experience, but a bunch with FreeSBD and comfortable on various flavors of Linux.

Edit -- Getting tun to load:

Code:
# alias bb='busybox'<br />
alias bb='busybox'<br />
# bb modprobe tun<br />
bb modprobe tun<br />
modprobe: chdir(2.6.35.7-sms-kj6-v0.1.0+): No such file or directory<br />
# cd /lib/modules<br />
cd /lib/modules<br />
# bb ls -l<br />
bb ls -l<br />
total 2192<br />
-rw-r--r--	1 1000	 1000		 28012 Dec 19 17:42 Si4709_driver.ko<br />
-rw-r--r--	1 1000	 1000		  6576 Dec 19 17:42 ansi_cprng.ko<br />
-rw-r--r--	1 1000	 1000		  6804 Dec 19 17:42 bthid.ko<br />
-rw-r--r--	1 1000	 1000		268888 Dec 19 17:42 cifs.ko<br />
-rw-r--r--	1 1000	 1000		293784 Dec 19 17:42 dhd.ko<br />
-rw-r--r--	1 1000	 1000		125276 Dec 19 17:42 ext3.ko<br />
-rw-r--r--	1 1000	 1000		251640 Dec 19 17:42 ext4.ko<br />
-rw-r--r--	1 1000	 1000		352076 Dec 10 21:07 fsr.ko<br />
-rw-r--r--	1 1000	 1000		210616 Dec 10 21:07 fsr_stl.ko<br />
-rw-r--r--	1 1000	 1000		 76116 Dec 19 17:42 fuse.ko<br />
-rw-r--r--	1 1000	 1000		 41776 Dec 10 21:07 j4fs.ko<br />
-rw-r--r--	1 1000	 1000		 72044 Dec 19 17:42 jbd.ko<br />
-rw-r--r--	1 1000	 1000		 80816 Dec 19 17:42 jbd2.ko<br />
-rw-r--r--	1 1000	 1000		  7096 Dec 10 21:07 param.ko<br />
-rw-r--r--	1 1000	 1000		260176 Dec 10 21:07 rfs_fat.ko<br />
-rw-r--r--	1 1000	 1000		 90384 Dec 10 21:07 rfs_glue.ko<br />
-rw-r--r--	1 1000	 1000		  2052 Dec 19 17:42 scsi_wait_scan.ko<br />
-rw-r--r--	1 1000	 1000		  3292 Dec 10 21:07 storage.ko<br />
-rw-r--r--	1 1000	 1000		 19776 Dec 19 17:42 tun.ko<br />
-rw-r--r--	1 1000	 1000		 12572 Dec 19 17:42 vibrator.ko<br />
# bb ln -s . `bb uname -r`<br />
bb ln -s . `bb uname -r`<br />
# bb modprobe tun<br />
bb modprobe tun<br />
# bb lsmod<br />
bb lsmod<br />
	Tainted: PF<br />
tun 13338 0 - Live 0xbf051000<br />
voodoo_sound 19966 0 - Live 0xbf288000 (F)<br />
storage 1214 0 - Live 0xbf282000 (P)<br />
param 9533 0 - Live 0xbf27a000 (P)<br />
bthid 3605 0 - Live 0xbf274000<br />
vibrator 7835 2 - Live 0xbf26c000<br />
Si4709_driver 21065 0 - Live 0xbf260000<br />
j4fs 63726 1 - Live 0xbf24a000 (P)<br />
ext4 209813 2 - Live 0xbf111000<br />
jbd2 64264 1 ext4, Live 0xbf0f8000<br />
rfs_fat 231175 1 - Live 0xbf0b4000 (P)<br />
rfs_glue 72327 1 rfs_fat, Live 0xbf09a000 (P)<br />
fsr_stl 247085 5 j4fs, Live 0xbf056000 (P)<br />
fsr 322495 2 storage,fsr_stl, Live 0xbf000000 (P)<br />
 
Status
Not open for further replies.
You have insufficient privileges to reply here.
Top