ENOTTY error in galcore ioctl of imx6 solo

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ENOTTY error in galcore ioctl of imx6 solo

Jump to solution
1,511 Views
toshinariagata
Contributor III

Hi,

I am using Vivante gpu on customised imx6 solo board. I use sample source from this link: i.MX6DQP/DQ/DL/SL/SX GPU Demo Framework SDK, but It doesn't work. I use fb back-end (libVIVANTE-fb.so). Linux version is 3.0.35-2508-g54750ff-svn2569.

 

Strace on gpu_sdk_v1.00/Samples/GLES2.0/01_SimpleTriangle gives following output for example:

open("/dev/galcore", O_RDWR) = 3
ioctl(3, _IOC(0, 0x75, 0x30, 0x00), 0x7eacdc88) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(3, _IOC(0, 0x75, 0x30, 0x00), 0x7eacdc60) = -1 ENOTTY (Inappropriate ioctl for device)

 

However, the same program works well with SABRE board.

I have the following questions.
- Why does not customised imx6 solo board work well? I compared the customised  imx6 solo board config with SABRE board config, but I did not know why it doesn't work. Atattched solo board config(solo_config) and SABRE board config(SABRE_config).
- I want to know the way and the config to work well.

Thank you,

Original Attachment has been moved to: solo_config.zip

Original Attachment has been moved to: SABRE_config.zip

0 Kudos
1 Solution
1,040 Views
toshinariagata
Contributor III

Hi, igorpadykov

01_SimpleTriangle works when /dev is writable.

Thank you.

View solution in original post

0 Kudos
3 Replies
1,041 Views
toshinariagata
Contributor III

Hi, igorpadykov

01_SimpleTriangle works when /dev is writable.

Thank you.

0 Kudos
1,040 Views
toshinariagata
Contributor III

Hi, igorpadykov

Thank you for giving me information.

I changed Kernel Configuration as follows.
  Kernel Configuration
    System Type
        Freescale MXC Implementations
            Support i.MX 6Quad Armadillo2 platform     -> no check
            Support i.MX 6SoloLite Armadillo2 platform -> no check
            Support i.MX 6SoloLite EVK platform        -> no check
            Support i.MX 6Quad SABRE Lite platform     -> no check
            Support i.MX 6Quad SABRESD platfor         -> no check
            Support i.MX 6Quad SABRE Auto platform     -> no check
            Support i.MX 6Quad HDMIDONGLE platform     -> no check

There are make errors as follows.
  arch/arm/mach-mx6/usb_h2.c: In function 'hsic_start':
  arch/arm/mach-mx6/usb_h2.c:185:278: error: 'PAD_CTL_DSE_40ohm' undeclared (first use in this function)
  arch/arm/mach-mx6/usb_h2.c:185:278: note: each undeclared identifier is reported only once for each function it appears in
  arch/arm/plat-mxc/devices/platform-imx-dma.c: In function 'imxXX_add_imx_dma':
  arch/arm/plat-mxc/devices/platform-imx-dma.c:265:2: error: 'imx6q_imx_sdma_data' undeclared (first use in this function)
  arch/arm/plat-mxc/devices/platform-imx-dma.c:265:2: note: each undeclared identifier is reported only once for each function it appears in
  arch/arm/plat-mxc/devices/platform-imx-dma.c:268:8: error: 'addr_imx6q_to1' undeclared (first use in this function)

I did not know why make errors occur.
Please show me the solo config.

0 Kudos
1,040 Views
igorpadykov
NXP Employee
NXP Employee

Hi toshinariagata

solo_config file has record : CONFIG_ARCH_MX6Q=y

which is not correct, as i.MX6Q and Solo are different processors

with different gpus, so there is message "Inappropriate ioctl for device".

Please refer to attached file and AN4397 Common Hardware Design for

i.MX 6Dual/6Quad and i.MX 6Solo/6DualLite

http://cache.nxp.com/files/32bit/doc/app_note/AN4397.pdf 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos