Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
2,160 Views

How to Set Timezones on Linux Yocto? Intel Galileo

Hi

I'm using AlexT's repo and tried to set the timezone of my intel galileo board, but can't figure out how to do it.

 

i tried with tzdata, but its not installed (get tzdata command not found) and can't install the packet with opkg

 

i don't have the files at /etc/localtime neither the directory /usr/share/zoneinfo/, or i don't know where

 

i tried with ntpdata and is running, but the timezone is wrong, so it mess up my time everytime i set it manually. I tried setting different servers, but every server gives me the same time, even the ones that should have the same timezone as me.

 

i'm trying to set the zone at South America - Buenos Aires.

 

Thanks in advance and sorry for my english

 

0 Kudos
11 Replies
Highlighted
Employee
697 Views

Hello RMorti, Thank you for your interest in the Intel Galileo Board. Please use the below guide to set the date and time on Yocto environment - https://www.oreilly.com/openbook/debian/book/ch07_05.html?fbclid=IwAR0pchQFZrQASfvba83JdeKTWiVflCQoS... Thank you and best regards, Eliza
0 Kudos
Highlighted
Beginner
697 Views

Thanks for the answer, i tried the steps on your link, but i can't use the command tzcongif, same problem with tzdata i get "-sh: tzconfig: command not found"

 

also i tried every step here:

 

http://freelinuxtutorials.com/quick-tips-and-tricks/quick-tip-change-timezone-in-linux-in-different-...

 

none works, mostly because i'm getting the "command not found"

0 Kudos
Highlighted
Employee
697 Views

Hello RMorti, In this case, please do the following: Use the command: timedatectl list-timezones This will list all the times zones available in the system. Please remember your time zone from here. After you have located your time zone, please use the command: timedatectl set-timezone ZONE, where ZONE is the time zone you have seen previously. Thank you, Eliza
0 Kudos
Highlighted
Beginner
697 Views

same problem, i get "-sh: timedatectl: command not found"

0 Kudos
Highlighted
Employee
697 Views

Hello RMorti, What is the Linux image that you are using? I have tested it with Galileo_Poky_SW_image_20160606.zip from: https://downloadcenter.intel.com/download/26418/Intel-Galileo-Board-Support-Package Thank you, Eliza
0 Kudos
Highlighted
Beginner
697 Views

i'm using AlexT's image

 

http://repo.opkg.net/galileo/images/

 

i think its a moded version of the default image from the intel site with dev tools

0 Kudos
Highlighted
Employee
697 Views

Hello RMorti, Unfortunately, I am not familiar with the commands that can be used with this SD Image. In order to use the commands I have mentioned before, please use the Galileo_Poky_SW_image. Best regards, Eliza
0 Kudos
Highlighted
Beginner
697 Views

Hi, AlexT's version is a Poky version with dev tools (checked the version with command lines).

 

sadly i couldn't contact Alex with this new forum to ask him directly if he could help me.

 

By the way, i could solve my problem (kinda), i needed the right time zone, because i'm collecting sensors data in a MySQL database in this data its included the date and time, using Current_date() and Current_time() fuctions from MySQL.

 

i solve my problem by subtracting the hour on the mysql query like this: current_time() -30000 (minus 3 hours).

 

i said kind, because i will have problems at midnight, when the date changues the day.

 

i struggled a lot to install and make it work both mysql and apache2 on Alex's image, you know if its possible to install and use both of these packets on the image you linked? if it allows some packet manager like opkg, apt, etc?

 

because the default image i tried from the intel support site, didn't worked for me.

 

0 Kudos
Highlighted
Employee
697 Views

Hello RMorti, The image I have used is the official SD Image for Intel Galileo. Best regards, Eliza
0 Kudos
Highlighted
Beginner
697 Views

OK, I think It gonna be kinda hard to build my own image from ground since I have working mostly of the functions I need on this image I'm gonna keep testing to find a solution Obtener Outlook para Android<https://aka.ms/ghei36>
0 Kudos
Highlighted
Valued Contributor I
697 Views

Using @Alex_Intel​ 's repo you should be able to build the packages your are missing (`bitbake tzdata`). You should then be able to copy them to you device and install using the package manager.

 

Or, you can build your own repo, add it to your package manager (I use dpkg and deb's so I'm not familar with opkg). Then when you install a package it will resolve dependencies automatically. For edison, this is how I do it: https://edison-fw.github.io/meta-intel-edison/5.0-Creating-a-deb-repository.html

 

With this 2nd method you can easily add all packages that are not included by Alex, without rebuilding everything.

0 Kudos