IoTGateway/BSP/Linux/iMX6/2038y

From ESS-WIKI
Jump to: navigation, search

NXP IMX6 Arm32 2038

The Year 2038 problem is a time formatting bug in computer systems with representing times after 03:14:07 UTC on 19 January 2038. The bug will happen on Unix-like system (so on Linux) because, on 32-bits platforms, the time is coded on a signed 32-bits integer. At 03:14:07 UTC on 19 January 2038, it will loop and then be understood as 20:45:52 UTC on 13 December 1901.

2038_issue.jpg

Fixed the NXP IMX6 Arm32 2038 issue in Yocto.

In Yocto, the time64.inc file is primarily used for handling and configuring 64-bit time (time64) support.

1. Add the “include conf/distro/include/time64.inc” to defaultsetup.conf or advantech-imx6-settings.inc

Modify source/poky/meta/conf/distro/defaultsetup.conf or source/meta-advantech/meta-fsl-imx/conf/machine/include/advantech-imx6-settings.inc

include conf/distro/include/default-providers.inc 
include conf/distro/include/default-versions.inc 
include conf/distro/include/default-distrovars.inc 
include conf/distro/include/maintainers.inc 
include conf/distro/include/time64.inc

2. Modify the "conf/local.conf"

DL_DIR ?= "${BSPDIR}/downloads/" ACCEPT_FSL_EULA = "1"
PACKAGE_INSTALL:remove = " packagegroup-fsl-gstreamer1.0-full packagegroup-fsl-gstreamer1.0 imx-gst1.0-plugin-grecorder " 
PACKAGE_INSTALL:remove = " imx-test packagegroup-fsl-tools-testapps "