Skip to content

Instantly share code, notes, and snippets.

@nsafran1217
nsafran1217 / 3.14.79-sn_dmaa_flush.patch
Last active March 10, 2026 02:12
SN2 Altix Kernel Patches
diff --git a/arch/ia64/sn/pci/pcibr/pcibr_dma.c b/arch/ia64/sn/pci/pcibr/pcibr_dma.c
index 1e863b277ac9..6b632c290af2 100644
--- a/arch/ia64/sn/pci/pcibr/pcibr_dma.c
+++ b/arch/ia64/sn/pci/pcibr/pcibr_dma.c
@@ -235,7 +235,7 @@ pcibr_dma_unmap(struct pci_dev *hwdev, dma_addr_t dma_handle, int direction)
* unlike the PIC Device(x) Write Request Buffer Flush register.
*/
-void sn_dma_flush(u64 addr)
+void sn_dma_flush(unsigned long addr)
@nsafran1217
nsafran1217 / README.md
Last active March 6, 2026 14:58
T2-SDE bootstrap on SGI Altix with modern Linux Kernel

Bootstraping T2 SDE Linux on SGI Altix From SLES

Published: 10-Jun-2025 - Last Updated: 10-Jun-2025

T2 SDE is a source based linux distribution and package manager that runs on many different architectures. It is one of the last Linux distros that support IA64, and has been ported to some MIPS SGI machines as well.

In my opinion, T2 is the best option in 2025 for a modern Linux on SGI Altix.

Overview

To get T2 on an Altix, you can either build the disk on another system, or you can bootstrap from the Atlix. I'm going to bootstrap from SLES11 SP3, with Linux kernel versions 3.14.79 and 4.19.325. I'll explain why those 2 versions and the changes needed to get them running later.

@nsafran1217
nsafran1217 / CXWindowsUtil.cpp
Created May 31, 2025 01:42
CXWindowsUtil.cpp for Synergy 1.2.8, modified to compile on HP-UX 11.11, gcc v4.2.3. Commented out many keymaps
/*
* synergy -- mouse and keyboard sharing utility
* Copyright (C) 2002 Chris Schoeneman
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* found in the file COPYING that should have accompanied this file.
*
* This package is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@nsafran1217
nsafran1217 / t2-notes-altix
Created May 2, 2025 23:29
ROUGH notes on T2 install on altix
https://gist.github.com/johnny-mnemonic/debbe04cb11532ff894297b18f5d0180
http://dl.t2sde.org/binary/2024/t2-24.12-ia64-base-desktop-glibc-gcc-itanium2.iso
sudo ./t2trap.bash ia64 t2-24.12-ia64-base-desktop-glibc-gcc-itanium2.iso full
cd ia64
sudo tar cf ../t2-ia64full.tar .
Take tar to altix, extract to new / drive for t2
@nsafran1217
nsafran1217 / 4.1.1-boot.md
Last active April 13, 2025 08:12
Kernel issues on SN2

v4.1.1 boot

ELILO boot:
411
Uncompressing Linux... done
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.1.1-63-default-6a010c0abd49-ia64 (nathan@NathanPC) (gcc version 14.2.0 (GCC) ) #13 SMP Sun Mar 23 23:15:59 EDT 2025
EFI v1.10 by INTEL: