avafinger / bananapi-m64-kodi

BananaPi M64 with KODI
1 stars 0 forks source link

timedatectl not working on EMMC - but works on SSD #5

Closed azrin1972 closed 3 years ago

azrin1972 commented 3 years ago

Hi @avafinger

I know this repository is almost 3 years old but I'm still using this as part of my work to collect data. I just found out that some systemd modules are not working if booting from EMMC but it works when booting form SDCARD

avafinger commented 3 years ago

systemd modules are not working if booting from EMMC but it works when booting form SDCARD

Can you disclose which one is not working? Use the command line and save it as txt. I have not updated the image since then...

azrin1972 commented 3 years ago

I've tried timedatectl and hsotnamectl

but the thing is if I boot using SDCARD everything is fine. only when I transfer them to the EMMC

avafinger commented 3 years ago

I can't see a reason for that. Maybe some config files point to SD CARD. To be able to find what is going on, try to remove the service and re-install it. https://www.tecmint.com/set-time-timezone-and-synchronize-time-using-timedatectl-command/

Maybe you should use timesyncd instead of timedatectl: https://wiki.archlinux.org/title/systemd-timesyncd

Check if you have both services running...

azrin1972 commented 3 years ago

The error that I'm getting is always the time our error

avafinger commented 3 years ago

Logs, messages, outputs........?

avafinger commented 3 years ago

Interesting read: https://serverfault.com/questions/712928/systemctl-commands-timeout-when-ran-as-root

azrin1972 commented 3 years ago

Logs, messages, outputs........?

I will get them soon

I'm working on BPI-F2P right now and struggling to make SSD to EMMC script like you did for BPI-M64. I'm stuck with copying the boot part of it. :)

azrin1972 commented 3 years ago

I found root cause of the issue - when I do rsync from SSD to EMMC, I exclude the /var/tmp as I though it was just a temp file. I just need to create the directory and everything works.