Systemctl service, some question on start on boot

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Re: Systemctl service, some question on start on boot

Postby Chryses » Sun Feb 23, 2014 1:51 pm

Battery changed but no luky .... seems to be some kind of incompatibility, is possible?

$this->bbcode_second_pass_code('', 'muletto@nsa325v2:/etc$ dmesg | grep -i rtc
[ 15.388960] rtc-mv rtc-mv: internal RTC not ticking
[ 18.915155] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 25.255444] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[ 25.305639] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0')
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

Re: Systemctl service, some question on start on boot

Postby WarheadsSE » Sun Feb 23, 2014 4:52 pm

Look closely at the timing issue.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Systemctl service, some question on start on boot

Postby Chryses » Sun Feb 23, 2014 5:12 pm

I'm not expert :)

Did you refer at "...not ticking" or maybe the driver?
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

Re: Systemctl service, some question on start on boot

Postby pepedog » Sun Feb 23, 2014 5:58 pm

Maybe module loading is happening too late?
https://wiki.archlinux.org/index.php/Ke ... es#Loading
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Systemctl service, some question on start on boot

Postby Chryses » Sun Feb 23, 2014 8:35 pm

I don't know, I don't think that I'm able to test ... but from all that I saw, I found this, maybe is useless maybe not
http://lists.infradead.org/pipermail/li ... 47120.html

What do you think?
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

Re: Systemctl service, some question on start on boot

Postby WarheadsSE » Mon Feb 24, 2014 2:31 am

NO.
Look at the timestamps next to the messages. Simply put, there is no rtc-mv clock running, and it is not being used for the time. So as pepedog said, looks like an issue with order of operations, based on the timestamps.

Those numbers are not there for no reason.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Systemctl service, some question on start on boot

Postby moonman » Mon Feb 24, 2014 4:50 am

you could try to create a systemd service that executes hwclock -s
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Systemctl service, some question on start on boot

Postby Chryses » Mon Feb 24, 2014 6:16 am

Like I said WarheadsSE, I'm not expert, and I just realized that the initial number are the seconds ;)
And then you man have said that the 325 has the rtc ;)

And always because I'm not an expert, I don't know if it is fixable or not.

@moonman
I see something like a hwclock service, looking for one possible idea for the resolution, I'll try to apply. But, correct my if I'm wrong, until the problem is resolved, this's only a workaround, right? Or with the service I can remove the ntpdate service?
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

Re: Systemctl service, some question on start on boot

Postby moonman » Mon Feb 24, 2014 8:59 am

WarheadsSE did say 325 has rtc, but it doesn't get initialized properly, or rather in time.

A possible solution:

/usr/lib/systemd/system/hctosys.service
$this->bbcode_second_pass_code('', '[Unit]
Description=hc to sys service
After=sysinit.target

[Service]
Type=oneshot
ExecStart=/usr/bin/hwclock -s

[Install]
WantedBy=sysinit.target')

then run
$this->bbcode_second_pass_code('', 'systemctl daemon-reload
systemctl enable hctosys.service')

See if it works.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Systemctl service, some question on start on boot

Postby Chryses » Mon Feb 24, 2014 12:23 pm

You're right, perhaps even WarheadsSE knew that did not work properly

I'll try, so if this service works I can remove the ntpdate.service, right?
Chryses
 
Posts: 35
Joined: Mon Jan 20, 2014 8:15 pm

PreviousNext

Return to ARMv5

Who is online

Users browsing this forum: No registered users and 22 guests