Skip to content
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

NanoPI M3 + OV5640(CAM500b) #2

Open
denevs opened this issue Jul 20, 2017 · 2 comments
Open

NanoPI M3 + OV5640(CAM500b) #2

denevs opened this issue Jul 20, 2017 · 2 comments

Comments

@denevs
Copy link

denevs commented Jul 20, 2017

Hello, im trying your code on NanoPI M3 with CAM500B. First git clone -b NanoPi_M2_M3 . I took 2 files. I ill try to make install 'ov5640.c' and saw that there are no linux/init.h(etc) I fix it with downloading kernel for M3 https://github.com/friendlyarm/linux-3.4.y the i try (gcc -c ov5640.c -o ov5640.o -I /home/fa/linux-3.4.y/include/) some mistakes was in /asm libs, i renamed all to /asm-generic/ ,but some files doesnt exist(processor.h) I commeted it. After that compiling done, but nothing appears. Some errors presented like (/home/fa/linux-3.4.y/include/linux/workqueue.h:304:1: error: old-style parameter declarations in prototyped function definition
__alloc_workqueue_key(const char *fmt, unsigned int flags, int max_active,)
Is there any way to fix installation or writing some man for newbees, how to install your ov5640c?

@avafinger
Copy link
Owner

Hi denevs,
I haven't touched the driver for a long time, actually it was just a start, there is no improvement.
The driver must be compiled in the kernel tree, that what i used to do. There is a way to build as a module from userspace but can't remember how. My M3 works with CAM500A. I will revisit it and build with latest gcc 7.1 and update when possible.

Sorry for the confusion.

@denevs
Copy link
Author

denevs commented Jul 21, 2017

Hello,thank you for a quick answer. It will be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants