yashsingh1/xdaforums huggingface dataset:
[Motorola Milestone Android Development] Lesiroth:
Just saw this, and I'm actually pretty interested in this, but what I know about programming can't really help you. Really interested in this though, so I will be following this :)

I have to ask though, is it not possible to have a universal Android implementation? What are the technical reasons?
[Motorola Milestone Android Development] desolateone1:
No, we won't be seeing a univeral version, as phones have different types of usb controllers (we have mUSB, the same kind used in the pre and n900, giving us the best chance of a quick and easy port) Most HTC phones have a MSM72K controller, and the guys in the desire forum are pretty close to getting it running.

Even if Devs don't have a PS3, they could still compile it and let us test it :D
[Motorola Milestone Android Development] nicholasbgr:
Yeah, but they would be more interested in this hahaha. Too bad my C skills suck :|
[Motorola Milestone Android Development] MrPadie:
EDIT:

Found out the required info. Thanks though.
[Motorola Milestone Android Development] springs1087:
uh this has nothing to do with bootloader whatsoever. it is to run an exploit on the ps3.
[Motorola Milestone Android Development] -=MoRpH=-:
Now i am installing Linux an try Compile it. Its a Long Time ago that im use Linux. I Hope that i get it work Today.

Send from my iPad
[Motorola Milestone Android Development] gizmo1908:
Desire port is working, hope it can be done with milestone to
[Motorola Milestone Android Development] desolateone1:
according to zzg in the desire forum, this is what you need to do. no source changes.

just substitute the droid kernel source for the milestones. You can get it from motorola.
[Motorola Milestone Android Development] dasilva333:
Current Compatibility List

Current Compatibility List

http://psfreedom.com/wiki/index.php?title=Device_compatibility_list

Quick question though, looking at something like this: http://psfreedom.com/wiki/index.php?title=OpenDesire4.0.4

To enable:

reboot to recovery

flash enable psFreedom

reboot back to Open Desire

It seems we would have to flash a different kernel to get this to work via the recovery screen. However I thought due to the locked bootloader on the milestone even after porting it the phone wont boot because of that.

Is the locked bootloader preventing us from booting into Android? or is it booting all together?
[Motorola Milestone Android Development] gizmo1908:
i think the desire is totally different than the milestone because it uses other drivers. with the n900 there wasnt any flashing involved. the milestone uses the same drivers as the n900 so lets hope we can use this
[Motorola Milestone Android Development] desolateone1:
All we need to do is compile it against the milestone kernel (like how i wrote in my previous post). Then it should work no problem.
[Motorola Milestone Android Development] maggots:
but there is someone who is trying in this port?
[Motorola Milestone Android Development] gizmo1908:
look at the first page and pray...
[Motorola Milestone Android Development] -=MoRpH=-:
I try to Compile it with the Milestone Kernel......

But i have some trouble to get it work. :-/

/me Linux n00b :-D
[Motorola Milestone Android Development] gizmo1908:
maybe someone over at the desire forum can help?
[Motorola Milestone Android Development] dasilva333:
How would it work though? as a command line app via adb shell? a .ko or .so?

For those interested I included the links needed to compile the thing:

Android NDK

http://dl.google.com/android/ndk/android-ndk-r4b-windows.zip

PSFreedom

http://download.github.com/kakaroto-PSFreedom-0ea9511.tar.gz

Motorola Milestone 2.36 Kernel

https://opensource.motorola.com/sf/....milestone/frs.milestone.02_36_0/frs9279?dl=1
[Motorola Milestone Android Development] gizmo1908:
psfreedom link is dead
[Motorola Milestone Android Development] desolateone1:
yeah, it would be a .ko

Here is the psfreedom source (patched for bdrom as well)
[Motorola Milestone Android Development] gizmo1908:
thnx

in the compatibility list droid is now shown as "In Progress"
[Motorola Milestone Android Development] desolateone1:
Yeah but all of them say that, doesn't mean the milestone is next.
[Motorola Milestone Android Development] gizmo1908:
oh didnt see that:)
[Motorola Milestone Android Development] dasilva333:
I tried compiling the source using the command given however I get a whole slew of errors. I cant seem to figure out what's wrong with it. Is anyone else trying to compile the thing

http://imgur.com/MO05c.jpg Compiling Error Msg
[Motorola Milestone Android Development] gizmo1908:
i want to try but dont have the milestone kernel, the download that was posted is slow, cant have that open in windows, its irritating

and i dont know where to start compiling
[Motorola Milestone Android Development] desolateone1:
I'm trying to compile it myself, thanks to some assistance from some people on irc. No guarantees though.
[Motorola Milestone Android Development] -=MoRpH=-:
You have Enter the wrong paths to the Files. On my machine it is "/home/kevin/psfreedom/"
[Motorola Milestone Android Development] desolateone1:
Your kernel isn't compiled.
[Motorola Milestone Android Development] dasilva333:
Ok I cd /psfreedom/kernel then I ran make oldconfig && make prepare like the error said

After that I believe the kernel compiled, it asked me a lot of questions, so i just pressed entered on all of them to use the default.

I re ran the make command to compile psfreedom and now I get this error:
[Motorola Milestone Android Development] desolateone1:
Try this.

http://www.droidforums.net/forum/rescue-squad-guides/31452-how-compile-your-own-kernel.html

just change the droid kernel for the milestone kernel.
[Motorola Milestone Android Development] invertedoutput:
If only I knew how to compile, etc. It seems the droid's shouldn't be too hard from what they're saying, but I can't find a new-user guide to compiling or altering a kernel for the life of me.

Guess I gotta wait it out and cross my fingers.
[Motorola Milestone Android Development] Lupin Saiko:
Ive been working on this for about 3 days now. Last night I found out that 2.6.32 seems to have a bug in it that makes the whole thing impossible. As some of you probably know, that is the kernel CyMod6 is based on. Nexus One and D/S are running .34 which are really easy to customize the kernel for. I tried rolling back to 2.6.29 which is what 5.0.8 worked on, but I havent been able to find all the USB drivers that need to be turned off in the config.

A friend of mine has been helping me with this and he is a lot better than me. I have thrown it to him but he is away till later tonight. Hopefully this information will help someone to get it working. If not, we will be back at it again tonight :D
[Motorola Milestone Android Development] invertedoutput:
Do most all ROMS work on that kernel? The Sapphire ROM is excellent, as well as a few others. Bugless Beast for instance. Just curious, also I know others were working on it with Cyanogen's, but is that mandatory?
[Motorola Milestone Android Development] Lupin Saiko:
The kernel will vary for different ROMs on different devices. For example, CyMod6 on Droid is .32 and on Nexus One and D/S its .34. As far as I know there is no config or compiled .34 kernel for Droid. My friend is going to try and compile the .34 kernel for the Droid with all the needed things out for PSFreedom. But probably not till tomorrow.
[Motorola Milestone Android Development] invertedoutput:
Interesting stuff. Sorry to sound naive, I was just curious on the matter.

I'm sure plenty of eyes will be on this thread in the next few days.
[Motorola Milestone Android Development] Skitals:
I got this to successfully compile against 2.6.32... gotta test now.
[Motorola Milestone Android Development] Lupin Saiko:
Thats not the problem, the problem appears to be a bug with insmod that exists in the kernel.
[Motorola Milestone Android Development] invertedoutput:
Is it going to be the same for the Droid? Or just the milestone?
[Motorola Milestone Android Development] Skitals:
Dang, wish I had seen this WHOLE post:

I'm at the same point... module compiles but I'm stuck now, just like everyone else.
[Motorola Milestone Android Development] Skitals:
I'm trying to dig through the Desire thread, but I can't find anywhere someone posted exactly what changes needed to be made to the kernel for the module to load. I understand the kernel needs most usb functionality disabled... specifics would be nice.
[Motorola Milestone Android Development] federicoponl:
think that you should run a custom kernel in order to disable CONFIG_USB_ANDROID_ADB, CONFIG_USB_ANDROID_MASS_STORAGE, CONFIG_USB_ANDROID_RNDIS

you could try with 2ndboot (from and-developers.com) to boot a custom kernel

best regards
[Motorola Milestone Android Development] Lupin Saiko:
As I said before, Im pretty sure that will not work. I tried all those options and it still would not load. A person running a Nexus One was having the exact same problems as us on 2.6.32 but when he went to .34 all was well. This would lead me to believe there is just a bug with insmod in the .32 kernel. I tried doing .29 but it did not have any options to disable ADB or MASS.
[Motorola Milestone Android Development] desolateone1:
Interesting. Does anyone know how to use 2ndboot?

I have a kernel compiled and should work without a hitch (thanks to the help from a moto dev), just need to get past the bootloader. 2ndboot could be our solution.
[Motorola Milestone Android Development] Lupin Saiko:
Hi, Im not sure why you think it would be working without testing it, but if you can upload the zImage somewhere I have all that is needed to make a working boot.img for CyMod6 users.
[Motorola Milestone Android Development] maggots:
I found this,//github.com/XVilka/2ndboot-ng, if it can be of help
[Motorola Milestone Android Development] dasilva333:
Also I found this information: http://and-developers.com/tools:compiling as far as setting up your enviroment to compile a kernel.

So from what I understand so far simply doing insmod psfreedom.ko will not work because it will return "Device or resource busy" because the usb hardware is in use by the kernel.

Disabling those options mentioned previously will allow the usb to be free for psfreedom to use, however flashing a kernel with those options disabled will prevent the phone from booting all together? Or is it still possible to use desolates kernel and run flash_image boot.img via terminal, go into recovery, insmod psfreedom.ko and see if that works?

I think worst that can happen is the phone wont boot so you'll just have to go back into recovery and flash it back, or perhaps you cant even reach recovery with an unsigned kernel and you have to use RSD Lite to revert back.

As far as using 2ndboot I dont think that overrides the kernel, If anything we could PM or try to reach d3xter considering he has 3+ working examples of 2ndboot using MotoFrenzy/MotoBlur/MotoIncredible right?
[Motorola Milestone Android Development] AndroidXDA:
I think that Milestone will be the last Motorola that I buy, the next will be with free bootloader.

I have to a PS3, and I read that the driver of the usb of Milestone are the same like Nokia n900, and in nokia work good.
[Motorola Milestone Android Development] gizmo1908:
There is someone that thinks he has it working, look in the desire forum, one of the latest posts
[Motorola Milestone Android Development] pier1684:
For Milestone

kakaroto said to change these functions with code in the kernel

if someone know how to please look these code
[Motorola Milestone Android Development] -=MoRpH=-:
Can we use an update.zip to run the Script from the Recovery mode? But i dont think that USB ist Activated.
[Motorola Milestone Android Development] gizmo1908:
This is what was said in the desire forum by darktox, page 95 first post

Hey guys,

I think I have PSFreedom working on my Milestone

It was a matter of removing motorola USB driver from zImage first

I will post more info by the end of the day
[Motorola Milestone Android Development] invertedoutput:
Then we can only pray he pulls through!

Clicking the name of "Motorola droid" on the supported devices spreadsheet shows a "Coming soon." message, apparently last edited by onehitgamer (dot) com...

It would just be nice to know a status, ya know?
[Motorola Milestone Android Development] Darktox:
Hi All

after some work here is an update

I'm stuck no way to flash kernel on milestone (maybe 2ndflash)

but here is the patch to apply to the kernel to remove the device or resource busy when inserting psfreedom module

milestone:

quisk howto (in bold the blocking part)

1- apply patch to kernel

2- build kernel

3- adb push g_mot_android.ko to /system/lib/modules

3- modify ramdisk, edit /init.mapphone.rc add insmod /system/lib/modules/g_mot_android.ko

4- flash bootimage (! need to know if 2ndboot works)

system should work as usual

now the exploit ...

5- build PSFreedom.ko with android toolchain target N900 should be fine

6- copy PSFreedom.ko to /data

7- rmmod /system/lib/modules/g_mot_android.ko

8- insmod /data/PSFreedom.ko

the hack should run

my guess for droid rebuilding with CONFIG_USB_ANDROID=m should do the trick

hope this helps

normally I will try to patch droid which should allow easyer reflash :)

keep posted !

thanks to desolateone1 for having tested all my tries and supplied nice info :P
[Motorola Milestone Android Development] desolateone1:
Anyways, here's information and a guide to compile 2ndboot.

https://new.droid-developers.org/wiki/2ndboot

Maybe we could add the patch to the kernel when 2ndboot is compiled. maybe someone will give this a shot?
[Motorola Milestone Android Development] MrFlooD:
Darktox, if you can send me the image I can try to flash. I have a 2nd Boot enable device.
[Motorola Milestone Android Development] Lupin Saiko:
Wow this looks really great. I have no idea how to apply a patch to a kernel, but if you can post those instructions and where to g_mot_android.ko I can try this out on the Droid for you.

I noticed your edit after I posted. For Droid do we just need to change that to module or do we also need to apply the patch?
[Motorola Milestone Android Development] Darktox:
normally no need for the patch

rebuilding android gadget driver as module will allow to have the usb resource freed when we want to start PSFreedom

test are ongoing ....
[Motorola Milestone Android Development] Lupin Saiko:
Well, if you need someone to test stuff let me know. I have toolchain as well as the source for 2.6.32 and 2.6.29. Been trying to crack this nut for 4 days now :D
[Motorola Milestone Android Development] MrFlooD:
Quick Question, What ROM are you currently testing with?
[Motorola Milestone Android Development] Darktox:
Droid does !

here is the droid one !

enjoy !

PS: this is a quick hack need to refine it to enable dynamic loading of usb :)
[Motorola Milestone Android Development] Lupin Saiko:
What kernel does this need to be applied too? Im getting an error:

patching file arch/arm/configs/sholes_defconfig

patch: **** malformed patch at line 17: CONFIG_USB_ANDROID_ADB=y

I assume lines 17 and 18 should start with "-" so I added that and then got this error:

patch: **** malformed patch at line 19: diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile

Im trying to patch against 2.6.32 as you said so, I dont know whats up. Probably just some typo's.
[Motorola Milestone Android Development] Darktox:
normally this patch sould apply on K32 builds

now more work need to be done on the driver itself :)
[Motorola Milestone Android Development] invertedoutput:
So it's looking a bit more grim, eh?
[Motorola Milestone Android Development] Darktox:
what do you mean by grim ?

patch should apply with

git apply droid.patch

:)
[Motorola Milestone Android Development] invertedoutput:
I just mean it looks like theres still a bit of work to do, but I hope something can be done.

I'll let you guys continue working on it, good luck!
[Motorola Milestone Android Development] Dexter_nlb:
Sorry, but asking for a kernel fix in a milestone area, where no kernel is open yet, and we still lack the keys for compiling a signed kernel.

It might be possible with workaround, but trying to change "zimage" or do kernel compile with 2ndboot not working, makes no sense, we are talking changes to a signed kernel.

Who would buy a £500 milestone, turn it off and run it in a environment without mobile functionality just to start a game on ps3?

do remember the "dongle" needs to be attached throughout the use of the game being played, so thats like "no-phone-during-play".

I understand the urges , but dont understand the believers, making a kernel changes without having the option to use it, makes any unrealistic purpose not worth spending time on?

alternate, buy a cheap htc magic, with the right chipset, and if its really working on htc's phones, you got a quite cheap solution there.

that phone can easily spend the rest of its life as a usb dongle :-)

Involving Droid dev's might at least confirm if a droid/milestone hardware is compatible, but that said, its not an option for milestone.

other workarounds needs to be looked into, getting the usbdevice released.
[Motorola Milestone Android Development] Darktox:
Dexter_nlb:

agreed on milestone since only development unit will allow it to be used

but i have ported it on droid and the game is to have the driver loaded dynamically

my plan is at the end having an apk and a boot image the android application will modify a property and load with the help of init.rc the right driver (hack or usb)

the dongle is only needed at bootup...

and it can be done.

And for me 1 millon droid user if only 1% can use it on a PS3 i'm happy with that :P

anyway yesterday we managed to make droid load the driver with the modified kernel

here is the log : http://pastebin.com/DUi2gqae

after some examination we need a wakelock to prevent musb bus to suspend ...

so next step is to add to psfreedom driver a wakelock to prevent suspend :)

this night i'm a little ****ed up so i may be able to look at it tomorrow

on this newz have a good night allz

BR

Guilhem
[Motorola Milestone Android Development] invertedoutput:
Haha, take it easy Darktox. Enjoy your night. Your optimism is appreciated!
[Motorola Milestone Android Development] jamezelle:
I shall have to take a look into this, i have no ps3 but would like to see this working for those of you that have one.
[Motorola Milestone Android Development] Drackula:
I have a droid and a PS3 and would be willing to test for sure. Send me the code and tell me how to install it. I am currently running a Chevy kernel. For droid would it not make it easier to see if P3 or Chevy would help with the kernel stuff?
[Motorola Milestone Android Development] kiaz:
Darktox & al,

We got it working!

I implemented the wakelock as you suggested, but that didn't change anything, however, KaKaRoTo suggested to disable all the dmesg logging, and it worked both in droid and omap device.

All the extra logging was messing with the timings in the module. :-p
[Motorola Milestone Android Development] gizmo1908:
First i want to thank the people that are working on this. Luckely this doesnt look like the desire forum where people demanding (!?) Ports.

Second, does this mean it works on the milestone to or is this only for droid?
[Motorola Milestone Android Development] Dexter_nlb:
i think video's showed and explanations from those that hacked it, that the dongle could not be removed at any time during use?
[Motorola Milestone Android Development] Darktox:
ok thanks for you support ^^ and as you can see it worked :D

anyway as per my understanding all fake devices are removed from the HUB at the end of psfreedom exploit. but i can be wrong this is not my part. I'm nore interested in kernel hacking.
[Motorola Milestone Android Development] kiaz:
I'm insterested in kernel hacking and getting linux support back in my ps3! :-)

Anyway, I suggest perhaps some optimizations in psfreedom and, maybe to remove some spurious stuff from the hacked kernel, since this was after all, a timing issue.
[Motorola Milestone Android Development] AndroidXDA:
Somebody have lucky and work in Milestone good ?
[Motorola Milestone Android Development] Dexter_nlb:
so can you confirm whether the "dongle" can be removed after bootup of you need to have it attached during use?
[Motorola Milestone Android Development] desolateone1:
It can be removed. The PSJailbreak team made the PS3 crash if the dongles was removed. Mathieulh and his team removed said "feature" in psgroove.
[Motorola Milestone Android Development] federicoponl:
Dexter

the "original" dongle can't be removed but this opensource version can be after the boot of the ps3.

do you think that we can use 2ndboot to use psfreedom on our stones?
[Motorola Milestone Android Development] Dexter_nlb:
@desolateone

thanks!

so now its more fun to use i guess..
[Motorola Milestone Android Development] desolateone1:
No problem.

Now I just need a blackcat/teensy/whatever since we probably won't be seeing a milestone port, at least not anytime soon...

We should even be seeing cfw soon :D
[Motorola Milestone Android Development] P^(Awsme):
So basically what your saying is the milestone has not been ported yet and need to buy a USB dev kit... Hmm might as well give porting the droid to the milestone. Any pointers???
[Motorola Milestone Android Development] Dexter_nlb:
i have not yet heard of a working 2ndboot, only rumours, so i didnt test it.

and secondly that rumour mentioned only 2.0.1 roms would be able to work with this 2ndboot.
[Motorola Milestone Android Development] gizmo1908:
too bad, i have a milestone and a psp... both dont work (yet):(
[Motorola Milestone Android Development] Soldia1:
so cant i jailbreak my ps3 with my milestone ? is it because of the signature verification ? :(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:mad:
[Motorola Milestone Android Development] Dexter_nlb:
hack was closed by sony thursday..

so even if you stayed on 3.41, you would be banned on PSN, when you got tired on not having new games/demos with 3.41.. even the proxy hack was temp..
[Motorola Milestone Android Development] gizmo1908:
who cares, its just a matter of time before we are able to enjoy the latest releases, and about psn, i dont really care about that, i bought my ps3 only for this. Just like my JTAGged 360:)
[Motorola Milestone Android Development] Dexter_nlb:
you should indeed... no online gaming, no new games etc... so its important they find a new hack, or your new investment becomes a very expensive toaster..
[Motorola Milestone Android Development] gizmo1908:
But the thing is they will find it, they always do. I dont like online gaming so i dont need it. And the newer games will also work with some workout.

And you can always use it as a bluray player:)
[Motorola Milestone Android Development] Dexter_nlb:
again, you might be positive about it, but its still an expensive toaster..

it lasted 4 years before they found this hack, do you feel you can wait another 4 years for another 3.42 update when others has live feeds, ps3 move etc.. all the new ones when you're on the old 3.41 and problably unable to play the new GOW 5 and other new games coming over the next 3 years..

you're lucky you only paid alot for the ps3, and not the dongle as well.

and btw,

ps3 is only a 50% BD player, when you cannot do BD-Live, or update to BD 3D disc when it is available in the next few months time. or get new BD updates when they come out.

but we might be in luck, but since Sony can close it so easily, i feel it a lost course for now..need a real hardware hack to get around's sony fw updates.
[Motorola Milestone Android Development] federicoponl:
Hi dexter, i think that you are being so negative with this hack

with this bug we can patch lvl1 & lvl2 calls and some scenners are looking to make a cfw to be loaded from an usb stick

Anyway i'm making a picboard to run this exploit with the need of my stone

best regards