element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
ZedBoard Hardware Design ZedBoard + ALI3 Display + Linux
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 323 subscribers
  • Views 625 views
  • Users 0 members are here
Related

ZedBoard + ALI3 Display + Linux

edurne1893
edurne1893 over 7 years ago

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_Ubuntu_Tutorial_14_4_02.zip 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

  • Sign in to reply
  • Cancel
  • bhfletcher
    0 bhfletcher over 7 years ago

    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

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube