Skip to content

Commit afcfba0

Browse files
authored
[Tizen] Enable QEMU RTC driver to sync time on boot (project-chip#35964)
1 parent d3f33ba commit afcfba0

File tree

2 files changed

+13
-11
lines changed
  • integrations/docker/images

2 files changed

+13
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
81 : [Telink] Update Docker image (Zephyr update)
1+
82 : [Tizen] Enable RTC driver to sync time on boot

integrations/docker/images/stage-3/chip-build-tizen-qemu/Dockerfile

+12-10
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,25 @@ RUN set -x \
4646
&& cd *linux-kernel-* \
4747
&& zcat ../*-to-*.diff.gz | patch -p1 \
4848
&& patch -p1 < $TIZEN_SDK_ROOT/files/0001-smack-add-permissive-mode.patch \
49-
# Compile
49+
# Configure
5050
&& export MAKEFLAGS=-j$(nproc) \
5151
&& export ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- \
5252
&& make tizen_bcm2711_defconfig \
53-
&& ./scripts/config -e ARCH_VIRT \
54-
&& ./scripts/config -e VIRTIO_MMIO -e HW_RANDOM_VIRTIO \
53+
# Add support for QEMU VirtIO devices
54+
&& ./scripts/config -e ARCH_VIRT -e VIRTIO_MMIO \
5555
&& ./scripts/config -e VIRTIO_PCI -e VIRTIO_BLK \
5656
&& ./scripts/config -e VIRTIO_NET -e VETH \
57-
&& ./scripts/config -e IKCONFIG -e IKCONFIG_PROC \
57+
&& ./scripts/config -e HW_RANDOM_VIRTIO \
58+
# Use ARM PL031 RTC and synchronize time during boot
59+
&& ./scripts/config -e RTC_DRV_PL031 -e RTC_HCTOSYS \
60+
# Enable vHCI driver to add support for Bluetooth virtualization
5861
&& ./scripts/config -e BT_HCIVHCI -e CRYPTO_USER_API_HASH -e CRYPTO_USER_API_SKCIPHER \
59-
&& ./scripts/config -e OVERLAY_FS \
60-
&& ./scripts/config -e SECURITY_SMACK_PERMISSIVE_MODE \
61-
&& ./scripts/config -e NET_9P -e NET_9P_VIRTIO \
62-
&& ./scripts/config -e INET \
63-
&& ./scripts/config -e 9P_FS -e 9P_FS_POSIX_ACL \
64-
&& ./scripts/config -e PCI_HOST_GENERIC \
62+
# Enable overlay FS and disable SMACK to workaround permission issues
63+
&& ./scripts/config -e OVERLAY_FS -e SECURITY_SMACK_PERMISSIVE_MODE \
64+
# Enable 9P filesystem support to share files between host and guest
65+
&& ./scripts/config -e INET -e PCI_HOST_GENERIC -e NET_9P -e NET_9P_VIRTIO -e 9P_FS \
6566
&& make olddefconfig \
67+
# Compile
6668
&& make -j$(nproc) zImage \
6769
&& mv arch/arm/boot/zImage $TIZEN_IOT_QEMU_KERNEL \
6870
# Cleanup

0 commit comments

Comments
 (0)