-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
installer: improve RTC handling (#188)
* Add 'abx80x' to list of possible RTC drivers * Add 'module_enable' function in installer script for modules to be loaded in installed system * Use 'dtoverlay_enable' function in various places it was not being used * Ensure module for the RTC has been loaded during installation * Stop adding 'hwclock' call to /etc/rc.local as it is no longer needed - systems using sysvinit already have a udev rule to do this - systems using systemd will use service unit described below * Add systemd service unit to read RTC on startup - as seen in Debian bug 855203, systems using systemd don't read the RTC during startup if the RTC's driver is loaded as a module; since all Raspberry Pi kernels are configured this way, a service unit is required to read the RTC during system startup * Ensure module for the RTC will be loaded in installed system * Ensure that RTC date/time is set in UTC mode The 'ensure module loaded' bits are required because at least one RTC module (abx80x) is not automatically loaded even though the proper Device Tree overlay has been configured. For those which are autoloaded, having the module name in /etc/modules (or /etc/modules-load.d/rtc.conf) won't cause any harm. Signed-off-by: Kevin P. Fleming <[email protected]>
- Loading branch information
Showing
2 changed files
with
45 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters