[Q] Tegra3 camera hal problems - Android Q&A, Help & Troubleshooting

I'm trying to compile Android 4.2.2 for the Lenovo A2109A. AOSP 4.1.2 mostly worked out fine, except that panorama mode for the camera didn't work. In AOSP 4.2.2 the camera HAL didn't seem to connect to the camera, so I switched to CM-10.1. Camera HAL loads fine, but it doesn't take pictures. The problem seems to be that the stock camera HAL is linked to a version of libjpeg with proprietary additions from nvidia and I can't figure out what they are. Someone else was able to successfully compile CM-10.1 with a working camera by using libjpeg-turbo for compilation (see here), but it also needs a patch for skia that I can't find.
So right now I'm basically stuck and I'm looking for different ways forward. I could really use your advice. Should it be possible to use the camera hal from a related device instead? I know that the nexus 7 is also a tegra3 device, and very close to A2109. It does use different camera devices, but these can be configured in nvcamera.conf. I used strings to find whether any proprietary lib referenced the specific cameras and I found only one, libnvodm_imager.so. The most important differences appear to be in the kernel source, in the following files:
drivers/media/video/tegra/tegra_camera.c
drivers/media/video/tegra/tegra_dtv.c
My question--to what extent should it be possible to just use the grouper tegra camera files for the kernel and then use the grouper camera HAL? Or do you have a different suggestion for me to proceed? I'm asking because I can hardly code. I am, however, getting better and better with git and patches, and I did manage to fix two compile issues in the lenovo kernel source.
My kernel source is over here. My device tree is over here (defaults to aosp 4.2.2 branch, cm-10.1 is a different branch). Grouper kernel sources are over here.
P.S., I have a development thread over at androidtablets.net, which also contains various details.

Answering my own post...
I tried using grouper HAL, gives error message. But using tf700 camera HAL worked, when used with tf700 libnvcamerahdr.so, both taken from stock 4.2.
So--problem solved

Related

[Q] Help with recompilation of CM9 (for 5.0)

I did a Google search and found the github that jackpotclavin seems to have put his CM9 port on, and I mashed it into my local copy of the CM9 repo. I have tested my setup by building a rom for my HP touchpad, which works, but the GP 5.0 ROM fails to build.
In case you are wondering why I want to recompile the ROM, I found a "generic V4L2 camera HAL" that I was going to try to get working on the GP 5.0. I know there are six V4L2 device nodes available under his ROM (video0, video1, video2, video14, video21, and video22). I just need to be able to make a test build of the ROM with all the patches applied, because the patches appear to change more than just the "camera.v4l.so" they produce.
Search Google for "Android generic V4L2 camera HAL" and you'll see a kernel mailing list post from Guennadi Liakhovetski. This links to the patches.

p3110 camera libhead sym link

http://forum.xda-developers.com/showpost.php?p=53233668&postcount=2879
we are compiling p3113 from CM11 p31xx source, so we can take advantage of some drivers and the platform key. like most we too freak when the camera disappeared back on 6/6/2014. however, thanks to Tsjoklat we've can now flash it to the device.
does anyone know how we can take the libhead sym link in the updater script and port it into the CM11 source so we can avoid the additional step of flashing the fix? adding the vendor-camera.piranha.so file is not an issue as we just added it to our /vendor/samsung/p31xx files. if not, we'll wait until the CM staff pushes it to the upstream.
thanks,
complexi

[Q]Camera 2 API which modifications are needed?

So,
After years i managed to get kernel working now my question would be what are the modifications to the kernel needed to enabled Camera 2 API Support.
It would be great if someone would provide me A Github Repo (Kernel Sources) which has Camera 2 API Enabled .
Its my first time working with kernels lol
Thanks anyways
The Whole camera releated libraries/binaries on ROM and on kernel.
In short, if you're not pro-developer, you can't do that.

Need help with S6310 camera

I'm currently working on CM11 for the S6310 but I can't figure out the problem with the camera.
I have been trying to fix the error for over three months now but I'm still stuck with the exact same problem.
Camera sensor:
SR300PC20
Interface used:
V4L2 (this was used in Stock)
The drivers in the kernel are near stock, they have been modified a little for extra debugging.
I'm using the stock prebuilt camera HAL as well.
Logcat
Dmesg
Device specific source
Vendor libs
General repository
I'm willing to try (almost) anything to fix the camera.
Any help at all will be appreciated!
If any more info is needed just ask.

[DEV][trlte] Unified LineageOS device tree for Snapdragon Note4

I have the idea for an unified build from quite some time, but only now I'm trying to bring it to life.
Looking at LineageOS github and gerrit you can see that other devices (klte, m8) have the same stupid amount of variants, but they have merged them into one device repo.. So why can't this happen for the Note4?
Following their steps I've created an unified android_device_samsung_trlte (that includes SM-N910F/trltexx, SM-N910G/trltedt, SM-N910T/trltetmo, SM-N910W8/trltecan, SM-N910P/trltespr, SM-N910R4/trlteusc and SM-N910V/trltevzw), this proprietary_vendor_samsung and added this commit to the android_device_samsung_trlte-common that I'm currently using.
For now I'm able to use those repos to build a LineageOS-14.1 build that boots up, but w/o sim and camera being recognized.. For what I've tested (on trltexx) wifi and (strangely) bluetooth are working. Something is probably wrong with specific device blobs not being recognized/used properly.
It needs some work but I think this is a good base to start with.
trltexx/trltedt blobs are from here;
trltetmo/trltecan blobs are from here;
trltespr/trlteusc blobs are from here;
trltevzw is using trltespr blobs for now (there are no guaranteed working blobs repos for it at the moment, the only (WIP) way is to establish which are needed and extract them from hsbadr's builds).
The kernel is the same that I'm using for the not unified builds (android_kernel_samsung_trlte), at the moment testing if the klte's way of using the international variant defconfig works for us too.. other options are to add something like this commit to remove the need of a variant defconfig or merge the different defconfigs into one and use that instead.
Source:
unified_android_device_samsung_trlte
unified_android_device_samsung_trlte-common
unified_proprietary_vendor_samsung
android_kernel_samsung_trlte
I was going to share this anyway, but I'm sharing it now (even if there are still major problems) because I have a very limited free time where I can work on it, so, maybe, someone of you will join/fork/clone this project and help me out, finalizing it earlier and better (the support of experienced developers is needed and much appreciated).
I'm now going to mention the SeniorMembers/RecognizedContributors/RecognizedDevelopers that, maybe, have interest in this project.
@fattire @hsbadr @SaintZ93 @SferaDev @TheBr0ken @ZION959
If you get it to work, @_mone, I'll switch my daily builds to this unified one.
On a related matter, there seems to be a typo in the name of one of your repos: unified_andorid_device_samsung_trlte.
Let me also add @lilferraro to the list of devs, as I use his device tree to build for trltespr.
I built this and it boots, with the same issues you have (no SIM detected, camera is busted). Took a bunch of of logs. Getprop shows ro.build.fingerprint is trltetmo (which is right), ro.bootimage.build.fingerprint is trlte. Wifi and bluetooth are working. Mediaserver/libcameraservice service crashes repeatedly. I agree with you that having a unified tree for the entire Note 4 line is the way to go. I tried manually copying the blobs from /system/blobs/tmo/ to /system/lib and /system/vendor/lib but it didn't help.
what proprietary blobs did you use for sprint?
All device trees for the note 4 pie builds are up at
GitHub.com/tripLr-dev
User forum at Telegram
https://t.me/triplr_dev_users
Thanks to @_mone
And @ripee
I will do a test build of my Ubuntu Touch port using this unified repo and report back if anyone is interested. My port still needs a couple things to work but the stuff that works now should be enough to give me a good idea if it will work or not.
tigerpro357 said:
I will do a test build of my Ubuntu Touch port using this unified repo and report back if anyone is interested. My port still needs a couple things to work but the stuff that works now should be enough to give me a good idea if it will work or not.
Click to expand...
Click to collapse
Let us know what you need
Source code
GitHub.com/triplr-dev
Contact me on telegram t.me/telegram to get you in touch with testers and developers. .
I am EXTREMELY interested in a touch port.
Thanks
Also GitHub.com/underscoremone for all the older stuff
I actually have my work on github already, I am also on telegram in the ubports groups, and if you would like to help my repo is probably the best place to start (unless you prefer duplicating work) I only have sensors and the stylus left for hardware (both of which I have been trying to get working) the stylus is an issue on the ubports side but I dont understand the code enough for mir. I haven't had a chance to test the unified repo yet, but I will once I have a few minutes to actually do it.
I wonder how it work to create xda threads for Ubuntu touch, since they seem to have their own forums.
I think adding Ubuntu touch to xda would be an additional resource for users and developers.
tripLr said:
I wonder how it work to create xda threads for Ubuntu touch, since they seem to have their own forums.
I think adding Ubuntu touch to xda would be an additional resource for users and developers.
Click to expand...
Click to collapse
I agree, as all I really see on xda as far as Ubuntu Touch goes is prebuilt downloads which is good for letting people try it, but when I started I initially looked into xda but found no help. I do hope to see that change in the future though
Nice to see someone actually wanting to still develop for this device.. I love this Note4 still.
doubledragon5 said:
Nice to see someone actually wanting to still develop for this device.. I love this Note4 still.
Click to expand...
Click to collapse
Same here
We have several developers for note 4 snapdragon and exynos
T.me/triplr_dev_users
See you there
Roms
Tiny.cc/triplr
Tiny.cc/ripee
And many links in XDA for ROM threads
Post comments in XDA, and bug reports and logs in telegram
Android 10 in progress
Thanks @_mone
The lineage-17.1 thread is up!
[ROM][UNOFFICIAL][10] LineageOS 17.1 [tblte][trlte][trlteduos]
If you don't mind not having a working fingerprint sensor, or audio through the headphone jack, then Q is stable enough for daily use. As always when coming from an older rom version, it is highly recommended not to waste your time dirty flashing and just clean flash.
Q is still a work in progress, so I will still be releasing Pie builds, though maybe not as often. As in years past, once the Q bugs have been fixed up to the current Pie level, I will post about when my last Pie build will be. I will upload it to the Downloads tab located at the top of each page of this thread, and link it in the OP.

Categories

Resources