[libcamera-devel] How to activate AGC control in libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.

tetsuya.nomura at soho-enterprise.com tetsuya.nomura at soho-enterprise.com
Tue Feb 16 16:32:51 CET 2021


Dear David-san

Thank you very much for your reply about the issue.
I'd like to wait for your new release. Maybe faster than you reply me how to modify the tentative version.
Please send me the announcement once you finish the modification and release it.

And I'll move to the Raspi forum to get and share the information for the new topics of Raspi camera.

Talking about our product, of course I'm planning to open them to the public.
Because we are tiny company, very low overhead of operation, I can offer the reasonable price products for every vision processing hackers.
Introducing myself more, I was working in an image sensor maker and promoted V2 module to you.
Since then, I'm interested in making use of the image sensor and SW vision processing technology in AIoT field.
I strongly sympathized with the spirit of RPF, finally I establish the company to promote not only the image sensor from Sony but from others to help the innovators to realize their dreams. 
In this sense, it is my honor to contribute to Open Innovation by vision technology.   

It would be great if you tell me the address to send the prototype modules and other samples.
The nice thing is our lens modules have the XVS input for synchronized operation.
I'm looking forward to serving you soon with our products.

Best Regards,

NOMURA

================================
  Tetsuya NOMURA
================================
 Soho Enterprise Ltd.
 4-11-26 Gent BLDG 2F, Asahi-cho, Atsugi-shi, 
 Kanagawa, Japan  243-0014
 URL: https://soho-enterprise.com
 Mail: tetsuya.nomura at soho-enterprise.com
 Phone: +81-90-1839-1135
================================

-----Original Message-----
From: David Plowman <david.plowman at raspberrypi.com> 
Sent: Tuesday, February 16, 2021 7:43 PM
To: tetsuya.nomura at soho-enterprise.com
Cc: Dave Stevenson <dave.stevenson at raspberrypi.com>; Jacopo Mondi <jacopo at jmondi.org>; libcamera devel <libcamera-devel at lists.libcamera.org>
Subject: Re: [libcamera-devel] How to activate AGC control in libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.

Dear Nomura-san

Thank you for your email.

As expected, the log does indeed show that you are missing the CamHelper for the imx290. I will be submitting my version of this file once some other patches have been merged. I can send you the one I have, but there will be a couple of problems with it at the moment.
Firstly, it will need to be edited in order to compile, and the AGC won't quite function correctly (you will see some oscillations).

Finally, I was wondering if we might perhaps move these questions to the Raspberry Pi camera forum? You can find it here:
https://www.raspberrypi.org/forums/viewforum.php?f=43

I think they are all specific to the Raspberry Pi and I know that I'm finding it a bit difficult to reply when there are many questions in a chain of nearly 70 emails! I also think that it would be easier for the people who can answer your questions (e.g. about overlays) to see them there.

Also, we'd be very happy to receive some prototype modules. Will these be made available to the wider public in the future?

Thanks and best regards
David

On Tue, 16 Feb 2021 at 09:45, <tetsuya.nomura at soho-enterprise.com> wrote:
>
> Dear David-san
>
> I have re-create the libcamera environment with the latest sources and trying IMX327 module.
>
> I can normally make I2C access to IMX327 sensor, and maybe almost OK to display the image.
> I see the ERROR messages.
>
> Please check attached log file and give me the advice to correct the problem.
>
> And I just copy the uncalibrated.json to imx290.json.
> It would be great if you could show me your imx290.json file.
>
> I appreciate your kind help in advance.
>
> Best Regards,
>
> NOMURA
>
> -----Original Message-----
> From: tetsuya.nomura at soho-enterprise.com 
> <tetsuya.nomura at soho-enterprise.com>
> Sent: Tuesday, February 16, 2021 9:14 AM
> To: 'David Plowman' <david.plowman at raspberrypi.com>
> Cc: 'Dave Stevenson' <dave.stevenson at raspberrypi.com>; 'Jacopo Mondi' 
> <jacopo at jmondi.org>; 'libcamera devel' 
> <libcamera-devel at lists.libcamera.org>
> Subject: RE: [libcamera-devel] How to activate AGC control in libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
>
> Dear David-san
>
> Thank you very much for your kind advice.
> I'll try below according to your instruction and I'll report you the result soon.
> The X'tal on my board, the clock-frequency=37.125MHz.
> Shall I change the description in config.txt? (Anyway, I'll try two 
> cases.)
>
> I have one small question about the dtoverlay function.
> When I connecting IMX378, the same die to IMX477 but different device ID, I remember I need to make the imx378.c modified from imx477.c then build it.
> In case of IMX327, using the imx290.c but it seems different manner, it can work without build.
> What is the difference between these two cases?
>
> By the way, I can send you 3 kinds of IMX327 prototype modules of different FoV and the board to connect to Raspi and tinker board w/ IRCF as the gift for your kindness if you are interested in them.
> And IMX378 AF/OIS module, too.
> Actually I developed it in previous company as the reference design of IMX378 and other IMX sensors.
> I can see excellent image of IMX378 on tinker board image tuned by myself with the help of Rockchip and also by qcam.
> And hopefully I'd like to activate the AF function.
> (Only manual focus adjust is available now.)
>
> Best Regards,
>
> NOMURA
>
> -----Original Message-----
> From: David Plowman <david.plowman at raspberrypi.com>
> Sent: Monday, February 15, 2021 8:11 PM
> To: tetsuya.nomura at soho-enterprise.com
> Cc: Dave Stevenson <dave.stevenson at raspberrypi.com>; Jacopo Mondi 
> <jacopo at jmondi.org>; libcamera devel 
> <libcamera-devel at lists.libcamera.org>
> Subject: Re: [libcamera-devel] How to activate AGC control in libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
>
> Hello Nomura-san
>
> Yes, I've been looking at the imx327 recently.
>
> The latest Linux distributions for Raspberry Pi include a driver for imx290, and the same one appears to work for imx327. There is also a dtoverlay, in my /boot/config.txt I use:
>
> dtoverlay=imx290,clock-frequency=74250000
>
> Libcamera needs a CamHelper for the camera to work with the Pi and I have one ready to submit, only it's waiting on some other patches that are currently under review. But it shouldn't be too long.
>
> I also have a tuning file, however, the module that I have here is of the "NoIR" variety, so no sensible colour tuning is really possible.
> I'll submit it with the CamHelper. I believe they're Innomaker modules. Is this what you have or do you have something else?
>
> Best regards
> David
>
> On Mon, 15 Feb 2021 at 06:10, <tetsuya.nomura at soho-enterprise.com> wrote:
> >
> > Dear Dave-san and Jacopo-san
> >
> > May I ask you a favor for handling IMX327 image sensor on qcam?
> >
> > Recently I have developed the camera module of IMX327.
> >
> > It would be great if you could give me the advice how to connect 
> > this sensor to RaspberryPi because I noticed you talked about the 
> > IMX327 overlay issue as below.
> >
> > > > I guess I ought to update the other couple of sensor overlays we 
> > > > have (imx327, imx290, ov9281, and ov7251) with rotation and 
> > > > orientation, although those don't currently have libcamera tunings.
> > > > Several of them are mono too, which I don't believe has had much 
> > > > consideration so far....
> >
> > I'm expecting you have done the image tuning of this sensor to see 
> > the excellent image.
> > And I'd like to know how to make the lens shading correction table 
> > in .json file to adjust the parameter for each lens.
> >
> > I really appreciate your kind help in advance.
> >
> > Best Regards,
> >
> > NOMURA
> >
> > ==== = = = = = = = = = = = = = = = = = = = =
> > 双峰エンタープライズ株式会社 野村 哲哉
> > 〒243-0014 神奈川県厚木市旭町四丁目11番26号
> > ジェントビル2F
> > URL: https://soho-enterprise.com
> > Email: tetsuya.nomura at soho-enterprise.com
> > Phone: 090-1839-1135
> > = = ==== = = = = = = = = = = = = = = = = = =
> >
> > -----Original Message-----
> > From: Dave Stevenson <dave.stevenson at raspberrypi.com>
> > Sent: Tuesday, November 24, 2020 6:27 PM
> > To: Jacopo Mondi <jacopo at jmondi.org>
> > Cc: Laurent Pinchart <laurent.pinchart at ideasonboard.com>; libcamera 
> > devel <libcamera-devel at lists.libcamera.org>;
> > tetsuya.nomura at soho-enterprise.com
> > Subject: Re: [libcamera-devel] How to activate AGC control in 
> > libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
> >
> > Hi Jacopo
> >
> > On Tue, 24 Nov 2020 at 08:16, Jacopo Mondi <jacopo at jmondi.org> wrote:
> > >
> > > Hi Dave,
> > >
> > > On Mon, Nov 23, 2020 at 03:06:06PM +0000, Dave Stevenson wrote:
> > > > Hi Laurent
> > > >
> > > > On Mon, 23 Nov 2020 at 10:22, Laurent Pinchart 
> > > > <laurent.pinchart at ideasonboard.com> wrote:
> > > > >
> > > > > Hi Kieran,
> > > > >
> > > > > On Mon, Nov 23, 2020 at 09:35:39AM +0000, Kieran Bingham wrote:
> > > > > > On 23/11/2020 07:33, David Plowman wrote:
> > > > > > > Hi again
> > > > > > >
> > > > > > > Good to hear that things are building again. As regards 
> > > > > > > the transform, I inserted the following:
> > > > > > >
> > > > > > >     config_->transform = Transform::HVFlip;
> > > > > > >
> > > > > > > at line 426 in the file 
> > > > > > > libcamera/src/qcam/main_window.cpp,
> > > > > > > just before the call to config_->validate(). This seemed 
> > > > > > > to rotate the image successfully. You could use 
> > > > > > > Transform::Identity, Transform::HFlip or Transform::VFlip instead.
> > Good luck!
> > > > > >
> > > > > > I'm also currently working on a configuration file for 
> > > > > > libcamera, which would allow per-sensor specific properties 
> > > > > > to be
> > set.
> > > > > >
> > > > > > So I hope in the nearish future we'll be able to set this in 
> > > > > > a config file in (perhaps /etc/libcamera/camera_sensor.json 
> > > > > > for
> > > > > > instance) to handle 'per-device' type properties which can 
> > > > > > not be
> > set in device tree.
> > > > > >
> > > > > > We expect properties like camera location / rotation to be 
> > > > > > specified by firmware/device-tree/acpi in the correct case - 
> > > > > > but that won't really be appropriate for this RPi case, 
> > > > > > where the camera can be positioned quite arbitrarily and 
> > > > > > isn't fixed
> > > > > > ;-)
> > > > >
> > > > > Indeed :-) However, when making a product based on an RPi 
> > > > > platform, the camera location and rotation may be fixed. In 
> > > > > that case I'd like those properties to come from the device tree.
> > > > > We'll have to figure out how to get the information out to 
> > > > > system integrators, to avoid them specifying those properties 
> > > > > in
> > configuration files then.
> > > >
> > > > I'll agree, it should come from device tree, either by the 
> > > > integrator creating their own custom dtoverlay (or possibly 
> > > > complete DT if based on the Compute Module), or by adding it as 
> > > > a parameter to
> > the overlay.
> > > >
> > > > Looking at it I see that you submitted patches to the ov5647, 
> > > > imx219, and imx477 overlays to add a rotation parameter. That 
> > > > probably ought to be extended to add the orientation parameter.
> > > > Slightly annoyingly it'll need to be set with the enum values of 
> > > > 0=front, 1=back, 2=external, but I don't see a way around that.
> > > > Actually are there defines for use within DT at all? The 
> > > > equivalent of GPIO_ACTIVE_HIGH?
> > >
> > > This didn't make it yet:
> > > https://patchwork.linuxtv.org/project/linux-media/patch/2020050909
> > > 04
> > > 56
> > > .3496481-14-jacopo at jmondi.org/
> >
> > Ah, right. I only looked at our downstream trees. I thought it had 
> > already been merged into mainline.
> >
> > > > I guess I ought to update the other couple of sensor overlays we 
> > > > have (imx327, imx290, ov9281, and ov7251) with rotation and 
> > > > orientation, although those don't currently have libcamera tunings.
> > > > Several of them are mono too, which I don't believe has had much 
> > > > consideration so far....
> > > >
> > > >   Dave
> > > >
> > > > > > > On Mon, 23 Nov 2020 at 02:06, 
> > > > > > > <tetsuya.nomura at soho-enterprise.com>
> > wrote:
> > > > > > >>
> > > > > > >> Dear David-san
> > > > > > >>
> > > > > > >> Thanks to your instruction, now I can see the image.
> > > > > > >> I'll do the long run test soon.
> > > > > > >>
> > > > > > >> Before that, I'd like to try to Vflip/Hflip function.
> > > > > > >> I checked the transform.h and understood it can execute 
> > > > > > >> the v, h,
> > v&h flip.
> > > > > > >> However, I don't know how to apply the configuration when 
> > > > > > >> running
> > the qcam.
> > > > > > >> (I have no idea how to set the parameters, whether I need 
> > > > > > >> to modify the file and rebuild the qcam, Build option, or 
> > > > > > >> I can set the parameter as the command option.)
> > > > > > >>
> > > > > > >>> As regards the image orientation, the 
> > > > > > >>> CameraConfiguration class
> > has a field named "transform" which you can set before 
> > validating/configuring it, for example:
> > > > > > >>> cameraConfig.transform = Transform::VFlip;
> > > > > > >>
> > > > > > >> It would be great if you could tell us more precise instruction.
> > > > > > >>
> > > > > > >> And talking about the video configuration, I'd like to 
> > > > > > >> change the
> > image height and width.
> > > > > > >> I'm trying the command like below to get 16:9 aspect 
> > > > > > >> image, "qcam
> > -s height=1080 width=1920"
> > > > > > >> But I only see the 4:3 full FoV image.
> > > > > > >> I'd like to know more detailed instruction to use many of 
> > > > > > >> the
> > video capture options you have prepared.
> > > > > > >>
> > > > > > >> And I'm really looking forward to evaluating your new 
> > > > > > >> camera
> > applications below.
> > > > > > >> It is what many of the raspi user are waiting for.
> > > > > > >>> libcamera-based versions of our raspistill/raspivid 
> > > > > > >>> applications
> > > > > > >>
> > > > > > >> I appreciate you always give me the great help.
> > > > > > >>
> > > > > > >> Best Regards,
> > > > > > >>
> > > > > > >> NOMURA
> > > > > > >> -----Original Message-----
> > > > > > >> From: David Plowman <david.plowman at raspberrypi.com>
> > > > > > >> Sent: Monday, November 23, 2020 12:11 AM
> > > > > > >> To: tetsuya.nomura at soho-enterprise.com
> > > > > > >> Cc: Naushir Patuck <naush at raspberrypi.com>; libcamera 
> > > > > > >> devel <libcamera-devel at lists.libcamera.org>
> > > > > > >> Subject: Re: [libcamera-devel] How to activate AGC 
> > > > > > >> control in
> > libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
> > > > > > >>
> > > > > > >> Hello Nomura-san
> > > > > > >>
> > > > > > >> Yes, I have had some similar errors in recent weeks, I'm 
> > > > > > >> not too
> > sure why. There seems to be a new Python package required ("ply") 
> > and sometimes I've found myself having to delete the build directory 
> > under libcamera entirely and start over. Anyway, I've double-checked 
> > that the following instructions work, starting from a clean 
> > Raspberry Pi OS installation.
> > > > > > >>
> > > > > > >> First update the Pi's software as usual:
> > > > > > >>
> > > > > > >> sudo apt update
> > > > > > >> sudo apt upgrade
> > > > > > >> sudo rpi-update
> > > > > > >>
> > > > > > >> and then reboot it. Next install all the prerequisites 
> > > > > > >> for
> > libcamera:
> > > > > > >>
> > > > > > >> sudo apt install libboost-dev sudo apt install 
> > > > > > >> libgnutls28-dev openssl libtiff5-dev sudo apt install 
> > > > > > >> meson sudo apt install qtbase5-dev libqt5core5a 
> > > > > > >> libqt5gui5
> > > > > > >> libqt5widgets5 sudo pip3 install pyyaml ply
> > > > > > >>
> > > > > > >> Note the new "ply" Python package. Finally download and 
> > > > > > >> build
> > libcamera:
> > > > > > >>
> > > > > > >> git clone git://linuxtv.org/libcamera.git cd libcamera 
> > > > > > >> meson build ninja -C build
> > > > > > >>
> > > > > > >> That all seemed to work for me. You may have read that 
> > > > > > >> we're
> > (very soon, I hope!) introducing libcamera-based versions of our 
> > raspistill/raspivid applications and once those are available I'll 
> > be doing an update to all our related documentation.
> > > > > > >>
> > > > > > >> Best regards
> > > > > > >> David
> > > > > > >>
> > > > > > >> On Sun, 22 Nov 2020 at 08:39,
> > <tetsuya.nomura at soho-enterprise.com> wrote:
> > > > > > >>>
> > > > > > >>> Dear David-san.
> > > > > > >>>
> > > > > > >>> I retried the updating according to the instruction 
> > > > > > >>> shown below
> > URL.
> > > > > > >>> https://www.raspberrypi.org/documentation/linux/software
> > > > > > >>> /l
> > > > > > >>> ib
> > > > > > >>> camera/REA
> > > > > > >>> DME.md
> > > > > > >>>
> > > > > > >>> And when executing "meson build", the error occurred as 
> > > > > > >>> attached
> > log-file.
> > > > > > >>>
> > > > > > >>> We tried to recover the missing files but not succeeded in.
> > > > > > >>> (I did under clean-installed environment but failed.)
> > > > > > >>>
> > > > > > >>> It would be great if you help us the problem above.
> > > > > > >>>
> > > > > > >>> Thank you very much for your help in advance.
> > > > > > >>>
> > > > > > >>> Best Regards,
> > > > > > >>>
> > > > > > >>> NOMURA
> > > > > > >>>
> > > > > > >>> ================================
> > > > > > >>>   Tetsuya NOMURA
> > > > > > >>> ================================  Soho Enterprise Ltd.
> > > > > > >>>  4-11-26 Gent BLDG 2F, Asahi-cho, Atsugi-shi,  Kanagawa, 
> > > > > > >>> Japan
> > > > > > >>> 243-0014
> > > > > > >>>  URL: https://soho-enterprise.com
> > > > > > >>>  Mail: tetsuya.nomura at soho-enterprise.com
> > > > > > >>>  Phone: +81-90-1839-1135 
> > > > > > >>> ================================
> > > > > > >>>
> > > > > > >>> -----Original Message-----
> > > > > > >>> From: David Plowman <david.plowman at raspberrypi.com>
> > > > > > >>> Sent: Friday, November 20, 2020 6:48 PM
> > > > > > >>> To: tetsuya.nomura at soho-enterprise.com
> > > > > > >>> Cc: Naushir Patuck <naush at raspberrypi.com>; libcamera 
> > > > > > >>> devel <libcamera-devel at lists.libcamera.org>
> > > > > > >>> Subject: Re: [libcamera-devel] How to activate AGC 
> > > > > > >>> control in
> > libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
> > > > > > >>>
> > > > > > >>> Dear Nomura-san
> > > > > > >>>
> > > > > > >>> Thanks for your message. Obviously if the build problems 
> > > > > > >>> persist
> > please post details of the error and we'll try to help.
> > > > > > >>>
> > > > > > >>> As regards the image orientation, the 
> > > > > > >>> CameraConfiguration class
> > has a field named "transform" which you can set before 
> > validating/configuring it, for example:
> > > > > > >>>
> > > > > > >>> cameraConfig.transform = Transform::VFlip;
> > > > > > >>>
> > > > > > >>> Please refer to libcamera/include/libcamera/transform.h
> > > > > > >>> for all
> > the possible values, but note that the Pi implementation does not 
> > support transforms that involve a transpose operation (so only 
> > Identity, HFlip, VFlip and HVFlip are allowed).
> > > > > > >>>
> > > > > > >>> I don't believe qcam has any way to set this from the 
> > > > > > >>> command
> > line, so you'd have to edit source code. At Raspberry Pi we're still 
> > intending to release libcamera-based versions of raspistill/raspicam 
> > which will have command line options to configure the transform, 
> > hopefully this won't be too much longer now!
> > > > > > >>>
> > > > > > >>> Best regards
> > > > > > >>> David
> > > > > > >>>
> > > > > > >>> On Fri, 20 Nov 2020 at 07:04,
> > <tetsuya.nomura at soho-enterprise.com> wrote:
> > > > > > >>>>
> > > > > > >>>> Dear David-san
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> We have tried rpi-update.
> > > > > > >>>>
> > > > > > >>>> We had the build error then.
> > > > > > >>>>
> > > > > > >>>> Do you have any idea for this problem?
> > > > > > >>>>
> > > > > > >>>> Anyway we’ll try clean install.
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> By the way, we’d like to change the image orientation.
> > > > > > >>>>
> > > > > > >>>> I think v4l2 command support vertical/horizontal flip 
> > > > > > >>>> by
> > changing the register of 0x172[1:0] .
> > > > > > >>>>
> > > > > > >>>> How can we apply this function when using qcam?
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> I appreciate your kind advice in advance.
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> Best Regards,
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> NOMURA
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> From: tetsuya.nomura at soho-enterprise.com
> > > > > > >>>> <tetsuya.nomura at soho-enterprise.com>
> > > > > > >>>> Sent: Sunday, November 8, 2020 8:55 AM
> > > > > > >>>> To: 'David Plowman' <david.plowman at raspberrypi.com>
> > > > > > >>>> Cc: 'Naushir Patuck' <naush at raspberrypi.com>; 'libcamera devel'
> > > > > > >>>> <libcamera-devel at lists.libcamera.org>
> > > > > > >>>> Subject: RE: [libcamera-devel] How to activate AGC 
> > > > > > >>>> control in
> > libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> Dear David-san
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> Thank you for the notification of fixing memory leak issue.
> > > > > > >>>>
> > > > > > >>>> I’ll try it soon.
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> Best Regards,
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> NOMURA
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> From: David Plowman <david.plowman at raspberrypi.com>
> > > > > > >>>> Sent: Saturday, November 7, 2020 12:23 AM
> > > > > > >>>> To: tetsuya.nomura at soho-enterprise.com
> > > > > > >>>> Cc: Naushir Patuck <naush at raspberrypi.com>; libcamera 
> > > > > > >>>> devel <libcamera-devel at lists.libcamera.org>
> > > > > > >>>> Subject: Re: [libcamera-devel] How to activate AGC 
> > > > > > >>>> control in
> > libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> Hi everyone
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> This is just to let you know that doing "sudo rpi-update"
> > should now update your kernel with a fix for this memory leak.
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> Best regards
> > > > > > >>>>
> > > > > > >>>> David
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> On Sat, 10 Oct 2020 at 10:16, David Plowman
> > <david.plowman at raspberrypi.com> wrote:
> > > > > > >>>>
> > > > > > >>>> Hello Nomura-san
> > > > > > >>>>
> > > > > > >>>> Thanks for sending that log. At least it seems to be 
> > > > > > >>>> showing the same thing that Naush saw, so hopefully 
> > > > > > >>>> there is
> > only a single problem.
> > > > > > >>>>
> > > > > > >>>> You had previously mentioned the following two git commits:
> > > > > > >>>>
> > > > > > >>>> libcamera: c3548a333f86d31213ca9f2ccc3faf743b246743
> > > > > > >>>> rpi-update: f794477c7c48061a720d6b9331d27f8d0300009c
> > > > > > >>>>
> > > > > > >>>> Can you perhaps confirm whether this version of the 
> > > > > > >>>> software, with the above commits at the top of the 
> > > > > > >>>> tree, did show the memory problem or did not show it?
> > > > > > >>>>
> > > > > > >>>> Best regards
> > > > > > >>>> David
> > > > > > >>>>
> > > > > > >>>> On Sat, 10 Oct 2020 at 02:16,
> > <tetsuya.nomura at soho-enterprise.com> wrote:
> > > > > > >>>>>
> > > > > > >>>>> Dear David-san and Naush-san
> > > > > > >>>>>
> > > > > > >>>>> We have another dmesg log as attached.
> > > > > > >>>>>
> > > > > > >>>>> Best Regards,
> > > > > > >>>>>
> > > > > > >>>>> NOMURA
> > > > > > >>>>> -----Original Message-----
> > > > > > >>>>> From: tetsuya.nomura at soho-enterprise.com
> > > > > > >>>>> <tetsuya.nomura at soho-enterprise.com>
> > > > > > >>>>> Sent: Saturday, October 10, 2020 8:20 AM
> > > > > > >>>>> To: 'Naushir Patuck' <naush at raspberrypi.com>; 'David Plowman'
> > > > > > >>>>> <david.plowman at raspberrypi.com>
> > > > > > >>>>> Cc: 'libcamera-devel at lists.libcamera.org'
> > > > > > >>>>> <libcamera-devel at lists.libcamera.org>
> > > > > > >>>>> Subject: RE: [libcamera-devel] How to activate AGC 
> > > > > > >>>>> control in
> > libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
> > > > > > >>>>>
> > > > > > >>>>> Dear David-san and Naush-san
> > > > > > >>>>>
> > > > > > >>>>> And after login again and run the qcam, it stopped 
> > > > > > >>>>> after a few
> > minutes and see the login window.
> > > > > > >>>>> But this time I could not login.(no dmseg was got 
> > > > > > >>>>> after this
> > > > > > >>>>> symptom)
> > > > > > >>>>>
> > > > > > >>>>> While second trial of qcam the response speed for the 
> > > > > > >>>>> click
> > became very slow.
> > > > > > >>>>> Image display speed kept 30.0fps.
> > > > > > >>>>>
> > > > > > >>>>> For an additional report.
> > > > > > >>>>>
> > > > > > >>>>> Best Regards,
> > > > > > >>>>>
> > > > > > >>>>> NOMURA
> > > > > > >>>>> -----Original Message-----
> > > > > > >>>>> From: tetsuya.nomura at soho-enterprise.com
> > > > > > >>>>> <tetsuya.nomura at soho-enterprise.com>
> > > > > > >>>>> Sent: Saturday, October 10, 2020 8:08 AM
> > > > > > >>>>> To: 'Naushir Patuck' <naush at raspberrypi.com>; 'David Plowman'
> > > > > > >>>>> <david.plowman at raspberrypi.com>
> > > > > > >>>>> Cc: 'libcamera-devel at lists.libcamera.org'
> > > > > > >>>>> <libcamera-devel at lists.libcamera.org>
> > > > > > >>>>> Subject: RE: [libcamera-devel] How to activate AGC 
> > > > > > >>>>> control in
> > libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
> > > > > > >>>>>
> > > > > > >>>>> Dear David-san Naush-san
> > > > > > >>>>>
> > > > > > >>>>> I got reproduce the symptom and got the dmseg as attached.
> > > > > > >>>>>
> > > > > > >>>>> It would be great if it will be your help to solve the issue.
> > > > > > >>>>>
> > > > > > >>>>> Best Regards,
> > > > > > >>>>>
> > > > > > >>>>> NOMURA
> > > > > > >>>>>
> > > > > > >>>>> -----Original Message-----
> > > > > > >>>>> From: Naushir Patuck <naush at raspberrypi.com>
> > > > > > >>>>> Sent: Thursday, October 8, 2020 5:19 PM
> > > > > > >>>>> To: tetsuya.nomura at soho-enterprise.com
> > > > > > >>>>> Cc: David Plowman <david.plowman at raspberrypi.com>; 
> > > > > > >>>>> libcamera-devel at lists.libcamera.org
> > > > > > >>>>> Subject: Re: [libcamera-devel] How to activate AGC 
> > > > > > >>>>> control in
> > libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
> > > > > > >>>>>
> > > > > > >>>>> Hi all,
> > > > > > >>>>>
> > > > > > >>>>> I did try a long running test, and interestingly, mine 
> > > > > > >>>>> did
> > also fail at around the 15hour mark (approx 1540000 frames).  My 
> > qcam process (running under gdb) was just terminated at that point.
> > However, no reboot occurred.  Looking at the dmesg logs, it seems 
> > that the Out of Memory killer terminated the task.  This suggests 
> > that there is maybe a memory leak lurking somewhere in either 
> > libcamera core or the Raspberry Pi ipa/pipeline handler.
> > > > > > >>>>>
> > > > > > >>>>> Nomura-san, could you send us the output of dmesg when 
> > > > > > >>>>> you run
> > into this failure again, just to check if we are seeing the same thing?
> > > > > > >>>>>
> > > > > > >>>>> Thanks,
> > > > > > >>>>> Naush
> > > > > > >>>>>
> > > > > > >>>>> On Thu, 8 Oct 2020 at 07:48,
> > <tetsuya.nomura at soho-enterprise.com> wrote:
> > > > > > >>>>>>
> > > > > > >>>>>> Dear David-san
> > > > > > >>>>>>
> > > > > > >>>>>> We took a log to catch when (how long time after 
> > > > > > >>>>>> application
> > start) reboot occurs.
> > > > > > >>>>>> The logs says around 1100minuite, maybe the raspi got
> > rebooted, no other log.
> > > > > > >>>>>>
> > > > > > >>>>>> And the older version and the combination, this 
> > > > > > >>>>>> phenomena
> > never happened.
> > > > > > >>>>>>
> > > > > > >>>>>> libcamera: c3548a333f86d31213ca9f2ccc3faf743b246743
> > > > > > >>>>>> rpi-update: f794477c7c48061a720d6b9331d27f8d0300009c
> > > > > > >>>>>> (We are using the latest one for both.)
> > > > > > >>>>>>
> > > > > > >>>>>> Best Regards,
> > > > > > >>>>>>
> > > > > > >>>>>> NOMURA
> > > > > > >>>>>> -----Original Message-----
> > > > > > >>>>>> From: David Plowman <david.plowman at raspberrypi.com>
> > > > > > >>>>>> Sent: Wednesday, October 7, 2020 7:37 PM
> > > > > > >>>>>> To: tetsuya.nomura at soho-enterprise.com
> > > > > > >>>>>> Cc: Laurent Pinchart
> > > > > > >>>>>> <laurent.pinchart at ideasonboard.com>;
> > > > > > >>>>>> Kieran Bingham <kieran.bingham at ideasonboard.com>;
> > > > > > >>>>>> libcamera-devel at lists.libcamera.org
> > > > > > >>>>>> Subject: Re: [libcamera-devel] How to activate AGC 
> > > > > > >>>>>> control in
> > libcamera, or set the GAIN/EXPOSURE parameter by v4l2 command.
> > > > > > >>>>>>
> > > > > > >>>>>> Hello Nomura-san
> > > > > > >>>>>>
> > > > > > >>>>>> Thanks for your message.
> > > > > > >>>>>>
> > > > > > >>>>>> So we're not aware of any problems like the one you 
> > > > > > >>>>>> report
> > but we'll see if we can reproduce it - obviously it will take a 
> > little while. Do you believe the Pi crashed completely and rebooted? 
> > If so, might we be able to get any system logs that could give us a 
> > clue as to what happened?
> > > > > > >>>>>>
> > > > > > >>>>>> Thanks and best regards David
> > > > >
> > > > > --
> > > > > Regards,
> > > > >
> > > > > Laurent Pinchart
> > > > > _______________________________________________
> > > > > libcamera-devel mailing list
> > > > > libcamera-devel at lists.libcamera.org
> > > > > https://lists.libcamera.org/listinfo/libcamera-devel
> > > > _______________________________________________
> > > > libcamera-devel mailing list
> > > > libcamera-devel at lists.libcamera.org
> > > > https://lists.libcamera.org/listinfo/libcamera-devel
> >
> > _______________________________________________
> > libcamera-devel mailing list
> > libcamera-devel at lists.libcamera.org
> > https://lists.libcamera.org/listinfo/libcamera-devel



More information about the libcamera-devel mailing list