Hi,
I'm using SDK-LINUX-AM57X 06_03_00_106 on our custom board.
I want to change timezone UTC to JST(Tokyo/Asia).
Please give me any advice.
Regards,
Toshio Masuchi
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I'm using SDK-LINUX-AM57X 06_03_00_106 on our custom board.
I want to change timezone UTC to JST(Tokyo/Asia).
Please give me any advice.
Regards,
Toshio Masuchi
Hi Toshio-san,
https://linuxize.com/post/how-to-set-or-change-timezone-in-linux/
I believe this is what you were looking for.
sudo timedatectl set-timezone Asia/Tokyo
root@j7200-evm:~# timedatectl
Local time: Tue 2022-02-08 22:48:55 JST
Universal time: Tue 2022-02-08 13:48:55 UTC
RTC time: n/a
Time zone: Asia/Tokyo (JST, +0900)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
If no other questions then click on verify answer.
- Keerthy
Hi Keerthy,
Thanks for your reply.
I executed on our board.
====
root@am57xx-evm:~# timedatectl set-timezone Asia/Tokyo
Failed to set time zone: Invalid time zone 'Asia/Tokyo'
====
The Linux SDK do not have tzdata package.
I checked
This issue is over 3 years ago.
Is tzdata_2018f-r0_all.ipk the newest?
Hi Toshio-san,
Okay. I am seeing the issue on AM573x IDK as well. The 6.03 version does not seem to have the timezone package.
- Keerthy
Hi Toshio-san,
tzdata package is available as part of the oe-core layer it is present in "./oe-core/meta/recipes-extended/timezone/tzdata.bb"
This is an open source package and customers who need this package can compile this using bitbake and install them into their filesytem.
I quickly checked whether this is buildable easily and it is very simple to build. On the AM57 SDK, use this command.
TOOLCHAIN_BASE=/sdk/tools MACHINE=am57xx-evm bitbake -k tzdata
I recommend the customer to build and use the tzdata package.
Regards
Karthik