Plymouthd on BeagleBone Black initramfs fails with âCould not setup basic operating environmentâ
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
I setup an initramfs BeagleBone Black with the goal of using the open source Plymouth package to display a boot splash early on in the boot on the BeagleBone's /dev/fb0 HDMI output.
I am trying to configure it according to these instructions:
https://wiki.ubuntu.com/Plymouth
When I boot, the initramfs runs the shell and I manually run plymouthd. It immediately fails with the following error:
sh-4.4# export FRAMEBUFFER=y
sh-4.4# env
ACTION=add
OLDPWD=/
PWD=/
HOME=/
FRAMEBUFFER=y
TERM=linux
SHLVL=1
_=/usr/bin/env
sh-4.4# /sbin/plymouthd --mode=boot
plymouthd: could not setup basic operating environment: No such file or directory
My initramfs contains the following plymouth related files:
sh-4.4# find . -name plymouth*
./etc/plymouth
./etc/plymouth/plymouthd.conf
./sbin/plymouthd
./bin/plymouth
./var/spool/plymouth
./var/lib/plymouth
./usr/share/plymouth
./usr/share/plymouth/plymouthd.defaults
./usr/sbin/plymouth-set-default-theme
./usr/lib/plymouth
./usr/lib/dracut/modules.d/50plymouth/plymouth-pretrigger.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-populate-initrd.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-newroot.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-emergency.s
The source code contains the print message here:
/* before do anything we need to make sure we have a working
* environment.
*/
if (!initialize_environment (&state))
if (errno == 0)
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, 0);
return 0;
ply_error ("plymouthd: could not setup basic operating environment: %m");
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, EX_OSERR);
return EX_OSERR;
Which relates to:
static bool
initialize_environment (state_t *state)
ply_trace ("initializing minimal work environment");
if (!get_kernel_command_line (state))
return false;
if (!state->default_tty)
if (getenv ("DISPLAY") != NULL && access (PLYMOUTH_PLUGIN_PATH "renderers/x11.so", F_OK) == 0)
state->default_tty = "/dev/tty";
if (!state->default_tty)
if (state->mode == PLY_MODE_SHUTDOWN)
state->default_tty = SHUTDOWN_TTY;
else
state->default_tty = BOOT_TTY;
ply_trace ("checking if '%s' exists", state->default_tty);
if (!ply_character_device_exists (state->default_tty))
ply_trace ("nope, forcing details mode");
state->should_force_details = true;
state->default_tty = find_fallback_tty (state);
ply_trace ("going to go with '%s'", state->default_tty);
check_verbosity (state);
check_logging (state);
ply_trace ("source built on %s", __DATE__);
state->keystroke_triggers = ply_list_new ();
state->entry_triggers = ply_list_new ();
state->entry_buffer = ply_buffer_new ();
state->messages = ply_list_new ();
if (!ply_is_tracing ())
redirect_standard_io_to_dev_null ();
ply_trace ("Making sure " PLYMOUTH_RUNTIME_DIR " exists");
if (!ply_create_directory (PLYMOUTH_RUNTIME_DIR))
ply_trace ("could not create " PLYMOUTH_RUNTIME_DIR ": %m");
ply_trace ("initialized minimal work environment");
return true;
How can I make this work? Thanks.
linux beagleboneblack plymouth
add a comment |Â
up vote
0
down vote
favorite
I setup an initramfs BeagleBone Black with the goal of using the open source Plymouth package to display a boot splash early on in the boot on the BeagleBone's /dev/fb0 HDMI output.
I am trying to configure it according to these instructions:
https://wiki.ubuntu.com/Plymouth
When I boot, the initramfs runs the shell and I manually run plymouthd. It immediately fails with the following error:
sh-4.4# export FRAMEBUFFER=y
sh-4.4# env
ACTION=add
OLDPWD=/
PWD=/
HOME=/
FRAMEBUFFER=y
TERM=linux
SHLVL=1
_=/usr/bin/env
sh-4.4# /sbin/plymouthd --mode=boot
plymouthd: could not setup basic operating environment: No such file or directory
My initramfs contains the following plymouth related files:
sh-4.4# find . -name plymouth*
./etc/plymouth
./etc/plymouth/plymouthd.conf
./sbin/plymouthd
./bin/plymouth
./var/spool/plymouth
./var/lib/plymouth
./usr/share/plymouth
./usr/share/plymouth/plymouthd.defaults
./usr/sbin/plymouth-set-default-theme
./usr/lib/plymouth
./usr/lib/dracut/modules.d/50plymouth/plymouth-pretrigger.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-populate-initrd.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-newroot.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-emergency.s
The source code contains the print message here:
/* before do anything we need to make sure we have a working
* environment.
*/
if (!initialize_environment (&state))
if (errno == 0)
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, 0);
return 0;
ply_error ("plymouthd: could not setup basic operating environment: %m");
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, EX_OSERR);
return EX_OSERR;
Which relates to:
static bool
initialize_environment (state_t *state)
ply_trace ("initializing minimal work environment");
if (!get_kernel_command_line (state))
return false;
if (!state->default_tty)
if (getenv ("DISPLAY") != NULL && access (PLYMOUTH_PLUGIN_PATH "renderers/x11.so", F_OK) == 0)
state->default_tty = "/dev/tty";
if (!state->default_tty)
if (state->mode == PLY_MODE_SHUTDOWN)
state->default_tty = SHUTDOWN_TTY;
else
state->default_tty = BOOT_TTY;
ply_trace ("checking if '%s' exists", state->default_tty);
if (!ply_character_device_exists (state->default_tty))
ply_trace ("nope, forcing details mode");
state->should_force_details = true;
state->default_tty = find_fallback_tty (state);
ply_trace ("going to go with '%s'", state->default_tty);
check_verbosity (state);
check_logging (state);
ply_trace ("source built on %s", __DATE__);
state->keystroke_triggers = ply_list_new ();
state->entry_triggers = ply_list_new ();
state->entry_buffer = ply_buffer_new ();
state->messages = ply_list_new ();
if (!ply_is_tracing ())
redirect_standard_io_to_dev_null ();
ply_trace ("Making sure " PLYMOUTH_RUNTIME_DIR " exists");
if (!ply_create_directory (PLYMOUTH_RUNTIME_DIR))
ply_trace ("could not create " PLYMOUTH_RUNTIME_DIR ": %m");
ply_trace ("initialized minimal work environment");
return true;
How can I make this work? Thanks.
linux beagleboneblack plymouth
Hmm, where does%m
come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?
â TBR
Jul 20 at 16:46
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I setup an initramfs BeagleBone Black with the goal of using the open source Plymouth package to display a boot splash early on in the boot on the BeagleBone's /dev/fb0 HDMI output.
I am trying to configure it according to these instructions:
https://wiki.ubuntu.com/Plymouth
When I boot, the initramfs runs the shell and I manually run plymouthd. It immediately fails with the following error:
sh-4.4# export FRAMEBUFFER=y
sh-4.4# env
ACTION=add
OLDPWD=/
PWD=/
HOME=/
FRAMEBUFFER=y
TERM=linux
SHLVL=1
_=/usr/bin/env
sh-4.4# /sbin/plymouthd --mode=boot
plymouthd: could not setup basic operating environment: No such file or directory
My initramfs contains the following plymouth related files:
sh-4.4# find . -name plymouth*
./etc/plymouth
./etc/plymouth/plymouthd.conf
./sbin/plymouthd
./bin/plymouth
./var/spool/plymouth
./var/lib/plymouth
./usr/share/plymouth
./usr/share/plymouth/plymouthd.defaults
./usr/sbin/plymouth-set-default-theme
./usr/lib/plymouth
./usr/lib/dracut/modules.d/50plymouth/plymouth-pretrigger.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-populate-initrd.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-newroot.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-emergency.s
The source code contains the print message here:
/* before do anything we need to make sure we have a working
* environment.
*/
if (!initialize_environment (&state))
if (errno == 0)
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, 0);
return 0;
ply_error ("plymouthd: could not setup basic operating environment: %m");
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, EX_OSERR);
return EX_OSERR;
Which relates to:
static bool
initialize_environment (state_t *state)
ply_trace ("initializing minimal work environment");
if (!get_kernel_command_line (state))
return false;
if (!state->default_tty)
if (getenv ("DISPLAY") != NULL && access (PLYMOUTH_PLUGIN_PATH "renderers/x11.so", F_OK) == 0)
state->default_tty = "/dev/tty";
if (!state->default_tty)
if (state->mode == PLY_MODE_SHUTDOWN)
state->default_tty = SHUTDOWN_TTY;
else
state->default_tty = BOOT_TTY;
ply_trace ("checking if '%s' exists", state->default_tty);
if (!ply_character_device_exists (state->default_tty))
ply_trace ("nope, forcing details mode");
state->should_force_details = true;
state->default_tty = find_fallback_tty (state);
ply_trace ("going to go with '%s'", state->default_tty);
check_verbosity (state);
check_logging (state);
ply_trace ("source built on %s", __DATE__);
state->keystroke_triggers = ply_list_new ();
state->entry_triggers = ply_list_new ();
state->entry_buffer = ply_buffer_new ();
state->messages = ply_list_new ();
if (!ply_is_tracing ())
redirect_standard_io_to_dev_null ();
ply_trace ("Making sure " PLYMOUTH_RUNTIME_DIR " exists");
if (!ply_create_directory (PLYMOUTH_RUNTIME_DIR))
ply_trace ("could not create " PLYMOUTH_RUNTIME_DIR ": %m");
ply_trace ("initialized minimal work environment");
return true;
How can I make this work? Thanks.
linux beagleboneblack plymouth
I setup an initramfs BeagleBone Black with the goal of using the open source Plymouth package to display a boot splash early on in the boot on the BeagleBone's /dev/fb0 HDMI output.
I am trying to configure it according to these instructions:
https://wiki.ubuntu.com/Plymouth
When I boot, the initramfs runs the shell and I manually run plymouthd. It immediately fails with the following error:
sh-4.4# export FRAMEBUFFER=y
sh-4.4# env
ACTION=add
OLDPWD=/
PWD=/
HOME=/
FRAMEBUFFER=y
TERM=linux
SHLVL=1
_=/usr/bin/env
sh-4.4# /sbin/plymouthd --mode=boot
plymouthd: could not setup basic operating environment: No such file or directory
My initramfs contains the following plymouth related files:
sh-4.4# find . -name plymouth*
./etc/plymouth
./etc/plymouth/plymouthd.conf
./sbin/plymouthd
./bin/plymouth
./var/spool/plymouth
./var/lib/plymouth
./usr/share/plymouth
./usr/share/plymouth/plymouthd.defaults
./usr/sbin/plymouth-set-default-theme
./usr/lib/plymouth
./usr/lib/dracut/modules.d/50plymouth/plymouth-pretrigger.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-populate-initrd.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-newroot.sh
./usr/lib/dracut/modules.d/50plymouth/plymouth-emergency.s
The source code contains the print message here:
/* before do anything we need to make sure we have a working
* environment.
*/
if (!initialize_environment (&state))
if (errno == 0)
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, 0);
return 0;
ply_error ("plymouthd: could not setup basic operating environment: %m");
if (daemon_handle != NULL)
ply_detach_daemon (daemon_handle, EX_OSERR);
return EX_OSERR;
Which relates to:
static bool
initialize_environment (state_t *state)
ply_trace ("initializing minimal work environment");
if (!get_kernel_command_line (state))
return false;
if (!state->default_tty)
if (getenv ("DISPLAY") != NULL && access (PLYMOUTH_PLUGIN_PATH "renderers/x11.so", F_OK) == 0)
state->default_tty = "/dev/tty";
if (!state->default_tty)
if (state->mode == PLY_MODE_SHUTDOWN)
state->default_tty = SHUTDOWN_TTY;
else
state->default_tty = BOOT_TTY;
ply_trace ("checking if '%s' exists", state->default_tty);
if (!ply_character_device_exists (state->default_tty))
ply_trace ("nope, forcing details mode");
state->should_force_details = true;
state->default_tty = find_fallback_tty (state);
ply_trace ("going to go with '%s'", state->default_tty);
check_verbosity (state);
check_logging (state);
ply_trace ("source built on %s", __DATE__);
state->keystroke_triggers = ply_list_new ();
state->entry_triggers = ply_list_new ();
state->entry_buffer = ply_buffer_new ();
state->messages = ply_list_new ();
if (!ply_is_tracing ())
redirect_standard_io_to_dev_null ();
ply_trace ("Making sure " PLYMOUTH_RUNTIME_DIR " exists");
if (!ply_create_directory (PLYMOUTH_RUNTIME_DIR))
ply_trace ("could not create " PLYMOUTH_RUNTIME_DIR ": %m");
ply_trace ("initialized minimal work environment");
return true;
How can I make this work? Thanks.
linux beagleboneblack plymouth
asked Jul 19 at 19:43
PhilBot
104214
104214
Hmm, where does%m
come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?
â TBR
Jul 20 at 16:46
add a comment |Â
Hmm, where does%m
come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?
â TBR
Jul 20 at 16:46
Hmm, where does
%m
come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?â TBR
Jul 20 at 16:46
Hmm, where does
%m
come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?â TBR
Jul 20 at 16:46
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f457289%2fplymouthd-on-beaglebone-black-initramfs-fails-with-could-not-setup-basic-operat%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Hmm, where does
%m
come from that gets set to "No such file or directory"? Could it be that it tries to read the kernel command line from procfs, which isn't mounted yet?â TBR
Jul 20 at 16:46