element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
General Zedboard Video pipeline error - Unable to start streaming: Broken pipe(32)
  • Forums
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 44 subscribers
  • Views 502 views
  • Users 0 members are here
  • petalinux
  • xilinx;
  • zedboardcmty
Related

Zedboard Video pipeline error - Unable to start streaming: Broken pipe(32)

vision3daerospace
vision3daerospace over 1 year ago

Hello everybody,

I am building a simple videopipeline using petalinux 2019.1 and trying save images on the SD card , the following is my design

Camera -> MIPI-CSI-RX-Subysystem -> Demosaic -> Videoframe buffer write ->  ZYNQ-PS.

 

I have set the property using media-ctl when I use yavta -n 3 -c10 -f RGB24 -s 1280x720 --skip 7 -F /dev/video0

to sav the frame I get the following output saying broken pipe

Header 1

Device `video_cap output 0' on `platform:video_cap:0' is a video output (without mplanes) device.

Video format set: RGB24 (33424752) 1280x720 field none, 1 planes:

* Stride 3840, buffer size 2764800

Video format: RGB24 (33424752) 1280x720 field none, 1 planes:

* Stride 3840, buffer size 2764800

3 buffers requested.

length: 1 offset: 3201989144 timestamp type/source: mono/EoF

Buffer 0/0 mapped at address 0xb6b9c000.

length: 1 offset: 3201989144 timestamp type/source: mono/EoF

Buffer 1/0 mapped at address 0xb68f9000.

length: 1 offset: 3201989144 timestamp type/source: mono/EoF

Buffer 2/0 mapped at address 0xb6656000.

Unable to start streaming: Broken pipe (32).

3 buffers released.

Alternatively when I try to save images using

v4l2-ctl -d /dev/video0 --set-fmt-video=widhth=1280,height=720,pixelformat=RGB24 --stream-mmap --stream-count=1 --stream-to = test.raw

test.raw gets saved in the current directory but has no data and is of size 0 bytes.

 

I am attaching my hardware design, pl.dtsi and system-user.dtsi.

 

Any help is greatly appreciated, Thankyou in advance

Attachments:
design_1 (2).pdf
8255.system-user-dtsi.txt.zip
6014.pl-dtsi.txt.zip
  • Reply
  • Cancel
  • Cancel

Top Replies

  • bhfletcher
    bhfletcher 10 months ago +2

    Some additional info on the pcam products that are referenced in a similar post: MIPI CSI2 Rx Subsystem was not initialized !

     

    zedboard, FMC PCAM Adaptor

    zedboard + fmc + pcam

  • bhfletcher
    bhfletcher 10 months ago

    Some additional info on the pcam products that are referenced in a similar post: MIPI CSI2 Rx Subsystem was not initialized !

     

    zedboard, FMC PCAM Adaptor

    zedboard + fmc + pcam

    • Cancel
    • Up +2 Down
    • Reply
    • Cancel
  • vanti
    vanti 7 months ago

    did you find a solution to this problem? I'm seeing the exact same issue.

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • oussvision
    oussvision 6 months ago in reply to vanti

    After a couple of tries, I found a solution to find capture data from zedboard.
    my initial pipeline was Camera -> MIPI-CSI-RX-Subysystem -> Demosaic -> Videoframe buffer write ->  ZYNQ-PS.

    This gave me more propblem broken pipeline, 0 bytes image with v4l2 command.

    I made changes in my setup ->
    First change -> on vivado design

    MIPI-CSI-RX-Subysystem -> VPSS -> Videoframe buffer write ->  ZYNQ-PS.

    Second, add these lines to device tree.


    chosen {

    bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait cma=256M";

    stdout-path = "serial0:115200n8";

    };


    third change - set CMA as 256 on kernel config.



    Fourth change --
    setup the media graph

     

    media-ctl -d /dev/media0 -V '"ov5640 1-003c":0 [fmt:UYVY/'1920x1080'@1/'15' field:none]'

    media-ctl -d /dev/media0 -V '"43c00000.mipi_csi2_rx_subsystem":0 [fmt:UYVY/'1920x1080' field:none]'

    media-ctl -d /dev/media0 -V '"43c00000.mipi_csi2_rx_subsystem":1 [fmt:UYVY/'1920x1080' field:none]'

    media-ctl -d /dev/media0 -V "\"43c80000.v_proc_ss\":0 [fmt:UYVY8_1X16/1920x1080 field:none]"

    media-ctl -d /dev/media0 -V "\"43c80000.v_proc_ss\":1 [fmt:RBG888_1X24/1920x1080 field:none]"


    Capture Command: yavta -n 3 -c10 -f RGB24 -s 1920x1080 -F /dev/video0

    PS: Make changes according to your media graph.

     

    These are the changes that helped me to fix the issue, although I have an overlapping images.

     

    Good luck! It was real pain to find the right solution

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube