Skip to content

Instantly share code, notes, and snippets.

View jmontleon's full-sized avatar

Jason Montleon jmontleon

View GitHub Profile
$ diff -uNr pypy.spec.orig pypy.spec
--- pypy.spec.orig 2024-07-27 16:15:01.992423633 -0400
+++ pypy.spec 2024-07-27 16:15:11.430444109 -0400
@@ -16,7 +16,7 @@
Name: pypy
Version: %{basever}.15
%global pyversion 2.7
-Release: %autorelease
+Release: %autorelease.riscv64.0.1
Summary: Python implementation with a Just-In-Time compiler
diff --git a/lib/Makefile b/lib/Makefile
index db9fa63..8a1aef4 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -60,6 +60,10 @@ FILES += $(ARCH)/uldiv $(ARCH)/ldivmod $(ARCH)/div $(ARCH)/llsl $(ARCH)/llsr \
$(ARCH)/mullu
endif
+ifeq ($(ARCH),riscv64)
+FILES += $(ARCH)/cache
@jmontleon
jmontleon / gist:ae5457e1d289719046f915a9cb83a32b
Last active July 15, 2024 23:32
Install Fedora 40 on the VisionFive 2
################################################################################################
There is some long text that needs to be copied into grub in order to boot.
You should be able to copy and paste it using minicom if you add a 1 or 2 ms delay to text input
Ctrl-A Z Minicom Menu
T Terminal Settings
F Character tx delay (ms)
2
################################################################################################
### Choose your SD Card
FS0:\> initrd iFSOpen: Open '.' Success
initramfs-6.8.5-300.1.riscv64.fc40.riscv64.img
FSOpen: Open '\initramfs-6.8.5-300.1.riscv64.fc40.riscv64.img' Success
FSOpen: Open '\initramfs-6.8.5-300.1.riscv64.fc40.riscv64.img' Success
InvalidateDataCacheRange:RISC-V unsupported function.
WriteBackDataCacheRange:RISC-V unsupported function.
InvalidateDataCacheRange:RISC-V unsupported function.
WriteBackDataCacheRange:RISC-V unsupported function.
InvalidateDataCacheRange:RISC-V unsupported function.
WriteBackDataCacheRange:RISC-V unsupported function.
aiohttp==3.8.6; python_version < '3.12'
aiohttp==3.9.3; python_version >= '3.12'
aiolimiter==1.1.0
aiosignal==1.3.1
annotated-types==0.6.0
ansi2html==1.8.0
anyio==3.7.1
appnope==0.1.3
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
@jmontleon
jmontleon / gist:8ab511c1261d10617664b44416d1f5df
Created February 28, 2024 00:57
jellyfin-web (10.8.0-2 -> ) 10.9.0-1 ppc64le build
diff --git a/build.yaml b/build.yaml
index 7b5b05ed8..0cbd506aa 100644
--- a/build.yaml
+++ b/build.yaml
@@ -1,7 +1,7 @@
---
# We just wrap `build` so this is really it
name: "jellyfin-web"
-version: "10.8.0"
+version: "10.9.0"
@jmontleon
jmontleon / gist:460bb6e9890e77aecfbd0a73868e0d92
Last active February 29, 2024 16:54
jellyfin 10.9.0 ppc64le build
diff --git a/fedora/Makefile b/fedora/Makefile
index 3188cf603..b5bcb056e 100644
--- a/fedora/Makefile
+++ b/fedora/Makefile
@@ -11,7 +11,7 @@ epel-7-x86_64_repos := https://packages.microsoft.com/rhel/7/prod/
fed_ver := $(shell rpm -E %fedora)
# fallback when not running on Fedora
fed_ver ?= 36
-TARGET ?= fedora-$(fed_ver)-x86_64
+TARGET ?= fedora-$(fed_ver)-ppc64le
diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c
index ed4f7cdda04f..29d7352bc1e8 100644
--- a/sound/soc/codecs/hdac_hdmi.c
+++ b/sound/soc/codecs/hdac_hdmi.c
@@ -436,23 +436,28 @@ static int hdac_hdmi_setup_audio_infoframe(struct hdac_device *hdev,
return 0;
}
-static int hdac_hdmi_set_tdm_slot(struct snd_soc_dai *dai,
- unsigned int tx_mask, unsigned int rx_mask,
@jmontleon
jmontleon / dmesg-call-trace.txt
Last active February 9, 2023 19:08
dmesg debug kernel call trace for kbl_rt5663_rt5514_max98927 lockup
[ 175.827296] grub2-set-bootf (1957) used greatest stack depth: 11512 bytes left
[ 247.615582] INFO: task kworker/0:1:14 blocked for more than 122 seconds.
[ 247.615600] Not tainted 6.1.9-200.fc37.x86_64+debug #1
[ 247.615607] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 247.615613] task:kworker/0:1 state:D stack:13080 pid:14 ppid:2 flags:0x00004000
[ 247.615637] Workqueue: pm pm_runtime_work
[ 247.615655] Call Trace:
[ 247.615660] <TASK>
[ 247.615696] __schedule+0x4c5/0x1740
[ 247.615749] schedule+0x5d/0xe0
Download the latest eve recovery image from chromiumdash.appspot.com/serving-builds
Unzip the file. As an example unzip chromeos_15117.112.0_eve_recovery_stable-channel_mp-v2.bin.zip
Create device maps sudo kpartx -av chromeos_15117.112.0_eve_recovery_stable-channel_mp-v2.bin
Mount the ChromeOS root filesystem sudo mount -o ro /dev/mapper/loop0p3 /mnt
sudo cp /mnt/lib/firmware/9d71-GOOGLE-EVEMAX-0-tplg.bin /lib/firmware/
sudo cp /mnt/lib/firmware/dsp_lib_dsm_core_spt_release.bin /lib/firmware/
sudo cp /mnt/lib/firmware/intel/dsp_fw_C75061F3-F2B2-4DCC-8F9F-82ABB4131E66.bin /lib/firmware/intel