The reference image is configured to boot the Camera MUX 2x2 example application.
When you change your hardware configuration, you often must change the
order that you start different services and the sensor configuration file.
To simplify the changes, the reference image provides multiple SLM configuration
files that specify the correct order of services to boot based on
the hardware you boot and use predefined sensor configuration files, which
is used when the Sensor service starts.
In some cases, you may need to modify the sensor configuration file based on
what you want to use with your image. The sensor configuration files are located
at (/etc/system/config/) on the reference image.
For information about the Sensor service and the
sensor configuration file, see the
Sensor chapter in the System Services
guide for the QNX Platform for ADAS.
Here are the SLM configuration files provided with the reference image, which
are located in the
/etc directory:
- slm-config-all.xml — Configuration file that
you starts various services, such as TCP/IP (iopkt), various drivers,
essential services (such as ssh), and graphics
(Screen).
-
slm-config-platform.xml — By default, this file is a copy of the
slm-config-platform-default.xml file. You overwrite this file with
the configuration you want, which is referenced by the slm-config-all.xml file.
-
slm-config-platform-default.xml — The default configuration.
- slm-config-platform-finger-count.xml — Configuration
file that runs the sensor service with
/etc/system/config/surround_cameras.conf (in a manner
similar to slm-config-platform-surround-view.xml), then
runs the ADAS example application (adas_example) with
/etc/system/config/adas_finger_count.conf to display
one of the cameras and dynamically analyze a region of interest (represented by
a drawn bounding box) for detecting hands, segmenting, and counting
fingers.
-
slm-config-platform-surround-view.xml — Configuration
file that runs surround_cameras.conf, which contains
the configuration for four RDACM21 cameras. This file is valid only if you have the IMR driver running on the image.
Contact Renesas to get the IMR driver.
- slm-config-platform-mosaic.xml — Configuration file that
runs surround_cameras_1080.conf, which contains the
configuration for four RDACM21 cameras set at a 1280x1080 resolution.
The output is a 2x2 mosaic view that's about one-fourth the size of
the display that shows video from each of the cameras. This file is valid only
if you have the IMR driver running on the image.
Contact Renesas to get the IMR driver.
Changing the configuration
To change the configuration, you can copy predefined
changes from the SLM configuration files or modify
both the SLM or sensor configuration files.
You can do one of the following series of steps:
-
Determine the SLM configuration from the previous list
that matches your configuration and copy the SLM configuration
over the slm-config-platform.xml file.
-
If you configuration requires you to change an existing SLM configuration file, we recommend that you:
-
Run the mount -uw /base if you haven't already to allow you to write to the filesystem.
-
Create a copy of the SLM configuration that points to a sensor configuration file and
that's close to what you want.
-
Create a custom sensor configuration file under /etc/system/config,
and then configure your version of the SLM configuration file to point to your custom
sensor configuration file.
For example, if you wanted to connect two cameras, create a new
configuration file called /etc/system/config/two_cameras_surround.conf based
on the /etc/system/config/surround_cameras.conf,
then create a copy of the slm-config-platform-surround-view.xml
file and then call it slm-config-platform-two-surround-view.xml,
and the modify the following block to point to your sensor
configuration file as follows:
<SLM:component name="sensor">
<SLM:command>/base/bin/sensor</SLM:command>
<SLM:args>-U 521:521,1001 -r /accounts/1000/shared/camera
-c /base/etc/system/config//etc/system/config/two_cameras_surround.conf</SLM:args>
<SLM:depend>resarb</SLM:depend>
<SLM:stop stop="signal">SIGTERM</SLM:stop>
</SLM:component>
-
Then copy your custom SLM configuration to replace the slm-config-platform.xml
and type shutdown.
# cp /etc/slm-config-platform-two-surround-view.xml /etc/slm-config-platform.xml
# shutdown