Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Fireprime]ov5640 camera is not working

48

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
48

[Fireprime]ov5640 camera is not working

Posted at 12/13/2017 08:34:56      View:3371 | Replies:6        Print      Only Author   [Copy Link] 1#
Hi,

I have a problem using ov5640 camera module with FireprimeS board.

I have got the debugging message like these:

[    1.563568] rk818_ldo8: disabling
[    1.564487] rk818_ldo4: disabling


I think ldo8 and ldo4 are needed for the power of this camera module.

I have changed the code, "rk3128-cif-sensor.dtsi" as follows:

             ov5640{
                        is_front = <0>;
                        rockchip,powerdown = <&gpio3 GPIO_D7 GPIO_ACTIVE_HIGH>;
                        pwdn_active = <ov5640_PWRDN_ACTIVE>;
                        #rockchip,power = <1>;
                        pwr_active = <PWR_ACTIVE_HIGH>;
                        #rockchip,reset = <>;
                        #rst_active = <>;
                        #rockchip,flash = <>;
                        #rockchip,af = <>;
                        mir = <0>;
                        flash_attach = <0>;
                        resolution = <ov5640_FULL_RESOLUTION>;
                        powerup_sequence = <ov5640_PWRSEQ>;
                        orientation = <0>;
                        i2c_add = <ov5640_I2C_ADDR>;
                        i2c_rata = <100000>;
                        i2c_chl = <0>;
                        cif_chl = <0>;
                        mclk_rate = <24>;

                   }

            I got some patch information from this site. I did it already. But I can't solve this problem.
            The patch files are  0001-kernel-camera-fix-cif-controller-capture-problem.patch and
               0002-kernel-camera-fix-queryctrl-framesizes-frameinterval.patch.

Please help me...

Thank you
Reply

Use props Report

792

Credits

10

Prestige

10

Contribution

advanced

Rank: 4

Credits
792
Posted at 12/13/2017 11:00:31        Only Author  2#
ov5640.rar (4.2 KB, Down times: 6)


Each Module both have their own rule to turn on . Try the revers rule "reset" for ov5640
Reply

Use props Report

48

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
48
Posted at 12/13/2017 16:22:16        Only Author  3#
Thank you for helping me.

I did patch all codes.But it's still not working.  
[    1.581575] rk818_ldo8: disabling
[    1.582497] rk818_ldo4: disabling
the CIF connector uses these ldo8and4 for camera power?
So, it must have the ldo power? am I right?

What's that mean, the reverse rule, reset?
I used it the following code for resetting changing the LOW and HIGH, all cases
But it didn't work.
                        if(ov5640_io == 1){
                             rst = of_get_named_gpio_flags(cp, "tchip,rst", 0, &rst_flags);
                            gpio_request(rst, "tchip,rst");
                            printk("rst = %d\n", rst);
                             gpio_direction_output(rst,GPIO_LOW); //GPIO_HIGH
                             msleep(20);
                             gpio_direction_output(rst,GPIO_HIGH); //GPIO_LOW
                             ov5640_io = 2;
                     }


Thank you
Reply

Use props Report

48

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
48
Posted at 12/15/2017 12:23:11        Only Author  4#
Hi,

We used other power sources for the camera.

So, it is OK for I2C register setting.
And  it works.

But we got the green screen when we clicked the Camera button.

log message is as follows:

I need some comment about this.

Please help me,

Thank you
==
hell@fireprime:/ $ [  622.970509] ov5640_back_3(rk_cam_sensor:1245): generic_sensor_ioctl cmd(0x3) is unknown !
[  622.970509]
[  622.970579] rk_cam_io(1196):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:1196-------rk_sensor_power()
[  622.970579]
[  622.970618] rk_cam_io(1207):new_camera->dev_name= ov5640_back_3
[  622.970618]
[  622.970640] rk_cam_io(1208):dev_name(dev)= ov5640_back_3
[  622.970640]
[  622.970663] rk_cam_io(1220):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:1220
[  622.970663]
[  622.970688] rk_cam_io(1241):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:1241
[  622.970688]
[  622.970713] rk_cam_io(1111):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:1111-------rk_sensor_pwrseq()
[  622.970713]
[  622.970741] rk_cam_io(993):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:993-------rk_sensor_ioctrl()/n
[  622.970762] rk_cam_io(453):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:453-------sensor_power_default_cb()
[  622.970762]
[  623.062818] ret: 0
[  623.082457] rk_cam_io(1133):SensorPwrSeq-power: 1
[  623.082521] rk_cam_io(993):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:993-------rk_sensor_ioctrl()/n
[  623.082550] rk_cam_io(525):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:525-------sensor_reset_default_cb()
[  623.082550]
[  623.102165] rk_cam_io(993):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:993-------rk_sensor_ioctrl()/n
[  623.102212] rk_cam_io(525):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:525-------sensor_reset_default_cb()
[  623.102212]
[  623.102240] rk_cam_io(1150):SensorPwrSeq-reset: 1
[  623.102259] rk_cam_io(993):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:993-------rk_sensor_ioctrl()/n
[  623.210340] Cam_Powerdowm
[  623.210426] rk_cam_io(560):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:560-------sensor_powerdown_default_cb()
[  623.210426]
[  623.210530] rk_cam_io(582)v5640_back_3 PowerDownPin= 127..PinLevel = 0
[  623.210556] rk_cam_io(1161):SensorPwrSeq-power down: 0
[  623.210578] rk_cam_io(993):/$$$$$$$$$$$$$$$$$$$$$$//n Here I am: arch/arm/mach-rockchip/rk_camera.c:993-------rk_sensor_ioctrl()/n
[  623.210710] rk_cam_io(1172):SensorPwrSeq-clock: 1
[  623.415405] ov5640_back_3(rk_cam_sensor:1104): v4l2_ext_control id(0x9a0933) is invalidate
[  623.415639] ov5640_back_3(rk_cam_sensor:1052): v4l2_control id(0x980911) is invalidate
[  624.027965] y_addr 0 uv_addr 75300
[  624.028044] rk_camera_s_stream:stream enable CIF_CIF_CTRL 0xf001
[  624.097922] y_addr 0 uv_addr 75300
[  624.141649] y_addr 0 uv_addr 75300
[  624.185346] y_addr 0 uv_addr 75300
[  624.229056] y_addr 0 uv_addr 75300
[  624.229580] rga map src memory failed
[  624.229611] rga_reg_init_2, [558] set mmu info error
[  624.272779] y_addr 0 uv_addr 75300
[  624.276640] rga map src memory failed
[  624.276691] rga_reg_init_2, [558] set mmu info error
[  624.316469] y_addr 0 uv_addr 75300
[  624.317145] rga map src memory failed
[  624.317176] rga_reg_init_2, [558] set mmu info error
[  624.360180] y_addr 0 uv_addr 75300
[  624.360704] rga map src memory failed
[  624.360745] rga_reg_init_2, [558] set mmu info error
[  624.403932] y_addr 0 uv_addr 75300
[  624.409048] rga map src memory failed
[  624.409113] rga_reg_init_2, [558] set mmu info error
Reply

Use props Report

48

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
48
Posted at 12/16/2017 09:47:44        Only Author  5#
I solved the problem!!!!!!!!!


Thank you
Reply

Use props Report

76

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
76
Posted at 12/21/2017 15:17:34        Only Author  6#
What is law of attraction? This question has been in air for the last decade since the theory of this law became public after the release of the book "The Secret". In this article the law of attraction has been mentioned in details        www.lawextreme.com
Everything about this universe is far more intelligent than we give credit for; it really is a dazzling coherence that run our lives. We are here to mould the energies into matter and create and share Joyful Living.        www.lawcountry.com
The universe is made up of distinct laws and principles that govern our way of life. Both success and failure are within your control. Despite your current condition, you are able to make a difference in you life and start attracting better things by using these laws...        www.lawbucket.com
California is considered to have some of the strictest gun control laws in the country with approximately 950 firearm laws currently in effect. Supporters of stricter gun laws argue that these laws are necessary to curb crime        www.lawadventure.com
       
The majority of finance careers need you to be great with amounts and know about basic company statistics. Let's check out some from the lucrative monetary education choices.        enterprisefinance.com
Equity financial means the dog owner, own money and financial. Usually little scale business for example partnerships as well as sole proprietorships tend to be operated through their proprietor trough their very own finance. Joint share companies operate based on equity gives        anywherefinance.com
High technology doesn't refer to some class associated with technology because a myriad of technology happen to be considered hi-tech at 1 point, before becoming considered reduced tech or even obsolete after a while.        glamtechnology.com
Information technologies generally describes all types of technology utilized in the development, storage, exchange and usage of data, conversation as well as all multi-media types of communication. Along with computer technologies constantly altering        getyourtechnology.com
An explanation basically of 2G as well as 3G Technologies and exactly what they mean for you personally nowadays. You might find how 3G Cell phones offer wonderful features such as photo-editing, movie delivering presentations and the internet.        faketechnology.com
There happen to be great advancements within the technology business over previous few years. Consumers who've been alive for that past forty years have experienced what had been once regarded as impossible are actually so prevalent they're assumed.        naughtytechnology.com
In 1997 Mr. Clayton Michael. Christensen (The Harvard Company School Teacher) introduces a brand new term "Disruptive Technology". He additionally describes which displaces a recognised technology.        amateurtechnology.com
Through the years, cooling mass solids for example sugar, fertilizer, chemical substances, plastics, dried out biosolids, mineral deposits, and a number of other types associated with grains, crystals as well as bulk powders while using traditional technologies doesn't guarantee high quality final items.        thattechnology.com
Introduction associated with new as well as advanced systems have brought an excellent revolution within the digital globe. The technologies of cellular comes below such excellent technologies. Using mobiles isn't any more limited by the deliverance associated with personal communications.        mybesttechnology.com
The exercise of technologies transfer may greatly benefit a business. What is actually technology move? Technology transfer may be the sharing associated with technology between several organizations.        findatechnology.com
You can't escape or stay away from or using technology. If you're not personally utilizing it having a cell telephone, or pc, technology is certainly touching and associated with your daily activities.        savertechnology.com
Small businesses have to be in tune using the proper, up-to-date technology. When they are utilizing old, out-of-date technology or even broken techniques, then you do more damage than good as well as your business are affected consequently.        professortechnology.com
Online consumers who know the merchandise that they would like to buy as well as want to look at the greatest competitive prices realize that the easiest and many reliable method to do their own online shopping is to apply the service of the good assessment shopping website.        quietshopping.com
Are you earning money with your own Etsy Store? Are you researching ways to increase your own Etsy Product sales? Are you thinking about getting much more exposure for the Etsy Store?        projectshopping.com
Ever asked yourself why there's never each day in period when departmental stores are bare? Deeper analysis will highlight that there are specific customers who're well known using shopping outlets for 2 main factors: They usually want maintain with the most recent fashion developments        milliondollarshopping.com
It arrives as absolutely no great surprise how the shopping behaviors of equine owners possess changed rapidly through the years. This change has primarily been caused by the web. Increasing amounts of online add shops possess popped upward        getmyshopping.com
There continue to be a lot of shoppers who would rather see as well as feel products personally before giving their hard earned cash over. Each buying option has its unique benefits and drawbacks and these should be thought about and recognized before buying.        geniusshopping.com
Your vehicle might be of your most significant investments. Deciding on the best automotive look for repairs as well as maintenance is vital to keeping your automobile running from its maximum performance. One shop might not be appropriate for each type associated with automobile        chaseshopping.com
The Web has invaded every part of existence and simplified a number of our tasks for all of us. Visiting a good online buying store provides you with an concept of just exactly how spoilt the current customer is actually. Almost everything can be obtained at the phone call's discover today.        amateurshopping.com
Online shopping cart software is the well-known concept for many people. But the multi-vendor shopping cart software is totally another idea that allows multiple vendors to join up with exactly the same shopping trolley and show their items. That is actually each vendor includes a store house of the own.        shoppingrealtime.com
Here are a few of my personal favorite bay region bike stores of 2010. This is not a comprehensive overview of their high quality of support. This is simply a survey of all of the shops which kept me returning for more this year.        shoppingoriginal.com
There are a number of things which you have to consider when you're choosing as well as paint store. The major reason being when you create a wrong choice you won't only end up being risking your automobile but additionally, you will be wasting your hard earned dollars and period too.        shoppingnational.com
If you're one of the numerous merchants available who 1 online buying sites, your objective should continually be to own best web shopping encounter to audience. This is the only method to constantly increase product sales and succeed on the planet of e-commerce.        shoppinghow.com
There isn't any "one dimension fits all" solution with regards to meeting this particular goal. The varying nature of every niche does mean that buying websites need to have unique functions that focus on the needs of the particular...        shoppingdynamic.com
People happen to be shopping for a large number of years. Using the growth as well as expansion from the internet, today the actual art associated with comparison shopping has turned into a normal the main shopping encounter. Comparison buying is whenever consumers store at various sellers with regard to prices        shoppingaffordable.com
Due to the many benefits, comparison shopping isn't a brand new trend. A brief history of assessment shopping as well as how this evolved towards the popular exercise we observe today is very an fascinating story.        gurusshop.com
Reply

Use props Report

142

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
142
Posted at 4/20/2018 13:10:20        Only Author  7#
I Have the same problem.
could you tell me how you solved it?
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list