Feature #742

Boot cleanup

Added by Hammel 5 months ago. Updated 5 months ago.

Status:ClosedStart date:29 Feb 2020
Priority:ImmediateDue date:
Assignee:Hammel% Done:

100%

Category:UI
Target version:1.1.0 - Upgrades
Severity:05 - Very Low

Description

The following boot time display items should be cleaned up via pmsui.

  1. The blinking cursor (disabled with a config.txt option)
  2. Startup messages from
    1. S00dev
    2. S01psplash

The latter is probably a psplash change, not a pmsui change.

Associated revisions

Revision e4e1f0a2
Added by Hammel 5 months ago

RM #742: Make boot verbose (no quiet in cmdline.txt) by default. Fix mkinstall to use sudo when updating config.txt to use the initramfs in overlay mode. Setup init scripts to deal with being quiet if quiet is specified on the kernel command line.

Revision 1d2b1d2b
Added by Hammel 5 months ago

RM #742: Make psplash init script work with core init script quiet/verbose settings.

Revision 1d2b1d2b
Added by Hammel 5 months ago

RM #742: Make psplash init script work with core init script quiet/verbose settings.

Revision c77e8f9b
Added by Hammel 5 months ago

RM #742: On installation, if quiet is not set in cmdline.txt then set it so boot up hides all boot messages.

History

#1 Updated by Hammel 5 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10

Item 1 was already done by RM #689. However, I had not rerun make HW=rpi2 rpifw-pkg to update the cmdline.txt in the package tree. So it looked like the fix wasn't available. It is now.

Here's the right way to handle quieting those init scripts.

  • new function - getQuiet() in functions.sh
    • Called when functions.sh is sourced
    • sets global ECHO="echo" if quiet is not found on command line
    • sets global ECHO="/bin/true" is quiet is found on command line
  • Update all init scripts to use $ECHO instead of shell "echo"
  • functions.sh should be sourced by rcS, not each script independently.

Using global variable sourced from functions.sh will be faster than a function call replacing echo (re: using log() intead of echo would be slower).

#2 Updated by Hammel 5 months ago

  • % Done changed from 10 to 30

I've implemented this in the function script including updating the log() function to not output to console if "quiet" is set on the kernel command line. function script is already being sourced by rcS which means all init scripts, which rcS sources, will have it set properly.

S00dev doesn't seem to echo anything, so the messages I was seeing must have been from the log() function.
S01psplash is updated but I think its console message was also from log().

All updates need to be tested. The changes are in rpi1 and in psplash.

#3 Updated by Hammel 5 months ago

  • % Done changed from 30 to 80

Verified working but I'm having problems with installation to the SD card. The overlay is not working for some reason. See RM #736.

Until I get the installs working again I need to keep this one open.

#4 Updated by Hammel 5 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 80 to 100

Fixed, tested and verified working. Changes committed and pushed.

Closing issue.

Also available in: Atom PDF