Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: snecker on December 17, 2020, 06:03:10 PM
-
I'm currently attempting to run:
hwclock -s
on a Pi Zero however I get the error:
hwclock: settimeofday: Invalid argument
This is due to a breaking change earlier in the year.
The fix seems to have landed yesterday in busybox but I only have access to armv7 builders and I just get
Illegal Instruction
when I attempt to run this build on the PiCore, understandably.
If someone can point me in the right direction to get an armv6 version built that would be appreciated.
-
Hi snecker
Welcome to the forum.
I see in PiCore 12.x util-linux.tcz contains /usr/local/sbin/hwclock:
http://tinycorelinux.net/12.x/armv6/tcz/util-linux.tcz.list
You don't mention which version of PiCore you are running, but it's also available in 11.x. 10.x, and 9.x too.
-
Hi snecker
Welcome to the forum.
Thank you, good to be here!
I see in PiCore 12.x util-linux.tcz contains /usr/local/sbin/hwclock:
http://tinycorelinux.net/12.x/armv6/tcz/util-linux.tcz.list
You don't mention which version of PiCore you are running, but it's also available in 11.x. 10.x, and 9.x too.
Sorry, its the latest 12.x release which includes BusyBox 1.31.1
Thank you for the advice about util-linux, I am just attempting to compile this now.
-
Hi snecker
... Thank you for the advice about util-linux, I am just attempting to compile this now.
No need to compile. util-linux.tcz is a prebuilt extension you can install. If your Pi is connected to the network, then:
tce-load -wi util-linux
-
Hi snecker
... Thank you for the advice about util-linux, I am just attempting to compile this now.
No need to compile. util-linux.tcz is a prebuilt extension you can install. If your Pi is connected to the network, then:
tce-load -wi util-linux
Ok, I realise now I was trying to do:
hwclock -s
as a regular user and the error was misleading.
So currently the busybox 1.31.1 version of hwclock is broken, util-linux version is not.
Thanks!
-
Hi snecker
... Ok, I realise now I was trying to do:
hwclock -s
as a regular user and the error was misleading. ...
Since the busybox hwclock is in /sbin, I would expect it needs to be run as root. Does this work:
sudo busybox hwclock -s
-
Hi Rich
Hi snecker
... Ok, I realise now I was trying to do:
hwclock -s
as a regular user and the error was misleading. ...
Since the busybox hwclock is in /sbin, I would expect it needs to be run as root. Does this work:
sudo busybox hwclock -s
No, this doesn't work but util-linux from the repository does, thanks!