Hello,
I am now working with Yocto(3.10.17) on i.MX6, and after the system started up, I want to
set the timezone to Japan.
I know in the LTIB case,just run the following command to set timezone.
ln -sf /usr/share/zoneinfo/Japan /etc/localtime
But this is not work in the Yocto case.
Could someone tell me how to set timezone in the Yocto case?
Best Regard,
ZongbiaoLiao
Solved! Go to Solution.
Hello gusarambula
Thank you for your prompt.
I got it worked and my workaround is as bellow.
1)bitbake -c compile tzdata
2)bitbake -c install tzdata
3)copy <yocto folder>/<build folder>/tmp/work/all-poky-linux/tzdata/2013d-r0/image/usr/share/zoneinfo to the /usr/share of rootfs.
4)ln -sf /usr/share/zoneinfo/Japan /etc/localtime
Best Regards,
ZongbiaoLiao
Hi,Community
Could anyone give me some suggests?
Hello ZongbiaoLiao,
Perhaps the following community thread may help:
https://community.freescale.com/thread/315531
You may also want to look at tzdata in poky which does have a “DEFAULT_TIMEZONE” variable, although I haven’t personally used it.
Please let us know of your findings!
Hello gusarambula
Thank you for your prompt.
I got it worked and my workaround is as bellow.
1)bitbake -c compile tzdata
2)bitbake -c install tzdata
3)copy <yocto folder>/<build folder>/tmp/work/all-poky-linux/tzdata/2013d-r0/image/usr/share/zoneinfo to the /usr/share of rootfs.
4)ln -sf /usr/share/zoneinfo/Japan /etc/localtime
Best Regards,
ZongbiaoLiao
Hai ,
could you please help me to integrate the tzdata to my build.
I am using yocto jethro build for my sabresdp board. I bitbaked console-image.
I found that /usr/share/zone info conatin less amount of xone information .in /usr/share/zone info/Asia/Calcutta missing .
How can include the all zone package in my build.
Could you please help me to solve this issue. Its’ an urgent requirement.
try adding tzdata-asia to your image.
did you get the answer. can you please tell me how to do it