I'm currently working on a fork on the raspi kernel for streaming cable channels (I have that ready. That's not what I need help with). What I need to know is how to get a program to run on boot (This is a non-built kernel. Just a Github repos @ www.github.com/zurgeg/linux). So when I boot I want a program that says hello world! (in python) run on boot.

Any help is appreciated!!

  • 1
    What's a "non-built kernel"? Do you have a running kernel or not? Aug 19 '19 at 14:35
  • 2
    Can you replace the init command with your program? Although, not sure if this would work with a python script, rather you might need to set init="/path/to/python /path/to/my/script.py". See here for an example? Aug 19 '19 at 14:42
  • 1
    I have no idea what you mean. Programs do not run in the kernel. Why is what you want any different from running an application as early as possible after boot?
    – joan
    Aug 19 '19 at 14:55
  • 1
    Several programs play video. They run in user land and talk to hardware via kernel calls. How is that different to what you plan to do? These video players are standard Linux user land applications.
    – joan
    Aug 19 '19 at 15:07
  • 1
    I think that "kernel" is irrelevant here. If you wish to start a program at boot, this might be what you're looking for: raspberrypi.stackexchange.com/questions/88291/… Aug 19 '19 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.