[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 0/2] Bootlogd eating output without console= on cmdline
From: |
Jesse Smith |
Subject: |
Re: [PATCH 0/2] Bootlogd eating output without console= on cmdline |
Date: |
Wed, 15 Dec 2021 19:06:10 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
Alexander,
Thank you for sending over the patches. I'll give them a test run in the
coming days.
Jesse
On 2021-12-15 12:43 p.m., Alexander Vickberg wrote:
> Hello list,
>
> Bootlogd is eating the log data and doesn't forward it to console. The issue
> arised with commit 986bee6. The log is correctly written to the file. My
> system
> does not specify console as boot argument but instead uses 'stdout-path' in
> the
> device-tree, e.g:
>
> chosen {
> bootargs = "earlycon uio_pdrv_genirq.of_id=generic-uio ubi.mtd=ubi";
> stdout-path = "serial0:115200n8";
> };
>
> With this configuration bootlogd fails to detect current console. I have made
> a patch to fix it by bringing back removed code which checks either which tty
> is 'stdin' or using TIOCGDEV ioctl on 'stdin'. Both worked on my system (Linux
> 5.10). Patches are proposals and have not been tested on any other system than
> Linux.
>
> Best regards
> Alexander Vickberg
>
> Alexander Vickberg (2):
> bootlogd: Use consistent indentation
> Fix bootlogd not printing to console without console= in cmdline
>
> src/bootlogd.c | 212 +++++++++++++++++++++++++++----------------------
> 1 file changed, 119 insertions(+), 93 deletions(-)
>