Skip to content

[Bug] etc/init.d-posix/rcS: line 70: param: command not found #25859

@middleknight

Description

@middleknight

Describe the bug

The command HEADLESS=1 make px4_sitl gazebo-classic

The result displayed is as follows:

`HEADLESS=1 make px4_sitl gazebo-classic
[0/4] Performing build step for 'sitl_gazebo-classic'
ninja: no work to do.
[3/4] cd /home/slow_disk2/zjg/px4/PX4-Autopilot/build/px4_sitl_default/src/modules/simulation/simulator_mavlink && /home/slow_disk2/zjg/px4/P.../px4_sitl_default/bin/px4 none iris none /home/slow_disk2/zjg/px4/PX4-Autopilot /home/slow_disk2/zjg/px4/PX4-Autopilot/build/px4_sitl_default
SITL ARGS
sitl_bin: /home/slow_disk2/zjg/px4/PX4-Autopilot/build/px4_sitl_default/bin/px4
debugger: none
model: iris
world: none
src_path: /home/slow_disk2/zjg/px4/PX4-Autopilot
build_path: /home/slow_disk2/zjg/px4/PX4-Autopilot/build/px4_sitl_default
GAZEBO_PLUGIN_PATH :/home/slow_disk2/zjg/px4/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic:/home/slow_disk2/zjg/px4/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic
GAZEBO_MODEL_PATH :/home/slow_disk2/zjg/px4/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models:/home/slow_disk2/zjg/px4/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models
LD_LIBRARY_PATH /usr/local/lib:/usr/local/lib64/:/usr/local/lib/x86_64-linux-gnu:/opt/tritonserver/lib:/usr/src/tensorrt/lib:/opt/riva/lib:/usr/local/cuda-12/lib64:/opt/hpcx/ucc/lib/:/opt/hpcx/ucx/lib/:/opt/tritonserver/backends/onnxruntime:/usr/local/cuda/compat/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/home/slow_disk2/zjg/px4/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic:/home/slow_disk2/zjg/px4/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic
empty world, setting empty.world as default
Using: /home/slow_disk2/zjg/px4/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/iris/iris.sdf
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
not running gazebo gui
SITL COMMAND: "/home/slow_disk2/zjg/px4/PX4-Autopilot/build/px4_sitl_default/bin/px4" "/home/slow_disk2/zjg/px4/PX4-Autopilot/build/px4_sitl_default"/etc

______  __   __    ___
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] startup script: /bin/sh etc/init.d-posix/rcS 0
INFO  [init] found model autostart file as SYS_AUTOSTART=10015
etc/init.d-posix/rcS: line 70: param: command not found
etc/init.d-posix/rcS: line 73: param: command not found

In the file ./build/px4_sitl_default/etc/init.d-posix/rcS, change param on line 70 to px4-param, and the error will be resolved.

To Reproduce

No response

Expected behavior

No response

Screenshot / Media

No response

Flight Log

No response

Software Version

No response

Flight controller

No response

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions