This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

when add [*]/sys/class/gpio/... and recompile the linux, i get some error!



Hello,

     Good afternoon!

     I have a question when i use GPIO Driver Guide. Could you help me please!My linux revision is linux-2.6.37-psp04.00.01.13.patch2

     It was that, i want to contorl GPIO with /sys/class/gpio/??/?? ,but i found gpio/??/?? is not in /sys/class .

     So that i reconfig the Driver Configuration(add the selection):   [*] /sys/class/gpio/...

     But when i recompile the linux, i recived some error:

              ......

                   In file included from drivers/video/ti81xx/sii9022a/sii9022a_drv.c:29:
                             drivers/video/ti81xx/sii9022a/../vpss/display_interface.h:23:30: error: plat/ti81xx-vpss.h: No such file or directory
                   In file included from drivers/video/ti81xx/sii9022a/sii9022a_drv.c:29:
                              drivers/video/ti81xx/sii9022a/../vpss/display_interface.h:106: error: field 'standard' has incomplete type
                               drivers/video/ti81xx/sii9022a/../vpss/display_interface.h:151: error: field 'outinfo' has incomplete type
                   In file included from drivers/video/ti81xx/sii9022a/sii9022a_drv.c:30:
                              drivers/video/ti81xx/sii9022a/sii9022a_drv.h:59: error: field 'standard' has incomplete type
                              drivers/video/ti81xx/sii9022a/sii9022a_drv.c:48: error: 'FVID2_STD_720P_60' undeclared here (not in a function)
                              drivers/video/ti81xx/sii9022a/sii9022a_drv.c:50: error: 'FVID2_STD_720P_50' undeclared here (not in a function)
                              drivers/video/ti81xx/sii9022a/sii9022a_drv.c:52: error: 'FVID2_STD_1080P_30' undeclared here (not in a function)
                              drivers/video/ti81xx/sii9022a/sii9022a_drv.c:54: error: 'FVID2_STD_1080P_50' undeclared here (not in a function)
                              drivers/video/ti81xx/sii9022a/sii9022a_drv.c:56: error: 'FVID2_STD_1080P_60' undeclared here (not in a function)
                              drivers/video/ti81xx/sii9022a/sii9022a_drv.c:58: error: 'FVID2_STD_1080I_60' undeclared here (not in a function)
                              drivers/video/ti81xx/sii9022a/sii9022a_drv.c:60: error: 'FVID2_STD_1080I_50' undeclared here (not in a function)
                               drivers/video/ti81xx/sii9022a/sii9022a_drv.c: In function 'sii9022a_set_timings':
                              drivers/video/ti81xx/sii9022a/sii9022a_drv.c:87: warning: assignment makes integer from pointer without a cast
                                drivers/video/ti81xx/sii9022a/sii9022a_drv.c:89: warning: assignment makes integer from pointer without a cast
                            drivers/video/ti81xx/sii9022a/sii9022a_drv.c:91: warning: assignment makes integer from pointer without a cast
                               drivers/video/ti81xx/sii9022a/sii9022a_drv.c:93: warning: assignment makes integer from pointer without a cast
                               drivers/video/ti81xx/sii9022a/sii9022a_drv.c: In function 'sii9022a_set_mode':
                                  drivers/video/ti81xx/sii9022a/sii9022a_drv.c:760: warning: comparison between pointer and integer
                             drivers/video/ti81xx/sii9022a/sii9022a_drv.c:762: warning: comparison between pointer and integer
                            drivers/video/ti81xx/sii9022a/sii9022a_drv.c:764: warning: comparison between pointer and integer
                              drivers/video/ti81xx/sii9022a/sii9022a_drv.c:766: warning: comparison between pointer and integer
                           drivers/video/ti81xx/sii9022a/sii9022a_drv.c:768: warning: comparison between pointer and integer
                            drivers/video/ti81xx/sii9022a/sii9022a_drv.c:770: warning: comparison between pointer and integer
                             drivers/video/ti81xx/sii9022a/sii9022a_drv.c:772: warning: comparison between pointer and integer
                            drivers/video/ti81xx/sii9022a/sii9022a_drv.c: In function 'sii9022a_init':
                               drivers/video/ti81xx/sii9022a/sii9022a_drv.c:940: warning: assignment makes integer from pointer without a cast
                       make[5]: *** [drivers/video/ti81xx/sii9022a/sii9022a_drv.o] \u9519\u8bef 1

                       ................

     If you have resole ,please help me .

     Very Thanks! 

     longfei Wu

  • Hi Longfei,

    Can you just do distclean, ti8168_evm_defconfig, menuconfig (add sysfs under GPIO) and try?

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

  • Hi AnilKumar,

    Thanks for your reply!

    Yes,just like what you say, i tried.

    key steps:

          1>make linux_clean

          2>in arch/arm/configs/ti8168_evm_defconfig

          3>set CONFIG_GPIO_SYSFS=y

          4>make linux

          5>make linux_install

          but it doesn't work.I still can not find /gpio/.. in /sys/class.

    It's there any wrong steps?

    Regards

    Longfei

  • Hi Longfei,

    I ask you to do these steps

    local-host$ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean

    local-host$ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm ti8168_evm_defconfig

    local-host$ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm menuconfig

    http://processors.wiki.ti.com/index.php/GPIO_Driver_Guide#Sysfs_control_-_User_Space

    local-host$ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm uImage modules

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

  • Hi AnilKumar,

    I use a no-used BSP and try again,it works and i get the answer!

    Thank you very much!Good weekend!

    Longfei