Post Reply

[ROM][03.23.13] CyanogenMod 10 on HTC DNA; Audio WIP)

OP drewX2

20th December 2012, 02:21 AM   |  #1  
drewX2's Avatar
OP Senior Member
Flag San Diego
Thanks Meter: 1,210
 
400 posts
Join Date:Joined: Feb 2006
Donate to Me
More


[ Unofficial CyanogenMod 10 Build on HTC DNA ]
git @ https://github.com/drewx2/android/ (Updated to download all necessary repos)

Quote:

..CURRENT BUILD NOTES/HISTORY..

03.24.13: CM10 doesn't include support for csd-client enabled phones (which we need). I have built a work around for it to utilize our csd-client lib; hopefully it brings audio one step closer.

My audio changes can be found at a separate git repo @ https://github.com/drewx2/android_hardware_qcom

03.23.13: Current Audio Status

I have some time to look at things, so here just getting started and thought I would post the first strace for those interested. Looks promising and not too difficult.
Code:
writev(4, [{"\4", 1}, {"AudioHardwareALSA\0", 18}, {"ucm instance opened: 1082445752\0", 32}], 3) = 51
writev(4, [{"\6", 1}, {"AudioFlinger\0", 13}, {"int android::load_audio_interfac"..., 103}], 3) = 117
writev(4, [{"\4", 1}, {"AudioFlinger\0", 13}, {"loadHwModule() error -22 loading"..., 49}], 3) = 63
writev(4, [{"\5", 1}, {"AudioPolicyManagerBase\0", 23}, {"could not open HW module primary"..., 33}], 3) = 57
writev(4, [{"\6", 1}, {"AudioPolicyManagerBase\0", 23}, {"Not output found for attached de"..., 47}], 3) = 71
writev(4, [{"\6", 1}, {"AudioPolicyManagerBase\0", 23}, {"Failed to open primary output\0", 30}], 3) = 54
writev(4, [{"\6", 1}, {"AudioPolicyManagerBase\0", 23}, {"getDeviceForStrategy() speaker d"..., 74}], 3) = 98
clock_gettime(CLOCK_MONOTONIC, {205, 684889413}) = 0
writev(4, [{"\6", 1}, {"AudioPolicyManagerBase\0", 23}, {"getDeviceForStrategy() speaker d"..., 74}], 3) = 98
writev(4, [{"\6", 1}, {"AudioPolicyService\0", 19}, {"couldn't init_check the audio po"..., 54}], 3) = 74
ioctl(3, 0xc0186201, 0xbe961a28)        = 0
Complete strace available here: http://bit.ly/Xx3M0v

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

There won't be any builds posted until one of the "not working" items has been fixed. I mostly likely will focus on audio this weekend.

If you have something meaningful to share, please visit http://webchat.freenode.net/?channels=CM10DNA

03.04.13 @ 03:29AM: Wifi *now* really working

03.04.13 @ 03:29AM: Wifi now working.

Enable 3 dot menu: Settings -> Hardware keys -> Show action overflow [check]

Working:
Radio/RIL (no sound, so can't hear yet), SMS / MMS, 3G / 4G Data, Display, Orientation, Sensors, Lights, NFC, Torch, GPS (not tested), Wifi

Not working:
Camera, Audio, Bluetooth

To Do list
I plan to do bionic/kernel optimizations once all features working.

Quote:

..INSTALL INSTRUCTIONS..
If you do not have S-OFF, you need to unzip the file and flash the boot.img inside via fastboot.

Install Instructions:
1) Download http://bit.ly/W0RAY8
2) Reboot to recovery of your choosing; wipe system/data/dalvik-cache/cache.
3) Install downloaded zip
4) Reboot.
5) Enjoy.

Google Apps @ http://goo.im/gapps/gapps-jb-20121011-signed.zip


Quote:





Quote:


.SPECIAL THANKS FOR DONATING.
RuinedByMTV, drmp3z
kronikings, danahern, karn101, Majik Mushroomz, Matt P., Matt B., pio_masaki, Droidika, Wheelchairmitch, MrIcky, liquidhaste, jamiethemorris, rainabba


.SPECIAL THANKS.
Flyhalf205, x3demond3x[debugging]
dsb9938 [cmdline boot option]
x3demond3x [egl fix]
Jarocks [resized bootanimation/debugging], pio_masaki [debugging],

jcase [unlock], dees_troy [twrp], beaups, jcase, Dr_Drache, dsb9938 [S-OFF]
.... and of course the CyanogenMod team and those who laid the foundation for the DNA....

..WANT TO HELP? HERE ARE SOME DEBUGGING TIPS..

1) Flash boot.img
2) On cmdline do "adb logcat"

Quote:

If you're ever in the mood to donate, don't forget about the others that have helped advance the HTC DNA to new levels (e.g. dsb9938, jcase, Dr_Drache, beaups, CM team, or XDA for bringing us all together!). Although, I may be working on CM and it may seem like a completely different project, in many ways we all rely on each other to help make the DNA better.

Last edited by drewX2; 25th March 2013 at 01:27 AM.
The Following 175 Users Say Thank You to drewX2 For This Useful Post: [ View ]
20th December 2012, 02:41 AM   |  #2  
Senior Member
Thanks Meter: 72
 
386 posts
Join Date:Joined: Oct 2010
More
I can't help you with specifics but the guys over on the nook color forums have great guides on building and may be amenable to questions if no one here gives you anything useful

sent from my unlocked and rooted droid DNA
The Following 2 Users Say Thank You to jamesbra For This Useful Post: [ View ]
20th December 2012, 04:00 AM   |  #3  
drewX2's Avatar
OP Senior Member
Flag San Diego
Thanks Meter: 1,210
 
400 posts
Join Date:Joined: Feb 2006
Donate to Me
More
Thumbs up
Quote:
Originally Posted by jamesbra

I can't help you with specifics but the guys over on the nook color forums have great guides on building and may be amenable to questions if no one here gives you anything useful

Thanks. Brings me back to the days when I was writing some early scripts for the Nook Color... when you had to flash the "harder" way. Anyhow, it reminded me of just mounting each partition separately (/dev/block/mmcblk0pXX). Found kernel/system logs, just what I wanted.
The Following 6 Users Say Thank You to drewX2 For This Useful Post: [ View ]
20th December 2012, 04:07 AM   |  #4  
typeriz's Avatar
Senior Member
Thanks Meter: 160
 
383 posts
Join Date:Joined: Dec 2007
What about radio??

Sent from my HTC6435LVW using xda premium
20th December 2012, 04:17 AM   |  #5  
Senior Member
Thanks Meter: 47
 
403 posts
Join Date:Joined: Sep 2008
More
Quote:
Originally Posted by typeriz

What about radio??

Sent from my HTC6435LVW using xda premium

That's a whole separate issue. We can have a Rom booting and usable without the ril working. Granted, this booting will most likely help with ril advancement.

Sent from outer space...
20th December 2012, 07:00 AM   |  #6  
MyComputerDoctor's Avatar
Senior Member
Flag Philadelphia, PA
Thanks Meter: 623
 
225 posts
Join Date:Joined: Aug 2011
Donate to Me
More
Talking
Quote:
Originally Posted by drewX2

I've successfully built CM 10 on the DNA, however I'm stuck with debugging after booting in standby (assuming). For those that have built new roms on unsupported devices, how did you debug the boot process? Yes, I understand to use logcat/ddms/etc. I boot into standby with a black screen (no boot loop). Sdcard mounts once I get to black screen, however I built kernel from source as well so no hacks have been applied yet.

Also, when taking any kernel available right now, pulling it apart and remerging with no changes (just verifying process), I go into a boot loop on a working Rom (genome/ukb)

This is what I am doing to recreate boot.img:

Code:
(boot.img taking from DNA cubed kernel, I've renamed kernel and ramdisk)

unbootimg boot.img

mkbootimg --output boot.img --kernel kernel --ramdisk ramdisk.cpio.gz --cmdline 'console=ttyHSL0,115200,n8 androidboot.hardware=dlx user_debug=31' --board '' --base 80600000 --pagesize 2048
Any tips would be great so I can finish up and share. Seems so silly that I can't even remake a working boot.img after spending 20+ hrs working on CM10. It seems I'm a bit slow to get back into the swing of things since taking a hiatus from programming for several years.

I have gotten to the same point as you in my AOSP venture with the DNA. From my findings, without the correct kernel drivers being administered from the gate, the USB (debugging) features are not going to work properly. I am in the process of finding a kernel developer who is familiar with Sense (HTC) devices to build the proper kernel to make this possible. With the help of Dr_Drace I was able to put together a working DLX build tree and have successfully compiled FactoryROM (which is 4.2 AOSP based) but am stuck at the end of the boot process. And like you, I am unable to gather any logs due to the lack of USB access. We need a reliable kernel developer to get us past the hurdle. Unfortunately I am not one of them. As far as RIL, it's anyone's guess as to its functionality once we get things booting correctly. We have all of the drivers, it's just making them work together.
The Following 6 Users Say Thank You to MyComputerDoctor For This Useful Post: [ View ]
20th December 2012, 07:57 AM   |  #7  
drewX2's Avatar
OP Senior Member
Flag San Diego
Thanks Meter: 1,210
 
400 posts
Join Date:Joined: Feb 2006
Donate to Me
More
Quote:
Originally Posted by MyComputerDoctor

I have gotten to the same point as you in my AOSP venture with the DNA. From my findings, without the correct kernel drivers being administered from the gate, the USB (debugging) features are not going to work properly. I am in the process of finding a kernel developer who is familiar with Sense (HTC) devices to build the proper kernel to make this possible. With the help of Dr_Drace I was able to put together a working DLX build tree and have successfully compiled FactoryROM (which is 4.2 AOSP based) but am stuck at the end of the boot process. And like you, I am unable to gather any logs due to the lack of USB access. We need a reliable kernel developer to get us past the hurdle. Unfortunately I am not one of them. As far as RIL, it's anyone's guess as to its functionality once we get things booting correctly. We have all of the drivers, it's just making them work together.

I'm just going to try stripping as much away as I can to boot and then slowly add things back in. On a side note, I've made a working version of touch clockworkmod recovery. I am going to modify it to add some additional options before sharing (unless someone gets around to it before I do).

What I suggest doing is mounting /dev/block/mmcblk0p24 manually via working recovery. This is the log partition; system.log and kernel.log are written to it.
Last edited by drewX2; 20th December 2012 at 08:06 AM.
The Following 8 Users Say Thank You to drewX2 For This Useful Post: [ View ]
20th December 2012, 12:17 PM   |  #8  
Member
Thanks Meter: 30
 
97 posts
Join Date:Joined: Mar 2011
Please keep us updated on your progress. It would be greatly appreciated. And yes you may be part god.
20th December 2012, 07:23 PM   |  #9  
xHausx's Avatar
Forum Moderator / Recognized Developer
Flag Central Florida
Thanks Meter: 4,522
 
6,773 posts
Join Date:Joined: Jul 2010
Donate to Me
More
Please try to keep this thread focused on development and free of clutter. The Thanks button still works just fine.
The Following 4 Users Say Thank You to xHausx For This Useful Post: [ View ]
20th December 2012, 09:58 PM   |  #10  
EmericanX's Avatar
Member
Flag Prince George, VA
Thanks Meter: 14
 
65 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Do either of you have the device/vendor posted to Github by chance? I actually started putting one together but haven't had much time to actually make progress.

Which kernels have you used with source built Rom? Tried the stock kernel by chance? I always feel its a good starting point. Have either of you uploaded the zip? I can flash and take a look... They say two heads are better then one so if we're all working on the same thing I'm sure progress will be made! Lol

Sent from my HTC6435LVW using Tapatalk 2
Post Reply Subscribe to Thread

Tags
cm10, cyanogenmod, dna, dxl, monarudo
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Droid DNA Original Android Development by ThreadRank