Skip to content

Instantly share code, notes, and snippets.

@nvsofts
nvsofts / cpuinfo.txt
Created December 5, 2018 19:00
PlayStation Classic various logs
[ 346.415215] <3>.(3)[1839:cat]Dump cpuinfo
processor : 0
Processor : ARMv7 Processor rev 1 (v7l)
model name : ARMv7 Processor rev 1 (v7l)
BogoMIPS : 30.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm aes pmull sha1 sha2 crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd04
@nvsofts
nvsofts / psmini_log_120503.txt
Last active December 5, 2018 13:43
PlayStation Classic boot log (verbose mode and detected computer)
���������ot from normal
mt_pll_init +
CLK_GATING_CTRL1:d891923e
after set, CLK_GATING_CTRL1:d891923e
CLK_GATING_CTRL2:7afdbf10
[PWRAP] pmic ID: 2092.
[EMI] MDL number = 0
[EMI] PCDDR3
@nvsofts
nvsofts / gist:09a0bd09336c49bce0f7efe8d4fa9f56
Created December 5, 2018 12:06
PlayStation Classic boot log (verbose mode) plug usb -> power on -> power off
oot from normal
mt_pll_init +
CLK_GATING_CTRL1:d891923e
after set, CLK_GATING_CTRL1:d891923e
CLK_GATING_CTRL2:7afdbf10
[PWRAP] pmic ID: 2092.
[EMI] MDL number = 0
[EMI] PCDDR3
@nvsofts
nvsofts / boot_fail_psmini.log
Last active December 4, 2018 20:13
PlayStation Classic boot failed (maybe rework of eMMC was failed)
���������������������������������oot from normal
mt_pll_init +
CLK_GATING_CTRL1:d891923e
after set, CLK_GATING_CTRL1:d891923e
CLK_GATING_CTRL2:7afdbf10
[PWRAP] pmic ID: 2092.
[EMI] MDL number = 0
[EMI] PCDDR3
@nvsofts
nvsofts / gist:fdb5ff5649c2ac53a81bb0b8899a66b6
Created December 4, 2018 17:04
PlayStation Classic partition layout (GPT)
Disk /dev/loop0: 30535680 sectors, 14.6 GiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): C907B807-D79F-48E2-9743-A7288A4540BA
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 30535646
Partitions will be aligned on 1024-sector boundaries
Total free space is 1085 sectors (542.5 KiB)
Number Start (sector) End (sector) Size Code Name
@nvsofts
nvsofts / fastboot.txt
Created December 3, 2018 04:09
PlayStation Classic boot log
Watchdog Status: 0 , boot from normal
mt_pll_init +
CLK_GATING_CTRL1:d891923e
after set, CLK_GATING_CTRL1:d891923e
CLK_GATING_CTRL2:7afdbf10
[PWRAP] pmic ID: 2092.
[EMI] MDL number = 0
[EMI] PCDDR3
Vcore HV NV LV, Vdram HV NV LV
0x5f 0x48 0x3f, 0xc 0x0 0x3
@nvsofts
nvsofts / lc82162.cfg
Last active November 23, 2017 10:02
OpenOCD config for SANYO LC82162 (ARM7TDMI)
source [find interface/ftdi/um232h.cfg]
transport select jtag
adapter_khz 200
source [find cpu/arm/arm7tdmi.tcl]
jtag newtap lc82162 cpu -irlen 4 -expected-id 0x3f1f0f0f
target create lc82162.cpu arm7tdmi -endian little -chain-position lc82162.cpu
reset_config trst_and_srst
@nvsofts
nvsofts / fds.py
Created July 12, 2017 08:15 — forked from murachue/fds.py
.fds file loader for IDA (IDAPython)
# IDA .fds Loader
# usage:
# 1. Place into $IDA/loader/
# 2. Open .fds file by IDA (select "Python FDS Loader")
# 3. "import fds; fds.add()" and select additional file
# Enjoy!
# reference:
# http://park19.wakwak.com/~fantasy/fds/
@nvsofts
nvsofts / cdvisual.rb
Created June 27, 2017 16:15
CD format visualizer
#!/usr/bin/env ruby
NONE = 0 # N/A
MODE1 = 1 # CD-ROM Mode 1
MODE2 = 2 # CD-ROM Mode 2 (not XA)
MODE2_FORM1 = 3 # CD-ROM XA Form 1
MODE2_FORM2 = 4 # CD-ROM XA Form 2
OTHER = 5 # Other (e.g. CD-DA)
# CD-ROM sync header
--- SNES_APU_SD.orig/SNES_APU_SD/APU.cpp 2017-04-09 21:46:31.648099700 +0900
+++ SNES_APU_SD/SNES_APU_SD/APU.cpp 2017-04-09 21:46:31.648099700 +0900
@@ -16,10 +16,10 @@
void APU::init(uint8_t type)
{
#if not (defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__))
- PORTB = 0x0F;
- DDRB = 0x0F;
- DDRC &= 0xC0;
- PORTC &= 0xC0;