Skip to content

Instantly share code, notes, and snippets.

View kallisti5's full-sized avatar

Alexander von Gluck kallisti5

View GitHub Profile
@kallisti5
kallisti5 / gist:a72731a6660e4c73e06ef2572afd88ec
Created January 20, 2024 16:25
hung unmount haikuporter
unmount: unmounting failed: Device/File/Resource busy
unmounting /Data/Code/haikuports/media-libs/harfbuzz/work-8.3.0/boot/system failed - wait and retry ...
unmount: unmounting failed: Device/File/Resource busy
unmounting /Data/Code/haikuports/media-libs/harfbuzz/work-8.3.0/boot/system failed - wait and retry ...
unmount: unmounting failed: Device/File/Resource busy
unmounting /Data/Code/haikuports/media-libs/harfbuzz/work-8.3.0/boot/system failed - wait and retry ...
unmount: unmounting failed: Device/File/Resource busy
unmounting /Data/Code/haikuports/media-libs/harfbuzz/work-8.3.0/boot/system failed - wait and retry ...
unmount: unmounting failed: Device/File/Resource busy
Unable to unmount /Data/Code/haikuports/media-libs/harfbuzz/work-8.3.0/boot/system.
@kallisti5
kallisti5 / icu66 to 74.diff
Created January 19, 2024 22:01
ICU 66 to 74
diff --git a/src/system/libroot/add-ons/icu/ICUCtypeData.cpp b/src/system/libroot/add-ons/icu/ICUCtypeData.cpp
index 5e4319d483..2ecad3775f 100644
--- a/src/system/libroot/add-ons/icu/ICUCtypeData.cpp
+++ b/src/system/libroot/add-ons/icu/ICUCtypeData.cpp
@@ -544,9 +544,8 @@ ICUCtypeData::_GetConverterForMbState(mbstate_t* mbState,
// ... and clone it into the mbstate
UErrorCode icuStatus = U_ZERO_ERROR;
- int32_t bufferSize = sizeof(mbState->data);
UConverter* clone
diff --git a/HaikuPorter/Repository.py b/HaikuPorter/Repository.py
index 5eedb97..c8abb9d 100644
--- a/HaikuPorter/Repository.py
+++ b/HaikuPorter/Repository.py
@@ -10,6 +10,7 @@ from .DependencyResolver import DependencyResolver
from .Options import getOption
from .Port import Port
from .Utils import prefixLines, sysExit, touchFile, versionCompare, warn
+from .Repositories import LocalRepository

ARM64 - qemu-system-arm64 from u-boot

  • Driver: PL011
  • need reg-shift 2
=> fdt list /pl011  
pl011@9000000 {
	clock-names = "uartclk", "apb_pclk";
	clocks = <0x00008000 0x00008000>;
	interrupts = <0x00000000 0x00000001 0x00000004>;
@kallisti5
kallisti5 / haiku-riscv64.md
Last active January 14, 2023 14:14
Haiku riscv64 testing

Setup your build environment

$ mkdir ~/Code && cd ~/Code
$ git clone https://github.com/haiku/haiku.git
$ git clone https://github.com/haiku/buildtools.git
$ git clone https://github.com/haiku/firmware.git
@kallisti5
kallisti5 / log.txt
Created January 4, 2023 00:06
StarFive Vision 2 - Haiku Boot hrev56688,
U-Boot SPL 2021.10 (Oct 31 2022 - 12:11:37 +0800)
DDR version: dc2e84f0.
Trying to boot from SPI
OpenSBI v1.0
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
State build #6
-rw-r----- 1 root root 1.4G Dec 1 01:47 haiku-r1beta4-hrev56578_46-x86_64-anyboot.iso
-rw-r----- 1 root root 122 Dec 1 01:47 haiku-r1beta4-hrev56578_46-x86_64-anyboot.iso.sha256
-rw-r----- 1 root root 333 Dec 1 01:47 haiku-r1beta4-hrev56578_46-x86_64-anyboot.iso.minisig
[root@ipfspri r1~beta4_hrev56578_46]# ls -alh
total 5.5K
drwxr-x--- 1 root root 0 Dec 31 1969 .
drwxr-x--- 1 root root 0 Dec 31 1969 ..
@kallisti5
kallisti5 / diff-diff-diff-diff.diff
Created March 18, 2022 15:58
DIFF ALL THE THINGS! Old gcc haikuports patch vs new
diff -Naur -x .git gcc-11.2.0-oldpatch/config/acx.m4 gcc-11.2.0-newpatch/config/acx.m4
--- gcc-11.2.0-oldpatch/config/acx.m4 2022-03-18 10:56:11.440842923 -0500
+++ gcc-11.2.0-newpatch/config/acx.m4 2022-03-18 10:55:00.167012448 -0500
@@ -428,30 +428,24 @@
dnl accepted by cmp on some systems.
AC_DEFUN([ACX_PROG_CMP_IGNORE_INITIAL],
[AC_CACHE_CHECK([how to compare bootstrapped objects], gcc_cv_prog_cmp_skip,
-[# comparing object files via cmp doesn't work on haiku (files will seemingly
- # always differ), so we disassemble both files and compare the results:
- if uname -o | grep -iq haiku; then
@kallisti5
kallisti5 / exception.cpp
Created March 17, 2022 21:38
A quick exception test
#include <stdio.h>
int
main(void)
{
try {
printf("Throw the answer!\n");
throw 42;
} catch (int e) {
printf("Catch! Err %d\n", e);
total 64
drwxr-xr-x 1 kallisti5 users 238 Feb 6 13:59 .
drwxr-xr-x 1 kallisti5 users 54 Feb 6 13:49 ..
-rw-r--r-- 1 kallisti5 users 791 Feb 6 13:51 DB.cer
-rw-r--r-- 1 kallisti5 users 1127 Feb 6 13:51 DB.crt
-rw-r--r-- 1 kallisti5 users 835 Feb 6 13:52 DB.esl
-rw------- 1 kallisti5 users 1704 Feb 6 13:51 DB.key
-rw-r--r-- 1 kallisti5 users 793 Feb 6 13:51 KEK.cer
-rw-r--r-- 1 kallisti5 users 1131 Feb 6 13:51 KEK.crt
-rw-r--r-- 1 kallisti5 users 837 Feb 6 13:52 KEK.esl