Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make boot fails #332

Open
mememnt opened this issue Dec 19, 2022 · 2 comments
Open

make boot fails #332

mememnt opened this issue Dec 19, 2022 · 2 comments

Comments

@mememnt
Copy link

mememnt commented Dec 19, 2022

Hello, I'm running on a Manjaro distro with linux kernel version 6.0.1.
And I'm getting the following error:

$ make boot
[...]
ARCH=x86 qemu/qemu.sh -kernel /home/dim/Documents/linux/arch/x86/boot/bzImage -device virtio-serial \
-chardev pty,id=virtiocon0 -device virtconsole,chardev=virtiocon0 \
-serial pipe:pipe1 -serial pipe:pipe2 \
-netdev tap,id=tap0,ifname=tap0,script=no,downscript=no \
-net nic,netdev=tap0,model=virtio \
-netdev tap,id=tap1,ifname=tap1,script=no,downscript=no \
-net nic,netdev=tap1,model=i82559er \
-drive file=core-image-minimal-qemux86.ext4,if=virtio,format=raw \
-drive file=disk1.img,if=virtio,format=raw -drive file=disk2.img,if=virtio,format=raw \
--append "root=/dev/vda loglevel=15 console=hvc0" \
--display none -s -m 256
nc: invalid option -- 'U'
Try `nc --help' for more information.
egrep: warning: egrep is obsolescent; using grep -E
nttcp-l: nttcp, version 1.47
nttcp-l: running in inetd mode on port 5037 - ignoring options beside -v and -p
bind: Address already in use
nttcp-l: service-socket: bind:: Address already in use, errno=98
char device redirected to /dev/pts/2 (label virtiocon0)
qemu-system-i386: -monitor unix:qemu.mon: Failed to connect to 'qemu.mon': No such file or directory
rm: cannot remove 'qemu.mon': No such file or directory
rm: cannot remove 'serial.pts': No such file or directory
make: *** [qemu/Makefile:37: boot] Error 1
@vlasakm
Copy link

vlasakm commented Dec 27, 2022

What OS are you using?

Your nc (netcat) doesn't support the -U option. There are unfortunately several implementations of this command, try to see if the "openbsd" version of netcat is available on your system.

You can also try to use the setup proposed at #333, which sidesteps the need for nc altogether.

@mememnt
Copy link
Author

mememnt commented Jan 24, 2023

It seems that the openbsd-netcat solved the problem. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants