0

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!!

Roger Jones
  • 1,494
  • 7
  • 14
zurgeg
  • 115
  • 1
  • 8
  • 1
    What's a "non-built kernel"? Do you have a running kernel or not? – Dmitry Grigoryev Aug 19 '19 at 14:35
  • No. It's a kernel I'm working on on GitHub @ www.github.com/zurgeg/linux – zurgeg Aug 19 '19 at 14:38
  • 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? – Roger Jones Aug 19 '19 at 14:42
  • @RogerJones init will never run without a running kernel. – Dmitry Grigoryev Aug 19 '19 at 14:52
  • 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
  • This program is actually going to look at the data found on a stick that gets cable channel. – zurgeg Aug 19 '19 at 15:00
  • 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: https://raspberrypi.stackexchange.com/questions/88291/start-python-cli-app-on-startup/88311#88311 – Piskvor left the building Aug 19 '19 at 15:12
  • I’m just trying to make a fork of the rpi os. From what I know it’s the kernel – zurgeg Aug 19 '19 at 15:26
  • @DmitryGrigoryev Agreed, but the impression I get from question is that they have their own kernel built and running and are asking how to launch an userland program from it. – Roger Jones Aug 19 '19 at 15:27
  • @RogerJones If there is a running kernel, why not boot the normal way and run the python script from an autorun script or a cron job? – Dmitry Grigoryev Aug 19 '19 at 15:30

0 Answers0