yashsingh1/xdaforums huggingface dataset:
[Milestone XT720 General] Mioze7Ae:
OK! So now you have bootloops on XT720 with the 80.94? But you do boot as far as the animation? Have you tried flashing an XT720 stock sbf with the new bootloader?
[Milestone XT720 General] fjfalcon:
So how have you did it?
[Milestone XT720 General] ylt04:
Good! I am trying it now:)
[Milestone XT720 General] Knoedelkopf:
anyone has success ??
[Milestone XT720 General] Mioze7Ae:
I tried replacing the RDL03 in BL_8094_umts_tcu_Consumer_replacer with the Milestone XT720 RDL03 from US_STR_U2_04.1E using "SBF / MBN Depacker" (1.2 alpha3) running under Mono on linux. With that change sbf_flash made it past the ramloader error and rebooted into the ramloader correctly, but then it failed on CG30 (phone survived):

SBF FLASH 1.11 (mbm)

=== firmware.sbf ===
00: RDL03 0x82000000-0x8204CFFF EF88 AP
01: CG30 0xB0020000-0xB005FFFF 16FD AP
02: CG32 0xB0160000-0xB017FFFF E2CE AP

Milestone found.
>> uploading RDL03
Uploading: 100% OK
>> verifying ramloader
-- OK
>> executing ramloader
Milestone found.
>> sending erase
>> uploading CG30
!! unexpected response
--(9) [02]ACK[1e]ADDR
RX(9) [02]ERR[1e][83][03]09
upload failed at b0020000/b0060000
!! failed
>> rebooting
[Milestone XT720 General] Mioze7Ae:
Can you please explain in more detail what you did? Korean is OK, we'll find someone to translate.
[Milestone XT720 General] fjfalcon:
Looks like that an address error.

Oh.. if we only knew address of our cg30&cg32.

Btw in future i recomend to use mine broken xt720 for that, cause your phone and youself are very important to our community.
[Milestone XT720 General] Mioze7Ae:
I used the lastest sbf_flash to dump our tables. Our CG30 is at the same spot:

CG30 0xB0020000-0xB00BFFFF mbm

I can't see a CG32 on our phone though... but it seems to reside inside CG56:

CG56 0xB0160000-0xB01BFFFF bploader

Maybe that's the one you got an error about it being too short?

Full CDT table dump:

CG63 0xB0000000-0xB001FFFF mbmloader

CG30 0xB0020000-0xB00BFFFF mbm

CG55 0xB00C0000-0xB015FFFF mbmbackup

CG56 0xB0160000-0xB01BFFFF bploader

CG31 0xB01C0000-0xB021FFFF cdt.bin

CG38 0xD0231000-0xD03BCFFF pds

CG34 0xB03BD000-0xB041FFFF lbl

CG57 0xB0420000-0xB0482FFF lbl_backup

CG43 0xB0460000-0xB04BFFFF cid

CG41 0xB04C0000-0xB063FFFF sp

CG61 0xB0640000-0xB069FFFF devtree

CG42 0xB06A0000-0xB073FFFF logo.bin

CG44 0xD077A000-0xD07DCFFF misc

CG35 0xB07A0000-0xB0B1FFFF boot

CG45 0xB0B20000-0xB0EDFFFF bpsw

CG47 0xB0EE0000-0xB135FFFF recovery

CG33 0xD13FB000-0xD1D63FFF cdrom

CG39 0xD1D64000-0xDEBA3FFF system

CG40 0xDEBA4000-0xE58F3FFF cache

CG37 0xE58F4000-0xF0B7CFFF userdata

CG36 0xF0B7D000-0xF0D6BFFF cust

CG53 0xCFD80000-0xCFF7FFFF kpanic

CG54 0xCFF80000-0xCFFFFFFF rsv
[Milestone XT720 General] sktjdgns1189:
I got XT720 80.89 bootloader..

I got XT720 80.89 bootloader..

Upload it?

저에게 XT720 80.89 부트로더가 있습니다.

Upload 할까요?

그리고 bootanimation 무한 반복이 bootanimation 까지는 뜹니다.

그 후 bootanimation 이 멈춥니다.

켜지지 않습니다.

저는 원본 Xt720 bootloader 의 .hmg 파일과 XT701 bootloader 의 .hmg 파일의 checksum 부분만 적절히 붙여 넣었습니다.

영어 실력이 없어 한국어로 설명한점, 미안합니다.
[Milestone XT720 General] fjfalcon:
AFAIK, if you have change xt720 bootloader flashed - that version will be 80.94 or other that you flashed..
[Milestone XT720 General] Mioze7Ae:
I think maybe it's the opposite of what I tried. I took the XT701 bootloader.sbf and substituted the ramloader with an XT720 one. I think he took an XT720 80.89 bootloader.sbf and replaced the bootloader code group with the XT701 versions.

sktjdgns1189 -- is your phone still bricked? Do you have a flashable XT720 80.89 bootloader? If yes, please upload it, I don't think we have that.
[Milestone XT720 General] sktjdgns1189:
XT720 Bootloader

XT720 Bootloader

80.86, 80.89
[Milestone XT720 General] fjfalcon:
Thanks! Succesfuly booted! =)

But i think that locked?

Will try to flash mine boot.img.

cheater@chernyak ~ $ sudo fastboot flash boot boot.img
sending 'boot' (2978 KB)... OKAY [ 0.281s]
writing 'boot'... INFOimage bigger than partition
FAILED (remote failure)
finished. total time: 0.917s
cheater@chernyak ~ $

Damn =(

Tryed to restore mine boot.img with openrecovery - same thing, said - restored, but booted to default one.
[Milestone XT720 General] Mioze7Ae:
Well, I think that bootloader is locked, but the error is that your kernel is too big ;). You can try that boot.img I made that just changed the uname strings inside the stock kernel. It's exactly the same size as the stock kernel but with an invalid signature (http://xdaforums.com/showpost.php?p=11975260&postcount=94)
[Milestone XT720 General] fjfalcon:
That strange, cause size are one.
[Milestone XT720 General] Zachary57:
Have you managed to bring in CM7 XT720 ?
[Milestone XT720 General] mchlbenner:
Hi any luck on the cm7 yet
[Milestone XT720 General] Mioze7Ae:
Not yet. I'm still trying to figure out the bootloop problem on XT720. The logcat and dmesg don't seem to have any good hints :(.
[Milestone XT720 General] Zachary57:
Ok, I hope that you will success, thanks for all that you do for our phone.
[Milestone XT720 General] :
Maybe you can take a look at CM7 for the Milestone and the Defy and see if you can figure something out on their releases that you can use to get ours working?
[Milestone XT720 General] stlifey:
Hi,here my cm7 for xt701 device file

http://u.115.com/file/dn41ciag

because of the 2.6.29 old kernel,need to be revert two commit

https://github.com/nadlabak/android...mmit/8051f1b4a9ef8c4f57300523941a00fbc648439e

and

https://github.com/nadlabak/android_frameworks_base/commit/dd4a7614ecf8573b4ee71d181450dd1f6c23d681

in android 2.3.4,libs/audioflinger change to services/audioflinger

my cm7 rom use the libaudio.so from the rom of milestone 2.1,so have no fm radio:mad:

thanks to nadlabak:D
[Milestone XT720 General] mchlbenner:
Will this work on xt720 and were is the download for 2.3.4 all I download was a file about 17 MB?
[Milestone XT720 General] :
No. It won't work on the XT720, but since there is an CM7 for the XT701 apperantly, some dev here could port it to the XT720.
[Milestone XT720 General] jigglynuts:
I cant wait! I have been waiting for cm7 for so long.
[Milestone XT720 General] syrenz:
I'm confused, how is this any different for us now as opposed to when this thread was started? What does this latest update by Stifley mean for us?
[Milestone XT720 General] jigglynuts:
Progress. It is just one step closer to having a CM7 port!

As much as I am enjoying the new MIUI final V2 I still anticipate this very much. Keep up the good work!
[Milestone XT720 General] syrenz:
Yeah, but in what way? I don't really understand how this improves our current situation.
[Milestone XT720 General] Mioze7Ae:
It helps us understand what he had to do to port to XT701 and he's giving us a hint about what we need to do to port CM7 to our ancient kernel (A853 started on the eclair kernel but switched to the froyo kernel later, XT701 can build their own kernel; others Defy, Droid X etc use froyo kernel). As far as I can tell, everybody else running CM7 has froyo or later kernels.

If you're curious, this is where I currently am in my efforts:

Initially I was trying to do a binary port, but I've run into linked library problems when substituting what I think are the correct files for our device. So, I'm going the from-source route now. My current obstacle is getting a device/vendor setup working for XT720 so we can build from source. Initially, I initially tried starting with AOSP eclair because that's the closest to our original ROMs and I figured there would be the fewest challenges, but it seems like the build system changed a lot for froyo and I couldn't find a lot of guidance for setting up for building eclair (but I could be wrong about that, this is all pretty new to me). At least it seems superficially different between eclair and froyo, i.e. the entire device/ directory doesn't seem to exist in AOSP eclair... so after some waffling I decided to focus on froyo first.
[Milestone XT720 General] sohrab.naushad:
Thanks for the work :) you guys sound so smart!
[Milestone XT720 General] mrJackiLL:
hi all. Is there any success?
[Milestone XT720 General] Mioze7Ae:
Ok, so I'm now also stuck at that FMradio compile error you PM'd me about, but your github's disappeared so I can't see how you finally got around it :D. I think you're saying here that you got past the link error by substituting libaudio.so from the Milestone A853 instead? Earlier I thought you were talking about using libaudio.so from Milestone XT720 2.1, so I think I got confused.

Damn that link error is really strange. I understand what you were talking about now ;) Where the hell are those symbols... I can't find them anywhere. Maybe they're hiding in an apk or something... I'm about to tear all my hair out.

[Where's eSu.Matrix? Do your thing.]

For those that are curious (and hopefully more knowledgeable than I am) this is the error:

libelfcopy: Warning: Range lists in .debug_info section aren't in ascending order!
libelfcopy: Warning: Range lists in .debug_ranges section start at 0x810
target Strip: libmediaplayerservice (out/target/product/sholest/obj/lib/libmediaplayerservice.so)
target Executable: mediaserver (out/target/product/sholest/obj/EXECUTABLES/mediaserver_intermediates/LINKED/mediaserver)
/home/mioze7ae/android/cm6xt/build/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld: warning: libcamera_client.so, needed by out/target/product/sholest/obj/lib/libcamera.so, not found (try using -rpath or -rpath-link)
out/target/product/sholest/obj/lib/libaudio.so: undefined reference to `android::AudioParameter::keyFMLaunch'
out/target/product/sholest/obj/lib/libaudio.so: undefined reference to `android::AudioParameter::keyFMRouting'
out/target/product/sholest/obj/lib/libaudio.so: undefined reference to `android::AudioParameter::keyHDMIRouting'
collect2: ld returned 1 exit status
make: *** [out/target/product/sholest/obj/EXECUTABLES/mediaserver_intermediates/LINKED/mediaserver] Error 1
mioze7ae@f4ckmoto:~/android/cm6xt/build$

So basically libaudio.so has references for android::AudioParameter::keyFMLaunch etc but we can't find them on the phone to add them to the proprietary files. Grep says libmedia.so has those strings, but on nadlabak's CM6, libmedia.so is a compiled file and I haven't figured out yet how to tell whether libmedia.so is exporting those symbols or also importing them... Time to learn objdump I guess.
[Milestone XT720 General] Mioze7Ae:
Ok, I think they are defined in libmedia.so, if I've taught myself to read these correctly using google:

$ ~/android/cm6xt/build/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-readelf -sW /home/mioze7ae/ROMs/xt720k22/system/lib/libaudio.so | grep AudioParameter | grep key
209: 00000000 0 OBJECT GLOBAL DEFAULT UND _ZN7android14AudioParameter11keyFMLaunchE
354: 00000000 0 OBJECT GLOBAL DEFAULT UND _ZN7android14AudioParameter12keyFMRoutingE
391: 00000000 0 OBJECT GLOBAL DEFAULT UND _ZN7android14AudioParameter10keyRoutingE
457: 00000000 0 OBJECT GLOBAL DEFAULT UND _ZN7android14AudioParameter14keyHDMIRoutingE

$ ~/android/cm6xt/build/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-readelf -sW /home/mioze7ae/ROMs/xt720k22/system/lib/libmedia.so | grep AudioParameter | grep key
210: 0005fb5c 4 OBJECT GLOBAL DEFAULT 15 _ZN7android14AudioParameter9keyFormatE
337: 0005fb64 4 OBJECT GLOBAL DEFAULT 15 _ZN7android14AudioParameter13keyFrameCountE
656: 0005fb68 4 OBJECT GLOBAL DEFAULT 15 _ZN7android14AudioParameter11keyFMLaunchE
979: 0005fb58 4 OBJECT GLOBAL DEFAULT 15 _ZN7android14AudioParameter15keySamplingRateE
1077: 0005fb6c 4 OBJECT GLOBAL DEFAULT 15 _ZN7android14AudioParameter12keyFMRoutingE
1207: 0005fb60 4 OBJECT GLOBAL DEFAULT 15 _ZN7android14AudioParameter11keyChannelsE
1273: 0005fb54 4 OBJECT GLOBAL DEFAULT 15 _ZN7android14AudioParameter10keyRoutingE
1513: 0005fb70 4 OBJECT GLOBAL DEFAULT 15 _ZN7android14AudioParameter14keyHDMIRoutingE

I think this is saying those values are undefined in libaudio.so, but they are defined in libmedia.so. In the meantime I've substituted the A853 libaudio.so and compile seems to gave gotten past that part (still chugging).

Edit: died later during build of omap3 stagefright. I think I need to include the OMX files in proprietary, nadlabak used to do that and switched to building them recently. I found copies of stlifey's device/vendor source and that's what he did too. I'm calling it a night, though before I start making mistakes. I've been following milaq's resurrection of nadlabak's CM6 for the Milestone at the moment. It seems that getting CM6 up first is easier.
[Milestone XT720 General] :
Actually, your make-process didn't fail because of the fmradio but because of the libcamera_client.so not being found. Dunno if you included the libcamera_client.so in the source, else you should tell -rpath where to find it.

Thanks for doing this great work so far though! :)
[Milestone XT720 General] karlxx:
Ahh, excellent progress.

I can almost smell the CM7 (and hence GB) success!
[Milestone XT720 General] firzen_net:
Hey developers. I just used nandroid to restore the latest -and final - CM7 for the XT701. I'm not sure if my experience can help, but whatever. Frankly, I'm wishing theres someone around here that can help me fix the problems I'm facing with this modded 2.3.4.

Keep in mind the latest CM7 for XT701 is called :

XT701_CyanogenMod_7.1.0_11.06.28

I can't post links yet, so you'll have to find it yourself. At least this is the latest I could find with my limited chinese and knowledge

Booting has no problems. Everything runs smoothly. It is freakishly fast, less than 20 seconds almost.

MAJOR PROBLEMS:

1.NO SERVICE:mad:. my gosh was I disappointed because I knew right away this is something I couldn't ignore.

The worse part is that my phone keeps teasing me by sometimes clinging onto service and sometimes not. The highest I've gone is 2 bars. It goes on and off (mostly off).

When it is on service, I tried calling it and everything is fine on both ends of the call.

2. NO USB :mad:. This version doesn't have google apps, so I had to download them online, but I couldn't even transfer the files into my phone. Weirdly, the phone read my sdcard, but it can't connect to usb :S. it can wallcharge, but can't sense the computer usb.

These are the main problems that must be fixed as soon as possible. The networking is really horrible. It always connects for a while, and then stops. I'm pretty sure after writing this and playing around with CM7, I'm going to have to restore 2.1update-1.

other problems:

-rebooted once so far by itself.

-camcorder app froze once, second time recording/saving file was no problem

-wifi unstability - took me twice to connect after rebooting

I really wish someone could make nice backup file for xt701 users as well :(. This feeling of seeing it right there, being so close to fully usuable is just terrible.

Mainly, I'm surprised as hell by how fast the CM7 is. it really lives up to the hype. My XT701 is already overclocked and using other CPU toggling apps, and this still feels fresh and new. Galleries, camera, EVERYTHING loads so much faster. Booting up, even the OR seems faster XD. It is quite relieving, but heartbreaking at the same time how this CM7 is.

And finally, I have a question. is it possible for me to partly restore my old nandroid backup? Like can I not restore the system and restore the other things, so then I keep the "system" CM7 and have everything else running?
[Milestone XT720 General] syrenz:
I had the same exact thing happen after rooting and flashing a ROM on my old phone (Huawei U8100)... Not sure why

Argh... really want this thing :D
[Milestone XT720 General] Knoedelkopf:
someone posted "bootloader replacer files" a few months ago.. did that help anything ?!
[Milestone XT720 General] Mioze7Ae:
Nope. They didn't work. The phone refused to flash them. IIRC, the bootloader seems to download and then try to run before it is flashed. They always crashed with errors when trying to run.
[Milestone XT720 General] stlifey:
You can slove the FM problem:D

https://github.com/CyanogenDefy/and...mmit/9f3b9abfc6f247ee8331fc6e7e3d12c201d1b744
[Milestone XT720 General] Mioze7Ae:
I just got a compile of CM6 to complete using proprietary files from XT720 (files from WanHu/Motoroi)! It's based on nadlabak/milaq's CM6 for A853 and stlifey's XT701 device/vendor setups. I have not tried to flash or boot it yet, it's just finished compiling completely. The boot scripts are currently not updated for XT720 and the 2nd-init is not incorporated. I'll give it a quick try, but I'm skeptical about a successful boot tonight. Just wanted to post an update. :D
[Milestone XT720 General] JiroPrinz8:
Let's give it a try!!

No problem trying it out on my phone.. Just post it when ur ready MZ..!;)
[Milestone XT720 General] Mioze7Ae:
It is not yet working, i.e. it's stuck at (M) after apply and will require manual debugging/editing of the boot/init scripts. If you're impatient with my slow progress and want to have a go at fixing it, please PM me, I will give it to anyone that asks. ;) It's just nowhere near a state that I want to devote time to the forums discussing problems and workarounds and I don't have adequate free time to hold hands on this at the moment. Over the next week or so I plan to get my github repository in order with the modifications in my current build tree and verify that a fresh checkout will build successfully (in the sense that an OTA package is produced, but not in the sense that it works).

Edit: I've changed my mind. The OTA package didn't have OpenRecovery support, so you had to manually install OpenRecovery using adb or you would be back to flashing sbf and that was what I was mostly concerned about. Instead here's a nandroid with OpenRecovery pre-installed (that should be mostly harmless if you make a backup first--but no guarantees): http://www.multiupload.com/MYO9QVAJAE
[Milestone XT720 General] khalpowers:
Actually I giveup already to mod xt bcoz of our kernel is still stuck with old kernel eclair....really frustrated on this..so we can get optimum result from froyo or Ginger kernel...

What is a Kernel? The central component of most operating systems. Its responsibilities include managing the system’s resources (the communication between hardware and software components) and can provide the lowest-level abstraction layer for resources (especially memory, processors, and I/O devices)

[Definition Courtesy CyanogenMod Wiki]
[Milestone XT720 General] Mioze7Ae:
I hear that! It is quite frustrating, but I'm a stubborn donkey--I promised to use this phone for two years and I haven't even finished one yet ;) I'm still actually wondering how much the kernel changes between releases and if it even matters. If we were fussing over 2.6.29 and 2.6.32 on a desktop or laptop on hardware that was supported in 2.6.29 I would just think it's an absurd discussion. I mean, I update my computers from linux 2.6.x point release to 2.6.x point release all the time but it doesn't affect the userspace much if at all unless you need support for new hardware (which we don't). So, I've decided to stop caring about kernels. We do have fastboot if we get really, really desperate. Who knows, maybe SKT will get new bootloaders later this year.
[Milestone XT720 General] JiroPrinz8:
Not really impatient, more like wanna see where we're at so far.. :D Downloading now, and don't worry that I have to flash back to SBF, i've been doing that almost every 2 days lately, since the wanhu mean green came out.. LOL
[Milestone XT720 General] Mioze7Ae:
Well, I'm pretty sure it will look very familiar... ;)
[Milestone XT720 General] syrenz:
heh. I made the same promise to myself when I bought it.

Glad to see there's some progress (I think?). Crossing my fingers and hoping a usable build is up before I go on vacation in a bit, but don't know how likely that is. Anyways, really appreciate the work being put into this :D
[Milestone XT720 General] firzen_net:
I'm not sure if the bootloader can fix any of those problems.

funny thing is that CM6 is in even worse condition. At least CM7 can receive calls. And it doesn't have any video/camera problems (for me at least).

I have to say, I think CM7 is a bit overrated. Although I don't really have long experience with it since I'm forced to restore my old one for service problems, it really doesn't seem THAT great. I think its more like a Rom which tweaks and optimizes the phone for you, instead of you doing the research and downloading/optimizing.

Another thing that takes time getting used to is the bloated amount of settings. There are a ton of settings, which is tedious. It took me almost an hour to optimize CM7 (such as turning off animations). Its really complicated. Fit for a developer i guessXD.

I've been using update-1 for a year now, so I am so used to the OS. Even if I could run CM7, I would still reconsider, cause its hard to get used to the new OS.
[Milestone XT720 General] Mioze7Ae:
Yeah, I don't think the bootloader is going help much with the problems you've reported, esp. since the bootloader isn't a problem on XT701. I think one thing to keep in mind is these ports are young and based on the A853 which is somewhat different. XT701 and XT720 are similar enough that we may able to collaborate to resolve the issues once XT720 catches up. Going forward XT701 has a big advantage in that modifying the kernel is possible, whereas XT720 is stuck on the Motorola-blessed eclair kernel.
[Milestone XT720 General] JiroPrinz8:
What can I say, I'm an optimist.. :D Like u said, stuck at the M logo, I didn't even bother backing up, as I'm thinking of what ROM to use next anyway.. So currently, i'm on stock 2.2.1 update-1.. LOL!
[Milestone XT720 General] :
Nothing has changed at all between the .29 and the .32 Else Motorola would've built Motoroi Froyo on .32

It's only for hardware indeed. Well, on phones that is. Linux on desktop is a different story.

I really like your work on CM6, but I'd rather see you trying on porting CM7 from the XT701. We have more to get from CM7 then from CM6. And I can help out with compiling errors.
[Milestone XT720 General] Mioze7Ae:
I feel going directly to CM7 is too big of a leap for me, so I'm taking smaller steps. At this point I'm just trying to get something (anything) built from source to run on XT720. nadlabak recommended starting with his CM6 port since that had previously worked with 2.6.29 on A853 (previously I'd been working on AOSP). I'd had problems checking out CM6 for Milestone, but milaq has fixed the tree recently. I'll try to get my current modifications uploaded soon so others can attempt things, too.
[Milestone XT720 General] easye420:
Mioze7Ae you are the man. who cares how long it takes. Im just glad your looking at it. i dont know enough so im no help. you can do it, i got faith in you.
[Milestone XT720 General] LibertyMonger:
Big Thanks

You guys are awesome we are all very fortunate to have you helpin us. I know you're doing it for yourselves as well but just think where we would be without ya's? I feel like a bum freeloadin off ya's lol, wish i could help or contribute some way but just want you all to know that you are greatly appreciated. I think more so with the XT720 than any other phone considering it isn't often we will get lied to about what our phone can do and getting stuck with it. You guy's are awesome and always eager to see what you do next! Thanks dudes!

Ps... I'm learning here and there and want to learn more, any advice for a starting point?
[Milestone XT720 General] Mioze7Ae:
I'm not sure I'm qualified to answer that, but I do know the feeling. It's quite overwhelming and it doesn't help that so little documentation exists. Do you have some ideas of things you'd like to work on? I would start with something that interests you but that isn't completely unfamiliar. If you're interested in compiling I think http://android.snkbitten.com/docs/How_to_Build_stock_AOSP-09-21-10.pdf was quite helpful as an introduction (despite the link formatting problems). Nadlabak's website is also very helpful. http://android.doshaska.net/
[Milestone XT720 General] sktjdgns1189:
I made init.rc and it booted.

But touch is not working
[Milestone XT720 General] Mioze7Ae:
Excellent! Can you post them?