Skip to content

Instantly share code, notes, and snippets.

@Typas
Created October 21, 2023 14:43
Show Gist options
  • Save Typas/df74cbd9c3235ec745bba426162d6985 to your computer and use it in GitHub Desktop.
Save Typas/df74cbd9c3235ec745bba426162d6985 to your computer and use it in GitHub Desktop.
openSUSE xv6 build

Basic packages for building xv6

sudo zypper in qemu qemu-extra cross-riscv64-binutils cross-riscv64-gcc13

Since there is no cross-riscv64-gcc, you might need to update version when gcc version updated.

Build Command

TOOLPREFIX=riscv64-suse-linux- make qemu

Package for debuging

sudo zypper in gdb

Debug Command

TOOLPREFIX=riscv64-suse-linux- make qemu-gdb

then open another tab to run gdb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment