yashsingh1/xdaforums huggingface dataset:
[Windows Phone 7 Development and Hacking] dcordes:
cool you could mess around with startup.txt a bit. I attached the files I used to create the experimental linload. the current startup.txt will try booting the zImage (it's hd2 'evo kernel' see above) but without the kmode I fear it won't get that far. You could try some other stuff though, e.g. touch earlyharetlog.txt again and see if you get the haretlog.txt out of it now. If that works you could try placing some commands in startup.txt
[Windows Phone 7 Development and Hacking] Jaxbot:
This gives me "Failed to lock 1341 pages (code 6)"
[Windows Phone 7 Development and Hacking] ted973:
Failed to lock 1341 pages (code 6)

and haRET is running not exit.

i made a haRET loader, to make more people can easy test.

copy new haRET.exe and kernel image start script to haRET folder of xap file.

then deploy haRET_Loader.xap to your device, run it and press the load haRET button,if any err there will be a MessageBox to show them.
[Windows Phone 7 Development and Hacking] minDark:
I found something interesting: http://xdaforums.com/showthread.php?t=1453343 with this we can take kernel permissions for haret and move the app to TCB room.

P.S: The latest recompiled version of haret seems to be ok.
[Windows Phone 7 Development and Hacking] spavlin:
===========================================

htcleo	MACH_HTCLEO HTCLEO 2524

------------------------------------------

htcmozart MACH_HTCMOZART HTCMOZART 3544

------------------------------------------

htcgold MACH_HTCGOLD HTCGOLD 3545

===========================================
[Windows Phone 7 Development and Hacking] dcordes:
Awesome, this sounds like what we need. I downloaded the .zip and to me it looks very complicated and I have no clue where to begin. Will this permanently give us kernel mode or will we insert the functions where setkmode was ?

Is the "cannot lock n pages" due to missing permission to access protected mem induced by lack of kmode when nokmode-haret tries to start kernel ?
[Windows Phone 7 Development and Hacking] Jaxbot:
I was under the impression that we wouldn't need to elevate privileges, as we're already running a native application on a rooted device (if it weren't rooted like this, we wouldn't be able to run it).

I may be wrong, though.

Not sure about the cannot lock n pages, though.
[Windows Phone 7 Development and Hacking] Jaxbot:
Oh, by the way. Since it's running, but we have no GUI... would it be possible to make it autostart the telnet server?
[Windows Phone 7 Development and Hacking] Ttblondey:
Ok,

I manage to install it to my hd7 but when i click Load haRET it says error Haret is not running in 'system' mode.Major functionality will not be present.
[Windows Phone 7 Development and Hacking] ultrashot:
as for gui: you should call either windowtreeupdater or directly frame.dll

windowtreeupdater.dll way:

typedef HRESULT (*CREATEWINDOWTREEUPDATER)(HWND hWnd, DWORD unk, HANDLE *hWindowTreeUpdater);
typedef HRESULT (*UPDATEWINDOWTREE)(HANDLE hWindowTreeUpdater);
typedef HRESULT (*DELETEWINDOWTREEUPDATER)(HANDLE hWindowTreeUpdater);

usage:

HANDLE hWindowTreeUpdater = NULL;
CreateWindowTreeUpdater(hWnd, 1, &hWindowTreeUpdater);
// after that window should appear on the screen
...
DeleteWindowTreeUpdater(hWindowTreeUpdater);
// delete window's page when you don't need it.

don't call UpdateWindowTree, it isn't needed.

frame.dll way is much more complicated since it requires to rewrite wndproc of all windows to treat WM_GESTURE messages as WM_LBUTTONDOWN/WM_LBUTTONUP.
[Windows Phone 7 Development and Hacking] spavlin:
htcutility-kernmem_2011-11-10
[Windows Phone 7 Development and Hacking] dcordes:
wrt mozart:

http://htc-linux.org/wiki/index.php?title=Mozart_GPIO

been wondering the same thing but I cannot find a command that will start the telnet server. we could patch it to do so automatically but it will be nicer to implement minDark's / ultrashot's propositions to fix GUI
[Windows Phone 7 Development and Hacking] GoodDayToDie:
Hey, just wanted to say that this looks awesome, and if you want anything using the HtcRoot project, let me know (I'm the guy who started it).

As for the error locking pages, I'm pretty sure that's a kernel-only API, yes. The version of CE on WP7 seems to work more like a desktop OS with regard to user/kernel split - that is, it uses hardware ring levels and by default all apps get loaded into a low-privilege ring and can't control things like the memory manager.

There are Linux kernels which are designed to work entirely in userspace of another OS, so that's a possibility. Another option would be to use the HtcUtility driver (assuming your ROMs have a working version; many don't) to make changes within kernel mode. Finally, you could write a driver (not *quite* as hard as it sounds, for an unlocked ROM) that does the KMode stuff for you (i.e. you use an IOCTL to tell it "Lock me these pages" and it does so).

It depends a bit on how many kernel APIs you need to call. The list of public kernel APIs is on MSDN, along with indicators of which can be called from usermode and which can't. You can also download the CE 6.0 or 7.0 source, including the kernel and pretty much all of the standard drivers, from Microsoft. WP7's kernel appears to be somewhere between the two, though, and is not available in source.

I may also take a break from working on the policy system to look at this; it sounds very interesting and would be a fun change. I've done a bit of kernel hacking on both CE and Linux (and NT. though I doubt that's relevant).
[Windows Phone 7 Development and Hacking] steve_htc_wizard:
There was a different Haret project that was written for windows mobile, I have it it it sort of worked.

It ran android v1 or 2 but android had very little working, it was more proof of concept than anything else.

There was also a wp7 project called WM launcher, it was able to run WM5 and they started working on WM6.5 after it was running well but the project was never released to the public and development ceased unfortunately. I pm'd one of the devs about it but never got a reply.

Devs have given up on wm7 because its impossible to do anything good with it, Micrsoft have turned into apple mk2 and ruined this o.s with all the controll and lack of functionality.

The o.s is terrible and Microsoft sell phones the same way as apple, with hype and people leave for android as soon as they can get out of there contracts. Android handsets sell because the o.s is fantastic and word of mouth and reputation does the selling/advertising, when was the last time you saw android advertised if ever? WP works well for the basic functions it has and possibly even better for those functions than android but android win hands down on features and applications. Sorry m.s WP sucks at the moment.
[Windows Phone 7 Development and Hacking] link68759:
He said, using a version that reached EoL over a year ago.

WP8.1 is pretty fantastic.

Sent from my Windows 8 device using Board Express Pro
[Windows Phone 7 Development and Hacking] steve_htc_wizard:
if by EOL you mean end of life cycle, you are wrong! The lifecycle end date for wp7 is 09/09/14, unless you live in the future, there is no way it reached it over a year ago, it still has 3 1/2 months to go.

As for 8.1, a friend has it and although its a improvement on its predecessor, its still a dictatorship.

Microsoft invented the smartphone and got jt right, android shares so many similarities with windows mobile in its style, functionality and freedom but has developed way beyond what wm achieved. Microsoft have lost there way and ignored what people want in favour of what they want. Nothing is even close to threatening android but wm could have if it had just been developed properly and updated big time.

I like my HTC7pro and some things work better than in android but im afraid those things are very few and android is able to do so much more than windows phone, seriously, windows mobile can do way more than WP, where's the logic in that?

if i could flash ics,jellybean or kitkat to this device i would have done so long ago, i have a HTC desire s that im experimenting with on android and the development community even for a old handet like that is huge and thriving.

The amount you can mod, customise and the amount of custom roms crammed with features and functionality is amazing.

If only the same could be said for WP. It could have been great but it was ok at best, and is out sold by over 3-1 by android as a result.
[Windows Phone 7 Development and Hacking] link68759:
I had a nice reply typed up but I lost it, so here are the highlights:

-Hackability (WM6) is not compatible with corporate security.

-WM was a commercial failure, WP addresses issues WM had to make it more appealing to a wider audience.

-WP8.1 is great. I understand you dislike secure environments, but that doesn't make the locked down approach 'bad'.

-WP7 received it's last update over a year ago, and it will never get another one. That's EoL. The date you quoted is merely when tech support tells you to get lost.
[Windows Phone 7 Development and Hacking] steve_htc_wizard:
that's funny cos WP stuggles or can't do at all many of the things the corporate sector used to use windows mobile for. Do you know that tonnes of devices are still sold running windows mobile or win ce to firms in retail, courior, warehouse ECT, the list goes on, because WP Is simply not able to do what they need it to do, wm was designed to the businesses customer Microsoft admitted they were turning there back on them and going for the every day mobile consumer.

your argument about security is incorrect, everything that made wm useable and appealing to companys has been ripped out of WP.

email Microsoft and ask um how many windows mobile/ce devices they licence each year.

I can see why nobody in the consumer market was showing much interest in WM but that is because Microsoft had negelected it and many people did not even know abou wm.

Had Microsoft put the effort to bringing wm uptodate or a new o.s with a similar attitude and style they might have been more successful but with there apple mentality they will never get anywhere in the market share, android just offers too much for people to leave it for something that offers nothing but restrictions and dissapointment.

I loved my wm handsets, my phones have been windows based since my first pocket pc xda phone though many windows mobile handsets and now this windows phone junk.

I am now messing around with a android phone, flashing it ECT and the only thing has stopped me leaving WP is the slide out physical keyboard I have on my 7 pro-name a WP 8 or 8.1 device that has that eh? I will buy a android device with a keyboard when I can afford it.

I wish windows phone could be great, i really do but its not and never will be when Microsoft want to rule it with a iorn fist.

I was a very loyal long term Microsoft mobile user and never thought i would even think about android but MS have pushed me away and there are hundreds of thousands of others like myself.
[Windows Phone 7 Development and Hacking] link68759:
I didn't include this in my post because I thought I'd give you the benefit of the doubt, but...

I won't be dragged into a pointless debate which ultimately boils down to opinion and is way beyond the scope of this thread.

I stand by everything I've said- you have not convinced me that any of my points are incorrect. I believe the majority of what you have typed is misguided. This ends my participation in the discussion.
[Windows Phone 7 Development and Hacking] Omnia7xdax:
What i can add is: I once buyed my Omnia,cause i thought with WP on it,it would be the same way like the legendary HTC HD2 (reaching a lot of popularity ,get a complete unlock and good androidport,and having the advantage to carry a good OS from release with much improvements),with the fact that it was newer and i dont know why,also cheaper at this moment,....but it never came this way...microsoft made a lot of things wrong in every case in my eyes(no sd,no good+much to late updates,total lock of OS -even against the will of consumers,telling them all the time the mainconsumers didnt wanted to have a free OS - the choise how they want to build up and use the OS,no new features/nextgentech.) ,my fault was is to not buy one HD2,when i had the chance,after this i was looking for a successor of the HD2 but it never came,WP7+beginning of WP8 didnt let the Manufacturers produce Highend WP-Devices,what came where midrange (-crap,sry for my op.) and there were only some phones pleasing like the HD2 with Android,but androids style never hit my taste :/

So atm all i hope is that devs get WP8 hacked completely so that if and when a Lumia 1820(which some say is only a baseless rumor,but from specs and design the only phone which will fullfill my expectation) will be released ,it can replace my Omnia7...sry im not following the trend to buy my phone with contract and changing it every 2 Years ,i use prepaid wiht 20€+x/Year-->mine has to last for minimum 5years+X ....only Phone that managed this for now was and IS the HD2!!!

So pls bring me Android that i still have some fun with it in future,i really miss Flash,i cant play any normal Video from the Internet!!!

(Sry for OT and bad english)
[Windows Phone 7 Development and Hacking] icomn:
Any chance to complete haret project?:crying:
[Windows Phone 7 Development and Hacking] Martin7Pro:
Source codes

I am too busy to continue now. I packed all my related projects source codes and uploaded to the Internet. Basic technical issues are solved, but HaRET for WP7 needs much more testing and code finishing. I sent links and passwords to most active developers here. If anybody wants continue too, send me PM request. I could not publish codes as open source, because some little code parts are copied from 3rd sources - mostly with authors legal allowing for my using, but not for publishing (w.i.n.c.o and ultrashot libraries, jscripts parts, MS shared source little parts etc.). Participated developers needs VS2008 Professional licension (free fo students from Dreamspark or trial, native libraries compilling) with WM SDKs, VS2010 for WP7 (free from MS, for HaRET WP7 Console and other UIs compilling), cygwin+GCC (opensource, HaRET_WP7 native application compilling). Kernel mode library needs little enhancement, it is compillable by GCC or VS2008 too. Then some developer can complete any project parts by free GCC or free VS2010 only.
[Windows Phone 7 Development and Hacking] Robbie P:
Thanks Martin7Pro for all the work you have done here, it is really appreciated. The best of luck for your future, may the road rise up to meet you.

If anyone needs a hd2 wp7 tester, i am a PM/post away.
[Windows Phone 7 Development and Hacking] Martin7Pro:
Project continuing

Nobody other wants my source codes? I have got one PM request only.
[Windows Phone 7 Development and Hacking] Yosef:
I want to. i have HD7
[Windows Phone 7 Development and Hacking] Hendziuu:
Your Haret build is ok. now we need to build kernel dedicated for wp7 devices with specified Hardware adresses what wp7 devices have, because there is no another way to boot linux like kernels on WP7 Devices via Haret. And Later when it boot we can think about custom bootloader NAND flashed like cLK or magldr for HD2.

Regards
[Windows Phone 7 Development and Hacking] Martin7Pro:
Hi.

What build do you mean? Last build known to me is unstable, causing sometime hard reset (everytime when Linux booting trying). It needs to finish coprocessor routines in kernel driver etc.

I mean totally new silverlight UI application can be better, using native wrapper to kernel driver only. GPIO and continuos physical memory allocation is solved on any blogs (http://vinoth-vinothblog.blogspot.cz , Werner

Willemsen's CE Blog etc.) better for WEC6/7 then in past for WCE5 (WM HaRET code). But, I am too busy still to help you to finish it.

I can do something, when somebody will solve debugging problem in VS2008 (breakpoints do not stop on WP7 physical device) and when somebody make WP7 build for HTC7Pro (my machine) with unencrypted filesystem. Without those two features HaRET creating and debugging is too slow for my possibilities.

M7P
[Windows Phone 7 Development and Hacking] Hendziuu:
As you know I have 2gen Device, Yes I know that it also reboots my device but I tried to boot kernel with loader what using haret dedicated for device what runs Windows CE (I forgot what device it was) and I hasn't error with allocating ram pages but phone freezed for 20seconds and then reboot too. That was your last build haret but only haret.exe I used from that package because when I tried to copy bins to windows folder my phone gets bootloop and I has to flash rom again. Second of all was problem like that your last package and all erlier won't copy files to windows folder and hasn't add reg files to registry, I had to done it manually and I had to edit your txt files and save it with UTF-8 Codding and then rename it to *.reg then I putted it to my phone and added it to reg via your Phone Commander then I copied bins to appropriate folders and then when I was running haretconsole from menu it works but partially. What means partialy? That means On my HTC Radar C110e won't work startup of haret after boot WP7 I has to run it manually by clicking HaRETConsole in Menu. I'm putting bellow list of devices what have same processor like my HTC Radar C100e, someone can use sources of that devices to port kernel for WP7 2gen devices, I can't do that because I was broken LCD and Digitizer (digitizer works but I smoted it). I do not know when I fix it because I'm going to university so I'will not have enought money to buy it, but I not leave that project, when I'll get money I'll come back with help

But we must erlier or later build kernel because we will never boot linux/android without kernel what support hardware something device with WP7, we must focus on one concret device and boot Android/Linux on it in the beginning, then we can take care with other devices.

Regards
[Windows Phone 7 Development and Hacking] nisu4717:
For Linux kernel you can ask help in HTC desire s or xperia neo l thread. Or make a thread in cross device development Sony thread.

U should make a help thread there. U will get some one there.
[Windows Phone 7 Development and Hacking] Hendziuu:
No I can't ask in other devices than HTCs and also I can't use sources of that devices because it have differend motherboards (only processor are same), could be better to use sources one of htc devices what are listed in my quote because it is a the easiest way to get it works. We must work with dumps of memory our WP7 devices at the beginning ald look for NAND ROM Offset, Ram Start adresses, Full Ram Memory sizes, and other addresses of our WP7 Devices and then we could Define it in HaRET Source then compile it again then we need to port kernel for one of WP7 devices. Next step is port kernel for other WP7 devises, and finally make something like cLK(we can use for do it HD2 sources but we need to modify it) or magld for WP all Devices. I heard rumors about that Cotulla ported magldr for WP7 Devices but if they were real, that have provided something about that.

No when I used any hd2 kernel it cant allocate ram pages because Hd2 and WP7 second gen devices have differend page offsets of kernel so can't alocate kernel pages to ram and also HD2 processor is older then 2G WP7 devices so it has diffrent libs, vreg, page offset, GPIO, etc... I do not know how about 1st Gen WP7 Devices.
[Windows Phone 7 Development and Hacking] nisu4717:
Cotulla is missing. He is not been active from 8 or 9 months.

I think HTC has hired him for HTC one m8 windows addition.
[Windows Phone 7 Development and Hacking] DAC324:
I have got a HTC 7 Pro and would be very interested in running the project on that device. Please tell me if any help is needed ;)

Thank you very much and kind regards,

DAC324
[Windows Phone 7 Development and Hacking] egzthunder1:
I believe that the project has been discontinued. You could try to reach Martin7Pro and see where he left off, but considering the death of the wp7 platform, I would assume that this one is done (at least until someone else revives it).

There are two rules in life for being successful:

1. Never reveal everything you know;

2.
[Windows Phone 7 Development and Hacking] Robbie P:
My offer still stands.

My hd2 is my only phone, although my other half has a htc Mozart lying around doing nothing, sure she won't mind me fiddling with it if necessary too;)

I have lollipop 5.1 running on my 4-year old phone from all-f2fs on sdcard:)thanks to the Devs here on XDA.

I am a bit averse to the culture of obsolescence, as you might have guessed.:D
[Windows Phone 7 Development and Hacking] Martin7Pro:
I'm sorry, gentlemen. I'm still very busy. I submitted my codes pdaimatejam in the past. If I find the time to gather all my old WP7 source code, I save it to a public store. Licence problem may be because W.i.n.c.o and Ultrashot parts are used in them. My HTC 7 Pro was destroyed by constant attempts at improvement. I went back to the Nokia 9300 last year because all newer smartphones are useless to me. After Nokia hardware broke, I tried also Android and BlackBerry, but not touch or gestures convinced me. I probably will stick with HTC Touch Pro 2 or large screen Android with blue tooth keyboard. I do not understand why the mobile manufacturers are making fools of people, when 20-year-old Nokia 9210/9500/9300 had excellent and quick control, battery life of a week of daily use, and it was a truly usable tool.
[Windows Phone 7 Development and Hacking] Jaxbot:
Yeah, ultrashot has a much better idea :p

Sounds simple enough to implement, I suppose, but then again, what ever really is?