Skip to content

Instantly share code, notes, and snippets.

View sajattack's full-sized avatar

Paul Sajna sajattack

View GitHub Profile
Jun 28 17:38:29 key2le kernel: rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
Jun 28 17:38:29 key2le kernel: rcu: 6-...0: (1 GPs behind) idle=c7ac/1/0x4000000000000000 softirq=30157/30158 fqs=2487
Jun 28 17:38:29 key2le kernel: rcu: (detected by 4, t=5252 jiffies, g=73333, q=6355 ncpus=8)
Jun 28 17:38:29 key2le kernel: Sending NMI from CPU 4 to CPUs 6:
Jun 28 17:38:29 key2le kernel: rcu: rcu_preempt kthread starved for 2499 jiffies! g73333 f0x0 RCU_GP_DOING_FQS(6) ->state=0x0 ->cpu=5
Jun 28 17:38:29 key2le kernel: rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
Jun 28 17:38:29 key2le kernel: rcu: RCU grace-period kthread stack dump:
Jun 28 17:38:29 key2le kernel: task:rcu_preempt state:R running task stack:0 pid:15 tgid:15 ppid:2 task_flags:0x208040 flags:0x0000000a
Jun 28 17:38:29 key2le kernel: watchdog: CPU5: Watchdog detected hard LOCKUP on cpu 6
Jun 28 17:38:29 key2le kernel: Call trace:
@sajattack
sajattack / flash.sh
Created June 15, 2024 04:42
fastboot flash script
#!/bin/sh
for file in `ls -w 1 *.img`
do
stem=`basename $file .img`
echo $stem
fastboot flash $stem $file
done
#!/bin/bash
# Clone ROM trees for Android T
clone_android_t() {
rm -rf device/lge/${device}
rm -rf device/lge/sdm845-common
rm -rf kernel/lge/sdm845
rm -rf vendor/lge
rm -rf hardware/lg
rm -rf device/lge
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="EmanuelCN" fetch="ssh://[email protected]/EmanuelCN/" revision="T" />
<project name="EmanuelCN/android_kernel_lge_sdm845" path="kernel/lge/sdm845" remote="github" revision="T" />
<project name="EmanuelCN/android_device_lge_judyln" path="device/lge/judyln" remote="github" revision="T" />
<project name="EmanuelCN/android_device_lge_sdm845-common" path="device/lge/sdm845-common" remote="github" revision="T" />
<project name="EmanuelCN/proprietary_vendor_lge" path="vendor/lge" remote="github" revision="T" />
<project name="EmanuelCN/hardware_qcom-caf_sdm845_display" path="hardware/qcom-caf/sdm845/display" remote="github" revision="twelve" />
<project name="LineageOS/android_kernel_lge_msm8998" path="kernel/lge/msm8998" remote="github" revision="lineage-20" />
@sajattack
sajattack / Cargo.toml
Created July 11, 2022 04:21
Wavefront OBJ to raw vertices, used for importing models to PSP, very primitive
[package]
name = "obj2verts"
version = "0.1.0"
authors = ["Paul Sajna <[email protected]>"]
edition = "2018"
[dependencies]
wavefront_obj = "8.0.0"
byteorder = "1.3.4"
[package]
name = "png2gu"
version = "0.1.0"
authors = ["Paul Sajna <[email protected]>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
png = "0.16"
@sajattack
sajattack / config.toml
Created September 8, 2021 16:49
cargo config for riscv32gc std
[unstable]
build-std = ["std", "panic_abort"]
build-std-features = ["panic_immediate_abort"]
[build]
target= "riscv32gc-unknown-linux-gnu"
rustflags = [
"-C", "link-arg=-march=rv32gc",
"-C", "link-arg=-mabi=ilp32d",
"-C", "linker-flavor=gcc"
@sajattack
sajattack / main.rs
Created August 16, 2021 09:04
psp-tls-downloader
#![no_std]
#![no_main]
extern crate alloc;
use psp::sys;
use drogue_tls::blocking::*;
use drogue_network::addr::HostSocketAddr;
use drogue_network::dns::Dns;
@sajattack
sajattack / main.rs
Created August 13, 2021 07:29
tls-weather
#![no_std]
#![no_main]
extern crate alloc;
use psp::sys;
use drogue_tls::blocking::*;
use drogue_network::addr::HostSocketAddr;
use drogue_network::dns::Dns;
@sajattack
sajattack / leda-re.c
Last active February 16, 2021 08:55
Ghidra export of my PSP leda RE project
bool is_elf(int *param_1)
{
if (*param_1 != 0x464c457f) {
return false;
}
return *(short *)(param_1 + 4) == 2;
}