Sorry, you need to enable JavaScript to visit this website.

ZedBoard + ALI3 Display + Linux

Unsolved
2 posts / 0 new
edurne1893's picture
edurne1893
Junior(0)
ZedBoard + ALI3 Display + Linux

Hello,
I'm trying to make the 7-inch Zed Touch Display (http://zedboard.org/product/7-inch-zed-touch-display-kit) usable in a Zedboard with Linux. I need to develop my own system because I want to apply PREEMPT_RT patch.
 I have followed the tutorial http://microzed.org/sites/default/files/design/ZedBoard_ALI3_Display_Ubu... in order to adapt the kernel and configure it so that the board can work properly with the display in a Linux distribution. 
I have found some issues:
1. It suggests to clone the kernel from the repository https://github.com/Xilinx/linux-xlnx.git, tag xilinx-v14.4. This tag DOESN'T CURRENTLY EXIST. 
2. I have cloned then xilinx-v2014.4 (which I suppose is the one the tutorial is referring to). Then, I follow the steps of the tutorial, but when I try to patch the kernel with the patch provided in the tutorial, I obtain quite some errors, and patching is not performed successfully. So I can't create the kernel. 

curso@2502-39:~/linux-xlnx$ make ARCH=arm distclean

curso@2502-39:~/linux-xlnx$ git apply --stat zeddispkit_14_4.patch

 arch/arm/boot/dts/zynq-zed-display-kit.dts         |  374 +++

 drivers/dma/xilinx/xilinx_axivdma.c                |   29 

 drivers/gpu/drm/Kconfig                            |   24 

 drivers/gpu/drm/Makefile                           |    5 

 drivers/gpu/drm/drm_fb_cma_helper.c                |  409 +++

 drivers/gpu/drm/drm_gem_cma_helper.c               |  251 ++

 drivers/gpu/drm/zeddispkit/Kconfig                 |    6 

 drivers/gpu/drm/zeddispkit/Makefile                |    7 

 drivers/gpu/drm/zeddispkit/zeddispkit_drm_crtc.c   |  201 ++

 drivers/gpu/drm/zeddispkit/zeddispkit_drm_crtc.h   |    9 

 drivers/gpu/drm/zeddispkit/zeddispkit_drm_drv.c    |  276 ++

 drivers/gpu/drm/zeddispkit/zeddispkit_drm_drv.h    |  115 +

 .../gpu/drm/zeddispkit/zeddispkit_drm_encoder.c    |  443 +++

 .../gpu/drm/zeddispkit/zeddispkit_drm_encoder.h    |    8 

 include/drm/drm_fb_cma_helper.h                    |   27 

 include/drm/drm_gem_cma_helper.h                   |   44 

 include/drm/init.h                                 |  351 +++

 drivers/i2c/busses/i2c-xiic.c                      |  107 -

 drivers/input/touchscreen/Kconfig                  |   12 

 drivers/input/touchscreen/Makefile                 |    1 

 drivers/input/touchscreen/tmg120_ts.c              |  463 +++

 arch/arm/configs/zynq_zed_dispkit_defconfig        | 2676 ++++++++++++++++++++

 22 files changed, 5765 insertions(+), 73 deletions(-)

curso@2502-39:~/linux-xlnx$ git apply --check zeddispkit_14_4.patch

error: drivers/dma/xilinx/xilinx_axivdma.c: No existe el archivo o el directorio

error: falló el parche: drivers/gpu/drm/Kconfig:54

error: drivers/gpu/drm/Kconfig: el parche no aplica

error: falló el parche: drivers/gpu/drm/Makefile:15

error: drivers/gpu/drm/Makefile: el parche no aplica

error: drivers/gpu/drm/drm_fb_cma_helper.c: ya existe en el directorio de trabajo

error: drivers/gpu/drm/drm_gem_cma_helper.c: ya existe en el directorio de trabajo

error: include/drm/drm_fb_cma_helper.h: ya existe en el directorio de trabajo

error: include/drm/drm_gem_cma_helper.h: ya existe en el directorio de trabajo

error: falló el parche: drivers/i2c/busses/i2c-xiic.c:270

error: drivers/i2c/busses/i2c-xiic.c: el parche no aplica

curso@2502-39:~/linux-xlnx$ git am zeddispkit_14_4.patch

Applying: -- added lcd panel driver for zeddispkit -- added dts file fixed vdma driver added drm helper functions added zed display kit driver

/home/curso/linux-xlnx/.git/rebase-apply/patch:233: trailing whitespace.

/*

/home/curso/linux-xlnx/.git/rebase-apply/patch:261: trailing whitespace.

*/

/home/curso/linux-xlnx/.git/rebase-apply/patch:266: trailing whitespace.

            };

/home/curso/linux-xlnx/.git/rebase-apply/patch:267: trailing whitespace.

 

/home/curso/linux-xlnx/.git/rebase-apply/patch:365: trailing whitespace.

 

error: drivers/dma/xilinx/xilinx_axivdma.c: no existe en el índice

error: falló el parche: drivers/gpu/drm/Kconfig:54

error: drivers/gpu/drm/Kconfig: el parche no aplica

error: falló el parche: drivers/gpu/drm/Makefile:15

error: drivers/gpu/drm/Makefile: el parche no aplica

error: drivers/gpu/drm/drm_fb_cma_helper.c: ya existe en el índice

error: drivers/gpu/drm/drm_gem_cma_helper.c: ya existe en el índice

error: include/drm/drm_fb_cma_helper.h: ya existe en el índice

error: include/drm/drm_gem_cma_helper.h: ya existe en el índice

Patch failed at 0001 -- added lcd panel driver for zeddispkit -- added dts file fixed vdma driver added drm helper functions added zed display kit driver

The copy of the patch that failed is found in:

   /home/curso/linux-xlnx/.git/rebase-apply/patch

When you have resolved this problem, run "git am --continue".

If you prefer to skip this patch, run "git am --skip" instead.

To restore the original branch and stop patching, run "git am --abort".
 
Besides, I plan to use kernel 4.6 from the Xilinx repo (I'm using Vivado and SDK based on v2016.4 to generate the hardware design), and this tutorial uses version 3.17. Is there any update of the patch for a newer kernel? Could I use the patch provided in the tutorial (zeddispkit_14_4.patch) to patch my newer kernel?
 
Best regards,
Edurne

fletch's picture
fletch
Moderator(17)
Edurne,

Edurne,

 

Were you able to make any further progress with this? The tag is still there, although it is old enough that a search will not find it. An explicit link still works -- https://github.com/Xilinx/linux-xlnx/tree/xilinx-v14.4

 

Please let us know what progress you have made, and I will see if we have an update to provide.

 

Regards,

Bryan