Skip to content

Commit

Permalink
make: change from localhost to 127.0.0.1
Browse files Browse the repository at this point in the history
Depending on how to you connect to internet, the tcp.localhost might not
always work. You can eventually end up with the following error message:

(qemu) qemu-system-aarch64: -serial tcp:localhost:54320: Failed to connect to 'localhost:54320': Connecti on refused
qemu-system-aarch64: -serial tcp:localhost:54320: could not connect serial device to character backend 't cp:localhost:54320'

Therefore it's better to instead use 127.0.0.1 when connecting to the
serial consoles.

Signed-off-by: Joakim Bech <[email protected]>
Acked-by: Etienne Carriere <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
  • Loading branch information
jbech-linaro authored and jforissier committed Oct 12, 2023
1 parent a64aa83 commit f916265
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qemu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ run-only:
$(call wait-for-ports,54320,54321)
cd $(BINARIES_PATH) && $(QEMU_BUILD)/arm-softmmu/qemu-system-arm \
-nographic \
-serial tcp:localhost:54320 -serial tcp:localhost:54321 \
-serial tcp:127.0.0.1:54320 -serial tcp:127.0.0.1:54321 \
-smp $(QEMU_SMP) \
-s -S -machine virt,secure=on -cpu cortex-a15 \
-d unimp -semihosting-config enable=on,target=native \
Expand Down
2 changes: 1 addition & 1 deletion qemu_v8.mk
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ run-only:
$(call wait-for-ports,54320,54321)
cd $(BINARIES_PATH) && $(QEMU_BUILD)/aarch64-softmmu/qemu-system-aarch64 \
-nographic \
-serial tcp:localhost:54320 -serial tcp:localhost:54321 \
-serial tcp:127.0.0.1:54320 -serial tcp:127.0.0.1:54321 \
-smp $(QEMU_SMP) \
-s -S -machine virt,acpi=off,secure=on,mte=$(QEMU_MTE),gic-version=$(QEMU_GIC_VERSION),virtualization=$(QEMU_VIRT) \
-cpu $(QEMU_CPU) \
Expand Down

0 comments on commit f916265

Please sign in to comment.