[Testing needed] fake-hwclock as boot clock source

This commit is contained in:
zador-blood-stained 2015-12-16 20:37:11 +03:00
parent 6f00f15893
commit 079915e146
18 changed files with 35 additions and 48 deletions

View file

@ -167,6 +167,9 @@ install_board_specific (){
# convert to uboot compatible script
[[ -f "$DEST/cache/sdcard/boot/boot.cmd" ]] && \
mkimage -C none -A arm -T script -d $DEST/cache/sdcard/boot/boot.cmd $DEST/cache/sdcard/boot/boot.scr >> /dev/null
# initial date for fake-hwclock
date -u '+%Y-%m-%d %H:%M:%S' > $DEST/cache/sdcard/etc/fake-hwclock.data
}

View file

@ -4826,9 +4826,9 @@ CONFIG_INFINIBAND_ISERT=m
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS=n
# CONFIG_RTC_SYSTOHC is not set
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_HCTOSYS_DEVICE is not set
# CONFIG_RTC_DEBUG is not set
#

View file

@ -3533,9 +3533,9 @@ CONFIG_LEDS_TRIGGER_GPIO=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS=n
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_HCTOSYS_DEVICE is not set
# CONFIG_RTC_DEBUG is not set
#

View file

@ -2834,9 +2834,9 @@ CONFIG_SWITCH_GPIO=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS=n
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_HCTOSYS_DEVICE is not set
# CONFIG_RTC_DEBUG is not set
#

View file

@ -3306,9 +3306,9 @@ CONFIG_SWITCH=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS=n
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_HCTOSYS_DEVICE is not set
# CONFIG_RTC_DEBUG is not set
#

View file

@ -2847,8 +2847,8 @@ CONFIG_EDAC_SUPPORT=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_HCTOSYS=n
# CONFIG_RTC_HCTOSYS_DEVICE is not set
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

View file

@ -2834,9 +2834,9 @@ CONFIG_SWITCH_GPIO=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS=n
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_HCTOSYS_DEVICE is not set
# CONFIG_RTC_DEBUG is not set
#

View file

@ -3181,8 +3181,8 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
# CONFIG_ACCESSIBILITY is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_HCTOSYS=n
# CONFIG_RTC_HCTOSYS_DEVICE is not set
# CONFIG_RTC_DEBUG is not set
#

View file

@ -3227,8 +3227,8 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
# CONFIG_ACCESSIBILITY is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_HCTOSYS=n
# CONFIG_RTC_HCTOSYS_DEVICE is not set
# CONFIG_RTC_DEBUG is not set
#

View file

@ -3890,8 +3890,8 @@ CONFIG_EDAC_SUPPORT=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_HCTOSYS=n
# CONFIG_RTC_HCTOSYS_DEVICE is not set
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

View file

@ -3224,8 +3224,8 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
# CONFIG_ACCESSIBILITY is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_HCTOSYS=n
# CONFIG_RTC_HCTOSYS_DEVICE is not set
# CONFIG_RTC_DEBUG is not set
#

View file

@ -3920,8 +3920,8 @@ CONFIG_EDAC_SUPPORT=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_HCTOSYS=n
# CONFIG_RTC_HCTOSYS_DEVICE is not set
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

View file

@ -4073,8 +4073,8 @@ CONFIG_EDAC_SUPPORT=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_HCTOSYS=n
# CONFIG_RTC_HCTOSYS_DEVICE is not set
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

View file

@ -2933,9 +2933,9 @@ CONFIG_LEDS_TRIGGER_GPIO=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS=n
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_HCTOSYS_DEVICE is not set
# CONFIG_RTC_DEBUG is not set
#

View file

@ -3142,9 +3142,9 @@ CONFIG_LEDS_TRIGGER_GPIO=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS=n
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_HCTOSYS_DEVICE is not set
# CONFIG_RTC_DEBUG is not set
#

View file

@ -3876,8 +3876,8 @@ CONFIG_EDAC_SUPPORT=y
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
CONFIG_RTC_HCTOSYS=n
# CONFIG_RTC_HCTOSYS_DEVICE is not set
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

View file

@ -92,13 +92,7 @@ fi
if [ ! -f "$DEST/cache/rootfs/$RELEASE.tgz" ]; then
# debootstrap base system
if [[ $RELEASE == "jessie" && $SYSTEMD == "no" ]]; then sysvinit=",sysvinit-core"; fi
debootstrap --include=openssh-server,debconf-utils$sysvinit --arch=armhf --foreign $RELEASE $DEST/cache/sdcard/ | dialog --backtitle "$backtitle" --title "Debootstrap $DISTRIBUTION $RELEASE base system to image template ..." --progressbox 20 70
# remove systemd default load. It's installed and can be used with kernel parameter
if [[ $RELEASE == "jessie" && $SYSTEMD == "no" ]]; then
sed -i -e 's/systemd-sysv //g' $DEST/cache/sdcard/debootstrap/required
fi
debootstrap --include=openssh-server,debconf-utils --arch=armhf --foreign $RELEASE $DEST/cache/sdcard/ | dialog --backtitle "$backtitle" --title "Debootstrap $DISTRIBUTION $RELEASE base system to image template ..." --progressbox 20 70
# we need emulator for second stage
cp /usr/bin/qemu-arm-static $DEST/cache/sdcard/usr/bin/
@ -137,7 +131,7 @@ device-tree-compiler dosfstools evtest figlet fbset fping git haveged hddtemp hd
iperf ir-keytable iotop iozone3 iw less libbluetooth-dev libbluetooth3 libtool libwrap0-dev libfuse2 libssl-dev lirc lsof makedev \
module-init-tools mtp-tools nano ntfs-3g ntp parted pkg-config pciutils pv python-smbus rfkill rsync screen stress sudo subversion \
sysfsutils toilet u-boot-tools unattended-upgrades unzip usbutils vlan wireless-tools weather-util weather-util-data wget \
wpasupplicant iptables dvb-apps libdigest-sha-perl libproc-processtable-perl w-scan apt-transport-https sysbench libusb-dev dialog"
wpasupplicant iptables dvb-apps libdigest-sha-perl libproc-processtable-perl w-scan apt-transport-https sysbench libusb-dev dialog fake-hwclock"
# generate locales and install packets
display_alert "Install locales" "$DEST_LANG" "info"

View file

@ -29,16 +29,6 @@ case "$1" in
start)
# ARM
# fix for eth0 no brought up
if [ "$SERVER_IP" == "" ]; then
echo -e "[\e[0;32m ok \x1B[0m] Fixing RTC and reloading eth0"
date -s "2015-01-01 10:00:00" > /dev/null 2>&1
hwclock -w
ifdown eth0 > /dev/null 2>&1
ifup eth0 > /dev/null 2>&1
fi
for i in $( lsblk -idn -o NAME ); do
ROTATE=$(cat /sys/block/$i/queue/rotational)