linux-kernel-labs / linux

Linux kernel source tree
Other
365 stars 267 forks source link

make boot fails #332

Open mememnt opened 1 year ago

mememnt commented 1 year ago

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 commented 1 year ago

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 https://github.com/linux-kernel-labs/linux/pull/333, which sidesteps the need for nc altogether.

mememnt commented 1 year ago

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