Bug 255584 - freebsd-release13.0 for arm64 could not enter multi-user mode
Summary: freebsd-release13.0 for arm64 could not enter multi-user mode
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 13.0-RELEASE
Hardware: arm64 Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
Depends on:
Reported: 2021-05-04 03:50 UTC by ohata
Modified: 2021-05-04 18:55 UTC (History)
1 user (show)

See Also:

single user mode cons. log (37.12 KB, text/plain)
2021-05-04 18:49 UTC, ohata
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ohata 2021-05-04 03:50:03 UTC
My env.
windows10 host, and using QEMU aarch64 system emulation,
QEMU is executed under cygwin-terminal

Release 13.0 was booted and can enter single user mode ,but could not enter multi-user mode. QEMU is quit.

startup script:
# for freebsd arm

$qemusys \
        -m 4096M -cpu cortex-a72 -M virt,highmem=off -k ja -smp 2 \
        -bios $biosf \
        -drive if=none,file=$imgfile,format=$fmt,id=hd0 \
        -device virtio-blk-device,drive=hd0 \
        -device qemu-xhci \
        -device usb-kbd \
        -netdev tap,id=net0,ifname=$tap -net nic,macaddr=$mymac,netdev=net0 \
        -serial mon:stdio \
        -nographic \

Under single user mode, there is no ttyv(0...) virtual terminal device file.
During boot sequence to multi-user mode, following cons message found,
Starting devd.
eval: cannot open /dev/ttyv0: No such file or directory
eval: cannot open /dev/ttyv0: No such file or directory
Starting dhclient.

I think due to lack of ttyv? device file, init could not open virtual terminal by getty.

Is there any workaround?

Comment 1 Warner Losh freebsd_committer 2021-05-04 18:16:14 UTC
Which version of qemu are you using?

What's the tty in single user mode?
Comment 2 ohata 2021-05-04 18:49:27 UTC
Created attachment 224665 [details]
single user mode cons. log
Comment 3 ohata 2021-05-04 18:55:34 UTC
Hi Losh san

 $qemu-system-aarch64 --version
QEMU emulator version 5.2.94 (v6.0.0-rc4-11866-ge0e530b830-dirty)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers

root@:/ # tty
root@:/ #

Please refer to attachment.