Re: not working /dev/console

From: Daniel Braniss <danny_at_cs.huji.ac.il>
Date: Mon, 09 Dec 2024 08:35:02 UTC
hi Kurt & Warner:
im trying on a PCengines apu2 fbsd 14.2, but have the same symptoms, no console.
dmesg|grep uart -> nothing.
after some trials the best i have is:
	the bsd-menu showing 
		5. Cons: Serial
and only the kernel messages.

no /dev/console, no /dev/ttyu0, but can remote login.

btw, all works fine with a 13.1 kernel

> On 8 Dec 2024, at 20:27, Kurt Jaeger <pi@freebsd.org> wrote:
> 
> Hi!
> 
>> So, there should be a line like
>> 
>> uart0: console (115200,n,8,1)
>> 
>> if not, then hw.uart.console isn't making it through.
> 
> So somehow the uarts are not found during initialization ?
> 
>> If you are using a custom kernel,
> 
> It's the generic kernel.
> 
>> you can add that to a file and add 'env
>> /path/to/file/on/build/host' to the kernel config to wire that into the
>> kernel, should the boot path make it hard to set an initial environment
>> otherwise. Also, DHCP should still try to grab /boot/loader.conf from the
>> tftp/http server as well. That might also be something that needs debugging
>> (or hopefully just correct config).
> 
> I'll investigate further.
> 
> -- 
> pi@FreeBSD.org         +49 171 3101372                  Now what ?