You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying "quiet" in cmdline.txt there should not be any console output unless something goes fatally wrong.
Instead various modules still output to console:
timer_set_mode: unhandled mode:1 timer_set_mode: unhandled mode:3 bcm2708_gpio: bcm2708_gpio_probe c0cffc18 vcos: [1]: vchiq: initialised - version 2 (min 2), device 251.0 drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Please refrain from using loglevel KERN_ERR for informational messages.
"CONFIG_RTC_HCTOSYS: Set system time from RTC on startup and resume"
I wonder if that option even works given that in the defconfig the support for individual RTC chips is build as module instead of built-into the kernel.
If it tries to fetch the time when booting the kernel, no modules are loaded yet.
Perhaps double-check with someone that has a RTC unit if that option does anything?
config RTC_HCTOSYS
bool "Set system time from RTC on startup and resume"
default y
help
If you say yes here, the system time (wall clock) will be set using
the value read from a specified RTC device. This is useful to avoid
unnecessary fsck runs at boot time, and to network better.
config RTC_HCTOSYS_DEVICE
string "RTC used to set the system time"
depends on RTC_HCTOSYS = y
default "rtc0"
help
The RTC device that will be used to (re)initialize the system
clock, usually rtc0. Initialization is done when the system
starts up, and when it resumes from a low power state. This
device should record time in UTC, since the kernel won't do
timezone correction.
The driver for this RTC device must be loaded before late_initcall
functions run, so it must usually be statically linked.
This clock should be battery-backed, so that it reads the correct
time when the system boots from a power-off state. Otherwise, your
system will need an external clock source (like an NTP server).
If the clock you specify here is not battery backed, it may still
be useful to reinitialize system time when resuming from system
sleep states. Do not specify an RTC here unless it stays powered
during all this system's supported sleep states.
Like I expected: "The driver for this RTC device must be loaded before late_initcall functions run, so it must usually be statically linked."
Since no support for RTC devices is statically build into the kernel, removing the option shouldn't make a difference.
Think RTC users use their own startup script that loads module, and sets clock.
@tobire42
Looks like it comes from this config option: CONFIG_RTC_HCTOSYS.
Unfortunately it's a bool setting (so can't make it a module) and if we disable then people with RTC hardware won't be able to use it.
Looks like it comes from this config option: CONFIG_RTC_HCTOSYS.
Unfortunately it's a bool setting (so can't make it a module) and if we disable then people with RTC hardware won't
be able to use it.
Same option as before.
What use does it have to people with RTC hardware?
"The driver for this RTC device must be loaded before late_initcall functions run, so it must usually be statically linked."
All the RTC hardware support is build as module, and not built-into the kernel, right?
FYI, disabling this option breaks RTC clock sync on boot
Have you actually build a kernel with this option enabled and tested that it solved the problem for you?
Enabling this option ALONE should not do anything.
Yes, it will try to set time on boot, but it will only do so using the zero RTC drivers we currently have build statically into the kernel, as external kernel modules are not loaded yet at boot time, but later with help from user-space by udev/systemd.
Enabling the option would only make sense, if you also build all RTC drivers into the kernel. Which may be an option if they all have device tree support, and stay quiet if they are not in the tree.
Activity
b43legacy: Fix crash on unload when firmware not available
rebroad commentedon Dec 24, 2012
speaking of which, what is the "drivers/rtc/hctosys.c: unable to open rtc device (rtc0)" message about?
Ferroin commentedon Dec 25, 2012
@rebroad it means that the rtc driver which tries to set the system time from the first RTC device it can find didn't find any RTC's.
@maxnet from the point of view of a developer, the first two messages are errors, and the last one could be considered as such.
maxnet commentedon Dec 25, 2012
The way I see it is that the function chooses not to handle CLOCK_EVT_MODE_SHUTDOWN and CLOCK_EVT_MODE_RESUME.
It would only have been an error if it was known to the calling code beforehand that those were not implemented.
b43legacy: Fix crash on unload when firmware not available
popcornmix commentedon Dec 27, 2012
I can get rid most of the errors.
Removing:
CONFIG_RTC_HCTOSYS
gets rid of the RTC one. This may upset some RTC users. Any thoughts?
maxnet commentedon Dec 27, 2012
"CONFIG_RTC_HCTOSYS: Set system time from RTC on startup and resume"
I wonder if that option even works given that in the defconfig the support for individual RTC chips is build as module instead of built-into the kernel.
If it tries to fetch the time when booting the kernel, no modules are loaded yet.
Perhaps double-check with someone that has a RTC unit if that option does anything?
maxnet commentedon Dec 27, 2012
From the full description:
Like I expected: "The driver for this RTC device must be loaded before late_initcall functions run, so it must usually be statically linked."
Since no support for RTC devices is statically build into the kernel, removing the option shouldn't make a difference.
Think RTC users use their own startup script that loads module, and sets clock.
popcornmix commentedon Dec 27, 2012
@maxnet
Thanks for info. I'll remove the option.
popcornmix commentedon Dec 27, 2012
Latest kernel should be quiet.
maxnet commentedon Dec 27, 2012
Thanks.
Boot is now more silent.
With CMA enabled still have the following messages left:
Retry loop works fine BTW.
maxnet commentedon Dec 28, 2012
Fixed in last commit.
Thanks.
tobire42 commentedon Jan 10, 2014
looks like the "unable to open rtc device" line is back now? (with "quiet" in cmdline.txt)
popcornmix commentedon Jan 10, 2014
@tobire42
Looks like it comes from this config option: CONFIG_RTC_HCTOSYS.
Unfortunately it's a bool setting (so can't make it a module) and if we disable then people with RTC hardware won't be able to use it.
Not sure if there's a way to disable it.
maxnet commentedon Jan 10, 2014
Same option as before.
What use does it have to people with RTC hardware?
"The driver for this RTC device must be loaded before late_initcall functions run, so it must usually be statically linked."
All the RTC hardware support is build as module, and not built-into the kernel, right?
popcornmix commentedon Jan 10, 2014
@maxnet
So suggestion is to disable CONFIG_RTC_HCTOSYS?
I have no evidence that it is required by anyone, so I could try that.
maxnet commentedon Jan 10, 2014
Yes.
You did the same for the rpi-3.6 branch back when this bug was first reported.
Assuming nobody complained about that, it should be safe to do the same in the new branch.
config: Remove CONFIG_RTC_HCTOSYS
kernel: bump to 3.10.26
kernel: bump to 3.10.26
at86rf230: fix lockdep splats
rotx commentedon Feb 21, 2015
FYI, disabling this option breaks RTC clock sync on boot, see http://www.raspberrypi.org/forums/viewtopic.php?p=692662#p692662
maxnet commentedon Feb 21, 2015
Have you actually build a kernel with this option enabled and tested that it solved the problem for you?
Enabling this option ALONE should not do anything.
Yes, it will try to set time on boot, but it will only do so using the zero RTC drivers we currently have build statically into the kernel, as external kernel modules are not loaded yet at boot time, but later with help from user-space by udev/systemd.
Enabling the option would only make sense, if you also build all RTC drivers into the kernel. Which may be an option if they all have device tree support, and stay quiet if they are not in the tree.
kernel: bump to 3.10.26
VMCI: fix race between vmci_host_setup_notify and vmci_ctx_unset_notify
VMCI: fix race between vmci_host_setup_notify and vmci_ctx_unset_notify
VMCI: fix race between vmci_host_setup_notify and vmci_ctx_unset_notify