Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenly pi gadget #1

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Screenly pi gadget #1

wants to merge 21 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Dec 6, 2021

No description provided.

Stefan Agner and others added 21 commits January 20, 2020 16:13
While the source files for the main splash image is present in
the source folder base-image, the progress bar isn't. This
patch adds the bar.png recovered from the RLE data in the bar
header file. The tool make-image-header.sh allows to translate
this png back the the header exactly.

Signed-off-by: Stefan Agner <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Use /run for communication FIFO which is typically preserved
between initramfs and regular root file system. Introduce a
new environment variable PSPLASH_FIFO_DIR which allows to
pass /tmp for the old behavior or another directory.

Signed-off-by: Stefan Agner <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Process consecutive commands separated by null-termations. Since
it is a FIFO, in theory, two commands can be queued from two
independent calls to psplash-write. This also makes the command
parser more robust. With this code, sequences like this get
parsed just fine:
  echo -e "\nPROGRESS 10\n\0\nQUIT" > /run/psplash_fifo

Signed-off-by: Stefan Agner <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
This adds optional systemd support. When enabled, an utility called
psplash-systemd is built. This tool will connect to systemd using the
system bus to obtain progress information and communicate that to
psplash. Once full boot progress is reported by systemd psplash
psplash is closed using the quit command.

Signed-off-by: Stefan Agner <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Signed-off-by: David Steinberg <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
'psplash' uses only one buffer which can cause tearing artifacts. This
change uses the FBIOPAN_DISPLAY ioctl as a way to handle page flipping
and also does that after a vsync interrupt to remove any tearing issues.

Signed-off-by: Andrei Gherzan <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Signed-off-by: Andrei Gherzan <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Make the shipped logo used as source for psplash-poky-img.h to have
the name expected by make-image-header.sh, and remove unused logo.

Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
The prefered form for manipulating an image is the PNG source from
which the C code was generated.  These PNG were extracted by feeding
data from the C headers to libpng.

Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
…hem in dist tarball

Signed-off-by: Yann Dirson <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Since commit f7a354d ("Generate image headers from their PNG source, while still including them in dist tarball")
headers files are generated from autotools by using BUILD_SOURCES variable.

But when generating header files, it is important to generate the files before the
rest of the sources are compiled. So, the BUILT_SOURCES variable must be used in
this case.

Fixes:

psplash.c:17:10: fatal error: psplash-bar-img.h: No such file or directory
 #include "psplash-bar-img.h"

Signed-off-by: Pierre-Jean Texier <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Out of tree builds were broken, fix the makefile path so it can find the image
generation script.

Signed-off-by: Richard Purdie <[email protected]>
Since removing psplash-bar-img.h in commit f7a354d means that it will
always need to be regenerated, go ahead and remove psplash-poky-img.h
as well for consistency.

Signed-off-by: Scott Murray <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
To avoid racing on FIFO creation between psplash and psplash-systemd,
enhance the systemd support by adding a call to sd_notify in psplash
after the FIFO is created. That will alow setting the psplash-start
systemd unit type to "notify" to avoid the race.

Signed-off-by: Scott Murray <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants