Skip to content

Instantly share code, notes, and snippets.

@hanetzer
hanetzer / stdin
Created April 27, 2020 22:06
stdin
bootf
booting system partition 0:0
USB: USB 2.0 started, EHCI 1.00scanning bus for devices... 2 USB Device(s) found
scanning bus for storage devices... max USB Storage Device reached: 1 stopping
1 Storage Device(s) found
1 blocks read: OK
Loading image 0:0..........................................................................................................................................................................................................
Booting image...
Signer Cert OK
Policy Cert OK
@hanetzer
hanetzer / SmelteryBlocks.java
Last active May 8, 2020 02:38
IItemPropertyOverride
package slimeknights.tconstruct.blocks;
import com.google.common.collect.ImmutableSet;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.RenderTypeLookup;
import net.minecraft.item.Item;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
@hanetzer
hanetzer / diff
Last active October 6, 2020 14:53
$ git diff|cat;
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
index d906ffb565..f76de0034b 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -63,7 +63,7 @@
#define FW_FILE_NAME "skiboot.lid"
#define FW_LOAD_ADDR 0x0
-#define FW_MAX_SIZE (16 * MiB)
+#define FW_MAX_SIZE (64 * MiB)
@hanetzer
hanetzer / $ cat bootblock.S;
Created October 6, 2020 15:00
$ cat bootblock.S;
$ cat bootblock.S
build/cbfs/fallback/bootblock.elf: file format elf64-powerpc
Disassembly of section .text:
0000000000000000 <_start>:
#define SAVE_GPR(reg,sp) std r##reg,STACK_GPR##reg(sp)
#define REST_GPR(reg,sp) ld r##reg,STACK_GPR##reg(sp)
@hanetzer
hanetzer / $ powerpc64le-unknown-linux-gnu-readelf -e buildcbfsfallbackbootblock.debug;
Created October 6, 2020 15:12
$ powerpc64le-unknown-linux-gnu-readelf -e build/cbfs/fallback/bootblock.debug;
$ powerpc64le-unknown-linux-gnu-readelf -e build/cbfs/fallback/bootblock.debug
ELF Header:
Magic: 7f 45 4c 46 02 02 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: PowerPC64
@hanetzer
hanetzer / $ cat srcarchppc64includearchmemlayout.h;
Created October 10, 2020 16:37
$ cat src/arch/ppc64/include/arch/memlayout.h;
$ cat src/arch/ppc64/include/arch/memlayout.h
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file contains macro definitions for memlayout.ld linker scripts. */
#ifndef __ARCH_MEMLAYOUT_H
#define __ARCH_MEMLAYOUT_H
/* TODO: Double-check that that's the correct alignment for our ABI. */
#define STACK(addr, size) REGION(stack, addr, size, 8)
@hanetzer
hanetzer / Talos_ii.dts
Last active October 18, 2020 11:16
stdin
/dts-v1/;
/ {
compatible = "ibm,powernv", "ibm,p9-openbmc", "rcs,talos";
vendor = "IBM";
nest-frequency = <0x0 0x5f5e1000>;
model-name = "rcs,talos";
ibm,sw-checkstop-fir = <0x5012000 0x1f>;
model = "T2P9D01 REV 1.00";
#address-cells = <0x2>;
@hanetzer
hanetzer / stdin
Created October 20, 2020 12:25
stdin
## SPDX-License-Identifier: GPL-2.0-only
chip soc/ibm/nimbus
# Place LPC controller at 'standard' location.
register "bridge_ad_lpc_base_reg" = "0x0006030000000000"
device cpu_cluster 0 on end
device mmio 0x0006030000000000 on # lpc controller
chip soc/ibm/power9/lpc
device mmio 0xd0010000
chip drivers/uart
@hanetzer
hanetzer / stdin
Created November 8, 2021 00:35
stdin
[ 5018.845712] kworker/dying (67) used greatest stack depth: 12048 bytes left
[33610.127142] ld-linux-x86-64[37721]: segfault at 8 ip 00007fe620cc10db sp 00007ffc72875290 error 4 in ld-2.33.so[7fe620cbe000+24000]
[33610.127150] Code: 84 5b 05 00 00 48 85 c0 75 e5 48 83 3d 85 dd 02 00 00 0f 85 6c 05 00 00 48 8b 9d 88 fd ff ff 48 8b 83 68 02 00 00 48 8b 53 68 <48> 8b 5a 08 48 85 c0 74 3d 48 8b 78 08 48 01 df 80 3f 00 74 31 48
[74273.905183] _pcbnew.kiface[156254]: segfault at 444476 ip 0000000000444476 sp 00007fff07989448 error 14 in _pcbnew.kiface[7feac083e000+43b000]
[74273.905196] Code: Unable to access opcode bytes at RIP 0x44444c.
[75988.774385] _kipython.kifac[167480]: segfault at 7f546 ip 000000000007f546 sp 00007ffd3e9b4b48 error 14 in _kipython.kiface[7f0b86283000+7f000]
[75988.774400] Code: Unable to access opcode bytes at RIP 0x7f51c.
[172074.716242] kicad[728405]: segfault at 7f8fed53afc8 ip 00007f8fed53afc8 sp 00007ffe925088d8 error 15 in libwx_baseu-3.0-gtk3.so.0.5.0[7f8fed536000+b000]
[172074.716
@hanetzer
hanetzer / $ emerge -avpt --newuse --with-bdeps=y --update --deep --keep-going --changed-use --verbose-conflicts --backtrack=100 @world;
Created December 21, 2021 09:54
$ emerge -avpt --newuse --with-bdeps=y --update --deep --keep-going --changed-use --verbose-conflicts --backtrack=100 @world;
$ emerge -avpt --newuse --with-bdeps=y --update --deep --keep-going --changed-use --verbose-conflicts --backtrack=100 @world
These are the packages that would be merged, in reverse order:
Calculating dependencies . ...... done!
Total: 0 packages, Size of downloads: 0 KiB
WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict: