yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] marc1706:
Really? How am I supposed to put Sense into a kernel?

If you are asking if this is an ICS Sense kernel:

I think HTC stopped messing kernels up for sense. If we need something special for sense 4.0 I think I'll soon found out.

If you have issues with A2SD reboot into recovery and make sure to fix permissions and wipe the dalvik cache.
[HD2 Android NAND Development] wheeliemonster:
Using the kernel on Xylo's AOKP milestone 5 HWA.

Very good so far, except an FC on Settings ... Wireless & Network ... More

(i.e. APN settings, etc.)

Not a problem as my data/APNs are fine.

Email is FCing too - just re-creating my accounts now to see if that fixes it.

Cheers

EDIT: think I have tytung's 2.3-uM initrd as that was my previous kernel.
[HD2 Android NAND Development] dimdimdim:
doesn't boot ics1.1 on tostidroid 1.1 magldr
[HD2 Android NAND Development] marc1706:
Fix permissions in recovery and make sure to wipe the dalvik cache.
[HD2 Android NAND Development] zexmunze:
You can try,go in recovery clear cache & wipe dalvik cache.

Kernel is amazing,running on IceCreamTosti v1.0 PE B35 smoot & fast,no fc's at all,data,wifi,calls ok,battery 2-6mA on standby.....so far so good...
[HD2 Android NAND Development] wheeliemonster:
Cheers Marc. Did a couple of dalvik wipes and re-created the accounts. Seems to have settled down now. APN settings page no longer FC's now too.

Will continue testing and report back. :cool:
[HD2 Android NAND Development] ph03n!x:
On ICS kernel in CM9 nightly (13th May) with app and app-private symlinked to SD EXT. Just flashed the kernel- no issues, no FC, all apps area there and work fine, email accounts work. I didn't clear dalvik cache or fix permissions...

Swyped from my HTC HD2 (ICS 4.0.4)
[HD2 Android NAND Development] wheeliemonster:
Hi Marc,

Just to confirm a little more testing.

Bluetooth is working perfectly in this kernel. In fact, it's the best I've tried yet for ICS. I have a Nokia BH-505 BT headset, which on tytung's and securecrt's kernels, have always "fed-back" the microphone audio into the headphones, so I can hear myself speaking and get lots of background noise in calls. Yours does not seem to do that. AVRCP stuff is working fine too, so, all in all, very very pleased with your kernel.

Thanks very much for your hard work. Fantastic. :):):)
[HD2 Android NAND Development] dimdimdim:
sorry, but I meant sd/magldr boot:) I understand, that the kernel was not designed for the sd builds.

just for the dev info. that would be great it would be possible to use marc's kernel with sd ics builds.

at least, sense kernel we can use
[HD2 Android NAND Development] marc1706:
I'm not sure how the whole SD boot is handled but could try going to services -> Dump dmesg to sd in Magldr after the reboot?
[HD2 Android NAND Development] ric69:
Yes backup is important ...

Feedback on TT V1.3a/dataonext/clk/fresh install --> hot reboots randomly :( Had no time to logcat sorry but thanks for continue&sharing your work on HD2 Marc :good:
[HD2 Android NAND Development] aj-alberto:
thanks for your answer, i will think about it, mayve tomorrow i will try it, and post here if it success...
[HD2 Android NAND Development] zagzag99:
Battery consumption is really high, even when phone is idle with screen off.

This makes it's impossible to run as daily driver.

Also I think I encountered sometimes that the CPU simply remains at low cycles after screen wake up.

Couldn't take a logcat at that time. But because of the high battery consumption I can't really reproduce this again.
[HD2 Android NAND Development] :
tried it for 2 days now with this result :

sometimes phone gets laggy and doesn't response, then hangs (take out battery) or reboots

this is more worse on 1536mhz then on 1190mhz (can't be the phone cause it does 1612mhz on dorimanx kernel in native sd at ease)

how do i make a good logcat?
[HD2 Android NAND Development] zexmunze:
This method need andoid sdk on PC

run cmd and type:

adb shell

su

cat /proc/last_kmsg > /sdcard/kmsg.txt

You can try on phone download Terminal Emulator app

su

cat /proc/last_kmsg > /sdcard/kmsg.txt

Edit:same thing happens to me on tytung jb native sd,ram goes down to 50mb and phone get stuck,solution is pull battery out

Edit 2:[Tutorial] How To Logcat
[HD2 Android NAND Development] jack928:
There is a metod for use your kernel in my miui JB nativesd ROM? How i can upgrade from tytung r1 to your? Please reply me
[HD2 Android NAND Development] jack928:
Anyone know how to...?
[HD2 Android NAND Development] Robbie P:
To use marc1706's kernel in NativeSD ROM, you must include marco.palumbi/securecrt edited initrd.gz (unless already included eg Nexus_HD2_Jellybean).

The easiest way to get an edited initrd.gz is to use HypoTurtle's excellent patcher found here http://xdaforums.com/showthread.php?t=1953428

So what you do is unzip your ROM zip and the kernel zip.

Copy and paste the contents of the kernel system folder to the rom system folder (merge and overwrite files)

At this point you could swap zImage, but there are variations in builds so best to change it after installation.

Put HypoTurtle's NativeSD folder into your ROM folder (see instructions in that thread, you have to also change ROM_NAME in install.sh with Notepad++ or similar)

Re-Zip the ROM folder contents (not the folder else you will have a folder within your zip) and install using recovery.

After installing the ROM delete sdcard/NativeSD/initrd.gz and rename initrd-v.gz (or initrd_sc.gz, whichever works best for you) to initrd.gz also swap zImage with the one from the kernel's boot folder

Do the same in sdcard/NativeSD/your-ROM-name so as to be able to use again after changing ROMs.

Please post thanks and feedback to HypoTurtle

Remember that it won't work for wm6.5 users

Hope it helps
[HD2 Android NAND Development] smoula.dd:
I would like to say my feeling with this kernel an xylo 1.2a nand + cronmod int2nand. I'm heavy user phonecalls,emails all the time on data or Wifi. No game. First 12 hour the phone works fine. I made lots calls and emails. I find out little bit more power usage (11 mw) and slower than pure xylo Rom. After than the phone got f.... slow. I don't know what happened but I had lots fc of every part of system. What helps was wipe cache and permission. Fc was gone but not as fast as xylo was. Now I'm back on xylo 1.2a. I faster and I have power usage 4-5 mw. I don't know what was wrong but xylo Rom works better with his kernel.
[HD2 Android NAND Development] HypoTurtle:
Pretty much, but no need to edit ROM_NAME (thus no need for 4) if you don't want to (you can and it'll work (note this can't be done with unmodded zips).

Only editing that's needed is with updater-script: to (1) copy nand ramdisk to /tmp (2) copy NativeSD folder to /tmp and (3) run /tmp/NativeSD.sh instructions being on thread pointed out by Robbie P.

Have attached slimmed down version of NativeSD.sh replacing the one in the NativeSD folder/zip downloaded from that thread. JB MIUI was tested and works with this method (so no need for safeguards) and using the attached script; the modified ramdisk will me named initrd.gz in both places (thus no need for 6 & 7).
[HD2 Android NAND Development] rilley:
Hello

I own an HTC HD2 TMOBILE, with

ROM aokp_PACman_leo_v1.1_div3[4.1.2],

Radio_2_12_50_02_2

Magldr 113

And I have problems on kernel marc1706_desire_jb_0_1_2, but with 0.1.1 works very well,

The problems persists on CPU over load 100%
[HD2 Android NAND Development] macs18max:
0.1.3jb :)
[HD2 Android NAND Development] Robbie P:
Thanks meter

Sorry for OT, but thought I would post this screenie here :D Thanks marc1706
[HD2 Android NAND Development] g.andy:
R: [17.Dec.2012][Kernel] marc1706's 2.6.35.14 ICS & JB Kernel[v0.1.4 & v0.1.2]

Marc please, work of kernel for JB 4.2.x, the leo need your kernel

Inviato dal mio HD2 - Nativesd PACman v1.2a JB 4.1.2.
[HD2 Android NAND Development] Daekin:
the current one does not work?
[HD2 Android NAND Development] Robbie P:
No, there are problems with wifi it seems with bcmdhd support in 4.2

I posted a dmesg here http://xdaforums.com/showpost.php?p=36883090&postcount=149

hope it helps

Thanks Daekin

Edit; I tried using bcmdhd jb kernel on Zejsters PA 2.99 ROM nativeSD from magldr and get bootloops, have attached dmesg
[HD2 Android NAND Development] gilbert32:
is there any compiled ics kernel with bhcmd driver support?
[HD2 Android NAND Development] AvengerF12:
Yes.

http://xdaforums.com/showpost.php?p=35571547&postcount=167
[HD2 Android NAND Development] gilbert32:
This is jb kernel. i'm looking for ics kernel with bcmhd
[HD2 Android NAND Development] AvengerF12:
Ops, i'm sorry :o . You'll need to compile it by yourself then...
[HD2 Android NAND Development] TeleMaks:
Here is ICS kernel with bcmhd

Added later. Sorry, bcmhd support only for JB in this kernel :(
[HD2 Android NAND Development] Robbie P:
marc1706 has a bcmdhd ics kernel here but IDK whether it is compiled or not, I am a github noob:)
[HD2 Android NAND Development] gilbert32:
Thanks. i had already seen this page on github. it's why i asked for a compiled version :)
[HD2 Android NAND Development] Daekin:
I have compiled it some time ago for sbryan12144...however I do not currently have those binaries anymore
[HD2 Android NAND Development] gilbert32:
It's ok, i got them no but no longer need them:D was gonna use them on the other sense 4 build
[HD2 Android NAND Development] thelonewolf_pav:
Hi Marc,

Just wanted to let you (and everybody) know that I used your ICS kernel (0.1.4) for my Sense 4.1 ROM and had this CPU usage issue after calls. I think it was reported here some time ago. You boot up, everything seems to be fine, then you make a phone call, use the proximity sensor, and voila, CPU goes to ~100% and never comes back. Top command in the terminal says that p-sensor_microp uses about 40% of the CPU, and events use ~50%. I believe that some code that has to do with the proximity sensor just goes into some busy sleep or an infinite loop.

Installing version 0.1.3 completely solves the issue.

Cheers,

Pavel
[HD2 Android NAND Development] nqkoidrug:
That's what happens with ROM and on Daekin - Eclipse ROM 3.69
[HD2 Android NAND Development] Daekin:
I included some marc's patches in my kernel...that is when the same issue got in...

I will try to fix it in my kernel...
[HD2 Android NAND Development] Destroyer88:
Hello,

Can I use the JB kernel on AOSP rom "which is: [JB4.2.2][ SLIM ROM 7.2]"

http://xdaforums.com/showthread.php?t=2305164

because the default kernel is draining the battery so fast :( and I used the GB version of this kernel and was great :)
[HD2 Android NAND Development] aazzam16661:
YES
[HD2 Android NAND Development] Bologna:
Firts of all thanks a lot for that!! I'm over the 8 thanks limit...

Is it possible to ask for a new thread for your ics kernel. IMHO, the OP it's a bit confused now...;)
[HD2 Android NAND Development] bachmark:
Hi

Your kernel works well on NexusHD2-ICS-4.0.4-CM9-HWA V2.1, with additional Adreno200_ICS_drivers_update.zip.

The only issue, the adobe flash player is no more working, with the original kernel the player is working, but is lagging.

Thanks
[HD2 Android NAND Development] clio94:
i am using icstosti v1.1a that has this kernel.Phone is smooth and fast.Also i think that it is a little colder.Flash player is lagging in videos but it is ok for video streaming for example from justin.tv only with default ics browser. With opera or dolphin it doesnt work
[HD2 Android NAND Development] famewolf:
Just FYI wired-tether 1.4 apk works fine with his kernel for usb tethering. Trying to enable native usb tethering results in setting's FC'ing but phone doesn't lock up as it did with some other kernels.
[HD2 Android NAND Development] Dr_Grip:
No Apps2SD (using Link2SD from market, not a script) problems here. Did you check DMESG and logcat for possible reasons?
[HD2 Android NAND Development] tmotard:
Hi, this kernel (ICS version) is very good. Smooth, battery drain ok.

installed it since this morning, all was ok andd sudenly, i lost my a2sd ...

no more app ...

i reboot, wipe cache + dalvik, all is ok again...

Will see later..

What must i do if that happen again ? wich log do you want ? how can i do to help you to solve that ???
[HD2 Android NAND Development] marc1706:
A dmesg log and a logcat log would be good. If that happens make sure you get those logs right after it finished booting.
[HD2 Android NAND Development] Rick_1995:
cat /proc/last_kmsg > /sdcard/log_before_reboot

dmesg returns the current logs iirc.
[HD2 Android NAND Development] marc1706:
If your phone rebooted then that is the correct way to go. If your sd-ext partition didn't get mounted and you didn't reboot yet you can just use dmesg. ;)
[HD2 Android NAND Development] tmotard:
i've reboot my phone just after the problem.. sorry...

Next time, i 'll do the log... thanks for your answers, thanks to rick too.
[HD2 Android NAND Development] marc1706:
You can use Rick's method in order to acquire the dmesg log from the previous boot.

Note though that a boot into clockworkmod also counts as a boot. So if you reboot into recovery, wipe your dalvik cache, and boot your ROM again you won't be able to get the dmesg log from the last boot of your ROM.
[HD2 Android NAND Development] clio94:
If the phone made a hot reboot can this command help?
[HD2 Android NAND Development] marc1706:
Yes, you can use the command posted by Rick right after a hot reboot.

At least if you mean a hot reboot that reboots into the bootloader. If it's just an Android hot reboot (only second boot animation is being shown) you still have to use dmesg.
[HD2 Android NAND Development] triggaz:
Marc did You included zram in the ics kernel?
[HD2 Android NAND Development] clio94:
It has zram and it work as it should be work.I activated it by flashing zram script from here http://xdaforums.com/showpost.php?p=20169960&postcount=3

thanks.i was saying for android hot reboot.
[HD2 Android NAND Development] tmotard:
hi, i lost my a2sd one more time today,

but how can i make the logs without terminal app ?? i was far from my pc.

Then i reboot into maldr and try the demsg to sdcard option...

then wipe cache + dalvik and reboot...

but the mesg.txt file is empty...
[HD2 Android NAND Development] chalienge:
I'm confused about usb charging:

i flashd sevral GB Roms:

TBD,mwakious,AndroPlus+,Energy Sensation XL,Carl's Sense 3.5

when the phone is connected to pc or plugged to a usb charger, it says it's charging while the battery is draining more quickly.

i wonder if it is a kernel problem?
[HD2 Android NAND Development] alex.odell.2011:
I don't have an issue, have you tried a different kernal?
[HD2 Android NAND Development] HannoSLM:
in what universe the battery will drain, while connected to electricity?
[HD2 Android NAND Development] chalienge:
charging works fine in cmylxgo's stock desire hd rom
[HD2 Android NAND Development] Sneakyghost:
check, if all three pins from the battery connector still sit properly and make good contact.
[HD2 Android NAND Development] chalienge:
hmm,i'll check out.

since many guys said it was not a kernel problem, i think it's time to check the hardware
[HD2 Android NAND Development] Sneakyghost:
Also, what you observe can happen if you have only 500mAh chargers available. If you put the phone to some stress (e.g: Video, Navigation, heavy 3G usage etc) it can happen that the battery drains even though connected to a charger. It's a fairly simple equation: if drain bigger than 500 mAh and charge is equal to 500 mAh the battery will go down.

This can indeed be different on each ROM and kernel.

Still, your situation sounds rather unlikely and i think it is a good idea to check the hardware.
[HD2 Android NAND Development] chalienge:
my charger's output current is 1A, and battery drains but no apps running(background app killed as many as possible)
[HD2 Android NAND Development] clio94:
Hi marc.I installed your ics kernel in paranoidandroid rom http://xdaforums.com/showthread.php?t=1662881 and i have problem with sound in videos

I am trying to play mp4 videos with mx player and after some seconds audio stops but picture continue work.Then sound comes again for some seconds and then again stops.With tytung 2.3um kernel is ok. I uploaded logcat here

http://logcat.miui.us/799008 can you see please if anything is wrong?

Thank you
[HD2 Android NAND Development] rush420:
I have similar problem my usb port is out of place if the cord is moved in just the rite way it charges again an that's how it started I plug in with my htc charger, light was on but I was loosing charge now it's real battle just get a full charge anymore

I hope it's not the case for you I will have to find a repair shop soon
[HD2 Android NAND Development] ph03n!x:
Have been using the ICS kernel since its release with CM9 Nighties (currently on 15th May), and its been pretty good! Everything work like it should. zRam have me a couple of reboots though, and things went back to smooth and stable after disabling it. Thanks @Marc!

Swyped from my HTC HD2 (ICS 4.0.4)
[HD2 Android NAND Development] alex.odell.2011:
I know your time is going to ICS kernal, but there is now a kernal with working hotspot, any progress here?
[HD2 Android NAND Development] marc1706:
First post has been updated with a new version.

P.S: If you are missing the sense kernel, it's here: http://xdaforums.com/showthread.php?t=1385486
[HD2 Android NAND Development] clio94:
Thank you for your great work. In changelog you write

netfilter: quota2: add support to log quota limit reached

This means that we can add data limit in settings--->data usage?
[HD2 Android NAND Development] tmotard:
Hi.

Flashed the last kernel on tytung's ics rom ok. Boot ok.

Then reboot and lost my a2sd ...

I'm using 40ad2sdx script from amarullz

If i delete cache and reboot all is ok . But a reboot and got it again.

Like the cache + dalvik must be wipe before booting...
[HD2 Android NAND Development] marc1706:
Explanation from android.com regarding xt_quota2:

The quota2 netfilter module (originally part of xtables-addons) allows the functionality to set named quota limits and was extended to support notifying userspace when certain limits are reached. Once the quota limit is reached, the quota2 module discards all subsequent network traffic. The framework can also specify additional rules to restrict background data traffic for an application.​

@tmotard: Please provide a dmesg and logcat log.

Since you asked it before: You can download the terminal emulator from the market.
[HD2 Android NAND Development] tmotard:
Hi marc,

ok, here are the log.

What i've done :

1°) Flash your kernel, boot

-> run from adb shell

cat /proc/last_kmsg > /sdcard/log_afertboot1_ok

dmesg > /sdcard/dmesgafterboot1_ok

2°) Reboot the phone.

cat /proc/last_kmsg > /sdcard/log_afertboot2error

dmesg > /sdcard/dmesgafterboot2error

I hope that will be good...

edit : If you want me to test something, i can do it as i can reproduce it each time...
[HD2 Android NAND Development] marc1706:
There are no differences in the kernel bootup between the first and second boot.

The necessary partitions are being mounted. For some weird reason the CM nightly kernel seems to mount the same partitions several times:

[ 7.884460] yaffs: dev is 32505859 name is "mtdblock3" rw
[ 7.884490] yaffs: passed flags ""
[ 7.884490] yaffs: yaffs: Attempting MTD mount of 31.3,"mtdblock3"
[ 8.094909] yaffs: yaffs_read_super: is_checkpointed 1

and:

[ 11.059295] yaffs: dev is 32505859 name is "mtdblock3" rw
[ 11.059326] yaffs: passed flags ""
[ 11.059326] yaffs: yaffs: Attempting MTD mount of 31.3,"mtdblock3"
[ 11.272735] yaffs: yaffs_read_super: is_checkpointed 1

and:

[ 69.837646] yaffs: dev is 32505859 name is "mtdblock3" rw
[ 69.837646] yaffs: passed flags ""
[ 69.837677] yaffs: yaffs: Attempting MTD mount of 31.3,"mtdblock3"
[ 70.045227] yaffs: yaffs_read_super: is_checkpointed 1

Except for that there are no differences. FYI, mtdblock3 is the system partition.

If your a2sd script is first filling up the internal memory and then the sd-ext partition it might happen that you see the low storage message.

Also make sure to wipe the dalvik cache and fix permissions in your recovery.
[HD2 Android NAND Development] tmotard:
the fact is that i have to wipe cache and dalvik before each reboot.

Without that I don't have any message, just no application at all ... :(
[HD2 Android NAND Development] essi_baba:
Thanks man!

You are is really great and perfect developer.

i love your work.

now i can`t test your kernel

but can send to a billion thanks :D;) for your hard working.

sorry for my poor English :o:)

Regard...
[HD2 Android NAND Development] tmotard:
Hi

I don't like when that doesn't work :)

i could see inlog_afterboot2error : init: could not import file /system/etc/init.local.rc

could that come from busybox ?

I've updating the busybox and will flash again your kernel.

Edit : not good :( always a problem after second boot..
[HD2 Android NAND Development] tmotard:
Hi,

Could my problems with this kernel (+Tytung's ICS ROM) could be link to the size of the cache ? :confused:

here the description of my partitions (with dansta recovery)

misc ya 1M

recovery rrecov|ro|nospr filesize recovery_leo.img

boot yboot|ro 5M

system ya 165M

cache ya 2M

userdata ya|asize|hr allsize

EDIT : No, that isn't the raison. i've now 5/170/5 and always the same problem.

Lost the application after the second boot...
[HD2 Android NAND Development] ph03n!x:
I havent checked Amarullz's script, but can you check how it mamages A2SD? I am having a script (which I got from somewhere - don't remember!) that I have customized to move /data/app, /data/app-private, /data/dalvik-cache directories alone to my SD EXT and symlink them in /data. I do not have any problems with Marc's kernel, have been using it since v0.1.1.

Note that I use a TMoUS HD2, and am doing this to say some space more in /data as well as to save my NAND from possible badblocks. /data/data is the only directory of sizeable content that resides in /data , which is to avoid upgrade issues (apps FC after updating to a newer version of CM9 nightly if /data/data is moved). With this setup, I have about 550 MB free in my NAND's /data.
[HD2 Android NAND Development] Nixda99:
Can you share your script, I like it also to have only the apps on sdext, because it is the fastest way for all sdcards. Some of them are too slow for the small files in /data/data.

But all scripts link also the /data/data and Mount2SD didn't work on Paradroid.

When I have Link2SD with apps on sdext, are their working when I replace the script in init.d with another (your:D) script?
[HD2 Android NAND Development] tmotard:
Hi marc

i wiped everything,

i reinstall tytung's ics rom

i flash your kernel,

no a2sd script

boot 1 ok

Boot 2 ok

i installed link2sd app, reboot, boot 3 ok, make the sd-mount script with link 2sd and reboot. Boot 4 ok.

reboot (boot 5) without install anything more..

link2sd warning :"mount warning" (the link2sd faq said that is related to old link2sd version, but not the case here as i just installed the last version).

I recreate the script, reboot (boot 6) ok.

reboot (boot 7) without install anything more..

link2sd warning :"mount warning"

as if with your kernel the init.d folder is erased each time i reboot !!

Now i reflashed tytung's kernel... no more problem ..

i don't understand... :confused:
[HD2 Android NAND Development] marc1706:
Can you post the content of /data/link2sd-11link2sd.log?
[HD2 Android NAND Development] tmotard:
Ok, even if i've reinstalled tytung's kernel and reboot several times ??
[HD2 Android NAND Development] marc1706:
It would be good to have one from a boot with tytung's kernel and one from a boot with my kernel, preferrably when that issue appears.