yashsingh1/xdaforums huggingface dataset:
[Sprint Samsung Galaxy Note II] garwynn:
OK, assuming I get enough time to the build box... I'll try putting together boot.img following sleshepic's process. Still think my problem at the moment is ramdisk related but don't have any proof on that.

As a reminder, the repo will compile without problems - and the boot.img will function in the ROM. The problem is now getting it to play nice with TWRP before releasing.
[Sprint Samsung Galaxy Note II] sleshepic:
Re: Community Kernel Project

I got caught up in the ramdisk process for a few days too, honestly I feel like I did the same thing twice and it worked the second time round. If you have some trouble hit me up, think you have my gtalk. Otherwise I'll shoot it to you
[Sprint Samsung Galaxy Note II] garwynn:
Tested again using all the steps for ramdisk as Sleshepic provided.

Flash LJC Test kernel.

Booted to System OK.

Fastboot to Recovery - freezes.

This time I try restoring LK8 kernel to see if it restores TWRP functionality. It didn't.

So after doing the test kernel I still have to do both kernel and TWRP regardless of order.

@Sleshepic,

May clone your repo tomorrow and do a git diff against mine.

If I'm doing the same steps as you with the same LJC stock kernel then maybe it is in the kernel source.

A git diff should help sniff that out.

Have you tried yours with TWRP?
[Sprint Samsung Galaxy Note II] sleshepic:
Re: Community Kernel Project

You mean just flashing the boot.IMG by itself in TWRP? If that's what you mean yeah, had to test tons if times just never had your issue. I'm stumped on that one too
[Sprint Samsung Galaxy Note II] garwynn:
Re: Community Kernel Project

I made a tarball version, flashed in Odin but won't let me boot to TWRP. maybe should try flashing via TWRP instead. ..
[Sprint Samsung Galaxy Note II] sleshepic:
Re: Community Kernel Project

Come to think of it, I don't think I tested mine in Odin or heimdall. Think I always the tested with a zip through TWRP
[Sprint Samsung Galaxy Note II] smellymouse:
Hey, how many tools do you have to use to learn to create your own custom kernel? I want to learn to bring the world the mother of all kernels.
[Sprint Samsung Galaxy Note II] MiguelHogue:
Re: Community Kernel Project

Don't mind me

Just want a place holder for future posts.. I like to read this kind of stuff :)

-TeaM VeNuM Like A Boss

-Galaxy Note II Edition
[Sprint Samsung Galaxy Note II] garwynn:
Going to get back to this today or tomorrow.

Everything suggests the kernel is okay and have conferred with several folks while working on leak OCs.

So here's my test plan when I get back to this:

1) Create .ZIP and test flash with TWRP. See if it behaves with TWRP.

2) Try Odin flash with stock recovery and/or another custom recovery (like CWM) and see what happens.
[Sprint Samsung Galaxy Note II] garwynn:
OK, one of two tests done.

Test #2 was a success! Kernel and CWM will play nice.

Will still try Test #1 for thoroughness but at least we now know the community kernel can go out and under what conditions!
[Sprint Samsung Galaxy Note II] garwynn:
Test 1 results were odd in that the ZIP was failing all over the place.

When it did flash it caused a boot loop in CWM/TWRP.

At this point I'm wondering if the kernel is too big.

Usually they're 8 MB or less, this one is 8.5. Think that's part of my problem.

Once I can get it to flash by both TAR and ZIP we'll consider this phase complete.

Sorry for the delay folks, want it to be stable if others clone and compile.
[Sprint Samsung Galaxy Note II] garwynn:
I should have asked this... but what modules need to be copied? Just dhd.ko?

Kernel seems too big - 3.5 MB difference versus LJC stock. Think this is what's causing a good part of the problems.

Only thing I can possibly see that can be reduced is modules in initramfs.

Here's the list in there currently:

btlock.ko

commkm.ko

dhd.ko (biggest at 4.6 MB)

mvpkm.ko

pvtcpkm.ko

scsi_wait_scan.ko

vpnclient.ko

For comparison, here's the strip from LJC:

btlock.ko

dhd.ko (517kb!)

exfat_core.ko

exfat_fs.ko

scsi_wait_scan.ko

vpnclient.ko
[Sprint Samsung Galaxy Note II] garwynn:
Re: Community Kernel Project

Next step will be to recheck wifi src and config again.
[Sprint Samsung Galaxy Note II] sleshepic:
want me to shoot you my modules and you could try with them? see if it's your built ones or not, sorry i didnt get back with a list. Generally best to use the ones you build, but it's a try. you could create your ramdisk from them and give it a go
[Sprint Samsung Galaxy Note II] garwynn:
Re: Community Kernel Project

If you could please... will then try again with those on Monday. Think just dhd.ko will be okay as I think the problem is there.
[Sprint Samsung Galaxy Note II] garwynn:
Well, got the modules (Thanks Sleshepic!)... and confirmed my suspicions.

Both his dhd.ko and the stock dhd.ko are much smaller - almost 1/10 the size of mine.

I think I need to figure out what's causing this big size.

My hope is once we get this solved the kernel should be good for anyone to try on their own.

Edit: Tried Make clean/distclean/mrproper and then make (defconfig), make modules. Still 4.6 MB.

Think I know where to start looking now... /drivers/net/wireless/bcmdhd.
[Sprint Samsung Galaxy Note II] garwynn:
Finally, a breakthrough!

Cloned Sleshepic's repo and compiled - was getting the same results as mine.

Then decided to search for similar issues in any other GN2 version.

AndreiLux had the key:

http://xdaforums.com/showpost.php?p=35846449&postcount=4

Changed this and dhd.ko - as well as the resulting kernel - are

much

smaller.

Kernel appears to be fully functional and stable.

Updated version to 0.5.1, pushed repo.

Phase 1 complete.

Will update OP with current phase along with links to a kernel you can flash!

Phase 2 will be beta testing and tweaking of the kernel.
[Sprint Samsung Galaxy Note II] garwynn:
Today's update: (mainly for documentation purposes)

One thing that I have seen and like is the ability to update the Linux kernel version.

Unfortunately there's no easy way to patch minor revisions.

Here's the story: To go from 3.0.31 to even 3.0.32 you must revert the 3.0.31 patch and apply the 3.0.32 patch.

And to make it even more fun our kernels aren't "pure" Linux kernels, meaning you can't usually just apply patches.

Agat did each incremental step - I honestly don't have that kind of time.

So I'm working on fixing the 3.0.31 patch to allow proper rollback. That's half the battle and I'll probably make a new branch with this done so I don't have to revert again for future patches.

48 source members remaining before that patch should be ready to use.

Then I have to apply newer patches. Here's where I am still looking for an easier solution.

I'd like to find the difference between two given patches and apply the differences ONLY to the first.

The idea being that I can use my 3.0.31 changes to reduce the time to fix the other patches.

Might press my luck and try 3.0.62 first and see if it builds. Not a big fan of this method but again have other projects I want to get to.

And the upshot? Do this with LJC and I should *hopefully* be able to pull a diff from stock to the 3.0.62 patched.... which could - in theory - be applied to a newer kernel with fewer modifications.
[Sprint Samsung Galaxy Note II] garwynn:
Re: SPH-L900 Community Kernel Project (Updated 2/6/13)

LJC progress will stop immediately. Will download MA7 source tomorrow, upload repo and compile ASAP.
[Sprint Samsung Galaxy Note II] sleshepic:
Re: SPH-L900 Community Kernel Project (Updated 2/6/13)

Im excited as well. Thank you for all your work on our device. Ive said it before, and I'll say it again.

I'm not sure most know how important threads like this are.
[Sprint Samsung Galaxy Note II] garwynn:
Re: SPH-L900 Community Kernel Project (Updated 2/6/13)

Also going to try a new approach to doing the Linux updates. We'll see how that goes after MA7 can build okay.
[Sprint Samsung Galaxy Note II] garwynn:
OP updated to add link to MA7 repo. Still verifying, give it about 20 mins before trying to clone.

Will push another commit after get builds working OK.
[Sprint Samsung Galaxy Note II] garwynn:
MA7 repo is up. Updated OP to reflect.

One thing I see right off the bat - Cypress folder is there.
[Sprint Samsung Galaxy Note II] VeNuMuS:
Re: SPH-L900 Community Kernel Project (Updated 2/6/13)

Nice. Looks pretty solid.

---------- Post added at 07:28 AM ---------- Previous post was at 07:20 AM ----------

Looks like I'm the only one awake but I can't sleep. You should knock out garwynn and see what tomorrow brings:beer:
[Sprint Samsung Galaxy Note II] garwynn:
Not yet. Attempting a build first.

Let's see how it goes...
[Sprint Samsung Galaxy Note II] VeNuMuS:
Re: SPH-L900 Community Kernel Project (Updated 2/6/13)

Awesome dude. I like the way you think:thumbup::beer:
[Sprint Samsung Galaxy Note II] garwynn:
OP updated again:

TAR is already available, will make the ZIP when I get to work.

Wi-Fi and Capacitive Keys working - actually found a bug in the build script checking this. At least Samsung didn't forget the Cypress drivers this time.. but do have a possible concern about the wi-fi setup.

Feedback greatly appreciated if you try it out!

Now to restart the grind of updating the Linux version.

Want to do that first before adding things like governors, OC, etc.
[Sprint Samsung Galaxy Note II] garwynn:
Re: SPH-L900 Community Kernel Project (Updated 2/6/13)

And it keeps getting better! Finally found what I was looking for:

http://ftp.kernel.org/pub/linux/kernel/v3.0/incr/

Should allow to update Linux kernel versions WITHOUT having to revert.. hopefully.
[Sprint Samsung Galaxy Note II] spotopolis:
Is MA7 a new version above the already new MA5? I thought MA5 was the latest?
[Sprint Samsung Galaxy Note II] garwynn:
Until this morning MA5 was the latest leak. Today MA7 is the latest and is official.

Morning Update:

Those incremental patches are AWESOME!

Already up to 3.0.34 and will keep plugging away at it today.

Also thinking of throwing SU and busybox in /sbin to offer root access.

Any suggestions greatly welcome!
[Sprint Samsung Galaxy Note II] spotopolis:
Good deal. Thanks. Is it possibly worth going back to stock to receive the update and then rooting again? I see that the Kernel you posted does not have root access? Sice I already have root will I loose it if I flash MA7? Willing to test it.
[Sprint Samsung Galaxy Note II] garwynn:
You will lose root flashing to MA7 since you need to be on stock recovery to do it. I haven't added anything yet but that's about to change.

Kernel Update:

Updated overall kernel version to 0.2.0.

Kernel has been patched to current Linux revision - 3.0.63

No issues so far on running it.

OP updated with download links for new version.
[Sprint Samsung Galaxy Note II] spotopolis:
Going to revert to stock and test out v 0.2
[Sprint Samsung Galaxy Note II] garwynn:
0.2.1 posted with stock governors enabled.

Governors in 0.2.1:

Adaptive

Conservative

Interactive

OnDemand

PegasusQ

Performance

PowerSave

Default: OnDemand
[Sprint Samsung Galaxy Note II] garwynn:
0.2.2 to be tested shortly.

I'm reaching the point we need testing and feedback to make certain I'm not blowing up devices.

This update adds 6 governors:

Hotplug

Hyper

Ktoonservative

Lagfree

Lulzactive

Smartass2

Please consider downloading, testing and sending feedback.

While I may add other governors as I get the details for them, OC will probably be next on my list.
[Sprint Samsung Galaxy Note II] spotopolis:
Running 0.2.1 on stock rooted LJC with no issues so far. Just ran a bench and it didn't crash. Got over a 17k in Antutu.

Sent and received a few text, updated apps through market, received a phone call, and Google talk chat as well.

EDIT: Just updated to 0.2.2

Switched from Hyper gov to Lagfree. Seems to still be working great so far. LTE speeds seem to be a bit better as well, but that could just be time of day.
[Sprint Samsung Galaxy Note II] andygu3:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

Can we use this kernel on any non-aosp rom? Running Odex ma5 right now
[Sprint Samsung Galaxy Note II] MiguelHogue:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

Yes

-TeaM VeNuM Like A Boss

-Galaxy Note II Edition
[Sprint Samsung Galaxy Note II] RTC88:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

With 0.2.2 I can't mount sd card, is anyone else having this issue?
[Sprint Samsung Galaxy Note II] garwynn:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

Forgot to flash it yesterday, will do this morning and report back. 0.2.1 has no issues that I see with external card.
[Sprint Samsung Galaxy Note II] patrick_1:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

Just got home from work to see all this happening! LOVE IT! It's like getting up from your table at a restaurant to use the bathroom and returning to your food served! Lol:D
[Sprint Samsung Galaxy Note II] crookshanks:
I'm trying 2.2 and everything seems to work well. Thanks for your work!

@RTC88 - my SD card mounts in 2.2 just fine. Maybe a bad flash?
[Sprint Samsung Galaxy Note II] RTC88:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

I just re downloaded it and still the same problem. Upon booting, it says, "sd card safe to remove." Then when i try to mount it, it won't mount.
[Sprint Samsung Galaxy Note II] garwynn:
Really need a logcat if you can get one.

From ADB or terminal emulator:

su
logcat -c
[I]<Try to mount so we capture the error>[/I]
logcat -d > /sdcard/logdump.txt

Then copy that file and post it here, pastebin, etc. so I can see if I can figure out what's going on.

Also moved to 0.2.2 and SD card working fine.

Thanks!
[Sprint Samsung Galaxy Note II] garwynn:
Download File Updates

As I expect the downloads to increase - and for others to possibly use the repo down the road - I'm separating the downloads to a different thread. I'll be updating OP shortly with the new links.

The thread will still continue to discuss work on the kernel... but my builds and downloads will be in a different thread.

It will also give others a format to use when wanting to make and release their own builds based on these repos.
[Sprint Samsung Galaxy Note II] crookshanks:
Would the SD card format make a difference?
[Sprint Samsung Galaxy Note II] garwynn:
Anything's possible. You could try backing up the contents and reformatting...

If that fixes it I would like to know what format you had it in before and after so I can check the source.

Also - wi-fi users!

Need someone using WEP to do some tests for me.
[Sprint Samsung Galaxy Note II] smooth703:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

Can this be flashed with a custom recovery
[Sprint Samsung Galaxy Note II] garwynn:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

The ZIP sure can!
[Sprint Samsung Galaxy Note II] snrbobo:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

Oh boy so many governors!!! I dont no which one to use!!!?? Lol good work man!
[Sprint Samsung Galaxy Note II] sleshepic:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

Thanks gokhanmoral and AndreiLux :)

64gb sdcard support, exfat compat

https://github.com/AndreiLux/Perseus-S3/commit/d0a4dbb262105f2368dba7336ea7f993e7c39bdd
[Sprint Samsung Galaxy Note II] KEYofR:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

So far so good! On 0.2.2 no problems with my 64g sdcard or any other problems. My card is formatted fat32 not exfat. Thanks!

---------- Post added at 11:29 AM ---------- Previous post was at 11:21 AM ----------

So... since we have a kernel from source, can't we somehow parlay that into a debugger to watch behind the scenes and discover what allshare is looking for when it declines to output over the dongle when the custom flash count is not 0?
[Sprint Samsung Galaxy Note II] garwynn:
Going to check with AndreiLux and others to get permission to add some of their tweaks into the community kernel. Would allow me to easily add some of the most requested features.

Full debugging made the kernel too big to flash - dhd.ko was the worst offender by making the module 10 times as big. I could probably leave it on and use all but that module... but can't guarantee that will get you the data you are looking for.
[Sprint Samsung Galaxy Note II] jseaton:
Thanks for this project! Took a while to get it going, but I was finally able to build this kernel (LJC)! I'm going to start working on adding some modules.
[Sprint Samsung Galaxy Note II] fryingpan0613:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

Thank you! This seems to be the only ma7 kernel right now
[Sprint Samsung Galaxy Note II] Compusmurf:
I reported a potential init.d bug via PM already.

Also, should have a chat with Ktoonsez in the S3 dev area and see if you can get some of his code to port.

http://xdaforums.com/showthread.php?t=1800576
[Sprint Samsung Galaxy Note II] garwynn:
0.2.3 released - just more Linux patches.

I'll try to look at the potential bug today. Trying to help some folks in Japan get their GN2 source working. After that's done I'm going to compare their defconfig versus ours and see what real differences there are "under the hood".
[Sprint Samsung Galaxy Note II] Flak:
No flashable this time or am I just not seeing that link?
[Sprint Samsung Galaxy Note II] garwynn:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

No zip yet. Probably Monday.
[Sprint Samsung Galaxy Note II] BigJPNut:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

Did this get posted anywhere? Looking but cant find it. TY!
[Sprint Samsung Galaxy Note II] garwynn:
Re: [KERNEL][MA7][LJC]SPH-L900 Community Kernel Project (Updated 2/13/13)

I'll check in 7 hrs when get in front of pc.
[Sprint Samsung Galaxy Note II] garwynn:
0.2.4 out - Updated Linux to 3.0.71.

Zip also available.
[Sprint Samsung Galaxy Note II] garwynn:
MC2 source dropped.

I'll be looking to see what changed and how I can either apply it to this kernel to make it current or apply all that I've done to the new one. Stay tuned.

Update:

Easiest way to get MC2 merged with MA7 was indeed get a diff of the two as downloaded and correct the patch.

Repo is pushing as we speak - I'll have an MC2 kernel posted soon.

Since we are able to keep all of the MA7 changes I'm just going to update the defconfig, scripts and build using next increment from where MA7 left off.
[Sprint Samsung Galaxy Note II] garwynn:
MC2 links are up. Enjoy.

Noticed MMC enhancements and maybe placebo but it seems snappier to me.
[Sprint Samsung Galaxy Note II] rwright64:
It definitely feels snappier!
[Sprint Samsung Galaxy Note II] budde2:
So the MC2 is stock kernel. I just want to make sure thanks. I went ahead and flashed and its nice and smooth to soon to tell anything else but ill be keeping my eye on things. Ill report back if I have any problems. Thanks
[Sprint Samsung Galaxy Note II] garwynn:
Actually MC2 is still tweaked... 3.0.71 and governors added... which I recently learned includes a built in dynamic hotplug for this device.
[Sprint Samsung Galaxy Note II] budde2:
Thankb you very much for the info
[Sprint Samsung Galaxy Note II] sliverr7x:
How's the new kernel running so far anybody get some good testing.. Thanks

Rockin it from my Macknote2
[Sprint Samsung Galaxy Note II] fryingpan0613:
Better than perseus for me

check out our rom website, http://updater.team-nocturnal.com/labrats/
[Sprint Samsung Galaxy Note II] mackentosh:
Rhis kernel is running really smooth
[Sprint Samsung Galaxy Note II] nuc noob:
So far MC2 kernal is running great. The only issue I've encountered is sound out thru the mhl adapter. I was watching YouTube videos while running perseus35, was working great. Flashed mc2 kernel, went back to watching videos on YouTube, video worked fine, but couldn't get sound to work. So I just plugged my jambox to the headphone jack as a workaround.
[Sprint Samsung Galaxy Note II] Patch7:
This kernel seems ti be running very smoothly however I do notice it sucking up serious battery versus the perseus kernel. I was on a full charge before bed last night with no apps running and it was at 86% this morning. The Perseus kernel in the same situation will be 97% in the morning.
[Sprint Samsung Galaxy Note II] Macguyver:
FYI for the devs on this. I tried this kernel a couple days ago when whomp got updated and it was giving me an SD card mount error on my 64gb SanDisk card. Reflashed the stock kernel and no problem.
[Sprint Samsung Galaxy Note II] sliverr7x:
You have to format your card to fat32 its a very well known problem with 64g cards with kernels you can search on Google and there are plenty of programs to format it to fat32

Rockin it from my Macknote2
[Sprint Samsung Galaxy Note II] fryingpan0613:
You're not even settled yet to be talking about battery life, it takes 2 days. Also were you tweaking perseus for better life?

check out our rom website, http://updater.team-nocturnal.com/labrats/
[Sprint Samsung Galaxy Note II] Patch7:
No
[Sprint Samsung Galaxy Note II] t4d73:
Really? Even with all the tweaking options from stweaks that come with Perseus? Not downplaying this at all but I would love if this came with those.
[Sprint Samsung Galaxy Note II] fryingpan0613:
I mess with the tweaks some, but I don't go crazy changing stuff.

Reason being is that I want it set up the way the majority of people would, so that way my set up could be compatible to most users of my rom.

I want the kernel to have better life without changing 99 options.

check out our rom website, http://updater.team-nocturnal.com/labrats/
[Sprint Samsung Galaxy Note II] t4d73:
Guess I'm different. I like to overclock cpu and gpu. Also tweak the hell out of the memory. Yes I don't care about my battery lol.
[Sprint Samsung Galaxy Note II] sleshepic:
Latest builds of MK4 kernels having similar module loading issues as before. Have set --strip debug and fno-pic in makefile in appropriate places still to no avail.

Ran uname -r with stock kernel to get info to change vermagic string as suggested here and a few other places

http://www.thriveforums.org/forum/t...implemented-kernel-functionality-modules.html

Will report back with results when I have them.

Insmodding the modules also does not result in success and returns an exec invalid format message, a followup dmesg does not help much.

Here is a logcat of trying to turn on the wifi many times after boot, understandably one can see "dhd.ko not found" etc.

https://www.dropbox.com/s/nm4z599remevp0t/crap.txt

I have read that Samsung is treating kernels differently in that modules simply will not load if magic string does not match stock kernel so that's my next step

Here's also a link to my git and MK4 source for those that would like to clone, I'll keep my changes in other branches so it's untouched from Sammy Source

https://github.com/sleshepic/l900_MK4_Kernel

Edit: modifying the extraversion in Makefile to stock value (in this case for me -2106854) did not help, still no wifi. Modules are located in /lib/modules but still an insmod does not work.

I have to say at this point I'm stumped.
[Sprint Samsung Galaxy Note II] garwynn:
I'll be updating OP shortly with MK4 link and current status for that. (Using sleshepic's repo)

Need to set up the new box for standalone kernels, will be fun getting back to this.

For reference I have forked Sleshepic's repo and will make my changes here:

https://github.com/garwynn/L900_MK4_Kernel
[Sprint Samsung Galaxy Note II] Keithgordon:
O ' boy is this gonna be great?! I have been wanting to learn this for a while...I just set up a pc with linux mint..linux mint is by far the best operating system i have seen. It comes with android sdk pre installed, in fact everything is pre-installed. it has every driver too, i wasn't meaning to sound like a commercial, I was just stating how awesome all this is that its all coming together according to my plan to take over the world...lol