2/23 build has been going great for me for going on 24 hours. No reboots.
Sent from my triumph using Tapatalk 2
Sent from my triumph using Tapatalk 2
Upvote
0
My cache partition was corrupted somehow. Wiping in CWM wasn't helping, but I manually ran mkfs.ext2 on it, and seems good now. And here I thought that build was all unstable...
Unfortunately, I spoke too soon and my cache became corrupted again. I see my CWM is quite old (5.0.2.6), so I'll try upgrading that.
Can someone post some simple instructions for going from 7 to 9?
I'm running CWM 5.0.2.6 - looks like I need to update, but got confused reading the instruction on updating CWM. Specifically which Zip download is flashable and the follow the instructions above, follow the instructions below - which to follow.
My plan was to.....
Backup from CWM 5.0xxx
Backup Apps using Titanium Root
Backup Texts and Contacts
Update to CWM 5.5xx
Flash 9
Thanks!
I am thinking that may have to do with the init.triumph.rc, The line you fixed is wrong, check my PA device files. It is pointing to partitions 10 and 11 which is hidden(10) and cache(11), it should be 14 and 15. It didn't occur to me until you said something about the cache getting corrupted and I remembered that 10 and 11 were system partitions. I have no idea where that line came from cause none of the variants have it as 10 and 11.My cache partition was corrupted somehow. Wiping in CWM wasn't helping, but I manually ran mkfs.ext2 on it, and seems good now. And here I thought that build was all unstable...
Unfortunately, I spoke too soon and my cache became corrupted again. I see my CWM is quite old (5.0.2.6), so I'll try upgrading that.
So, this is what I have found so far about the partitions on the Triumph, I can't guarantee that this is all correct, but if anybody has any input feel free to chime in.
WARNING, THE INFORMATION PROVIDED BELOW IS SPECULATIVE AND COMES WITH NO WARRANTY. IF YOU MESS WITH THIS STUFF, I AM NOT RESPONSIBLE IF YOU DAMAGE YOUR PHONE.
Partitions:
1 (FAT) Mobile Partition containing image folder, which is very well documented around the forums.
2 (crypt/QNX4.x) Primary Boot Loader (PBL) I believe that this is what the SOC uses to boot.
3 (crypt) Secondary Boot Loader I believe this is where the hardware layout is contained, as it changes button configuration and was key to getting back to normal after I flashed the wrong nb0. It is linked to the mobile partition, as the phone will not boot properly without the correct amss.mbn
4 (extended) Just an extended partition containing partitions 5 - 17.
5 (Boot) This is where the boot img is extracted.
6 (OnTrack DM) I think this manages and verifies integrity of partitions 13-17.
7 (ext3) This is where the system/rom is located. This is what you see in root explorer as "system", containing the build.prop and other stuff.
8 (ext3) This is the "data" folder .
9 (ext) This partition holds CDA info, with OEM apks, ringtones, and wallpapers, it seems to be mounted inside partition 10 (hidden) when the phone is on you can find the information merged into "hidden/data" using root explorer.
10 (ext3) This is the hidden partition containing boot images and CDA info. This can be found in "hidden" using root explorer.
11 (ext3) This is the cache partition.
12 (ext3) This is the Caivs, can't find too much info on this.
13-17 (unknown) I believe this is where the phone specific data is stored, including but not limited to MEID, ESN, and PRL.
Hi everyone,
Just wanted to say thanks for the awesome rom and a working camera! It's like Christmas all over again! However, my 3g drops are so bad that I lose connection for up 10 minutes sometimes. When you guys have perfected camera, can you proceed to perfect 3g too with your mad skillz? lol
Sorry I'm having trouble figuring out what the current state of the rom is?
It sounds like the rear camera works fully now for pictures but not video?
How about the front facing camera?
Thanks!
I am thinking that may have to do with the init.triumph.rc, The line you fixed is wrong, check my PA device files. It is pointing to partitions 10 and 11 which is hidden(10) and cache(11), it should be 14 and 15. It didn't occur to me until you said something about the cache getting corrupted and I remembered that 10 and 11 were system partitions. I have no idea where that line came from cause none of the variants have it as 10 and 11.
This is the breakdown of the partitions on our phone:
As far as the htcoverlay and the regular overlay, it has to do with the gralloc, and how the camera and if we build it with the system, all display stuff works together, I think. In our board config file it has BOARD_USES_OVERLAY which is as flag in hardware/qcom/display, which is spelled wrong in the board config in the repository. the Overlay files should be located in frameworks/base/lib/ui/Overlay.cpp and frameworks/base/include/ui/Overlay.h, but it is not included in the source. Like I said, I am not sure myself. The camerhal folder has the two Overlay files and both folders have files with includes for htcOverlay.h in include/ui. Don't really know what I'm saying here, but just what I have seen.
Hey adamto, I have been working on the overlay files and it is just a little over my head. Either we need to rewrite the cameraHal overlay ; overlay and use the Overlay files or we need to incorperate what is needed in to the OverlayHtc files. I uploaded a zip with six files in it, the four original files and a buildable merged OverlayHtc set of files. When the Overlay files are used it fixes all the LibOverlay errors but breaks the camera, and with the merged files it does the same. Also if you have not noticed the Overlay files in the cameraHal folder are the OverlayHtc files renamed.This is the commit that I think I found the overlay files from or they were in a old CM9 I had on disk, https://github.com/mantera/android_frameworks_base/commit/fddc476754423c00b537e411f5f007d765f5872bHmm, don't know much about overlays yet. Is there a problem with the htcoverlay?
This is some info about some camera changes made in frameworks. On a side note, I am not using our frameworks base for PA, I only incorporated the ril, headset and one or two other small fixes. https://github.com/mantera/android_frameworks_base/commit/2bf9844dae4d70dab052ef426d010a4bd7a107cd
There isn't just a camera update, this is system wide, You can try to take the older camera fix zip and replace those files but I'm not sure it will work.anybody have just the camera update?...
Hey adamto, I have been working on the overlay files and it is just a little over my head. Either we need to rewrite the cameraHal overlay ; overlay and use the Overlay files or we need to incorperate what is needed in to the OverlayHtc files. I uploaded a zip with six files in it, the four original files and a buildable merged OverlayHtc set of files. When the Overlay files are used it fixes all the LibOverlay errors but breaks the camera, and with the merged files it does the same. Also if you have not noticed the Overlay files in the cameraHal folder are the OverlayHtc files renamed.
Moto-Triumph-CM9-frameworks_base-ui-Overlay.zip
Thanks for the reply. The deal is, we have two different CM9 setups.First off, do you know we need this overlay for some reason? I ask because before I got the camera working, one of the things I tried was turning off BOARD_USES_OVERLAY, and as far as I can tell, the setting seems to have no effect (I even did a full rebuild for that one). I was thinking maybe any overlay functionality is incorporated into liboemcamera.so
Now, if we do need this overlay, well there's not much code in here. My best initial guess is that either the format is wrong or this ashmem stuff is not set up right. You can try commenting out all the formats but one in getFormatString(), and going through them. And if ashmem can't mmap() that fd, or isn't expecting the size it's getting or something like that there may be problems (I know nothing about ashmem just some ideas).
Error without Overlay in frameworks:
I think you are starting to understand what I couldn't fully put in to words, and was trying to convey.Those error messages are from overlayLib in hardware/qcom/display/liboverlay. Inside overlayLib.h here we have a class Overlay. I wonder if this is the overlay that should be included in cameraHal? The interface is not quite the same though...
EDIT: This overlay stuff also seems to have a lot to do with the kernel framebuffer driver, so that is something to keep in mind as well.
I think you are starting to understand what I couldn't fully put in to words, and was trying to convey.
We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.