yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] tarends:
device has got graphics working, but a load of services are failing so we still need to fix those things and hopefully get touch working soon as well.

DOWNLOAD LINK

ICS SENSATION v0.0.3

Just for dev only at this moment.
[HTC Sensation] nory82688:
I'm excited either way.atleast someone is attempting a port. Alot of the devs look at it as a waste of time, but I don't think it is, especially if its as useful as the nexus s port. I wish you good luck my friend and if your looking for anyone to test, don't hesitate to PM me.
[HTC Sensation] hev88:
Nice to see you are making some progress with that :D

Keep us posted
[HTC Sensation] T-Macgnolia:
Glad to see someone with better ability wants this too.

I myself have been trying this just flashed my first .zip file last night have not even run a log cat on it yet. So you are way further then me. I have also been doing a lot of research through the forums and plan to expand my research to other places on the web tonight to see if might come across anything. I got a lot of reading and learning to do as I am certain you know way more about what you are doing. Best of luck to you and I will PM you if I come across anything you might could find useful.

Oh yeah by the way you probably should have posted this in the development forums, that is if you do not already have a thread there. I have not visited the development forums today yet.

Best of luck to you.
[HTC Sensation] unfnknblvbl:
you're way ahead of me too - zips won't even flash for me (no idea why) and if I do bludgeon one into working, then logcat doesn't work :)
[HTC Sensation] nory82688:
Nice, three devs working on this. I'm really happy right now. You guys should just all work together on this so our device will be the second or third to actually run the port :)
[HTC Sensation] T-Macgnolia:
I will have to go back and find the post I read it in last night but the poster named a file in the ICS system folder that they had to change to get logcat working. When I find it I will message you.

@nory82688 , Please I do not deserve to be called a dev, I am just trying to give back to the XDA community some.
[HTC Sensation] djslyda87:
well, you are porting ics to the sensation therefore helping the sensation to develop as a device therefore you are a dev, but i know what u mean tho :)
[HTC Sensation] unfnknblvbl:
haha thanks, but I've lost interest - although it may be handy to make this more publicly accessible information. I'm also not a dev by any stretch of the imagination :)
[HTC Sensation] T-Macgnolia:
Ok I found the post I was talking about, it was in the Nexus one port thread.
[HTC Sensation] sn4k3:
good job :)
[HTC Sensation] Nikecrosoft:
reserved for testing!
[HTC Sensation] Jiggs82:
Wow i hope and pray you guys get this port working for the Sensation:) and i wish yall lots of luck. I know it can be done with patience and pure thinking!
[HTC Sensation] jassycliq:
cannot locate 'android_atomic_cmpxchg'...

That's the error that's preventing boot for me.

It's 3am for me so I'm done for last night (this morning) I know I don't have a perfect port such as I know my inits need work, which might add another issue once this one is figured but yeah, idk where you guys are.
[HTC Sensation] tarends:
I have no time to dev this weekend but i will work on it on monday again. There is a load of work for me tto do.. i think you need to search for the file in any rom thats working and see if it is presented within the files you have.
[HTC Sensation] T-Macgnolia:
Well I am pretty much stuck for the moment ass I can not get my build to even flash right now and can not figure out why........:mad:

But tarends messaged me and it seems like he is very close to a fully booting build. So hopefully when we all hear back from him he will have something that is ready for trouble shooting to get things working which I already have a lot of info that might help get a couple of things working on a build that will boot.
[HTC Sensation] jassycliq:
Can you both post what you guys have so far? PM, tweet or anything? i posted mine on twitter if you guys wanna see what i have :)
[HTC Sensation] edude03:
tarends, can you post the full logcat and dmsg if possible?
[HTC Sensation] T-Macgnolia:
I suggest you PM tarends and ask him if he can give you a run down on what he has, I have not asked if he wants to discuss everything here in the forums yet. He would probably would not mind but I would rather ask first. I think I might have a lead on what to do to get my build to flash. I am not sure but I think I have to edit the build.prop cause it is looking for 4 mount points but only finds 3. Thanks to XDA senior Member malybru and XDA Recognized Developer mike1986 for helping to get me going in the right direction.

He has on posted in the "ICS Porting guide by Siulmagic", it is post #72.
[HTC Sensation] jassycliq:
Yeah, it's an easy fix that the Android kitchen always screws up on ;)

Ext4 emmc mmcblk0p23 system or something I forgot I only remember at the times I need it lol

I believe my, and port may be farther along than tarend as his barely makes gets out of logcat before it freezes. Mine repeats the same error that I posted, I got some help from a friend but idk if that'll be it. Help would be appreciated ;)
[HTC Sensation] T-Macgnolia:
Thanks I am out with my girl and my mother-inlaw right now to get a bitee to eat. I do remember that line and I will be working on getting that fixed tonight when I am back home. Maybe I can get it to boot if I can get it to flash.
[HTC Sensation] tarends:
OK guys, i have updated the 2nd post with what i have so far, but seems that i am stuck at the moment. would be great if any of you had an idea how to fix the problem i have at this moment or. it would be even better if you guys where already ahead of me.

Anyhow thanks for writing all the suggestions in this thread, and the thanks.

my aim is to hopefully get a booting ICS today, but will take a small break at this moment. and see if i can think of any solution later today.

As far as i can see my device does not freeze, couse it reports unplugging and replugging the usb cable in logcat. I am uploading a zip to my server at this moment. it will be online in a bit.

OK it is online at this moment, hope you guys have time to take a look at it.

I had some changes in init.rc

So took a fresh kernel and redit the work.

it should boot past VOLD at this moment and then give you a couple of errors that look like this

htc_ebdlog: Out of Space! Length = 15.

I dont know what that means and i cant seem to find more info about it.

If anybody has a suggestion please be so kind and share it with us. ill try it later on in the afternoon again when i have more info collected about the matter.
[HTC Sensation] davethedrummer84:
Hope this helps

Im not sure if you can find any info here. Hopefully this isnt a waste of time but someone else had this error in this forum...You might even PM the guy who had the error see if he ever figured out what it was.

http://xdaforums.com/showthread.php?t=1258541&page=173
[HTC Sensation] tarends:
Thanks, i have read the thread and it seemed that the problem.was caused within the kernel so i went back to the stock sence kernel what seemed to fix that problem. Just hanging on some other problems. But i will update as soon as i made prpgression again.
[HTC Sensation] T-Macgnolia:
Well I finally got my .zip file to flash early this morning. I tried editing the updater-script in META-INF/com/google/android.

I first edited this line:

Format("ext4", "EMMC", "/dev/block/mmcblk0p22" );

I edited it to say:

format("ext4","EMMC","/dev/block/mmcblk0p22","system");

It was a no go, gave me a new error message saying:

format() expects 3 args, got 4

So I know that was wrong, I then tried editing:

mount("ext4", "EMMC", "/dev/block/mmcblk0p22",system");

I changed it to:

mount("ext4", "EMMC", "/dev/block/mmcblk0p22");

This gave me no error message but it sill aborted the installation and said (Status 6). I think I might try to remove the "EMMC" and then try to flash it again.

So I decided to look at another updater-script to compare mine to and it was way different, I think it was because it was from the HyperSensation ROM I used as my base. It is a CM7 based ROM so the updater-script is way different. Anyway I winded up just removing the updater-script and replacing it with the one from the HyperSensation ROM and then it would flash. It will not boot up, it just hangs on the white screen with the green HTC on it, but hey it is some progress on my side.

I was going to decompile the boot.img again to day so I can make copies of all the files in it and also do the same with the base ROM I am using that way I can compare all the files in them to see if further changes need to be made. I started this this morning but I had to give it up and go to bed, the sand man was calling LOL.

I just downloaded Trends version he had uploaded and I will start sorting through it today also to see what changes I can find he has made and also see if it needs more changes as I compare the files from the boot.img. Maybe with some luck or with the knowledge of others here on XDA we can get a booting port for the Sensation.

Edit: I also had thought about switching to a stock kernal to but with out being able to get it to flash until last night I had not messed with it much. I had thought all I would need to do is extract it from a stock boot.img and replace the zImage with the stock zImage. Now my problem is the downloaded stock ROM I have is in a RUU file. I thought I could just rename it to a .zip and then be able to gain access to the internal files but this is not the case. Any suggestion to hoe to get to the internal files?
[HTC Sensation] davethedrummer84:
Awesome

Awesome... I dont do programming or anything of that nature BUT Ive been doing mods for along time and Im always willing to learn more about it. If you need any assistance or anything let me know and Ill do what I can or if you just need help picking apart errors or anything I dont mind doing research as well. GLAD YOUR WORKING ON THIS!!!
[HTC Sensation] Noktrnl:
if you run the ruu on your machine to the first part where you click continue you should be able to get the images (the ruu will extract them to a temp folder on your machine)
[HTC Sensation] Nikecrosoft:
I Will like to test i so just a little question

Will i boot and is it flashable
[HTC Sensation] jassycliq:
@tarends im going to play around with your file for a little, im getting sick of going around in circles with mine :P

ill tell you if i can fix anything
[HTC Sensation] DroidRC1:
Nothing boots yet..but some great devs are working on it
[HTC Sensation] jassycliq:
@tarends ... you dont have the sensation files in here from what i can tell. gralloc is missing, and then it took me to the place where i was all week last week :(

Just an fyi im using the zImage from 3.5 kernel and its working flawlessly it allowed your rom to go farther without having to even change anything else :)
[HTC Sensation] hev88:
Damnnn. You guys are makong some serious progress. Ive been checkin this thread all day... wish i could help hut this will probably fully booting by the time i see a day off and have time to tinker.
[HTC Sensation] T-Macgnolia:
I have been going through the build Trends put together. So far I have found the other change to the init.rc file. One to the "bootclasspath" line and the other one is "change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks" line.

The lib folder and the bin folder have had a lot of files removed and added to them from what the original SDK dump folders have.

The updater-script has been changed out for another one from what I can see.

The build.prop has been edited to include the info on the Sensation.

That covers the changes I have found so far in Trends build. But with time I might find more.

I have not gotten to completely compare the entire init.rc file yet to get a list of things that is not in the GB init.rc but are in the ICS init.rc. This is my current objective.

You know maybe a detailed change log from the original dump file to what Trends has would help the progress. This way everyone will know what has been done and what has not been done. This way people can get an idea of what might can be done or even what might need to be reverted back like it was if need be.

Edit:

I am still having problems as the RUU is being a pain in the butt and is giving me a error message. It started to run the first time, but HTC Sync messed it up somehow.
[HTC Sensation] Noktrnl:
what ruu and what file u need?
[HTC Sensation] T-Macgnolia:
I was trying to use the "ruu_pyramid_tmous_1.29.531.2_radio_10.42.9007.00p_10.11.9007.15_m_release_193714_signed" But sense I am basically wanting the kernal I really just need the boot.img. But if you could upload the system folder, the META-INF folder, and the boot.img from the above mentioned or another stock ROM I would be very appreciative.
[HTC Sensation] unfnknblvbl:
hummmm.... assuming you haven't already gotten past this one, have you tried changing it to say something along the lines of

format("ext4","system","/dev/block/mmcblk0p22");

That may have some adverse effects though. There's a partition table somewhere around the place here, but I can't remember where it is now :(
[HTC Sensation] tarends:
Thanks for finding that out.. is there a chance you could post me a pm with your file so i can have a look at at later today? As far as i can see in a glimps, you are missing a few files and the framwork is missing some dependending files.. but you are farther ahead than i am by the looks of it. For me it is a learning process aswell but im really looking foreward to getting something running.

And i think you are real close to it. I was wondering do you see the bootanination already or is it stuck before that?
[HTC Sensation] Noktrnl:
i cant get the meta and system folders at this time but heres the boot.
[HTC Sensation] tarends:
Thanks for sharing that. I will try this boot.img later today with the files i have.
[HTC Sensation] T-Macgnolia:
Ok guys I hope this little file I have made tonight can help us figure out what if anything else needs to be changed in the init.rc file in the boot.img so we can get this thing booting on the Sensation. It took me literally all night but I got a good comparison of the init.rc file that is for ICS and the init.rc file that is for GB. Thanks to XDA Senior Member Siulmagic for the ICS init.rc file in his ICS Porting guide. I attached the file in zip format below.

Thanks for the suggestion, I have gotten by this problem right now but not the way I wanted to. So I will try that later today, gonna get some shut eye first though, You are correct though as the line that is giving me trouble deals with the portitions on the Sensation, maybe I can find that partition table somewhere......;)
[HTC Sensation] tarends:
WOW!!!!

You have made some work of it by doing this. i have most of the things writen down myself but some small things have been looked over by me. Tonight if i have the time for it i will take apart another boot.img sense 3.5 and hopefully get some progression with that. As stated by @jassycliq he got my port"progression" booting further without any other changes.

If somebody has ideas on how to get this to boot or what is cousing problems, all suggestions are welcome.
[HTC Sensation] T-Macgnolia:
First off I have to apologize as I noticed that I had a error or two in my list I put together. The good thing is that if you are paying attention when you read it you will see them, what can i say I goofied. I think I saw 2 or three is all though really.

Now I have put together something. I started this from scratch again when I put this together tonight. I am thinking about going back to the original updater-script now that I replaced the update-binary to the correct one.

The thing flashes fin. It starts up to boot up and gets to when it is going to show the bootanimation and reboots. So essentially it is bootlooping, but hey I consider that progress. (Just to be clear it is not showing the bootanimation at all)

I do not have the ADB working on it so sorry I have no logcat to post. I know you have to create a symlink from sh to ash, and I think it goes in the updater-script. But I really do not feel confident enough to do that without a little more knowledge about the correct text to enter it in and exactly where to put it in. Sorry this whole thing has been a learning experience

I have not moved any lib files or bin files in this either. I also attached a complete change log to this post Well any way download link is below.

Download
[HTC Sensation] vegetaleb:
Pardon me but is it based on AOSP??
[HTC Sensation] T-Macgnolia:
No this is a SDK port, ICS is not available with the AOSP yet.
[HTC Sensation] tarends:
I will try this later on this afternoon and see what it will do, i am busy solving my problem that seems to be coused by libc.so and libc, so i replaced them with files from another build. hopefully that gives me something to work on.. and else i will. go back to where i have started. I see you make some progression as well. I think with three of us getting closer every day we should be there in a bit of time.

What i did to get SH working is just copy and SH file to the bin folder, and it did not gave me any conflicts this far. That way you can start logcat and dmsg, so you can see where the errors are.

As an attachment you will see my ADB folder i use to debug at this moment. I find it handy to save the logs every once in a while so i can compare the files and see if i made progression or have a complete new error.
[HTC Sensation] T-Macgnolia:
Oh yeah I took and replaced your build's zImage with a stock one . It does pretty much exactly like Mine does now and goes in to a boot loop. But I still think yours is getting further than mine as I think you can see the actual back light come on a split second before it reboots with your build not with mine.

I got a couple of more things in init.rc i want to change and i will try your suggestion to get adb working.
[HTC Sensation] tarends:
OK, It im interested in what your ADB reports, im getting back to the files i was busy with at the start as i cant seem to get the error out if libc.so That i dont have with the files i started off with.

Edit: Found why i did not get any error on the libc as it just not got loaded. as soon as it loads it gives the same errors.. will work on it for a bit more today and then i have to give it a break as im just running stuck.
[HTC Sensation] jassycliq:
ive been stuck on the libc for quite a while also... :/

im posting all the builds i have so far in my dropbox and ill post links, each different naming scheme has a different approach, theyre mostly a mess but thats because i forgot what i was working on each one lol

im starting from scratch ones theyre posted.
[HTC Sensation] Knucklessg1:
You guys should work off of one dropbox account to automatically sync your progress between each other?
[HTC Sensation] jassycliq:
id love to... but im very disorganized i would confuse the hell out of everybody lol

im still up for it though :)
[HTC Sensation] davethedrummer84:
info

also could use google project hosting to keep things organized.
[HTC Sensation] davethedrummer84:
Good luck :)

Just a heads up though from watching the Hp touchpad's google page. People are stupid and harrass those guys with questions of issues. So If you can possibly make it private to where only certain people can post or something not a bad idea. Or it will probably get cluttered really quick.
[HTC Sensation] jcarrz1:
I was further than the logcat posted above, the weekend after release... I just haven't had time to work on it any further.

I can upload if anyone likes...
[HTC Sensation] jassycliq:
The main reason im so far behind is because i only have one device i only test for like 20 min periods.

not to mention im a noob modder ;)

but id sure like so :)
[HTC Sensation] malybru:
Hi,

I'm sure they would appreciate that.

Contact XDA Senior Member T-Macgnolia

:)
[HTC Sensation] tarends:
I have done some research and it seems that we need the video drivers from a tablet to get things working. or that should at least get us a step further and found that the HTC puccini has the same processor and GPU. so with that it should have hardware acelleration and even more stuf working. i will look for a rom for this tablet later on.. and combine it with the files i have at this moment. Hopefully that will fix some of the problems we have at the moment.

Added the files and it seems to boot further but there are also more problems. checking the logs at the moment to see if there is any file missing. but this might be the solution we where looking for.
[HTC Sensation] tarends:
thread has been updated.

link to latest rom has been updated.

This should fully boot(no boot animation) and no screen working.

I have a hunch to get it working but still figuring things out.
[HTC Sensation] nory82688:
Youre the man
[HTC Sensation] T-Macgnolia:
Alright man I am downloading this now and will have a look to see if I can help get the touch screen working and maybe the boot animation, not making any promises though. I would like to see a change log if possible to see just what kind of magic you worked. Oh and I followed your advice about getting the logcat working and had no luck with it.
[HTC Sensation] malybru:
Hi,

This is what I was shown to get a logcat:

with ADB, you can do:

adb shell logcat > logcat.txt
control-c to stop

or with terminal emulator

logcat > /sdcard/logcat.txt
volume down+c to stop

Hope it helps.

:)
[HTC Sensation] tarends:
Great!. Basicly all i did was replacing the egl libs with honeycomb ones. And whacc file has been add aswell. It will be interesting as soon as we get some visuals working. As hw acc should be working. And most of the hardware is recognised. I will get some sleep. If i have time tomorrow afternoon i will work on it. Hope that we can get some visuals from it next week.
[HTC Sensation] unfnknblvbl:
Heh. By the time we get this working, CM9 will be out :D
[HTC Sensation] nory82688:
They've made great progress, Im sure this will be done way before cm9 is out
[HTC Sensation] triStateMindgate:
The CM team is not touching the SDK at all, therefore they will START on CM9 when source code drops, which Is most likely later this month. I guarantee that someone will have a bootable ICS port up. Not fully done obviously cuz of lack of source code. But still....
[HTC Sensation] speedysilwady:
at least it should be up and running by the time source drops and when it does all the bugs can be fixed or it can be rebased and the devs would have a lil more knowledge on how ICS works once source does drop even when they do rebase the roms
[HTC Sensation] hello00:
well ICS is going to be available to the open source community in the coming weeks
[HTC Sensation] tarends:
Thanks, but you are not conrtibuting this way! If you like to flame go elswhere. We do hard work here and porting it for the htc sensation is way harder than any other device that has been ported. Cause of the processor we have.
[HTC Sensation] nory82688:
+1 you guys have done some awesome things so far with this. I mean, you have it booting! Even though you can't see anything when it does boot, you guys are pretty damn close, and I respect your skills for that. I can confirm that capacitive buttons do work when phone boots and there is a CRT animation when phone goes to sleep. But this will be a truly astonishing feat when you guys get it fully booting and functional. I have faith in you guys. You're devs to me.
[HTC Sensation] :
I love devs that are helping with this port, keep up the great work and I hope to see this work soon
[HTC Sensation] unfnknblvbl:
Dude, I was joking. Sorry if you think it was a flame, but hence the ":D"
[HTC Sensation] tarends:
The guys at the galaxy s2 forums seem to have the same problem. i have asked them for more information about there idea on solving it. hopefully we can get some usefull in formation by that.