Skip to content

Instantly share code, notes, and snippets.

View Typas's full-sized avatar

Typas Liao Typas

  • Taiwan
View GitHub Profile
@Typas
Typas / xv6-opensuse-build.md
Created October 21, 2023 14:43
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

@Typas
Typas / silverblue_nv_driver.md
Created December 14, 2022 16:04
Fedora Silverblue installation with nvidia drivers

The installation of Silverblue is almost identical with normal Fedora, unless you need some systemwide changes. Unfortunately, the nVIDIA driver is one of these changes. After the installation of Silverblue, I logged in, and the situation is unbearable. The whole screen started blinking, each action caused the screen refresh, and then refresh backward, and then refresh.

My intuition told me that must be nouveau, the driver which never acts normally on my 3060Ti. I followed some steps of the site: https://nudesystems.com/how-to-install-nvidia-drivers-in-fedora-silverblue/

After these steps, I found out there's one mysterious unknown display showed my whole login interface into nowhere. Then I found this site: https://gitlab.gnome.org/GNOME/mutter/-/issues/2266 and modify a little to fit Silverblue:

最近買了3060 Ti來,試著裝了openSUSE tumbleweed,但是在安裝介面就只有cli的yast能用。硬是裝完之後,發現開機只有TTY能用。 照著官方文件從repo裝了nvidia的G05驅動,重開後一樣只有TTY能用。

最後終於搞清楚問題的來源了,nouveau沒支援到那麼新的GPU,所以顯示會壞掉。 必須要先在開機時照著Hard way的方式,在splash=silent quiet showopts那行加上nomodeset禁用顯示驅動與3保證進到TTY。 然後因為我有先裝過一次nvidia驅動,所以我是刪完重開機一樣進TTY再重裝nvidia的G05驅動,再正常重開就看到圖形介面了。