Modify the system to run a custom application

The default application that the reference image starts is the ADAS example.

You can change configuration to start a different example or even custom one that you build. You can use the existing SLM and sensor configuration files one you have uploaded your application to the the ASRock Beebox.

  1. Make a copy of the SLM configuration file that uses sensor configuration close to what you want. In some cases, you might need to modify the configuration to match your purposes. See the Configure sensors and cameras on the reference image section in this chapter for more information. For example, if you created an application to use the a single camera, make a copy of slm-config-platform-default.xml.
    # cp slm-config-platform-default.xml
                        slm-config-platform.xml
                    
  2. Modify the adas_example component in the slm-config-platform.xml file to start your application instead of the adas_example application using vi.
    ...
    <SLM:component name="adas_example">
            <SLM:command>/base/usr/bin/adas_example</SLM:command>
            <SLM:args>-c /base/etc/system/config/adas_camera_sensors.conf -m script</SLM:args>
        <SLM:depend>sensor</SLM:depend>
        <SLM:depend>fc-cache</SLM:depend>
        <SLM:stop stop="signal">SIGTERM</SLM:stop>
        </SLM:component>...
    ...
    Change this to:
    Note: In this case, there are no parameters for the application and the binary is called mycustomcamera.
    ...
    <SLM:component name="adas_example">
            <SLM:command>/base/usr/bin/mycustomcamera</SLM:command>
        <SLM:depend>sensor</SLM:depend>
        <SLM:depend>fc-cache</SLM:depend>
        <SLM:stop stop="signal">SIGTERM</SLM:stop>
        </SLM:component>...
    ...