Hello Mark,
On Fri, Feb 06, 2026 at 02:32:20PM +0100, Mark Kettenis wrote:
>
> Can you try this diff?
diff does not work. I had to opt for simple hack:
--------8<---------------8<-----------------8<--------
@@ -858,9 +906,9 @@ uchcom_param(void *arg, int portno, struct termios *t)
if (usbd_is_dying(sc->sc_udev))
return 0;
+ log(LOG_ERR, "%s (%d)\n", __func__, t->c_ospeed);
if (t->c_ospeed <= 0 ||
- (t->c_ospeed > 921600 && sc->sc_type != UCHCOM_TYPE_CH343) ||
- (t->c_ospeed > 6000000 && sc->sc_type == UCHCOM_TYPE_CH343))
+ (t->c_ospeed > 6000000))
return EINVAL;
ret = uchcom_set_line_control(sc, t->c_cflag, &val);
--------8<---------------8<-----------------8<--------
with diff/hack above combined with your change things do work
for me. My device reports as CH341:
uchcom0 at uhub4 port 1 configuration 1 interface 0 "QinHeng Electronics USB
Serial" rev 1.10/2.64 addr 4
uchcom0: CH341
ucom0 at uchcom0: usb0.2.00001.0
so by default the speed is limited to 921600. Your diff shows direction
where we should be looking to. I will keep play around with it, however
this whole new world for me, so my progress will be slow.
Meanwhile I have yet another question:
If I understand things right I need to keep microSD card inserted
to keep machine booting. as the card provides OpenBSD friendly
u-boot, is my understanding correct? or is there a way to
install system such microSD card won't be needed?
currently OpenBSD boot loader prefers to boot system from
microSD (sd0), is there a way to change it so it will boot
from internal disk (sd1)? I always have to manually choose
the boot path at boot prompt.
thanks for your help
regards
sashan