yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] tmotard:
Sorry, i tried one more time with your kernel.

but after flashing it, adn first boot, i got lot of FC, no more memory available (i've installed all my app since this morning, and link them with link2sd).

root explorer didn't work anymore, and another files explorer show me an empty /data folder !

Got the log before flashing your kernel if you want, but i don't know if that could help ...

i'm flahing now tytung's kernel and hope my app & memory will be back...

I can't believe that i'm alone to have such problem...

i'm using magldr, with eu leo, ext4 partition, tytung's ics rom.
[HD2 Android NAND Development] Dr_Grip:
I can confirm Link2SD having problems re-creating it's mount script. For me the problem disappears after two or three runs of script re-creation and does not return until I flash a new ROM, which is expected behaviour.

Can't comment if the problem is related to CM9 or the Kernel used, it appeared after I upgraded the ROM and changed the kernel at the same time.

I'll grab a log next time it happens, which most likely will be on Sunday when I have some time to flash a new ROM.

EDIT: EU HD2, cLK, CM9 nightly, ext3 filesystem.
[HD2 Android NAND Development] ph03n!x:
Posting this from my phone, hope the attachment gets added :)

This script moves app, app-private and dalvik-cache directories from NAND's data partition to sd-ext partition and symlink it in /data.

It will not move /data/data to sd-ext, and specifically moves it back to NAND if found in sd-ext.

You can force it move data as well as any other directory from NAND to sd-ext by editing the script, but I've had issues. If /data/data is moved, I have issues when I flash a newer ROM. If I move /data/system and /data/misc to sd-ext, I was not able to toggle 2G/ 3G using the notification widgets...

Also note that I have a TMoUS Leo, and use this script to primarily reduce the use of NAND.

If you've been using another move2sd method, it'd be better to undo what it does. Or atleast make sure only the 3 directories I had mentioned earlier are in the sd-ext, and the rest are copied back to /data with symlinks removed.

Finally, this is not my script. I picked it up from the forum, not sure where :) Full credits to the original creator, I only tweaked it a bit to suit my needs. And ya, "use at your own risk" :D
[HD2 Android NAND Development] tmotard:
Problem isn't link to cm9, as i have it only with this kernel... (i change of rom, change the kernel, try link2sd instead of a2sd script). i've got problem only with this kernel...
[HD2 Android NAND Development] Dr_Grip:
Flashing this kernel over the 20120604 CM9 nightly for me results in a reboot loop while still at the "HTC" kernel bootscreen. Sadly I don't get any logcat output via usb and /proc/last_kmsg gets overwritten by CWM's kernel, so I am a bit lost right now.

There were some bootloop-causing problems with boot.img changes last week but they should be fixed, it said.

Btw, I am using a 200MB system partition and so far got only one bad block, so I should be in the clear...
[HD2 Android NAND Development] ph03n!x:
Did this help you in any way?
[HD2 Android NAND Development] marc1706:
I guess you are on cLK? If yes you can grab dmesg outputs in fastboot with oemcmd.bat (can be found in the cLK git repository).
[HD2 Android NAND Development] ph03n!x:
I had created a boot.img with the ramdisk from (I think) 30th CM9 Nightly and kernel v0.1.2, and it is working fine.

I tried to fix native USB Tethering using Tytung's Ramdisk as a base, but it (native tethering) did not work - and I didnt have time to troubleshoot, and Wired Tether apk was working fine, so I let it be until later :)

@marc1706 - will be able to update the USB drivers, as well as the bandwidth control changes that Tytung has incorporated in the latest kernel when you find time please?

Edit: Marc - I tried Tytung's USB Tethering fix with v0.1.2, and it did not work. I am guessing the ramdisk problem mentioned there is an one off case, not really sure if something is there though...
[HD2 Android NAND Development] Dr_Grip:
Here's the end of the dmesg output, where the error occurs. Hope that helps.
[HD2 Android NAND Development] ph03n!x:
Ok, am getting the same bootloop at the HTC logo (ramdisk logo). And I am not able to get the dmesg with fastboot oem %* 2>&1 | oem_filter, I get a FAILED (remote:unknown reason) - does cLK 1.5.0.4 (black version) have anything to do with that?

I can still confirm that the ROM boots just fine with 5/23 ramdisk of CM9 Nightlies.
[HD2 Android NAND Development] marc1706:
I've reverted the commit that possible causes the issue reflected in the posted dmesg log.

Please ignore the newer version number, that's not final yet. The "About phone" page will still show 0.1.2. ;)
[HD2 Android NAND Development] ph03n!x:
Just flashed it on 6/6 nightly, boots and works perfectly :)

Edit: I could be a tad thick here, but the installer does not place/ replace the 01_modules from your build in my /system/etc. I have a 02modules, which is not modified or replaced and there is no 01_modules after boot- how do you do that?

_

Swyped from my HTC HD2 (ICS 4.0.4)
[HD2 Android NAND Development] marc1706:
You mean your ROM has a 02_modules while my kernel puts a 01_modules in there or doesn't my kernel copy the 01_modules?
[HD2 Android NAND Development] ph03n!x:
Yes, in spite of me not having a file named 01_modules in my ROM, I don't see one in my init after flashing the kernel. The kernel's zip had one, but it did not get copied while installing.

My ROM has a 02modules, which remains as is. I thought you check for *modules in the install script while flashing, and maybe that's why I didn't get an additional 01-modules after I flashed, but couldn't find something like that. So is this a feature or a bug? :)

_

Swyped from my HTC HD2 (ICS 4.0.4)
[HD2 Android NAND Development] Dr_Grip:
The "Link2SD can't auto-mount sd-ext until after a dalvik wipe" issue just resurfaced for me. Sadly, I needed to use my phone at this point in time and thus forgot to save the dmesg output before rebooting.
[HD2 Android NAND Development] Looki75:
What about development with this kernel?

Seems promising but no post or update for 10 days...?

Just asking...

Thx
[HD2 Android NAND Development] Dr_Grip:
It seems like marc was busy bringing new features to the userspace... :D
[HD2 Android NAND Development] Dr_Grip:
Had another instance of "sd-ext not getting mounted" last night.

1.txt contains the dmesg output while experiencing the error

2.txt contains the dmesg from a problem-free boot after a dalvik wipe.
[HD2 Android NAND Development] rafiqzadah:
Tried This Kernel and Dorman.... Both won't let me boot Tytungs Nexus ICS CM9 build...
[HD2 Android NAND Development] Kefir.net:
So many changes on github..

marc, can you upload latest testing ICS kernel?
[HD2 Android NAND Development] marc1706:
I didn't notice the last release was in May. Anyways, updated the first post with a new version. ;)
[HD2 Android NAND Development] wega007:
Thanks! That's great! But is there a way to use your kernel in SD biulds (clrcad / haret)?
[HD2 Android NAND Development] jack928:
reboot with smokin miui v4 when the phone go in standby can you optimize for miui v4 also
[HD2 Android NAND Development] marc1706:
I can't do much without a kmsg (dmesg) log.
[HD2 Android NAND Development] jack928:
if you explain me what can i do and how i'm happy to help you
[HD2 Android NAND Development] Dr_Grip:
Bad news: The Link2SD mount bug I provided logs for earlier is still alive and well ;(
[HD2 Android NAND Development] ric69:
Flashed on last Tytung 2.6 w/o problem, need to test more to see battery drain etc ... wifi ok, 3G ok, camera&camcorder ok, Youtube ok and overclock to 1.5 ok too ^^

Thanks Marc :)
[HD2 Android NAND Development] YamazakiRobert:
@marc1706

your kernel its working great on tytung 2.6

the only problem the data limit not work

and i like to ask if you using the latest hwa from securecrt

thanks for your hard work!
[HD2 Android NAND Development] triggaz:
Flashed on Paranoid rom, boots ok but hot reboots during web browsing & vid playback. Used with desire c libs.
[HD2 Android NAND Development] marc1706:
I'm still at the "old" kgsl 3.8. I haven't tested the desire c libs yet as I don't have much time right now.
[HD2 Android NAND Development] francescozanghetta:
Your kernel is amazing. I found out just a small bug. If you use your kernel with a rom having data to ext script after reboot the rom looses all home screen widget and setting , also the rom can't read the internal storage MB (in this case ext4 partition on sd).

Could you please check, I have tried with two roms and it dosn't happen with tytung 3.4 kernel.

Thanks in advance
[HD2 Android NAND Development] Dr_Grip:
That's a know issue. The kernel for some reason does not mount the ext partition, or at least not at the right time with the right parameters. A dalvik wipe will get your data, widgets, etc back.
[HD2 Android NAND Development] marc1706:
The mmc gets mounted slightly later if you didn't wipe the dalvik cache, but I have no idea why this is happening and frankly I don't have much time to look into this at all right now. :(
[HD2 Android NAND Development] Dr_Grip:
Can you quantify how much later the mmc is mounted? If it's only a few seconds, a "sleep 10" in the mount script could "solve" the issue.
[HD2 Android NAND Development] marc1706:
From looking at the dmesg output I can't say how long it exactly takes, but it shouldn't be more than 1 or 2 seconds. "sleep 10" might actually work.
[HD2 Android NAND Development] Dr_Grip:
Sadly, it did not help. Not even a "sleep 30" did. But as my HD2 died today and I ordered a Galaxy Nexus to replace it, I won't be able to investigate further, sorry.
[HD2 Android NAND Development] jack928:
UPDATE

BY ME

WITH DESIRE C LIB.

hello all I'm allowed to'' change'' the kernel of mark by adding the lib graphics htc DESIRE C for me he works well with MIUI rom smokin to try it yourself.

Thanks to Mark for his work
[HD2 Android NAND Development] ph03n!x:
Hi Marc, I see a JB branch in your repo - will you be releasing a compiled JB version sometime? :)
[HD2 Android NAND Development] marc1706:
I'll need to update the kgsl drivers first in order for them to be as up-to-date as securecrt's files. I don't have any time right now though. If anyone could also provide a jellybean ROM with a bcmdhd firmware for the HD2 around mid-october that would be awesome. I won't have much time until October 9th though.
[HD2 Android NAND Development] marc1706:
This is the compiled kernel version 0.1.0 for jellybean:

http://d-h.st/was

It includes all changes mentioned in the 2nd post.

I'll update the first post soon.
[HD2 Android NAND Development] Xylograph:
Thanks for your work marc1706, :good:

I hope you will add NativeSD support to your kernel, since I can't get it to boot..
[HD2 Android NAND Development] marc1706:
I don't have NativeSD support in my kernel package yet. You should just put the file from my package in a kernel package, i.e. the one from securecrt, and then flash that.
[HD2 Android NAND Development] clio94:
The kernel package is not the problem.The problem is that even if we put the files manually,the nativesd rom doesnt boot with your kernel.It stays in kernel logo
[HD2 Android NAND Development] Xylograph:
Like Clio94 said installing the kernel isn't the problem, but I believe you'll need a couple of extra commits to enable 'NativeSD' functionality..
[HD2 Android NAND Development] marc1706:
Thanks for the info. It looks like I'll need to replace the complete mmc driver package. HTC added a lot of code for their Wimax chips. As a result they have partially applied newer code which is just a mess ... :rolleyes:
[HD2 Android NAND Development] Xylograph:
Well take your time ;)

I've seen a couple of reports from people trying to convert (sense) roms to NativeSD that have your (sense) kernel included and face the same issue and since your sense kernel is used a lot in these roms I suppose a lot of people will really appreciate it if you would take a look at it.

Thanks again.
[HD2 Android NAND Development] tytung:
Those commits are not necessary.

I included my kernel r3.4 in my NexusHD2-ICS V2.7 NativeSD.

And r3.4 didn't include those commits.
[HD2 Android NAND Development] Xylograph:
In that case I have no idea why marc1706 kernels refuse to boot NativeSD..
[HD2 Android NAND Development] smokin901:
In your current JB kernel can we use nl80211 wifi driver instead of wext?
[HD2 Android NAND Development] marc1706:
I switched back to bcm4329 for now. Compiling it with bcmdhd would be as easy as reverting this change in htcleo_defconfig:

https://github.com/marc1706/desire_kernel_35/commit/5ed4ce27421294c833cd8a1b808682224043ae57
[HD2 Android NAND Development] smokin901:
JB beta 4 is currently configured to use wext wifi driver and fw_bcm4329.bin from ICS builds i can modify it use nl80211 and fw_bcmdhd.bin if you anyone is interested to test.
[HD2 Android NAND Development] marc1706:
That would be great.
[HD2 Android NAND Development] ph03n!x:
@marc1706- thanks a lot for the update. Apart from all else (fast, smooth, etc.), this kernel fixes sound in games like Temple Run, that was not working in .32 :)

It has been just under an hour since I flashed, will keep a tab on how it is over the next day or so...

Swyped from my HTC HD2 using XDA Premium
[HD2 Android NAND Development] marco.palumbi:
just a comment:

isn't a known issue since long time that marc1706's kernel doesn't boot from HaRet and WM6?
[HD2 Android NAND Development] marc1706:
And in what world is nativesd haret?

Anyways I'll see what is causing this.
[HD2 Android NAND Development] marc1706:
I think I found the issue with NativeSD and possibly with haret, too.

The kernel actually boots completely:

Release 'boot-time' no_halt_lock

[D:BATT] V=4172(6ae) I=260(293) C=1056.0/1230(f5f) id=4(a7) T=360(c9) KADC=1000

[D:BATT] V=4177(6b0) I=261(294) C=1060.0/1230(f68) id=4(a7) T=360(c9) KADC=1000

batt: ds2784_notify: 1 87 at 155102356192 (2012-10-09 14:53:33.507503077 UTC)

batt: batt:power_supply_changed: battery at 155102508780 (2012-10-09 14:53:33.507655664 UTC)

[D:BATT] V=4179(6b1) I=261(295) C=1063.0/1230(f71) id=4(a7) T=360(c9) KADC=1000

[D:BATT] V=4182(6b2) I=257(28c) C=1067.0/1230(f7a) id=4(a7) T=360(c9) KADC=1000

[D:BATT] V=4182(6b2) I=247(272) C=1070.0/1230(f83) id=4(a7) T=360(c9) KADC=1000

[D:BATT] V=4182(6b2) I=238(25c) C=1073.0/1230(f8b) id=4(a7) T=360(c9) KADC=1000

batt: ds2784_notify: 1 88 at 355115651381 (2012-10-09 14:56:53.520767748 UTC)

batt: batt:power_supply_changed: battery at 355115803969 (2012-10-09 14:56:53.520920336 UTC)

The problem is that this:

mmc1: high speed mode max_dtr = 50000000

mmc1: host does not support reading read-only switch. assuming write-enable.

mmc1: new high speed SDHC card at address 0002

mmcblk0: mmc1:0002 00000 14.9 GiB

check_partition: Allocate memory for SD/eMMC card partition description (Once)

mmcblk0: p1 p2

Happens too late or the init is executed too early, causing these messages:

init: /init.rc: 228: invalid command 'class_reset'

init: /init.rc: 229: invalid command 'load_persist_props'

init: /init.rc: 233: invalid command 'class_reset'

init: /init.rc: 233: invalid command 'class_reset'

init: cannot find '/sbin/ueventd', disabling 'ueventd'

init: cannot open '/initlogo.rle'

init: cannot find '/system/bin/logwrapper', disabling 'sysinit'

init: cannot find '/system/bin/servicemanager', disabling 'servicemanager'

init: cannot find '/system/bin/vold', disabling 'vold'

init: cannot find '/system/bin/netd', disabling 'netd'

init: cannot find '/system/bin/debuggerd', disabling 'debuggerd'

init: cannot find '/system/bin/rild', disabling 'ril-daemon'

init: cannot find '/system/bin/surfaceflinger', disabling 'surfaceflinger'

init: cannot find '/system/bin/app_process', disabling 'zygote'

init: cannot find '/system/bin/drmserver', disabling 'drm'

init: cannot find '/system/bin/mediaserver', disabling 'media'

init: cannot find '/system/bin/dbus-daemon', disabling 'dbus'

init: cannot find '/system/bin/installd', disabling 'installd'

init: cannot find '/system/bin/keystore', disabling 'keystore'

init: cannot find '/system/bin/akmd', disabling 'akmd'

init: cannot find '/system/bin/dspcrashd', disabling 'dspcrashd'

init: cannot find '/system/bin/sh', disabling 'console'
[HD2 Android NAND Development] marco.palumbi:
soo.... why the rom packages for nativesd from Xylograph Tytung and others developers does include and install HaRet.exe clrcad.exe and startup.txt?
[HD2 Android NAND Development] ph03n!x:
@marc1706, this is more of an observation as I don't think it affects battery life, but the amount 'awake' time as per battery stats in settings seems much higher compared .32 based kernels. I also remember observing the same in Dorimanx's kernel. Can this be fixed? Sorry I dont have a log, but can get one as I have 2 HD2, one with this kernel and other with .32, both on the same ROM (JB), Let me know if a log would help (kmsg or logcat or something else too).

Swyped from my HTC HD2 using XDA Premium
[HD2 Android NAND Development] marc1706:
kmsg + logcat would help. BTW, just because it shows as higher doesn't mean that it's actually higher. I remember one bug I had fixed a while back that caused the kernel to show wrong stats.
[HD2 Android NAND Development] G3CUA19:
Does this works for jb roms ..
[HD2 Android NAND Development] Kameirus:
http://xdaforums.com/showpost.php?p=32527791&postcount=104

shakes my head i really wish people would learn how to read more than 1 post
[HD2 Android NAND Development] rilley:
Two questions

Will marc1706_desire_ics_0_1_3 kernel work over tytung_HWA_kernel.20120924_22_34_ics_no_initrd ? (i mean will work the HWA new version kernel support if I update with marc kernel? )

Is there any link download to marc1706_desire_ics_0_1_4 version kernel?
[HD2 Android NAND Development] triggaz:
Anyone got a link for 0.1.1 kernel for jellybean? By the way mark could you look into data usage feature? With your kernel this option is not visible in settings.
[HD2 Android NAND Development] marc1706:
The ICS kernel will work on ICS NAND ROMs. ICS Kernel 0.1.4 hasn't been released yet. I talked about that on twitter.

s/mark/marc

Jellybean 0.1.1 hasn't been released yet. I'm currently looking into the data usage feature.
[HD2 Android NAND Development] marc1706:
ICS 0.1.4 and Jellybean 0.1.1 have been released. You can find the download links in the first post. Data usage monitor should also be working on jellybean now. There have been several commits to PPP code. Please verify if it's working properly.

As always: If you have bugs please provide a logcat & dmesg output.
[HD2 Android NAND Development] gade12:
Will kernel support nativeSD in future?
[HD2 Android NAND Development] ph03n!x:
Running on Xylo's PACman for close to 15 hours now, no issues.

Am asking because you mentioned PPP. I am on cLK, and with this ROM + 0.1.1 kernel my data seem to drop off at times, and wont get reconnected until I disable and re-enable data (I never have had data issues with cLK). I am not sure if this is the kernel because I updated the ROM and the kernel together, and my other HD2 with PA 2.15 and v0.1.0 is running steady without any drops.

Will observe for the next day or so before I post some logs, in the meantime, does anyone else with cLK+PACman+v0.1.1 have data drop issues?
[HD2 Android NAND Development] rilley:
On AOKP40 with this ICS kernel 0.1.4 I have noticed a very fast battery draining

edit2: and the cpu is at 100% load!
[HD2 Android NAND Development] marc1706:
What is android saying about your battery drain? Which app is using that? Did you try wiping the dalvik-cache?

If that doesn't help please provide a dmesg and logcat log.
[HD2 Android NAND Development] rilley:
'

In battery stats, "Android OS" says that eat the hole battery,

I`ve downgraded the kernel back to 0.1.3 and now it seems to be ok,

But why the ics kernel 0.1.4 drain the battery ?
[HD2 Android NAND Development] Xylograph:
Marc1706,

Great stuff m8,

With your kernel I was able to fix the Native WIFI Tethering :victory:

I still can't get my ROM to boot with NativeSD + your latest JB Kernel unfortunately..

If you have some spare time.. could you please take a look at this Test Edition of PACman (I have left the NativeSD installer, but it will not boot)

Thanks again !
[HD2 Android NAND Development] marc1706:
Again, please provide a dmesg and logcat log.

Good to hear. I haven't been able to figure out why it's not working on NativeSD, mainly due to free time missing. Did you already try if it works if you use something like the wait4ext script before mounting the partitions?
[HD2 Android NAND Development] ph03n!x:
deleted
[HD2 Android NAND Development] ph03n!x:
Had a reboot today (PACman 1.1/ JB kernel v0.1.1) - I had manually rebooted the phone, and saw it load the lockscreen. I look at it a few seconds later and find it at the 1st boot logo again. Have attached the last_kmsg, hope it helps...
[HD2 Android NAND Development] wxl104:
Yes.I flashed the cLK+PACman+v0.1.1 last night,I have tried 4 hours and the data always droped after a few minutes.And then I only can do is restart the phone.And after flash v0.1.1,the rom is laggier than before.
[HD2 Android NAND Development] rush420:
Im not sure its just clk im using magldr an had an multiple data drops I'm not all that sure it's the kernel either I've tried all 3 of the pac roms the first one worked pretty decent the second one was very smooth but dropped data several times a day had to reboot the phone and the one put up today wouldn't stay at all...I've tried both jellybean kernels same problem yours an tytungs both work quit well ill try to send log never done it before I'll see what I can do...thanks for all your hard work.
[HD2 Android NAND Development] ph03n!x:
Ok, am on 1.1 Test Edition and have not seen any data issues in the past ~9 hours. Neither have I seen a reboot like before.

While testing tethering, I cam across this in Wired Tether: "Unsupported Kernel! Sorry, but your kernel does not have necessary features for tethering. Please see our FAQ: http://code.google.com/p/android-wired-tether/wiki/FAQ". This is what the FAQ says about this message:

@Marc - are these features implemented in our kernel (am running v0.1.1)? Is there something else I am missing that will actually make it to work?
[HD2 Android NAND Development] marc1706:
According to the kmsg it is a null pointer dereference in the journaling code (jbd2). According to the log this happened right after that happened:

EXT4-fs (dm-0): mounted filesystem without journal. Opts: (null)
EXT4-fs (dm-0): re-mounted. Opts: (null)
EXT4-fs (dm-0): re-mounted. Opts: (null)

Not sure if that's the issue you had. I haven't had that at all though.

I've been using PPP on magldr for almost the past 2 days and didn't have a single data drop. Re-connecting to data after the wifi connection has dropped is even faster than using rmnet.
[HD2 Android NAND Development] marc1706:
Both are enabled in my kernel.
[HD2 Android NAND Development] rilley:
About the AOKP40 ROM with this ICS 0.1.4 kernel have CPU 100% and battery draining (ps: kernel 0.1.3 work perfectly)

I`ve attached the dmesg/logcat logs (logcat wasn`t stoping and I`ve stopped with ctr+c)
[HD2 Android NAND Development] ph03n!x:
As posted here, wired tether 1.4 works just fine with kernel v0.1.1. Thanks Marc!
[HD2 Android NAND Development] rilley:
Some feedback about my cpu overloaded 100%?

Thanks! :)
[HD2 Android NAND Development] marc1706:
Except for the excessive amount of wakelocks I'm not sure what is causing it.

Did you already wipe your dalvik-cache and fix permissions in your recovery?
[HD2 Android NAND Development] rilley:
I did not, I will try and give you a response(but with 0.1.3 works and with 0.1.4 doesn`t, I do not see why dalvik-cache&permission will intercept).