NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: /dev/tty01 will not open on Beaglebone Black
> On Sep 3, 2023, at 1:33 AM, RVP <rvp%SDF.ORG@localhost> wrote:
>
> On Sat, 2 Sep 2023, Brook Milligan wrote:
>
>> In any case, two of them result in the same kernel hang.
>>
>
> Can you check if this patch works?
>
> ```
> diff -urN a/src/sys/arch/arm/ti/ti_com.c b/src/sys/arch/arm/ti/ti_com.c
> --- a/src/sys/arch/arm/ti/ti_com.c 2021-01-27 03:10:20.000000000 +0000
> +++ b/src/sys/arch/arm/ti/ti_com.c 2023-09-03 07:29:58.871511000 +0000
> @@ -95,7 +95,7 @@
> return;
> }
>
> - sc->sc_type = COM_TYPE_NORMAL;
> + sc->sc_type = COM_TYPE_OMAP;
>
> error = bus_space_map(bst, addr, size, 0, &bsh);
> if (error) {
> ```
Yeah! That works. My serial port test program now completes without error and the test sending characters to “cu -l /dev/{dt}ty01” also works. Of course, the serial console continues to work, so I am not (yet?) seeing any downsides.
Is there a reason not to commit this?
Thank you so much for your help! Especially for the quick fix.
Cheers,
Brook
Home |
Main Index |
Thread Index |
Old Index