Skip to content

Instantly share code, notes, and snippets.

View thejpster's full-sized avatar

Jonathan 'theJPster' Pallant thejpster

View GitHub Profile
@thejpster
thejpster / log.txt
Created January 14, 2026 21:39
O2 Bluescsi log with parity error
This is a log from booting my O2 with a BlueSCSI DB25 connected to the external SCSI port. The config was:
[SCSI]
System=Generic
EnableSCSI2=false
Debug=1
During the boot process, I see this error on the console:
ALERT: SCSI controller 1 detected parity error
@thejpster
thejpster / log.txt
Created January 13, 2026 22:01
BlueSCSI hang on AHA-2940US
Platform: BlueSCSI (Pico1/W)
FW Version: 2025.10.27-rel Oct 27 2025 20:32:19
Flash chip size: 2048 kB
Reclock RP2040 & Pico 1/1W based boards to standardized speed
Initial Clock set to 133MHz
Reclocking the MCU to 203MHz
Setting the SDIO clock to 41MHz
After reclocking, system reports clock set to 203MHz
=== SD Card Info ===
~/rusttest $ cat .cargo/config.toml
[target.x86_64-unknown-linux-gnu]
linker = "gccfoo"
~/rusttest $ cat testbin/.cargo/config.toml
[target.x86_64-unknown-linux-gnu]
linker = "gccbar"
~/rusttest $ cd testbin
~/rusttest/testbin $ cargo run
diff --color -r cortex-m-07x-branch/asm/inline.rs cortex-m-master/cortex-m/asm/inline.rs
75c75
< asm!("dmb", options(nomem, nostack, preserves_flags));
---
> asm!("dmb", options(nostack, preserves_flags));
82c82
< asm!("dsb", options(nomem, nostack, preserves_flags));
---
> asm!("dsb", options(nostack, preserves_flags));
89c89
diff --color -r cortex-m-07x-branch/build.rs cortex-m-master/cortex-m/build.rs
30a31,40
> println!("cargo:rustc-check-cfg=cfg(armv6m)");
> println!("cargo:rustc-check-cfg=cfg(armv7m)");
> println!("cargo:rustc-check-cfg=cfg(armv7em)");
> println!("cargo:rustc-check-cfg=cfg(armv8m)");
> println!("cargo:rustc-check-cfg=cfg(armv8m_base)");
> println!("cargo:rustc-check-cfg=cfg(armv8m_main)");
> println!("cargo:rustc-check-cfg=cfg(cortex_m)");
> println!("cargo:rustc-check-cfg=cfg(has_fpu)");
cargo semver-checks
Building cortex-m v0.7.4 (current)
Built [ 5.133s] (current)
Parsing cortex-m v0.7.4 (current)
Parsed [ 0.014s] (current)
Building cortex-m v0.7.4 (baseline)
Built [ 5.453s] (baseline)
Parsing cortex-m v0.7.4 (baseline)
Parsed [ 0.007s] (baseline)
Checking cortex-m v0.7.4 -> v0.7.4 (no change)
#let board(time, content) = [
#set text(
font: "ModeSeven",
size: 18pt,
)
#set page(
width: 20cm,
height: 15cm,
margin: (top: 48pt, bottom: 26pt, left: 0.4cm, right: 0.4cm),
fill: black,
@thejpster
thejpster / trace.txt
Created September 21, 2024 18:48
sparc stack trace
#0 window_overflow_trap_handler () at ../../../cpukit/score/cpu/sparc/window.S:57
#1 0x40007b00 in compiler_builtins::int::shift::__ashldi3::__ashldi3 (a=47483648, b=32) at src/macros.rs:572
#2 0x40007274 in core::ops::bit::{impl#335}::shl (self=47483648, other=32) at /home/jonathan/Documents/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/src/rust/library/core/src/ops/bit.rs:470
#3 0x400077dc in compiler_builtins::int::HInt::widen_hi<u32> (self=47483648) at src/int/mod.rs:323
#4 0x4000979c in compiler_builtins::int::shift::Ashl::ashl<u64> (self=47483648, shl=32) at src/int/shift.rs:9
#5 0x40009954 in compiler_builtins::int::shift::__ashldi3 (a=47483648, b=32) at src/int/shift.rs:82
#6 0x40007b00 in compiler_builtins::int::shift::__ashldi3::__ashldi3 (a=47483648, b=32) at src/macros.rs:572
#7 0x40007274 in core::ops::bit::{impl#335}::shl (self=47483648, other=32) at /home/jonathan/Documents/rust-lang/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/src/rust/library/core/src/ops/
@thejpster
thejpster / reloc.rs
Created January 14, 2024 20:15
Some relocatable rust code
/* Use this linker script:
```text
SECTIONS {
. = 0x10000000;
Flash : {
KEEP(*(.entry))
KEEP(*(.entry.*))
@thejpster
thejpster / reloc.c
Created January 14, 2024 19:51
Some C code I want to be relocatable
// This file is Public Domain, or CC0 where that is not allowed
static int GLOBAL_VALUE = 5;
__attribute__((noinline))
int reloc_get(void) {
return GLOBAL_VALUE;
}
int reloc_add(int a) {