Hello Mark,
thanks for getting back to me.
your diff works. I can connect to serial console
using speed 1500000. However when I use the
high speed the system does not boot. In order
to make system to boot I need to use the
OpenBSD preferred speed (115200). I've managed
to save the console when connected using high
speed so you should be able to see what's go wrong.
On Mon, Mar 02, 2026 at 11:55:05AM +0100, Mark Kettenis wrote:
</snip>
> > 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.
>
> What I typically do is:
>
> 1. Erase the microSD card:
>
> # dd if=/dev/zero of=/dev/sdXc bs=1m count=32
>
> 2. Write U-Boot to the microSD card:
>
> # dd if=u-boot-rockchip.bin of=/dev/sdXc seek=64
>
> Then it will load U-Boot from the microSD card, but look for the
> OpenBSD bootloader on any of the other storage media supported by
> U-Boot.
>
thanks for sharing the info. I think I'm going to stick to
booting using micro-SD.
your diff works as expected, it looks good to me, though
not sure my OK counts here. you may want to delete
the extra white space before committing it.
</snip>
> @@ -858,9 +903,7 @@ uchcom_param(void *arg, int portno, stru
> if (usbd_is_dying(sc->sc_udev))
> return 0;
>
> - 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))
> + if (t->c_ospeed < 0)
^^^^^
extra space here. otherwise looks as fare as I can tell.
> return EINVAL;
>
> ret = uchcom_set_line_control(sc, t->c_cflag, &val);
Thanks and regards
sashan
--------8<---------------8<-----------------8<--------
This is the console when connected using the highs speed.
I can read everything, but nano-pc does not boot. The boot
process just freezes, I can not get to any command prompt
(uboot, nor boot loader).
lifty# cu -l usb0.2.00002.0 -s 1500000
Connected to /dev/cuaU0 (speed 1500000)
1:11,fwver: v1.18
ch0 ttot10
ch1 ttot10
ch2 ttot10
ch3 ttot10
ch0 ttot16
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
ch1 ttot18
channel[1] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
ch2 ttot16
channel[2] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
ch3 ttot16
channel[3] BW=16 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=2048MB
Manufacturer ID:0x1
DQS rds:l0,l0
CH0 RX Vref:26.3%, TX Vref:20.8%,20.8%
DQ rds:l0 l0 h3 h1 l1 h2 h1 h1, l0 h2 l0 h2 l2 l0 h1 h3
DQS rds:h1,h1
CH1 RX Vref:25.0%, TX Vref:21.8%,21.8%
DQ rds:h1 l0 l0 h2 h1 h2 h1 h1, h1 h5 l1 l0 h7 h1 h2 h3
DQS rds:l1,h1
CH2 RX Vref:25.4%, TX Vref:20.8%,21.8%
DQ rds:h1 h7 h5 h1 l0 h1 l0 h1, l0 h2 h5 h2 l0 l0 l0 l0
DQS rds:l0,h1
CH3 RX Vref:29.3%, TX Vref:19.8%,20.8%
DQ rds:h1 h2 h2 h1 h2 h1 l0 h2, h1 h2 l0 h1 h6 h1 h2 h2
stride=0x2, ddr_config=0x4
hash ch_mask0-1 0x20 0x40, bank_mask0-3 0xa00 0x1400 0x2800 0x0, rank_mask0
0x401000
change to F1: 528MHz
ch0 ttot10
ch1 ttot10
ch2 ttot10
ch3 ttot10
change to F2: 1068MHz
ch0 ttot12
ch1 ttot14
ch2 ttot12
ch3 ttot12
change to F3: 1560MHz
ch0 ttot14
ch1 ttot16
ch2 ttot14
ch3 ttot14
change to F0: 2112MHz
ch0 ttot16
ch1 ttot18
ch2 ttot16
ch3 ttot16
out
U-Boot SPL board init
U-Boot SPL 2017.09-ge4e124926e-230922 #lxh (Sep 25 2023 - 10:58:38), fwver:
v1.13
Trying to boot from MMC2
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xX != 0xX
part_get_info_efi: **kup GPT ***
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xX != 0xX
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
No misc partition
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xX != 0xX
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
part_get_info_efi: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xX != 0xX
part_get_info_efi: *** ERROR: Invalid Backup GPT ***
spl: partition error
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking atf-1 0x00040000 ... sha256(7612223b82...) + OK
## Checking u-boot 0x00a00000 ... sha256(80e9aafc7c...) + OK
## Checking fdt-1 0x00adfb50 ... sha256(67ca42db88...) + OK
## Checking atf-2 0x000f0000 ... sha256(b2af21b504...) + OK
## Checking atf-3 0xff100000 ... sha256(70505bb764...) + OK
Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 840.277/1028.424 ms
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-868-g040d2de11:derrick.huang, fwver: v1.48
NOTICE: BL31: Built : 15:02:44, Dec 19 2024
INFO: spec: 0x1
INFO: code: 0x88
INFO: ext 32k is not valid
INFO: ddr: stride-en 4CH
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
INFO: l3 cache partition cfg-0
INFO: system boots from cpu-hwid-0
INFO: bypass memory repair
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE
initialization. SMC`s destined for OPTEE wil
l return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9