<div dir="ltr"><div dir="ltr">On Tue, Sep 22, 2020 at 1:46 PM Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Sep 22, 2020 at 1:35 PM ZhouPeng <<a href="mailto:zhoupengwork01@163.com" target="_blank">zhoupengwork01@163.com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> When I use Fedora image as rootfs on Xilinx PYNQ-Z2, I encountered the issue  when use the /dev/ttyPS0.<br>
> I think the issue is because systemd and udev on fedora can didn't detect ttyPS0 properly. Do I need to install any other package or do some special configuration?<br>
><br>
> **systemd version the issue has been seen with**<br>
> udevadm --version<br>
> 237<br>
> systemd-udev.riscv64                     237-1.0.riscv64.fc28<br>
><br>
><br>
> **Unexpected behaviour you saw**<br>
> We can see ttyPS0 boots ok in the kernel boot period:<br>
> [    0.180000] console [ttyPS0] enabledat MMIO 0xe0000000 (irq = 2, base_baud = 6250000) is a xuartps<br>
> [    0.180000] console [ttyPS0] enabled<br>
><br>
> But, when boot into systemd, it failed on dev ttyPS0:<br>
> [ TIME ] Timed out waiting for device dev-ttyPS0.device. // **here**<br>
<br>
systemd only monitors for devices with "sysemd" tag. Tags are assigned<br>
by udev rules. You should add rule to assign tag to ttyPS0. I have no<br>
idea what it is, but something like<br>
<br>
ACTION!="remove", KERNEL=="ttyPS0", TAG+="systemd"<br>
<br>
should do it. Whether this should go upstream depends on how common<br>
this device is.</blockquote><div><br></div><div>Well yes, but that should have been already covered by the existing upstream rules:</div><div><br></div>99-systemd.rules:12:SUBSYSTEM=="tty", KERNEL=="<b>tty[a-zA-Z]*</b>|hvc*|xvc*|hvsi*|ttysclp*|sclp_line*|3270/tty[0-9]*", TAG+="systemd" </div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>