Skip to content

Commit

Permalink
Add troubleshooting instructions for solving Rosetta error on Apple S…
Browse files Browse the repository at this point in the history
…ilicon (#14)
  • Loading branch information
camerondurham authored Jan 23, 2024
1 parent 14a8e33 commit 8bd9177
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- [xv6 will not start shell, hangs at qemu command](#xv6-will-not-start-shell-hangs-at-qemu-command)
- [make qemu fails](#make-qemu-fails)
- [Makefile:104: recipe for target 'bootblock' failed](#makefile104-recipe-for-target-bootblock-failed)
- [xv6 stuck on qemu-system-i386 macOS Apple Silicon](#xv6-stuck-on-qemu-system-i386-macos-apple-silicon)
- [xv6 stuck on qemu-system-i386 Windows](#xv6-stuck-on-qemu-system-i386-windows)
- [Docker Desktop Setting Screenshots](#docker-desktop-setting-screenshots)

Expand Down Expand Up @@ -324,6 +325,12 @@ chmod 755 *.pl cuth dot-bochsrc printpcs runoff runoff1 show1 spinp
make qemu-nox
```

### xv6 stuck on qemu-system-i386 macOS Apple Silicon

If your shell is stuck on `qemu-system-i386 -nographic -drive ...` after running `make qemu-nox` or returns an error `rosetta error: Unimplemented syscall number 282`, you may need to disable Rosetta emulation in Docker.

Uncheck the "Use Rosetta for x86/amd64 emulation on Apple Silicon" option in Docker Settings > General. (thank you to @WardahJabeen for this suggestion in [#13](https://github.com/camerondurham/cs350-docker/issues/13#issuecomment-1904634853)!).

### xv6 stuck on qemu-system-i386 Windows

If your shell is stuck at `qemu-system-i386 -nographic -drive file=fs.img,index=1,media=disk,format=raw -drive file=xv6.img,index=0,media=disk,format=raw -smp 2 -m 512` after running `make qemu-nox`, it probably means you don't have WSL/WSL2 enabled properly.
Expand Down

0 comments on commit 8bd9177

Please sign in to comment.