console-image: Add ntp

Signed-off-by: Thomas Klaehn <tkl@blackfinn.de>
This commit is contained in:
Thomas Klaehn 2018-03-14 09:27:22 +01:00
parent 7a88af7d0c
commit 657e18387f
4 changed files with 25 additions and 3 deletions

View File

@ -10,6 +10,7 @@ BBLAYERS ?= " \
${TOPDIR}/../layers/poky/meta-poky \ ${TOPDIR}/../layers/poky/meta-poky \
${TOPDIR}/../layers/poky/meta-yocto-bsp \ ${TOPDIR}/../layers/poky/meta-yocto-bsp \
${TOPDIR}/../layers/meta-openembedded/meta-oe \ ${TOPDIR}/../layers/meta-openembedded/meta-oe \
${TOPDIR}/../layers/meta-openembedded/meta-networking \
${TOPDIR}/../layers/meta-openembedded/meta-python \ ${TOPDIR}/../layers/meta-openembedded/meta-python \
${TOPDIR}/../layers/meta-bbb \ ${TOPDIR}/../layers/meta-bbb \
" "

View File

@ -8,7 +8,7 @@ IMAGE_FEATURES += "package-management"
# Encrypt the password with: echo "<password>" | openssl passwd -1 -stdin # Encrypt the password with: echo "<password>" | openssl passwd -1 -stdin
EXTRA_USERS_PARAMS = " \ EXTRA_USERS_PARAMS = " \
usermod -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' root; \ usermod -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' root; \
useradd -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' tkl; \ useradd -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' tkl; \
" "
@ -26,7 +26,6 @@ KERNEL_EXTRA_INSTALL = " \
WIFI_SUPPORT = " \ WIFI_SUPPORT = " \
iw \ iw \
linux-firmware-rtl8188 \
linux-firmware-rtl8192cu \ linux-firmware-rtl8192cu \
wireless-tools \ wireless-tools \
wpa-supplicant \ wpa-supplicant \
@ -63,6 +62,7 @@ EXTRA_TOOLS_INSTALL = " \
wget \ wget \
curl \ curl \
zip \ zip \
ntp \
" "
MQTT = " \ MQTT = " \
@ -83,7 +83,7 @@ IMAGE_INSTALL += " \
${WIFI_SUPPORT} \ ${WIFI_SUPPORT} \
${MQTT} \ ${MQTT} \
${PYTHON_LIBS} \ ${PYTHON_LIBS} \
vl53l0x-api \ vl53l0x-api \
" "
set_local_timezone() { set_local_timezone() {

View File

@ -0,0 +1,19 @@
# This is the most basic ntp configuration file
# The driftfile must remain in a place specific to this
# machine - it records the machine specific clock error
driftfile /var/lib/ntp/drift
# This should be a server that is close (in IP terms)
# to the machine. Add other servers as required.
# Unless you un-comment the line below ntpd will sync
# only against the local system clock.
#
# server time.server.example.com
server 192.168.178.1
#
# Using local hardware clock as fallback
# Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself
server 127.127.1.0
fudge 127.127.1.0 stratum 14
# Defining a default security setting
restrict default

View File

@ -0,0 +1,2 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"