August 9th, 2011, 11:54 AM
Thread Author (OP)
Join Date: Dec 2010
Location: Dallas, TX
Device(s): LG Optimus L9, Nexus 7
Thanked 1,792 Times in 494 Posts
I've successfully ported CWM to the Motorola Triumph WX435. If my device configs are okay, I'd like to get the Triumph added to ROM Manager.
You can find my repo here: https://github.com/ikarosdev/android_device_motorola_triumph
I had to do these things for the port to work:
- Had to add 32 bit graphics.
- Add a custom keymapping
- Adjust the pagesize in /system/core/mkbootimg/mkbootimg.c from 2048 to 4096
- Not include recovery partition in fstab.
I've had many testers confirm that it works. They've successfully done a nandroid backup and restored. While working on CM7, I've flashed a zip just fine. However, USB mounting is not working.
Another big thing is that the device does not have a recovery partition. You have to put the phone in download mode and swap out the original recovery.img found in a fat partition at /dev/block/mmcblk0p1. In light of this, I've had to include custom releasetools.
I had to manually change the pagesize in /system/core/mkbootimg/mkbootimg.c. Am I doing this wrong? If not, could we add a flag and build define so that way it'll be easier to have it build boot images for other devices. For example: TARGET_USES_4K_PAGESIZE?
I should mention that this is good because we'll have an official build of CWM for the Triumph that can be found in ROM Manager.
"Do not worry about your difficulties in Mathematics. I can assure you mine are still greater." --Albert Einstein
Last edited by isaacj87; August 9th, 2011 at 12:08 PM.