Skip to content

Instantly share code, notes, and snippets.

View chris-pcguy's full-sized avatar

Christian Inci chris-pcguy

View GitHub Profile
/* IOMFB::M3Hal_v1::program_mems */
#define IOMFB_PCC_M3_IMEM_START 0xd0000
#define IOMFB_PCC_M3_IMEM_END 0xd7fff
#define IOMFB_PCC_M3_DMEM_START 0xd8000
#define IOMFB_PCC_M3_DMEM_END 0xdffff
/* */
IOMFB updateFrequencies: minimum-frequency property not found, using getClockFrequency(0) instead.
L2TP domain init
L2TP domain init complete
Load request for com.apple.nke.pptp failed: -603946998
AIC: reg WRITE @ base+addr 0x0000561b8c87c808 base 0x0000561b8c8786e0 value: 0x0000000000000020
@chris-pcguy
chris-pcguy / build_git.sh
Last active May 24, 2025 08:23
T8030, for the Arch companion
#!/bin/bash
set -xeu
#set -xu
do_git() {
DESTDIR="$1"
shift 1
OPTS="$*"
###echo cd "$DESTDIR"
#!/bin/bash
set -eu
DEST="$1"
URL="$2"
mkdir -p "$DEST" ; cd "$DEST"
wget --bind-address=... -c "$URL"
#!/usr/bin/env python3
"""
DEVNAME=n104ap
#DEVNAME=n841ap
RELTYPE=research
#RELTYPE=release
#!/usr/bin/env python3
import sys, os, glob
def parse_pkgs(fn):
basefn = os.path.basename(fn)
basefn = basefn.split('_dists_', 1)[0]
basefn = basefn.split('_._', 1)[0]
#print(basefn)
fd = open(fn, 'rb').read()
diff --git a/hw/usb/dev-tcp-remote.c b/hw/usb/dev-tcp-remote.c
index c3782756cf..945bb922cc 100644
--- a/hw/usb/dev-tcp-remote.c
+++ b/hw/usb/dev-tcp-remote.c
@@ -341,7 +341,8 @@ static void *usb_tcp_remote_thread(void *arg)
while (!s->stopped) {
if (s->closed) {
- struct sockaddr_un addr = { 0 };
+ //struct sockaddr_un addr = { 0 };
diff --git a/hw/arm/t8030.c b/hw/arm/t8030.c
index 409bacdc54..aa7ae5b553 100644
--- a/hw/arm/t8030.c
+++ b/hw/arm/t8030.c
@@ -27,6 +27,7 @@
#include "qemu/osdep.h"
#include "exec/address-spaces.h"
#include "hw/arm/boot.h"
+#include "hw/misc/apple_roswell.h"
#include "hw/misc/unimp.h"
diff --git a/hw/arm/apple_a13.c b/hw/arm/apple_a13.c
index 2188683992..81b6e60db4 100644
--- a/hw/arm/apple_a13.c
+++ b/hw/arm/apple_a13.c
@@ -504,14 +504,16 @@ static const ARMCPRegInfo apple_a13_cp_reginfo_tcg[] = {
A13_CPREG_DEF(ARM64_REG_HID13, 3, 0, 15, 14, 0, PL1_RW, 0),
A13_CPREG_DEF(ARM64_REG_HID14, 3, 0, 15, 15, 0, PL1_RW, 0),
A13_CPREG_DEF(ARM64_REG_HID16, 3, 0, 15, 15, 2, PL1_RW, 0),
- A13_CPREG_DEF(ARM64_REG_LSU_ERR_STS, 3, 3, 15, 0, 0, PL1_RW, 0),
+ A13_CPREG_DEF(ARM64_REG_LSU_ERR_STS, 3, 3, 15, 0, 0, PL1_RW, 0), // A14 SYS_LSU_ERR_STS
diff --git a/hw/arm/apple_a13.c b/hw/arm/apple_a13.c
index 2188683992..81b6e60db4 100644
--- a/hw/arm/apple_a13.c
+++ b/hw/arm/apple_a13.c
@@ -504,14 +504,16 @@ static const ARMCPRegInfo apple_a13_cp_reginfo_tcg[] = {
A13_CPREG_DEF(ARM64_REG_HID13, 3, 0, 15, 14, 0, PL1_RW, 0),
A13_CPREG_DEF(ARM64_REG_HID14, 3, 0, 15, 15, 0, PL1_RW, 0),
A13_CPREG_DEF(ARM64_REG_HID16, 3, 0, 15, 15, 2, PL1_RW, 0),
- A13_CPREG_DEF(ARM64_REG_LSU_ERR_STS, 3, 3, 15, 0, 0, PL1_RW, 0),
+ A13_CPREG_DEF(ARM64_REG_LSU_ERR_STS, 3, 3, 15, 0, 0, PL1_RW, 0), // A14 SYS_LSU_ERR_STS