* [Buildroot] systemd not working properly?
@ 2014-10-19 10:45 Thomas Petazzoni
2014-10-20 8:45 ` Maxime Hadjinlian
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2014-10-19 10:45 UTC (permalink / raw)
To: buildroot
Dear systemd/Buildroot users,
I don't use systemd much, but every time I need to test a config with
systemd enabled, there are quite a few errors at boot time, and more
precisely, it doesn't even boot completely. Here are the errors I get:
[FAILED] Failed to start Remount Root and Kernel File Systems.
See 'systemctl status systemd-remount-fs.service' for details.
...
Then a *very* long delay because of dev-ttyAMA0.device., that finally
ends up with:
[ TIME ] Timed out waiting for device dev-ttyAMA0.device.
[DEPEND] Dependency failed for Serial Getty on ttyAMA0.
And finally, I get no getty at all.
Defconfig being used:
BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_INIT_SYSTEMD=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_PACKAGE_AVAHI=y
BR2_PACKAGE_AVAHI_DAEMON=y
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread* [Buildroot] systemd not working properly?
2014-10-19 10:45 [Buildroot] systemd not working properly? Thomas Petazzoni
@ 2014-10-20 8:45 ` Maxime Hadjinlian
2015-07-07 21:03 ` Thomas Petazzoni
2014-10-20 14:25 ` Jérôme Pouiller
2014-10-21 8:15 ` Eric Le Bihan
2 siblings, 1 reply; 8+ messages in thread
From: Maxime Hadjinlian @ 2014-10-20 8:45 UTC (permalink / raw)
To: buildroot
Hi Thomas ,all
On Sun, Oct 19, 2014 at 12:45 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear systemd/Buildroot users,
>
> I don't use systemd much, but every time I need to test a config with
> systemd enabled, there are quite a few errors at boot time, and more
> precisely, it doesn't even boot completely. Here are the errors I get:
>
> [FAILED] Failed to start Remount Root and Kernel File Systems.
> See 'systemctl status systemd-remount-fs.service' for details.
> ...
>
> Then a *very* long delay because of dev-ttyAMA0.device., that finally
> ends up with:
>
> [ TIME ] Timed out waiting for device dev-ttyAMA0.device.
> [DEPEND] Dependency failed for Serial Getty on ttyAMA0.
>
> And finally, I get no getty at all.
So this particular issues, is due to the fact that for some reason,
systemd doesn't like the fact that ttyAMA0 is a serial-link. If you
delete the link in /etc/systemd/system/multi-user.target.wants/ and
recreate it to point to getty at .service instead of
serial-getty at .service, it will boot up fine.
I am still looking into why it doesn't work. I am exploring some idea.
>
> Defconfig being used:
>
> BR2_arm=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_INIT_SYSTEMD=y
> BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
> BR2_PACKAGE_AVAHI=y
> BR2_PACKAGE_AVAHI_DAEMON=y
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] systemd not working properly?
2014-10-20 8:45 ` Maxime Hadjinlian
@ 2015-07-07 21:03 ` Thomas Petazzoni
2015-07-07 21:53 ` Maxime Hadjinlian
0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2015-07-07 21:03 UTC (permalink / raw)
To: buildroot
Dear Maxime Hadjinlian,
On Mon, 20 Oct 2014 10:45:10 +0200, Maxime Hadjinlian wrote:
> > Then a *very* long delay because of dev-ttyAMA0.device., that finally
> > ends up with:
> >
> > [ TIME ] Timed out waiting for device dev-ttyAMA0.device.
> > [DEPEND] Dependency failed for Serial Getty on ttyAMA0.
> >
> > And finally, I get no getty at all.
> So this particular issues, is due to the fact that for some reason,
> systemd doesn't like the fact that ttyAMA0 is a serial-link. If you
> delete the link in /etc/systemd/system/multi-user.target.wants/ and
> recreate it to point to getty at .service instead of
> serial-getty at .service, it will boot up fine.
> I am still looking into why it doesn't work. I am exploring some idea.
I still see this issue today. Can we fix this to have something that
works properly out of the box?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] systemd not working properly?
2015-07-07 21:03 ` Thomas Petazzoni
@ 2015-07-07 21:53 ` Maxime Hadjinlian
2015-07-12 11:48 ` Maxime Hadjinlian
0 siblings, 1 reply; 8+ messages in thread
From: Maxime Hadjinlian @ 2015-07-07 21:53 UTC (permalink / raw)
To: buildroot
On Jul 7, 2015 23:03, "Thomas Petazzoni" <
thomas.petazzoni@free-electrons.com> wrote:
>
> Dear Maxime Hadjinlian,
Hi Thomas
>
> On Mon, 20 Oct 2014 10:45:10 +0200, Maxime Hadjinlian wrote:
>
> > > Then a *very* long delay because of dev-ttyAMA0.device., that finally
> > > ends up with:
> > >
> > > [ TIME ] Timed out waiting for device dev-ttyAMA0.device.
> > > [DEPEND] Dependency failed for Serial Getty on ttyAMA0.
> > >
> > > And finally, I get no getty at all.
> > So this particular issues, is due to the fact that for some reason,
> > systemd doesn't like the fact that ttyAMA0 is a serial-link. If you
> > delete the link in /etc/systemd/system/multi-user.target.wants/ and
> > recreate it to point to getty at .service instead of
> > serial-getty at .service, it will boot up fine.
> > I am still looking into why it doesn't work. I am exploring some idea.
>
> I still see this issue today. Can we fix this to have something that
> works properly out of the box?
Sure things. I'll keep that in my queue for Friday :).
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150707/41ba330a/attachment.html>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] systemd not working properly?
2015-07-07 21:53 ` Maxime Hadjinlian
@ 2015-07-12 11:48 ` Maxime Hadjinlian
0 siblings, 0 replies; 8+ messages in thread
From: Maxime Hadjinlian @ 2015-07-12 11:48 UTC (permalink / raw)
To: buildroot
On Tue, Jul 7, 2015 at 11:53 PM, Maxime Hadjinlian
<maxime.hadjinlian@gmail.com> wrote:
> On Jul 7, 2015 23:03, "Thomas Petazzoni"
> <thomas.petazzoni@free-electrons.com> wrote:
>>
>> Dear Maxime Hadjinlian,
> Hi Thomas
>>
>> On Mon, 20 Oct 2014 10:45:10 +0200, Maxime Hadjinlian wrote:
>>
>> > > Then a *very* long delay because of dev-ttyAMA0.device., that finally
>> > > ends up with:
>> > >
>> > > [ TIME ] Timed out waiting for device dev-ttyAMA0.device.
>> > > [DEPEND] Dependency failed for Serial Getty on ttyAMA0.
>> > >
>> > > And finally, I get no getty at all.
>> > So this particular issues, is due to the fact that for some reason,
>> > systemd doesn't like the fact that ttyAMA0 is a serial-link. If you
>> > delete the link in /etc/systemd/system/multi-user.target.wants/ and
>> > recreate it to point to getty at .service instead of
>> > serial-getty at .service, it will boot up fine.
>> > I am still looking into why it doesn't work. I am exploring some idea.
>>
>> I still see this issue today. Can we fix this to have something that
>> works properly out of the box?
> Sure things. I'll keep that in my queue for Friday :).
So after verified and talked to you, here's the definitive answer to that:
If you build your kernel through Buildroot, you'll have FHANDLE
selected if you use systemd as init.
If you build your kernel any other way and don't select FHANDLE in the
kernel's configuration, you'll end up with exactly this problem.
>>
>> Thanks,
>>
>> Thomas
>> --
>> Thomas Petazzoni, CTO, Free Electrons
>> Embedded Linux, Kernel and Android engineering
>> http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] systemd not working properly?
2014-10-19 10:45 [Buildroot] systemd not working properly? Thomas Petazzoni
2014-10-20 8:45 ` Maxime Hadjinlian
@ 2014-10-20 14:25 ` Jérôme Pouiller
2014-10-21 8:15 ` Eric Le Bihan
2 siblings, 0 replies; 8+ messages in thread
From: Jérôme Pouiller @ 2014-10-20 14:25 UTC (permalink / raw)
To: buildroot
Hello Thomas
On Sunday 19 October 2014 12:45:25 Thomas Petazzoni wrote:
> Dear systemd/Buildroot users,
>
> I don't use systemd much, but every time I need to test a config with
> systemd enabled, there are quite a few errors at boot time, and more
> precisely, it doesn't even boot completely. Here are the errors I get:
>
> [FAILED] Failed to start Remount Root and Kernel File Systems.
> See 'systemctl status systemd-remount-fs.service' for details.
> ...
There is an incompatibility between busybox mount command and systemd[1][2].
This error should be resolved if you use mount from util-linux.
[1] http://lists.busybox.net/pipermail/busybox/2008-June/066078.html
[2] http://lists.busybox.net/pipermail/busybox/2012-July/078064.html
--
J?r?me Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] systemd not working properly?
2014-10-19 10:45 [Buildroot] systemd not working properly? Thomas Petazzoni
2014-10-20 8:45 ` Maxime Hadjinlian
2014-10-20 14:25 ` Jérôme Pouiller
@ 2014-10-21 8:15 ` Eric Le Bihan
2014-10-27 9:50 ` Maxime Hadjinlian
2 siblings, 1 reply; 8+ messages in thread
From: Eric Le Bihan @ 2014-10-21 8:15 UTC (permalink / raw)
To: buildroot
Hi!
On Sun, Oct 19, 2014 at 12:45:25PM +0200, Thomas Petazzoni wrote:
> Dear systemd/Buildroot users,
>
> I don't use systemd much, but every time I need to test a config with
> systemd enabled, there are quite a few errors at boot time, and more
> precisely, it doesn't even boot completely. Here are the errors I get:
>
> [FAILED] Failed to start Remount Root and Kernel File Systems.
> See 'systemctl status systemd-remount-fs.service' for details.
> ...
>
> Then a *very* long delay because of dev-ttyAMA0.device., that finally
> ends up with:
>
> [ TIME ] Timed out waiting for device dev-ttyAMA0.device.
> [DEPEND] Dependency failed for Serial Getty on ttyAMA0.
>
> And finally, I get no getty at all.
>
> Defconfig being used:
>
> BR2_arm=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_INIT_SYSTEMD=y
> BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
> BR2_PACKAGE_AVAHI=y
> BR2_PACKAGE_AVAHI_DAEMON=y
I do not have a working ARM based device, I only test with QEMU/ARM and I have
not experienced such issue with this configuration. :-(
Best regards
ELB
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] systemd not working properly?
2014-10-21 8:15 ` Eric Le Bihan
@ 2014-10-27 9:50 ` Maxime Hadjinlian
0 siblings, 0 replies; 8+ messages in thread
From: Maxime Hadjinlian @ 2014-10-27 9:50 UTC (permalink / raw)
To: buildroot
Hi all,
On Tue, Oct 21, 2014 at 10:15 AM, Eric Le Bihan
<eric.le.bihan.dev@free.fr> wrote:
> Hi!
> On Sun, Oct 19, 2014 at 12:45:25PM +0200, Thomas Petazzoni wrote:
>> Dear systemd/Buildroot users,
>>
>> I don't use systemd much, but every time I need to test a config with
>> systemd enabled, there are quite a few errors at boot time, and more
>> precisely, it doesn't even boot completely. Here are the errors I get:
>>
>> [FAILED] Failed to start Remount Root and Kernel File Systems.
>> See 'systemctl status systemd-remount-fs.service' for details.
>> ...
>>
>> Then a *very* long delay because of dev-ttyAMA0.device., that finally
>> ends up with:
>>
>> [ TIME ] Timed out waiting for device dev-ttyAMA0.device.
>> [DEPEND] Dependency failed for Serial Getty on ttyAMA0.
>>
>> And finally, I get no getty at all.
>>
>> Defconfig being used:
>>
>> BR2_arm=y
>> BR2_TOOLCHAIN_EXTERNAL=y
>> BR2_INIT_SYSTEMD=y
>> BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
>> BR2_PACKAGE_AVAHI=y
>> BR2_PACKAGE_AVAHI_DAEMON=y
In the end, FHANDLE needs to be selected in the Linux configuration
for systemd to work properly.
This option is enabled automatically when systemd is selected as init
system in BR. In Thomas case (and mine too), the kernel was too old
and it was not build with this feature enabled.
Rebuilding fixed the issue.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2015-07-12 11:48 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-19 10:45 [Buildroot] systemd not working properly? Thomas Petazzoni
2014-10-20 8:45 ` Maxime Hadjinlian
2015-07-07 21:03 ` Thomas Petazzoni
2015-07-07 21:53 ` Maxime Hadjinlian
2015-07-12 11:48 ` Maxime Hadjinlian
2014-10-20 14:25 ` Jérôme Pouiller
2014-10-21 8:15 ` Eric Le Bihan
2014-10-27 9:50 ` Maxime Hadjinlian
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox