diff --git a/buildconf/bblayers.conf.sample b/buildconf/bblayers.conf.sample index 6dc8f99..f4db5e9 100644 --- a/buildconf/bblayers.conf.sample +++ b/buildconf/bblayers.conf.sample @@ -10,6 +10,7 @@ BBLAYERS ?= " \ ${TOPDIR}/../layers/poky/meta-poky \ ${TOPDIR}/../layers/poky/meta-yocto-bsp \ ${TOPDIR}/../layers/meta-openembedded/meta-oe \ + ${TOPDIR}/../layers/meta-openembedded/meta-networking \ ${TOPDIR}/../layers/meta-openembedded/meta-python \ ${TOPDIR}/../layers/meta-bbb \ " diff --git a/images/console-image.bb b/images/console-image.bb index 704bdf4..8f696c5 100644 --- a/images/console-image.bb +++ b/images/console-image.bb @@ -8,7 +8,7 @@ IMAGE_FEATURES += "package-management" # Encrypt the password with: echo "" | openssl passwd -1 -stdin EXTRA_USERS_PARAMS = " \ - usermod -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' root; \ + usermod -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' root; \ useradd -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' tkl; \ " @@ -26,7 +26,6 @@ KERNEL_EXTRA_INSTALL = " \ WIFI_SUPPORT = " \ iw \ - linux-firmware-rtl8188 \ linux-firmware-rtl8192cu \ wireless-tools \ wpa-supplicant \ @@ -63,6 +62,7 @@ EXTRA_TOOLS_INSTALL = " \ wget \ curl \ zip \ + ntp \ " MQTT = " \ @@ -83,7 +83,7 @@ IMAGE_INSTALL += " \ ${WIFI_SUPPORT} \ ${MQTT} \ ${PYTHON_LIBS} \ - vl53l0x-api \ + vl53l0x-api \ " set_local_timezone() { diff --git a/recipes-support/ntp/files/ntp.conf b/recipes-support/ntp/files/ntp.conf new file mode 100644 index 0000000..6efc6de --- /dev/null +++ b/recipes-support/ntp/files/ntp.conf @@ -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 + diff --git a/recipes-support/ntp/ntp_%.bbappend b/recipes-support/ntp/ntp_%.bbappend new file mode 100644 index 0000000..869d60a --- /dev/null +++ b/recipes-support/ntp/ntp_%.bbappend @@ -0,0 +1,2 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" +