Skip to content

Instantly share code, notes, and snippets.

View tqh's full-sized avatar
🐇
🕳️

Fredrik Holmqvist tqh

🐇
🕳️
View GitHub Profile
@tqh
tqh / haiku_efi.md
Last active March 6, 2022 18:23
My Haiku efi setup
  • In the haiku directory I have a directory efi/ and in it a link haiku_loader.efi -> ../generated/objects/haiku/x86_64/release/system/boot/efi/haiku_loader.efi

  • Haiku is configured with: ./configure --build-cross-tools x86_64 ../buildtools

  • Haiku EFI loader is build with: jam -q -sHAIKU_BOOT_PLATFORM=efi haiku_loader.efi

  • Haiku is built with: jam -q @nightly-anyboot

  • QEMU/kvm is started with (needs ovmf.fd):

    qemu-system-x86_64 -m 512M -cpu host -enable-kvm -nodefaults -smp 1,cores=2 \
        -vga std -net nic -net user -serial file:serial.log \
    

-chardev socket,path=/tmp/qga.sock,server,nowait,id=qga0 \

@tqh
tqh / etc_spotifyd.conf
Created June 7, 2020 15:43
Spotifyd config
[global]
volume_controller = alsa_linear
device_name = HifiBerry
bitrate = 320
cache_path = /var/cache/spotifyd
device_type = speaker
@tqh
tqh / debug.log
Created August 24, 2020 20:03
Haiku in QEMU (200MB) dying when clicked start Desktop from Installer
[=3h[=3h[=3hUEFI Interactive Shell v2.2
EDK II
UEFI v2.70 (EDK II, 0x00010000)
Mapping table
 FS0: Alias(s):CD0a65535a1b:;BLK3:
PciRoot(0x0)/Pci(0x1F,0x2)/Sata(0x0,0xFFFF,0x0)/CDROM(0x1)/HD(1,MBR,0x00000000,0x0,0x1680)
 BLK4: Alias(s):
PciRoot(0x0)/Pci(0x3,0x0)
 BLK0: Alias(s):
PciRoot(0x0)/Pci(0x1F,0x2)/Sata(0x0,0xFFFF,0x0)
@tqh
tqh / .github_workflows_deploy.yaml
Created February 5, 2021 15:48
GitHub Action For Maven Central Deploy
jobs:
deploy:
name: Maven Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Use Java 11
#2022-10-02
#https://github.com/tianocore/tianocore.github.io/wiki/Common-instructions
#Debian Packages needed: build-essential git uuid-dev iasl git nasm python-is-python3 unzip
#Install tools
git clone https://github.com/tianocore/edk2
cd edk2/
git submodule update --init
make -C BaseTools
source edksetup.sh
qemu-system-x86_64 -cpu host -machine q35 -monitor stdio \
-m 4G -enable-kvm -nodefaults -smp 2,cores=2 \
-device virtio-vga,xres=1920,yres=1080,edid=on \
-display gtk,grab-on-hover=on,zoom-to-fit=off \
-netdev user,id=n1 -device virtio-net-pci,netdev=n1 \
-usb -device usb-kbd -device usb-tablet \
-debugcon file:debug.log -global isa-debugcon.iobase=0x402 \
-drive if=pflash,format=raw,unit=0,readonly=on,file=OVMF_CODE.fd \
-drive if=pflash,format=raw,unit=1,file=OVMF_VARS.fd \
-drive file=haiku-nightly-anyboot.iso,media=cdrom,aio=native,cache.direct=on