yashsingh1/xdaforums huggingface dataset:
[Motorola Atrix 2] turffe:
WIP kexec

Sorry for trying to abandom this thread, but it's not completely dead... So I renaming thread to [WIP]. Just I don't now how to make this rom on ICS kernel. I'm always stuck on bootanimation or black screen... Now I'll try kexec by tcf38012 on this JB leak. Will post result soon. If it'll indeed success - we'll have working camera...

UPDATE: Kexec boot on BMM showed but I stuck on green led with blackscreen... WIll try now CM10.1 kexec kernel. I think I got blackscreen because I tried boot ICS test kernel wich not compatible with JB drivers....

UPDATE1: Flashed JBX kernel - it showed me vertical lines - were kexec hijack goes, but I'm stuck on that - because stock JB not supported...

UPDATE2: Trying CM10.1 kernel... Will post results soon... stuck on vertical lines...

Also I notified that other zip than dtrail cannt install it shows me instaliation aborted...
[Motorola Atrix 2] deveshmanish:
Well to save you some trouble the kexec kernels are ICS based they will not boot JB.

Now if you want to make JB kexec kernel that's a whole another story but i'll give you the outlines.

Compile a kernel from sts-dev stock-jb branch.

Add the kexec modules and a modified stock ramdisk all to /system/etc/kexec.

The stock ramdisk needs to be modified for mounting as loopdevb.

The kexec modules/binaries (uart.ko, etc) don't have to be rebuild.You can take those from say CM, only replace ramdisk and kernel.

Good luck

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

May the -Mass times Acceleration-be with You...
[Motorola Atrix 2] josuearisty:
It doesnt seem to be very easy. Hehe

What about getting the help from the guy who created the official jb rom with kexec for droid4?

Maybe he can tell us exactly what to do and as far as I know D4 and our phone are almost identical inside.

Enviado desde mi MB520 usando Tapatalk 2
[Motorola Atrix 2] 1BadWolf:
I have been tinkering with this for about a week now. One thing that seems odd to me is the build date for many (19) of the system apps is 8/1/2008, superuser build date is 6/14/2012 and the rest of the apps as well as ALL of the odex files build date is 1/10/2013. I don't know if all of that is irrelevant, but I was trying to make a 1% increment battery mod for this but SystemUI.apk ( 8/1/2008 build date) fails to decompile no matter what I do. Meanwhile framework-res.apk (1/10/2013 build date) decompiles/recompiles just fine. Does anybody know about the build dates I mentioned above and whether or not that would be an issue? I have never seen anything like that so I'm unsure....:confused:

Edit: OK, apparently I had a derp moment and forgot to install a framework to my PC prior to attempting to decompile. I got it now though and here's the 1% increment battery mod. I have only tested it on leak#1 but theoretically it should work for all the JB leaks. If not let me know and I'll get it taken care of. Download here:

http://db.tt/cycQg852

Reboot into your preferred recovery and flash the zip. If that's not enough instructions then you probably shouldn't be messing with your phone. Also, here is a "return to stock" flashable zip if needed.:

http://db.tt/KjnA30ll

Brought to you by time and relative dimensions in space.
[Motorola Atrix 2] josuearisty:
Did you try restoring this rom, this is a 4.2.1 based official jb leak.

To install it, you need to follow the same procedure we use to install official jb leak.

Im having some problems downloading this file, maybe because its too big.

Tomorow I try downloading at work because there connection is faster.

Here you have the link:

http://xdaforums.com/showthread.php?p=37816018

Enviado desde mi MB520 usando Tapatalk 2
[Motorola Atrix 2] 1BadWolf:
If you read through the thread, you'll see that it is not based on 4.2.1, it's a modified leak 1 with the build prop edited to say 4.2.1. _ghiottone posted a mirror and I'm downloading now.

Edit: it works with at&t phones but the camera still doesn't work.

Brought to you by time and relative dimensions in space.
[Motorola Atrix 2] josuearisty:
Alright, I know it was based on official jb leak, but I didnt know which was it.

Does anybody here have contacted the guy who created the official jb rom with kexec? My pc is broken so I cant help too much beyond flashing zip roms. :p

What is it exactly what happen with our phones that camera cant work?

Maybe hardware camera has differences or what?

Enviado desde mi MB520 usando Tapatalk 2
[Motorola Atrix 2] josuearisty:
I didnt know that we can use the same kernel for droid razr! When port to atrix2, we just need to change somethings, maybe libs and other files, almost like Defy and Bravo, internally both are the same with some little changes.

Enviado desde mi MB865 usando Tapatalk 2
[Motorola Atrix 2] deveshmanish:
Frankly I never was interested in JB(4.1.x)simply bcoz we have enough 4.2.2 ROMs which are better.

But since you've been so admant about it I'll try porting from droid 4 but I'll need testers.

If you're(or anyone else) up for the job PM me else I don't really see the point.
[Motorola Atrix 2] josuearisty:
I use hdmi very frequently, I also use the weptop on my TV on ICS and as it is the official rom we have 1080p video recording, in custom roms we dont have HD recording yet.

I could be a tester, the point is that it is official and everything is working.

I have a question and sorry for being like that, is there a risk of hard bricking my phone while testing? :D

Thanks for helping, we at&t atrix2 users will be very happy with it.

Enviado desde mi MB865 usando Tapatalk 2
[Motorola Atrix 2] turffe:
No since we are using kexec. Wich is hot reload custom kernel while device is booting.
[Motorola Atrix 2] josuearisty:
So, there is no risk of hard bricking?

Thats good!

I hope everything works!

Enviado desde mi MB520 usando Tapatalk 2
[Motorola Atrix 2] josuearisty:
Sorry for asking about ETA, hehehe is there any news about the rom?

Thanks for helping!

Enviado desde mi MB520 usando Tapatalk 2
[Motorola Atrix 2] josuearisty:
And..... is there any progress?

Let us know please!

Enviado desde mi MB520 usando Tapatalk 2
[Motorola Atrix 2] jaymccoubrey:
Id love to run a moto rom too
[Motorola Atrix 2] josuearisty:
I think we should wait for that guy or somebody who ports that jb kexec rom from droid4 or something like that, this is not all about mixing libs, there should be someone who can work with codes.

Maybe we alredy surender but the project should continue alive until somebody who works with codes tell us it is impossible.

Enviado desde mi MB865 usando Tapatalk 2
[Motorola Atrix 2] deveshmanish:
Work is being done on the front..

And not just porting but building it for a kexec base..

But asking about ETA's and stuff is really annoying..

Either do it yourself , or wait till someone does it...

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

May the -Mass times Acceleration-be with You...
[Motorola Atrix 2] josuearisty:
I wish I could work with it but I dont know, I was just asking because turfle told me that its impossible, but I think that if it was possible for another phone with almost the same specs internally, it could work for us.

At least we know you are working on it!

Thanks for your answer! A little bit rude though.

Enviado desde mi MB865 usando Tapatalk 2
[Motorola Atrix 2] 1BadWolf:
Be glad it wasn't me. He was much nicer than I would have been. Asking for ETAs on work that people do for free in their spare time is what seems rude, to me.

Brought to you by time and relative dimensions in space.
[Motorola Atrix 2] dtrail1:
I just found that thread. Regarding to the text ´to be found in the OP I can say that it's possible to make the Cam work

It's not because of a HW limitation but the driver. There is one single binary from the Cam driver which is closed source. This makes development so difficult.

But the cam can work on all stock based roms - whether kexec or not - we just need the closed ducati binary and not too much changes in the kernel side ducati stuff. It works - I did it on Razr already.
[Motorola Atrix 2] josuearisty:
For some reason when Im working on some project (not about phone nor android) but about videos with converting and adding subtitles and audios to them, when somebody ask me about when Im going to continue with the project, with all my internal peace I say DONT WORRY AS SOON AS I CAN!

I wait for that kind of answer sometimes, when I ask about something, but the world is like that and not everybody is the same.

Good, we hope you found it and can help us with it.

Thanks for all of them working on "making cam works on jb for atrix2 project"

Enviado desde mi MB865 usando Tapatalk 2
[Motorola Atrix 2] shubham412302:
Still camera drivers source can be obtained from frankwang.
[Motorola Atrix 2] turffe:
Again. Camera logcat. Stock JB with JB kernel via CID erasing.

Main problem with camera is: 07-24 10:42:51.319 E/CameraService(238): CameraService::connect X (pid 2326) rejected (invalid cameraId -1).
[Motorola Atrix 2] turffe:
ME865 ICS via CID wipe

Shortly about ME865 ICS. 1) Erasing /system. 2) Flashing my maded ZIP via BMM. 3) Installed aroma-fm.zip to check /system content (it's full - ZIP worked). 4) Flashing boot_china_ics.img (from .xml archive). 5) Reboot. In BMM china roms shows. 6) Phone will stuck on red led with black screen. 7) Phone panics & reboots to recovery.

I don't now why ME865 ICS via CID erasing wont boot... When Retail MB865 via CID wipe booting. Maybe this is why camera not working on JB??
[Motorola Atrix 2] josuearisty:
Did you restore an ICS backup or something like that?

This is what we did with jb, maybe proccedure should be the same as it was with jb backup.

Enviado desde mi MB865 usando Tapatalk 2
[Motorola Atrix 2] turffe:
I can't find any ME865 ICS dump or nandroid, so I mading mine from xml. And it's works because contents gets copied. I think we need nandroid restire, when it will boot.
[Motorola Atrix 2] _ghiottone:
If I understand correctly you need one ME ICS backup?

Here it is my backup - NOTE: Default language is Hungarian. Change the language settings: "Beállítások" --> Személyes - "Nyelv és bevitel" --> "Területi beállítások" --> choose Enghlish or Chinese, etc... this rom is based on this ME ICS version:

Branding: Retail China

Version: 6.7.2_GC-180-EDS-20-31 FULL

Android Version: 4.0.4

Bootloader Version: N/A

Webtop version: WT-3.0.0

Requires RSD Lite 6.0

Requires Moto Android (De)packer 1.4 to edit.

DOWNLOAD

Md5: 6C3F61AD918F9B8B7FCFED9796E2C60F

If you have camera problem try this modified Razr JB camera app. There is MotCamera_mod_hun.zip in this folder, which contains a Razr JB camera app made by hansip87 and i translated to + modified (flash settings, etc)

Feature:

- Added ISO menu under Other Settings

- Added White Balance Menu under Other Settings

- ISO+White Balance functions only on every still capture mode, except Panorama

- 100% JPEG Quality

- Flash is turned auto as default

- Zero Shutter Lag Option to Force the mode

- Burst Count added into MultiShot to reduce storage requirement

How to Install:

- Place MotCamera_hun1.1.apk into /system/app folder and set permission to rw-r--r--

- Backup & delete the MotCamera.apk and odex from /system/app

- Rename the apk to MotCamera.apk

- Restart the Phone

This camera app is works only JB. On ME ICS: force close :( I hope it's work for you.
[Motorola Atrix 2] josuearisty:
Thanks to everbody helping with this project.

I will try this app when I arrive home! I hope it works!

Edit:

Didnt work :( I think the camera app is not the problem, it should be a cam driver just like dtrail1 said!

Enviado desde mi MB865 usando Tapatalk 2
[Motorola Atrix 2] josuearisty:
Hey turffe did you see these threads

KEXEC] STOCK to KEXEC Patch -- GSM/CDMA Patches

http://xdaforums.com/showthread.php?t=2372014

And this is the rom that we should port or something, this is droid 4 rom with stock kexec kernel, I think that this will take longer than we thought.

http://xdaforums.com/showthread.php?t=2199741
[Motorola Atrix 2] turffe:
You can try it. Restore nandroid on stock ICS & flash patch. But I think kexec might be last try. Because we need retry all thinks to boot on ICS kernel.
[Motorola Atrix 2] iamezio:
DON'T FLASH RAZR KERNEL , just don't .. config of the partitions is different so without the proper changes you can **** up your phone rally bad .
[Motorola Atrix 2] josuearisty:
Im not flaahing anything without some real dev puts his hands on it, I know that wrongs kernels can ****** up my phone :)

Thanks anyway!

I wish somebody can do something for us!

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] iamezio:
You maybe won't flash it .. but it was pointed out more to turffe that was suggesting you to "try" it .. without telling you it can **** up your phone .
[Motorola Atrix 2] josuearisty:
Hehehe yeah I know, but I wouldnt do it, I own 5 differents moto android and I have always known since I was with my cliq xt that wrong kernels can ****** my phone!

Turffe is a good guy, I know his intention wasnt bad :confused:

:p

Enviado desde mi MB520 usando Tapatalk 2
[Motorola Atrix 2] Ravikirancg:
you guys managed to get this rom on kexec or need some help?
[Motorola Atrix 2] jaymccoubrey:
Help would be great
[Motorola Atrix 2] josuearisty:
Good to see another real dev wanting to help us.

The main problem is that we want to have some official stock jb rom fully working.

There is an official stock jb for atrix2 but it doesnt work for at&t users, if we flash it, it bricks our phones.

There is a way to install this official rom via restoring system backup, but we have a problem with the camera, it doesnt work for us, we have tried somethings by mixing libs etc and nothing with the camera.

Some say that the problem is a driver, but I personally dont know anything about it.

We think that maybe using other stock jb rom with kexec or whatever from a similar phone like razr or droid 4 could work, but we really dont know what to do.

Maybe fixing the driver would be more easy or who knows.

Thanks!

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] Ravikirancg:
Built a kernel and it starts up just fine.. But I am having trouble with the ramdisk.. Will talk to dtrail1.. try and solve when I get time..
[Motorola Atrix 2] josuearisty:
Excellent! Hope you get what we need!

Did it work fine with a stock jb rom?

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] turffe:
ICS patch from AT&T not working (black screen & red led), but ICS patch from cdma_spyder christmas JB leak working. Bootanimation comes (but again bootlooping (not booting). Strange. Making nandroid of worked ICS patch now. I don't have any UART cable to post logcat. Maybe it's possible to get logcat from regular USB cable? or via BMM?
[Motorola Atrix 2] turffe:
Update: Will try full nandroid from Razr CDMA Christmas JB leak with included ICS patch. Will post result soon.
[Motorola Atrix 2] josuearisty:
Thats great! I hope we get something with this!

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] turffe:
That may not work razr /system is much bigger about 860MB (cdma_spyder is about 560MB), it may not fit to it, cause our /system is only 500MB, but I amaged to fit it in 495MB.
[Motorola Atrix 2] WarEduar:
is this working on AT&T phone?

Nandroid China JB leak (ICS patch included).zip
[Motorola Atrix 2] turffe:
LCD driver works, but bootlooping on bootanimation.
[Motorola Atrix 2] josuearisty:
System partition is bigger! System partitions size should be around a 1gb or more!

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] turffe:
Damn. That safestrap backup... Even I removed safestrap folder from /etc & installed BMM to main system, I lost BMM. So I need reflash AT&T fw via RSD. That's no good.
[Motorola Atrix 2] josuearisty:
Did you try restoring with bmm?

BMM does everything!

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] turffe:
I restored it with BMM & even if I manualy installed it from System keeper menu, on reboot I lost it. So I need reflash it with RSD. By the way we got JB leak with working LCD, but bootloop. Need logcat, if somebody have UART cable, can help us with logcat, because start is good (LCD driver boot ups). But it also need alot of work
[Motorola Atrix 2] josuearisty:
http://xdaforums.com/showthread.php?p=44376934

Did you take a look at this thread? Is a jb rom which can be flasheable with bmm, but I saw that we need to be on stock jb.

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] turffe:
Problems with camera. Like dtrail said it need closed ducati driver & some modifications in kernel (ICS or kexec).

Solve: LINK: http://e2e.ti.com/support/omap/f/849/p/236563/829273.aspx
[Motorola Atrix 2] josuearisty:
Now we need some dev who wants to help us with it!

We should contact now some of the devs for atrix2, to see if they want to help us.

Has anybody contacted the moto worker who is working with the 4.1 firmware? Maybe we can contact him to create one firmware working for us! :)

I must be crazy! :(

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] Ravikirancg:
Sry guys I haven't been of any help to you guys on this.. Too busy these days..

Anyway based on what you guys said above, did you try replacing the ducati-m3.bin from your ics?
[Motorola Atrix 2] josuearisty:
No problem with it, we know your situation.

Doing things like this, you are helping us. Let try this if I can know.

Thanks!

Enviado desde mi MB520 usando Tapatalk 2
[Motorola Atrix 2] turffe:
ducati-m3.bin binari is only in CM. I can't find it in any stock ics & you said that it only for camera, so I don't think it will solve bootlooping problems.

I need logcat, but some people say that impossible on stock roms because adb gets not enabled at boot. So I don't now how to get logcat. I need logcat to find that files is bad. Any suggestions for logcat Ravi?
[Motorola Atrix 2] Ravikirancg:
Not possible.. Look for it in system/etc/firmware

What bootloop issue are you talking about?

And for logcat, you can edit the build.prop or default.prop to include a line that enables adb..

Don't remember exactly what it is.. Something like

ro.secure=0

ro.debuggable=1

Google it up.. Also try logcat extreme..
[Motorola Atrix 2] josuearisty:
I wish I could help, but my pc is broken.

I will try it on a friends pc.

I have a question for you, but I know you are very busy building roms, coding, tweaking and many things more.

Could it be possible that you try this rom, restoring the backup, I think you dont own the att version for mb865, but maybe if do it this way you can see the problem with camera (maybe)

I know non att phones can be flashed with the rsd lite, but maybe if you try it the way we do, the problem will be there and it could be easier to find the problem.

We just restore system and kernel but there should be something else missing, who knows!

But what about the idea of porting the jb droid 4 rom with kexec? This is something that could work for everybody.

Thanks!

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] turffe:
Sorry. I'm wrong ducati-m3.bin is also in stock ICS.

/default.prop (and it's in / & not in /system (in system is set to ro.debuggable=1) get rewrited after every reboot. It again refuses to ro.secure=1 & ro.debuggable=0. Tried changing permissions to rrr, but still no luck...
[Motorola Atrix 2] josuearisty:
As far as I know, after you open camera app and receive the error, in command on the pc with the phone connected, type "adb logcat" you can copy it and paste it in notepad, I dont remenber how to save it directly to a file.

Its something like "file.txt > adb logcat" dont remember exactly.

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] turffe:
I need logcat from bootlooping state, but ADB gets not enabled. For test I tried on stock ICS & it again chainges to ro.debuggable=0 & ro.secure=1. I also tried on JB with ICS kernel...

Again you mentioned camera: I have logcat from earlier tryings & I know main camera problem in logcat.
[Motorola Atrix 2] uwanfodawin:
sad no 4.3 update from official :mad:
[Motorola Atrix 2] XploitMachine:
Let alone 4.3, even official 4.1 (at least for Asia & ATT) and 4.2 weren't released.
[Motorola Atrix 2] Ravikirancg:
ok I tried to boot miui on my device using kexec.. here is a part of the log where things are going bad..

http://pastebin.com/yiW7EgLP

its also the ducati that causes issues with cam I guess.. and [MENTION=4739647]turffe[/MENTION] what is the boot loop related issue you have there? and the default.ptop should be in data.. you should edit that.. or better, edit the build.prop..

go through the build.prop and the init.rc from the ramdisk.. look for things related to adb and debugging..

EDIT: I just read your op again.. why do you want to boot jb with ics kernel? that might only cause more issues..

UPDATE : I solved that issue.. Need to fix ramdisk now..
[Motorola Atrix 2] josuearisty:
Excuseme for answering such stupid question, are you trying to boot stock jb with a kexec kernel?

Would please let me know also whats the function of ramdisk?

Thanks!

Enviado desde mi MB865 usando Tapatalk 4
[Motorola Atrix 2] Ravikirancg:
Yes.. That's what I am trying..

Ram disk contains scripts and files that are run when your device just starts up.. Kinda of startup script..
[Motorola Atrix 2] uwanfodawin:
what is the different between this rom and wanggjjost thread?
[Motorola Atrix 2] josuearisty:
This is only for at&t atrix2 users, because we cant flash it via rsd lite because it bricks our phones.

this is the same rom by the chinese guy, but this is another way to flash it and use it and as you can see camera isnt working for us!

Enviado desde mi MB520 usando Tapatalk 2
[Motorola Atrix 2] stars2:
Camera is working in this cm10 rom by wanggjghost (this is for ics kernel only)

http://xdaforums.com/showthread.php?t=1869692

The ducati-m3.bin from this rom, can't solve the camera problem?

Or If I flash (with dd) the devtree from jb rom, this is hardbrick my att mb865?
[Motorola Atrix 2] turffe:
Sorry for being out of update for half year. But I think I can try it again... Found some older posts of Jim for successful boot on ICS kernel (with modem issues). Jim's post - http://xdaforums.com/showpost.php?p=37441164&postcount=79. Also found leak2 version number - fastboot-p3_edison-edison-user-4.1.2-6.7.2_GC-385-403-release-keys-ChinaRetail-CN_chn.tar.gz.
[Motorola Atrix 2] josuearisty:
Thats great, I wish we have a working jb stock rom, sadly all custom roms are laggy and within some days after installing a rom it becomes really slow.

Is camera working? Is there a way to port razr stock jb or d4?

Enviado desde mi MB865 mediante Tapatalk
[Motorola Atrix 2] turffe:
ICS kernel bootloop logcat

I pushed from /data/tombstones, in all other Ravi's suggested /data folders are empty (dontpanic, logger, kernelpanic). So still maybe some hint what's goes bad...
[Motorola Atrix 2] josuearisty:
Sorry but I dont get it!

Enviado desde mi MB865 mediante Tapatalk
[Motorola Atrix 2] turffe:
Little update:

Maybe someone willing to help & try to flash Mearet fw to at&t device via RSD Lite? I asking this because on New Zeland phones JB leak isn't working like on at&t phones... But they succefully can flash Retail Mearet fw which converts NZ phones to Retail one. With this they can flash JB leak from 6.7.2_EDEM-18-Mearet fw.

If it fails on cdt.bin you will just get Boot Failure screen & you can reflash Stock at&t fw via RSD.

Source Link: http://xdaforums.com/showpost.php?p=40456435&postcount=2.

Mearet fxz DL link - http://www.4shared-china.com/zip/BaOp9SZF/672_EDEM-18-MEARET_cfcxml.html
[Motorola Atrix 2] josuearisty:
Thanks for the update but I think it should be tried by someone who really knows how dangerous is this.

Is camera working with this one?

Enviado desde mi MB865 mediante Tapatalk