element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General Run linux user application automatically after boot
  • 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 2 replies
  • Subscribers 367 subscribers
  • Views 1775 views
  • Users 0 members are here
Related

Run linux user application automatically after boot

Former Member
Former Member over 11 years ago

I have followed the Zynq Concepts, Tools, and Techniques tutorial and have been able to run the linux hello world application on the sd card from the "zynq> " terminal prompt without issue. How would I get this or some other linux user application to run automatically after the zedboard boots up?

-Pat

  • Sign in to reply
  • Cancel

Top Replies

  • zedhed
    zedhed over 11 years ago +1
    Hi psullivan, I am assuming that this is the 2013.2 CTT you are referring to. One option that works well for me during prototyping is to modify your /etc/init.d/rcS file to mount the SD card under say…
Parents
  • zedhed
    0 zedhed over 11 years ago

    Hi psullivan,

    I am assuming that this is the 2013.2 CTT you are referring to.

    One option that works well for me during prototyping is to modify your /etc/init.d/rcS file to mount the SD card under say /mnt and call a startup script.  In fact, if you take a look at the following Wiki entry, it contains a Zynq ramdisk image which already has this modification I refer to:

    http://www.wiki.xilinx.com/Build+and+Modify+a+Rootfs

    If you use the are_ramdisk.image.gz image from this wiki page and rename it to overwrite the ramdisk8M.image.gz from the CTT, you can accomplish this rather quickly.

    If you look at /etc/init.d/rcS in this ramdisk image, it will mount your SD card to /mnt and look for an init.sh script there.  If init.sh exists on the SD card, it will run it automatically.  Simply place your own init.sh onto the SD card and have it call the executable that you want to have launched after Linux boots.

    Start with something simple in init.sh like this:

    #!/bin/sh
    echo "Hello ZedBoard"

    And then work your way up from there.

    Regards,

    -Kevin

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • zedhed
    0 zedhed over 11 years ago

    Hi psullivan,

    I am assuming that this is the 2013.2 CTT you are referring to.

    One option that works well for me during prototyping is to modify your /etc/init.d/rcS file to mount the SD card under say /mnt and call a startup script.  In fact, if you take a look at the following Wiki entry, it contains a Zynq ramdisk image which already has this modification I refer to:

    http://www.wiki.xilinx.com/Build+and+Modify+a+Rootfs

    If you use the are_ramdisk.image.gz image from this wiki page and rename it to overwrite the ramdisk8M.image.gz from the CTT, you can accomplish this rather quickly.

    If you look at /etc/init.d/rcS in this ramdisk image, it will mount your SD card to /mnt and look for an init.sh script there.  If init.sh exists on the SD card, it will run it automatically.  Simply place your own init.sh onto the SD card and have it call the executable that you want to have launched after Linux boots.

    Start with something simple in init.sh like this:

    #!/bin/sh
    echo "Hello ZedBoard"

    And then work your way up from there.

    Regards,

    -Kevin

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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 © 2026 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