mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
initscripts: load RTC module (RX8025) for Ten64 board
For reasons I have not been able to determine, the RTC module for the Ten64 board (rtc-rx8025) is not automatically loaded at startup, despite every other relevant modules being loaded. modprobe it manually if we are on a Ten64 board. Signed-off-by: Mathew McBride <matt@traverse.com.au> Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
6efb611cbc
commit
9745a212d4
@@ -29,6 +29,14 @@ case ${1} in
|
||||
|
||||
boot_mesg "Setting system clock..."
|
||||
|
||||
FDT_COMPAT_FILE="/sys/firmware/devicetree/base/compatible"
|
||||
# RTC may not be automatically loaded on some
|
||||
# non-x86 machines
|
||||
if [ -f "${FDT_COMPAT_FILE}" ] && \
|
||||
( grep -q "traverse,ten64" "${FDT_COMPAT_FILE}" ); then
|
||||
modprobe rtc-rx8025
|
||||
fi
|
||||
|
||||
# udev not create the rtc symlink if rtc is in the kernel
|
||||
if [ ! -e /dev/rtc ]; then
|
||||
if [ -e /dev/rtc0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user