Skip to content

Instantly share code, notes, and snippets.

View Crazor's full-sized avatar

Crazor Crazor

  • Germany
  • 21:14 (UTC +01:00)
View GitHub Profile
@Crazor
Crazor / gist:5332658
Created April 7, 2013 21:37
Patch for QEMU to report APIC version 0x14. Needed to run OS X.
diff --git a/hw/apic.c b/hw/apic.c
index fd14b73..0a4a3bc 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -673,7 +673,7 @@ static uint32_t apic_mem_readl(void *opaque, hwaddr addr)
val = s->id << 24;
break;
case 0x03: /* version */
- val = 0x11 | ((APIC_LVT_NB - 1) << 16); /* version 0x11 */
+ val = 0x14 | ((APIC_LVT_NB - 1) << 16); /* version 0x14 */
Codec: Realtek ALC889A
Address: 2
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0885
Subsystem Id: 0x1458a002
Revision Id: 0x100101
No Modem Function Group found
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
expr (void*)dlopen("/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib", 0x2);
expr (void*)dlopen("/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftDarwin.dylib", 0x2);
expr (void*)dlopen("/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftObjectiveC.dylib", 0x2);
expr (void*)dlopen("/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftRemoteMirror.dylib", 0x2);
expr (void*)dlopen("/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftSwiftOnoneSupport.dylib", 0x2);
expr (void*)dlopen("/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftsimd.dylib", 0x2);
expr (void*)dlopen("/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/
@Crazor
Crazor / keybase.md
Created October 10, 2017 17:24
keybase.md

Keybase proof

I hereby claim:

  • I am crazor on github.
  • I am crazor (https://keybase.io/crazor) on keybase.
  • I have a public key ASC3qfKrOMCxv7pckZJ1OF5T4UHE6kjfZ74yMIth72U1ywo

To claim this, I am signing this object:

@Crazor
Crazor / uboot
Created March 12, 2020 07:05
ZP120 serial
U-Boot 1.1.1(1-16-3-0.9), Build: 0.9
MPC8272 Reset Status: External Soft, External Hard
MPC8272 Clock Configuration
- Bus-to-Core Mult 3x, VCO Div 4, 60x Bus Freq 16-50 , Core Freq 50-150
- dfbrg 1, corecnf 0x10, busdf 3, cpmdf 1, plldf 0, pllmf 3
- vco_out 400000000, scc_clk 100000000, brg_clk 25000000
- cpu_clk 300000000, cpm_clk 200000000, bus_clk 100000000
- pci_clk 33333333
00:00.0 Host bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Host Bridge (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 500 (rev 0b)
00:0f.0 Communication controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series Trusted Execution Engine (rev 0b)
00:12.0 SATA controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SATA AHCI Controller (rev 0b)
00:13.0 PCI bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A #1 (rev fb)
00:13.1 PCI bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port A #2 (rev fb)
00:14.0 PCI bridge: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series PCI Express Port B #1 (rev fb)
00:15.0 USB controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series USB xHCI (rev 0b)
00:1e.0 SD Host controller: Intel Corporation Celeron N3350/Pentium N4200/Atom E3900 Series SDIO Controller (rev 0b)
00:1f.0 ISA bridge: I
@Crazor
Crazor / Cura settings
Last active January 21, 2022 23:49
Sapphire Pro settings
PK!ÌÒBB custom_.4mm[general]
version = 4
name = .4mm
definition = fdmprinter
[metadata]
type = quality_changes
quality_type = draft
setting_version = 16