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 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Programming MAX96717F and MAX96714F
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 9 replies
  • Subscribers 661 subscribers
  • Views 656 views
  • Users 0 members are here
  • gmsl2
  • MAX96717F
  • MAX96714f
  • raspberry_pi
Related

Programming MAX96717F and MAX96714F

bugtech
bugtech 1 month ago

HI,

I am using SerDes MAX96717F Ser and MAX96714F Des (MAXIM INTEGRATED) along with raspberry pi 4 to get the output of Raspi Camera on RPi4.

1: The pipeline has been generated using the GMSL gui through script generation.

2: Once cpp file is loaded, i am able to get the display at the Rpi4.

The issue is whenever i power cycle the boards. I need to load the script again to get the output.

How can i program it for once and use it even after power cycle?

Any leads?

  • Sign in to reply
  • Cancel
  • aswinvenu
    0 aswinvenu 1 month ago

    Hi,

    You can either use init.d scripts or create a service with systemd and enable the service ( which will make it run everytime after the boot process ).

    Init.d scripts:
    https://xdaforums.com/t/guide-how-to-make-an-init-d-script-noob-friendly.2326585/
    systemd service.

    https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • colporteur
    0 colporteur 1 month ago

    There are a number of ways to run a script on boot from the Raspberry Pi O/S.

    Using crontab

    Using autostart 

    Using .bashrc

    Using systemd

    Using rc.local

    Using init.d

    I feel the last two are old school with little support. You may find they work but I find instructions that date around 2013 cause me to questions is it appropriate.

    I've used all of them at some point in time depending on what I am trying to do.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz 1 month ago

    As mentioned by aswinvenu  and colporteur this is really a Linux thing and there are several techniques you could use.

    If this is for a commercial product, it would be highly recommended to get some Linux training (good for career in general, but relevant in this case as you've discovered). Something like a Linux Sysadmin course would be a good start (although a developer who has written Linux based apps would be good to hire too).

    I'm not mentioning this to suggest online support doesn't help, because it clearly does, but that you may be missing things relevant for your Linux application, installation, performance, and so many other things otherwise.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    +1 Jan Cumps 1 month ago

    A short guide that will work on the PI OSes. It uses systemd. (summary of an e14 project that uses system services)

    • create a service script

    sudo nano /etc/systemd/system/raspicam.service

    [Unit]
    Description=Raspberry Pi camera service
    After=network-online.target
    Wants=network-online.target

    [Service]
    Type=simple
    WorkingDirectory=/<path to where you want the software to run>
    ExecStart=/<command line of script / program to run. Can include parameters>
    Restart=always
    RestartSec=30
    StandardOutput=syslog
    StandardError=syslog
    SyslogIdentifier=raspicam
    User=<yourname>
    Group=<yourname>

    [Install]
    WantedBy=multi-user.target

    • register it

    sudo systemctl daemon-reload

    • enable and start

    sudo systemctl enable raspicam.service

    sudo systemctl start raspicam.service

    • check status:

    systemctl status raspicam.service

    This will start the program, running as the user you put in the script. If for some reason you want to run it as root*, remove the User and Group lines.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • bugtech
    0 bugtech 1 month ago in reply to aswinvenu

    aswinvenu Thank you for your support!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bugtech
    0 bugtech 1 month ago in reply to colporteur

    colporteur Thank you for your support!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bugtech
    0 bugtech 1 month ago in reply to Jan Cumps

    Jan Cumps Thank you for your support! It works without any trouble. Not related but, I would like to know if it is possible to achieve same task in Petalinux 2022.2? Thanks again!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jan Cumps
    0 Jan Cumps 1 month ago in reply to bugtech

    I don't know Slight smile

    I have made a Vivado / Petalinux project a few years ago, just to try it out. But I never dug into many topics. Just to see if I could get it working.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bugtech
    0 bugtech 1 month ago in reply to Jan Cumps

    Appreciate your response!

    • 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