Embedded Intel Atom® Processors
Technological Conversations about Intel Atom® Hardware, Software, Firmware, Graphics
1149 Discussions

EMGD errors on Atom E38xx (TIZEN IVI)

MGuse1
Novice
3,317 Views

Hello!

I have prepared kernel 3.10.28 with recomendations from https://www-ssl.intel.com/content/dam/www/public/us/en/documents/guides/tizen-ivi-m2-kernel-ltsi-linux-support-package-atom-e3800-gsg.pdf https://www-ssl.intel.com/content/dam/www/public/us/en/documents/guides/tizen-ivi-m2-kernel-ltsi-linux-support-package-atom-e3800-gsg.pdf (january 2015 revision). Everything is completed successfully and graphical environment is loaded. But when i try to open USB camera from gstreamer i get errors from EMGD in dmesg output:

emgd_fbcon_setcmap ERROR: Invalid parameter

emgd_user_framebuffer_create ERROR: Userspace passed invalid bo handle[3]

emgd_get_param ERROR: invalid parameter passed to GETPARAM ioctl:22

I am using emgd from https://downloadcenter.intel.com/download/23820 Intel® Download Center .

Video files succesfully opened with gstreamer. How i may open USB camera? How to get rid off of these errors?

Best Regards,

Maksim Gusev

 

0 Kudos
18 Replies
Gabriel_T_Intel
Employee
1,253 Views

Hello Maks,

Thanks for contacting the Intel /community/en ® Embedded Community.

We are working in your case and we will contact you as soon as possible.

Best regards,

Gabriel Thomas

0 Kudos
idata
Employee
1,253 Views

Hi Maks,

We are still working on your case and will update you on any progress as soon as we can. Thank you for your patience.

Best,

Eunike

0 Kudos
HS1
Novice
1,253 Views

Hi MaksO_oN,

I believe EMGD is obsolete.

I happened to work on yocto environment and find this article for graphics driver:

http://www.intel.in/content/dam/www/public/us/en/documents/guides/atom-e3800-celeron-n2xx-yocto-bsp-graphics-driver-guide.pdf http://www.intel.in/content/dam/www/public/us/en/documents/guides/atom-e3800-celeron-n2xx-yocto-bsp-graphics-driver-guid

This link suggest using drm with lib-vaapi support and gstreamer-vaapi

0 Kudos
Josue_C_Intel
Employee
1,253 Views

Hello Maks,

Please refer to the section 3.7.4 How to Use Gstreamer, Video encoding for camera input from Document # 546069 Tizen* IVI 3.0 M2 Kernel 3.10 LTSI Linux* Support Package for the Intel® Atom™ Processor E3800 Series Getting Started Guide January 2015, and let us know if this is useful.

Best Regards.

Josue.

0 Kudos
MGuse1
Novice
1,253 Views

Hello, Josue,

I tried this section but Gstreamer didn`t find vaapiencode_h264 pipeline element. Maybe i have a mistake in installing gstreamer. I can try to rebuild all userspace software in section 3.5 if it may help me with my problem.

I opened video and audio files with command: gst-launch-1.0 playbin uri=file://pathtofile and it works well, But when i opened video from ModelloPlayer video didn't attach to ModelloPlayer window and has it's own window (just like when executing the command gst-launch-1.0 playbin uri=file://pathtofile). When i click on other place except video surface, video goes to background. How may i attach video surface to Player window?

Best Regards.

Maks.

0 Kudos
Josue_C_Intel
Employee
1,253 Views

Hello Maks,

If the driver is properly installed, including the VAAPI extensions, then encode works.

Best Regards.

Josue.

0 Kudos
MGuse1
Novice
1,253 Views

Hello, Josue.

I tried reinstalling gstreamer-vaapi-0.5.7. On configure step (./configure --prefix=/usr --enable-wayland –-enable-encoders) i was see, what enable-encoders element was not found but this was only warning and confugure sucess ended. After that i tried this step on gstreamer-vaapi-0.5.9 and configure step successfully complete without warnings.

After installing of gstreamer-vaapi-0.5.9 video stream from camera successfully opened with Gstreamer, though in dmesg output was string "emgd_get_param ERROR: invalid parameter passed to GETPARAM ioctl:22" .

Although emgd error string in dmesg is stay, but problem with camera is solved.

 

Best Regards.

Maks.

0 Kudos
idata
Employee
1,253 Views

Hi Maks,

I understand that our agents reached out to you through email and this is now resolved. Thank you for using the community.

Best,

Eunike

0 Kudos
MGuse1
Novice
1,253 Views

Hello, Eunike.

The problem with camera is solved and it works through gst-launch-1.0 pipeline(displayed on wayland surface). But then i tried to open the camera in my html app in tag, i don't see the image from camera, although the lamp on the camera is lit, which means it opened succesfully i think.

Also i installed Modello Player from SDK Samples and when i opened a video it was displayed on wayland surface and not in tag. I didn't see video frames after it started playing, and only "Super+Tab" helps to see the video.

Why didn't the video attach to tag and what can i do to solve this problem? May be this problem is in webkit browser, that displays html application, or Gstreamer didn't have some sink to attach video to browser window?

Best Regards.

Maks.

0 Kudos
Natalie_Z_Intel
Employee
1,253 Views

Hi, Maks! Glad to see that your camera issue is solved. Have you checked with a Linux consultant regarding these other issues? LynnZ.

0 Kudos
MGuse1
Novice
1,253 Views

Hello, LynnZ!

When i posted this question, i was think, that my problem is in EMGD errors. But yesterday i load default linux kernel without ISP an EMGD and problems with displaying are not going away. And now i think, that EMGD errors are not react on video displaying. But it is a strangely, that this errors are transmit to dmesg, when i open a video.

Best Regards.

Maks.

0 Kudos
Gabriel_T_Intel
Employee
1,253 Views

Hello Maks,

Thanks for the update. We are going to chech the possible causes of your issue, and we will contact you as soon as possible.

Thanks,

Gabriel Thomas.

0 Kudos
MGuse1
Novice
1,253 Views

Hello, gabriel.thomas!

I take a logs from journalctl, maybe it is useful for find of a problem.

Below a log, when i try to open camera from trough GetUserMedia:

Jun 18 06:53:51 localhost systemd[1]: Startup finished in 4.018s (kernel) + 12.589s (userspace) = 16.607s.

Jun 18 06:53:51 localhost kernel: usb 1-1.3: link qh8-0e01/f5bb49c0 start 5 [1/2 us]

Jun 18 06:53:51 localhost kernel: emgd_user_framebuffer_create ERROR: Userspace passed invalid bo handle[3]: 0xb7631edd

Jun 18 06:53:51 localhost kernel: emgd_get_param ERROR: Invalid parameter passed to GETPARAM ioctl: 22

Jun 18 06:54:00 localhost media-server[170]: pm socket sendto() failed: No such file or directory

Jun 18 06:54:21 localhost kernel: wrt_launchpad_d (258): /proc/258/oom_adj is deprecated, please use /proc/258/oom_score_adj instead.

Jun 18 06:54:21 localhost systemd[1]: Starting Stop Read-Ahead Data Collection...

Jun 18 06:54:21 localhost systemd[1]: Started Stop Read-Ahead Data Collection.

Jun 18 06:54:21 localhost kernel: emgd_get_param ERROR: Invalid parameter passed to GETPARAM ioctl: 22

Jun 18 06:54:22 localhost wrt_launchpad_daemon[182]: ERR<258>:elementary elm_gesture_layer.c:3680 elm_gesture_layer_add() could not add 0x8c3e450 as sub object of 0x8c3e190

Jun 18 06:54:22 localhost wrt_launchpad_daemon[182]: ERR<258>:elementary elm_layout.c:1847 elm_layout_add() could not add 0x8c3fa50 as sub object of 0x8c3e190

Jun 18 06:54:22 localhost kernel: emgd_get_param ERROR: Invalid parameter passed to GETPARAM ioctl: 22

Jun 18 06:54:22 localhost wrt_launchpad_daemon[182]: ERR<258>: /home/abuild/rpmbuild/BUILD/webkit2-efl-123997_0.12.1/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp:2850 ewk_view_user_agent_set() safety check failed: userAgent == NULL

Jun 18 06:54:22 localhost wrt_launchpad_daemon[182]: ERR<258>:elementary elm_layout.c:720 _elm_layout_smart_content_set() could not swallow 0x8e0e270 into part 'elm.swallow.softkey'

Jun 18 06:54:22 localhost kernel: emgd_get_param ERROR: Invalid parameter passed to GETPARAM ioctl: 22

Jun 18 06:54:23 localhost wrt_launchpad_daemon[182]: launched

Jun 18 06:54:24 localhost wrt_launchpad_daemon[182]: launched

Jun 18 06:54:25 localhost wrt_launchpad_daemon[182]: launched

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: (WebProcess:259): GStreamer-WARNING **: 0.10-style raw video caps are being created. Should be video/x-raw,format=(string).. now.

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: (WebProcess:259): GStreamer-CRITICAL **: gst_mini_object_unref: assertion `mini_object != NULL' failed

Jun 18 06:54:26 localhost kernel: ehci-pci 0000:00:1d.0: reused qh f3f27f00 schedule

Jun 18 06:54:26 localhost kernel: usb 1-1.2: link qh16-0001/f3f27f00 start 4 [1/0 us]

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: (WebProcess:259): GLib-GObject-WARNING **: g_object_set_valist: object class `GstVaapiSink' has no property named `wl-display'

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: (WebProcess:259): GLib-GObject-WARNING **: g_object_set_valist: object class `GstVaapiSink' has no property named `display-mode'

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: libva info: VA-API version 0.34.0

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: libva info: va_getDriverName() returns 0

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: libva info: Trying to open /usr/lib/dri/emgd_drv_video.so

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: libva info: Found init function __vaDriverInit_0_34

Jun 18 06:54:26 localhost kernel: emgd_get_param ERROR: Invalid parameter passed to GETPARAM ioctl: 22

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: libva info: va_openDriver() returns 0

Jun 18 06:54:26 localhost kernel: emgd_get_param ERROR: Invalid parameter passed to GETPARAM ioctl: 22

Jun 18 06:54:26 localhost murphyd[168]: --> client id: 259

Jun 18 06:54:26 localhost murphyd[168]: --> data handle: -1

Jun 18 06:54:26 localhost murphyd[168]: --> request id: 0x0000

Jun 18 06:54:26 localhost murphyd[168]: --> sound event: 0x0000

Jun 18 06:54:26 localhost murphyd[168]: --> system resource: 0x0000

Jun 18 06:54:26 localhost murphyd[168]: --> state: 0x0000

Jun 18 06:54:26 localhost murphyd[168]: REQUEST: REGISTER

Jun 18 06:54:26 localhost murphyd[168]: initialization error

Jun 18 06:54:26 localhost murphyd[168]: application real name: UbVabTZLTL.testapp

Jun 18 06:54:26 localhost murphyd[168]: Event CB: id 0, set 0x87c4ec0

Jun 18 06:54:26 localhost murphyd[168]: Resource class: player

Jun 18 06:54:26 localhost murphyd[168]: Advice 0x00000005, Grant 0x00000000

Jun 18 06:54:26 localhost murphyd[168]: callback for no request 0

Jun 18 06:54:26 localhost murphyd[168]: <-- client id: 259

Jun 18 06:54:26 localhost murphyd[168]: <-- alloc handle: 1

Jun 18 06:54:26 localhost murphyd[168]: <-- command handle: 1

Jun 18 06:54:26 localhost murphyd[168]: <-- sound command: 0x0000

Jun 18 06:54:26 localhost murphyd[168]: <-- state: 0x0002

Jun 18 06:54:26 localhost murphyd[168]: <-- former event: -1

Jun 18 06:54:26 localhost murphyd[168]: <-- check privilege: TRUE

Jun 18 06:54:26 localhost murphyd[168]:

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: (WebProcess:259): GStreamer-WARNING **: 0.10-style raw video caps are being created. Should be video/x-raw,format=(string).. now.

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: (WebProcess:259): GStreamer-CRITICAL **: gst_mini_object_unref: assertion `mini_object != NULL' failed

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: (WebProcess:259): GLib-GObject-WARNING **: g_object_set_valist: object class `GstTCPClientSrc' has no property named `protocol'

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: (WebProcess:259): GLib-GObject-WARNING **: g_object_set_valist: object class `WebKitCameraSrc' has no property named `extra-headers'

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: (WebProcess:259): GLib-GObject-WARNING **: g_object_set_valist: object class `WebKitCameraSrc' has no property named `user-agent'

Jun 18 06:54:26 localhost murphyd[168]: --> client id: 259

Jun 18 06:54:26 localhost murphyd[168]: --> data handle: 1

Jun 18 06:54:26 localhost murphyd[168]: --> request id: 0x0004

Jun 18 06:54:26 localhost murphyd[168]: --> sound event: 0x0000

Jun 18 06:54:26 localhost murphyd[168]: --> system resource: 0x0000

Jun 18 06:54:26 localhost murphyd[168]: --> state: 0x0004

Jun 18 06:54:26 localhost murphyd[168]: REQUEST: SET STATE

Jun 18 06:54:26 localhost murphyd[168]: requesting release of playback rights for set '259.1' (id: 1)

Jun 18 06:54:26 localhost murphyd[168]: Event CB: id 1, set 0x87c4ec0

Jun 18 06:54:26 localhost murphyd[168]: Resource class: player

Jun 18 06:54:26 localhost murphyd[168]: Advice 0x00000005, Grant 0x00000000

Jun 18 06:54:26 localhost murphyd[168]: callback for release request 1

Jun 18 06:54:26 localhost murphyd[168]:

Jun 18 06:54:26 localhost wrt_launchpad_daemon[182]: pm socket sendto() failed: No such file or directory

Jun 18 06:54:31 localhost kernel: usb 1-1.2: unlink qh16-0001/f3f27f00 start 4 [1/0 us]

Jun 18 06:54:33 localhost wrt_launchpad_daemon[182]: (WebProcess:259): GStreamer-CRITICAL **: gst_object_unref: assertion `((GObject *) object)->ref_count > 0' failed

Jun 18 06:54:33 localhost wrt_launchpad_daemon[182]: pm socket sendto() failed: No such file or directory

Jun 18 06:54:33 localhost murphyd[168]: ...

Gabriel_T_Intel
Employee
1,253 Views

Hello Maks,

 

Thanks for the information. We keep working on it.

Please attach the log file if it is possible.

 

 

Regards,

 

Gabriel Thomas.

 

0 Kudos
MGuse1
Novice
1,253 Views

Hello, gabriel.thomas!

There are logs in the attachment to this message.

Best Regards,

Maks.

0 Kudos
Gabriel_T_Intel
Employee
1,253 Views

Hello Maks,

Thanks for the files.

We will contact you as soon as possible with additional information.

Regards,

Gabriel Thomas

0 Kudos
Natalie_Z_Intel
Employee
1,253 Views

Hi, Maks! It looks like our technical team has reached out to you via email with some additional questions. Please provide the information to them via email. LynnZ.

0 Kudos
idata
Employee
1,253 Views

Hello MaksO_oN,

To understand more about your project and to try to assist you better, it might be best to have you reach out to our sales team.

Please complete the form at https://www-ssl.intel.com/content/www/us/en/forms/intelligent-systems/get-help-external.html https://www-ssl.intel.com/content/www/us/en/forms/intelligent-systems/get-help-external.html to be connected with a representative in your geographical area.

Regards,

Jimmy.

0 Kudos
Reply