All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] dev-tty1 and systemd
@ 2014-05-22 12:32 Tom Deblauwe
  2014-05-23  7:41 ` Tom Deblauwe
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Deblauwe @ 2014-05-22 12:32 UTC (permalink / raw)
  To: buildroot

Hello,

I am booting with an initramfs and am using systemd as /sbin/init. It
all works very well, but it seems the device /dev/tty1 can not be opened
by systemd in the end. In my grub configuration I add the "console=tty1"
to the cmdline. Then in my init script inside my initramfs I am using
mdev like this:

mount -t proc proc /proc -o nosuid,noexec,nodev
mount -t sysfs sys /sys -o nosuid,noexec,nodev
mount -t devtmpfs dev /dev -o mode=0755,nosuid
mount -t tmpfs run /run -o nosuid,nodev,mode=0755
mkdir -m755 /run/initramfs
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s


Later in the script I mount the real rootfs on /new_root  and then I do
this at the end:

mount --move /proc /new_root/proc
mount --move /sys /new_root/sys
mount --move /dev /new_root/dev
exec switch_root -c /dev/console /new_root /sbin/init "$@"

This works and starts, however, I then get the problem that systemd can
not open the /dev/tty1 device. It searches for dev-tty1.device. I
suspect it has something to do with busybox keeping a hold on tty1 or
something like that. I already tried using "console=tty3" as a kernel
cmdline but that didn't help. The dev-tty1.service still can not get a
hold of /dev/tty1.

Anybody knows what is going on?

Best regards,
Tom,
Email Confidentiality: e-BO Enterprises<http://www.ebo-enterprises.com/> Company Registration Number BE 0470174242. This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is proprietary to e-BO Enterprises<http://www.ebo-enterprises.com/>. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments. If you are the intended recipient you may use the information contained in this message and any files attached to this message only as authorized by e-BO Enterprises<http://www.ebo-enterprises.com/>. Any unauthorized use, dissemination or disclosure of this message or its attachments is strictly prohibited. The contents of this e-mail are not to be considered binding upon e-BO Enterprises<http://www.ebo-enterprises.com/>.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] dev-tty1 and systemd
  2014-05-22 12:32 [Buildroot] dev-tty1 and systemd Tom Deblauwe
@ 2014-05-23  7:41 ` Tom Deblauwe
  2014-05-23 12:21   ` Mike Zick
  0 siblings, 1 reply; 4+ messages in thread
From: Tom Deblauwe @ 2014-05-23  7:41 UTC (permalink / raw)
  To: buildroot

On 22-05-14 14:32, Tom Deblauwe wrote:
> This works and starts, however, I then get the problem that systemd can
> not open the /dev/tty1 device. It searches for dev-tty1.device. I
> suspect it has something to do with busybox keeping a hold on tty1 or
> something like that. I already tried using "console=tty3" as a kernel
> cmdline but that didn't help. The dev-tty1.service still can not get a
> hold of /dev/tty1.
>
> Anybody knows what is going on?

It seems the
/etc/systemd/system/getty.target.wants/serial-getty at tty1.service symlink
wants to have the dev-tty1.device unit, but that doesn't work.

I just don't use it and use ALT+F2 to get a text console, which just works.

Regards,
Tom,
Email Confidentiality: e-BO Enterprises<http://www.ebo-enterprises.com/> Company Registration Number BE 0470174242. This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is proprietary to e-BO Enterprises<http://www.ebo-enterprises.com/>. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments. If you are the intended recipient you may use the information contained in this message and any files attached to this message only as authorized by e-BO Enterprises<http://www.ebo-enterprises.com/>. Any unauthorized use, dissemination or disclosure of this message or its attachments is strictly prohibited. The contents of this e-mail are not to be considered binding upon e-BO Enterprises<http://www.ebo-enterprises.com/>.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] dev-tty1 and systemd
  2014-05-23  7:41 ` Tom Deblauwe
@ 2014-05-23 12:21   ` Mike Zick
  2014-05-23 12:27     ` Tom Deblauwe
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Zick @ 2014-05-23 12:21 UTC (permalink / raw)
  To: buildroot

On Fri, 23 May 2014 09:41:28 +0200
Tom Deblauwe <tom.deblauwe@ebo-enterprises.com> wrote:

> If you are the intended recipient you may use the information
> contained in this message and any files attached to this message only
> as authorized by e-BO Enterprises<http://www.ebo-enterprises.com/>. 
>

Have the readers of this mailing list and the users of Buildroot
been authorized by e-BO Enterprises to use this information?

Mike

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] dev-tty1 and systemd
  2014-05-23 12:21   ` Mike Zick
@ 2014-05-23 12:27     ` Tom Deblauwe
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Deblauwe @ 2014-05-23 12:27 UTC (permalink / raw)
  To: buildroot

Sorry about that footer! They are. :)

Regards
Tom,

On 23-05-14 14:21, Mike Zick wrote:
> On Fri, 23 May 2014 09:41:28 +0200
> Tom Deblauwe <tom.deblauwe@ebo-enterprises.com> wrote:
>
>> If you are the intended recipient you may use the information
>> contained in this message and any files attached to this message only
>> as authorized by e-BO Enterprises<http://www.ebo-enterprises.com/>.
>>
> Have the readers of this mailing list and the users of Buildroot
> been authorized by e-BO Enterprises to use this information?
>
> Mike
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

Email Confidentiality: e-BO Enterprises<http://www.ebo-enterprises.com/> Company Registration Number BE 0470174242. This email message and any attachments are for the sole use of the intended recipient(s) and may contain information that is proprietary to e-BO Enterprises<http://www.ebo-enterprises.com/>. If you have received this message in error, please notify the sender by reply, and delete all copies of this message and any attachments. If you are the intended recipient you may use the information contained in this message and any files attached to this message only as authorized by e-BO Enterprises<http://www.ebo-enterprises.com/>. Any unauthorized use, dissemination or disclosure of this message or its attachments is strictly prohibited. The contents of this e-mail are not to be considered binding upon e-BO Enterprises<http://www.ebo-enterprises.com/>.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-23 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-22 12:32 [Buildroot] dev-tty1 and systemd Tom Deblauwe
2014-05-23  7:41 ` Tom Deblauwe
2014-05-23 12:21   ` Mike Zick
2014-05-23 12:27     ` Tom Deblauwe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.