New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OV2680 and HM2056 built-in camera drivers #19
Comments
thanks! Does it work with mainline (or at least a new android-x86 kernel) ? |
AFAIK it doesn't. Some modifications probably required to get it working on current kernels. And, by the way, I find that it was available long time ago in gmin-kernel: https://github.com/android-ia/device_intel_gmin-kernel/raw/master/x86_64/src.tgz (and maybe even earlier). |
oh yes i was aware about that kernel, but had forgotten about it. sadly, i m no kernel dev to patch them for any kernel. |
GM0310 driver is also available in same patchset. |
Which is the front camera and which is the rear? |
I checked https://github.com/burzumishi/linux-baytrail-flexx10/blob/master/acpi/dsdt.dsl.txt and find that Nextbook Flexx 10.1" have different front camera. So most likely OV2680 is front camera of Nextbook Flexx 10.1", like in my tablet (DEXP Ursus 7W, clone of with Ployer MOMO7W / ONE-01) but rear camera is HM2056 by Himax Technologies: http://www.himax.com.tw/products/cmos-image-sensor/image-sensor-soc/hm2056/ |
Hello, I've got the hm2056 and ov5648 hardware. Do you know if it is possible to compile drivers for it ? |
@Tuxman2 OV5648 driver is also here: https://github.com/01org/ProductionKernelQuilts/tree/master/uefi/cht-m1stable/patches |
@RussianNeuroMancer : No, it is a Medion Akoya E2212T model (hybrid tablet/PC). |
As I see all drivers is available, so it's not secret how to interact with this cameras. But nobody ported this drivers to upstream kernel. |
if I apply the patches for OV5648 (available in the link you give me) I can make my camera work ? |
Most likely no. At first someone need to modify this drivers to make it work with more newer kernel. |
Here is what I found for ov5648 : https://github.com/NoelMacwan/Kernel-C6806-KOT49H.S2.2052/blob/master/drivers/media/platform/msm/camera_v2/sensor/ov5648.c and https://github.com/NoelMacwan/Kernel-C6806-KOT49H.S2.2052/tree/master/drivers/media/platform/msm/camera_v2/sensor I don't know if we can use it with Linux kernel. |
No news about the support of OV and HM cameras on Linux ? |
I will likely never be. There are too small of a number of devices and too low of quality for anyone to care about a 1MP camera |
@nicman23: It is not a good news. I don't care for the front camera but I would like to use the rear camera. |
I have a Lenovo Miix 310, it has a ov2680 front camera and a ov5648 rear camera. I tried to port ov5648 driver from https://android.googlesource.com/kernel/bcm/+/android-bcm-tetra-3.10-lollipop-wear-release/drivers/media/i2c/soc_camera/ov5648.c to mainline however it isn't working (webcam is not recognized at all) |
Why is it so difficult for kernel developpers to give support for ov2680, ov5648 and hm2056 cameras ? |
Because it is an open source project and no one cares about these cameras as I said :P |
Well, I've got the source code for the HM2056 driver and the OV5648 driver. I made a makefile for each. You can try to compile them (kernel-headers, build-essential and make command are necessary) and test them. HM2056 driver: https://snf-738721.vm.okeanos.grnet.gr/index.php/s/UtIkL9IJyxGPOXP For example, go to HM2056 directory and launch the make command. You have must have a .ko file after compiling. Then, try this:
|
Cameras won't work until Intel Atom Image Signal Process driver get ported to current kernel. |
Intel Atom Image Signal Process It has started to be implemented in the kernel 4.11. but there is a problem the two sensors (OV5648 and HM2056) are not yet supported who owns a compatible CCD sensor can try to compile a new kernel and let us know. P.S. for those who want to try to fill atomisp for kenrel <411 copy dir atomisp Add in Makefile Add in Kconfig and after should be visible make menuconfig. |
Do you think it could be a good idea to post a bug report on the kernel bugzilla website for the ov2680, hm2056 and ov5648 support ? |
TODO FILE ov2680 says it's supported. before making a signaling perhaps those who see one of these sensors suportati starch could try ... others think it will be written as 0, it is beyond my capacity :( |
Will test it on 4.11 and will see what can I do |
@sfumato77: In my case, I have the Hm2056 and the Ov5648 sensors (front and rear cameras). :-( |
Some changes in UEFI seems like required to get above driver working: https://4pda.ru/forum/index.php?showtopic=650808&view=findpost&p=59557868 As you can see in log driver can't find right firmware. Where to find it? |
@dfiloni Thank you very much. As I said, the sensor I'm using is the OV5680. Would I use the OV5648 driver for this sensor? I thought I had read that you had developed the driver for the OV5680. |
@RussianNeuroMancer: Ok. Thanks. |
@tidus747 : I don't think it will work, and 5680 was a typo, I only ported ov5648 and hm2056, sorry for the misunderstanding |
@dfiloni: In the config file given by Hans and RussianneuroMancer for 4.15.x kernel, the atomisp is disabled by default. So we have to set manually the option to try to make atomisp works. As I seen in the links given by RussianNeuroMancer, the kernel community try to find a solution to make the cameras work. But it seems to not be easy. |
Guys, I don't know which language to use to tell you that the driver is (for now) useless. There is no one in the community who has made it working. Apparently this is a very high demand on testers, but for now even single configuration doesn't work with the upstreamed code. I recommend to switch to Windows or Android to make camera works. It's pity, but this is unpalatable truth. |
Or another solution if we want to use a camera under Gnu/Linux is to buy a small portable and compatible Webcam that can be fixed on the tablet. I don't see others solutions until the cameras in the tablets will be supported. |
I use DroidCam with my NokiaX2sd feeds to Ubuntu Zesty |
No news about the cameras support ? |
@Tuxman2 P.S. Just in case, I'm not a repository owner here, so, whoever they are, it's their decision how to proceed now. |
@andy-shev: So the only solution is to buy an external webcam. :( |
OV2680 is now in mainline (and as for probably ov5648, this may be relevant) |
Hello @mirh, I build module from this patch v7 2/2
This is the driver
Also module not seems to bind to the device, probe() function never got fired I am expecting something like:
But there isn't
|
I adjust matching table
|
@sonvirgo |
For all who is trying to bring up AtomISP v2, the driver had been removed from upstream due to lack of developers who has it working. Just install Windows or supported OS (Android?) to the devices on which you would like to have camera enabled. Yes, it's pity and especially to me who spent a lot of hours on trying to get something out of it (including a lot of clean up patches pushed in upstream at some point). I share in your pain. |
https://lwn.net/Articles/750572/ |
@andy-shev @mirh Ah now it is clearer, complete suit must cover everything like in Windows. The camera driver alone is not enough but additional driver needed are |
@sonvirgo |
Hi, @andy-shev: Do you think we can use Anbox software to make the cameras work ? Thanks. |
Hi, any chances to see the cameras work one day or it's definitely dead ? |
IPU3 has been merged into 5.0, for the records. |
Hi guys, it's been a long time that I didn't come here. Well, the atomisp and the cameras from baytrail and cherrytrail hardware seems to be take in account in new kernel 5.8.x and above. Do you known if HM2056 and OV5648 drivers are available in those kernels ? if not, is there a way for that the kernel developers include those drivers in 5.8.x kernel stable branch ? The drivers code source for HM2056 and OV5648 are available here: https://bugzilla.kernel.org/show_bug.cgi?id=195877 and here: https://lore.kernel.org/patchwork/patch/836798/ (given by Devid Filoni). Thanks. |
I have a baytrail nextbook where i have linux mint 19.3 working fine except the camera. I upgraded the kernel to 5.8.x today. I see the following drivers loaded. under /sys dmesg has some possibly worrisome messages? ultimately no video when i open cheese. let me know what to try. thanks |
Driver trying to load, fail to do so, but it's not expected to work just yet anyway. So nothing to worry about.
Just wait. Maybe one day it will work on newer kernel (or maybe not) |
Yes, there's still lot of work being in queue Did anybody check this btw? |
Hello, so the only thing we can do is wait? |
I think so. :( @ALL: I tried Linux Mint, Ubuntu and Fedora on my Baytrail hardware but I switched to Manjaro. It is a rolling distribution based on Arch Linux and have all the last packages and software. I tried Manjaro Gnome but Manjaro KDE is better for a 2-in-1 laptop. I'm using Qtvkbd as virtual keyboard (who is better than virtualkeyboard) and screenrotator (to enable and disable autoscreen rotation) on xorg/X11. For me, Wayland is not ready yet. |
https://patchwork.kernel.org/project/linux-media/list/?series=772526 |
Driver for gc2235/gc0310/0v2680/ov2722/ov5693/mt9m114: https://kernel.googlesource.com/pub/scm/linux/kernel/git/gregkh/staging/+/staging-testing/drivers/staging/media/atomisp/
Old post 1:
Source code of OV2680 driver is available here: https://android.googlesource.com/kernel/mediatek/+/android-6.0.1_r0.110/arch/arm/mach-mt6582/sprout/imgsensor/
Old post 2:
OV2680 driver:
https://github.com/android-ia/device_intel_gmin-kernel/raw/master/x86_64/src.tgz
https://github.com/01org/ProductionKernelQuilts/tree/master/uefi/cht-m1stable/patches
(Ctl+F for "OV2680")
HM2056 driver:
https://github.com/ZenfoneArea/android_kernel_asus_zenfone5/blob/master/linux/modules/camera/drivers/media/i2c/hm2056.h
https://github.com/ZenfoneArea/android_kernel_asus_zenfone5/blob/master/linux/modules/camera/drivers/media/i2c/hm2056.c
The text was updated successfully, but these errors were encountered: