Skip to content

Instantly share code, notes, and snippets.

@hanetzer
hanetzer / serialice.log
Created August 29, 2023 01:30
raspi fuckery
This file has been truncated, but you can view the full file.
SerialICE: Starting LUA script
SerialICE: LUA script initialized.
0000.0001 I... [0000:0000] SerialICE: ROM size: 0x1000000
0000.0001 I... [0000:0000] SerialICE: Mainboard ASRock X370 Killer Sli connected.
0000.0001 I... [0000:0000] SerialICE: Script mainboard/asrock_x370_killer_sli.lua not found.
0000.0001 I... [0000:0000] Resource: [0002] IO [0000-ffff] = IO
0000.0001 I... [0000:0000] Resource: [0003] MEM [0000-ffffffff] = MEM
0000.0001 I... [0000:0000] Resource: [0004] CPU MSR CPU MSR
0000.0001 I... [0000:0000] Resource: [0005] CPUID CPUID
0000.0001 I... [0000:0000] Resource: [0006] MEM [e0000-fffff] = ROM_LO
These are the packages that would be merged, in reverse order:
Calculating dependencies . * ERROR: dev-libs/olm-9999::matrix failed (depend phase):
* cmake-utils.eclass could not be found by inherit()
*
* Call stack:
* ebuild.sh, line 628: Called source '/var/db/repos/matrix/dev-libs/olm/olm-9999.ebuild'
* olm-9999.ebuild, line 6: Called inherit 'cmake-utils'
* ebuild.sh, line 273: Called die
@hanetzer
hanetzer / $ cat liveboot.log;
Created January 7, 2020 22:03
$ cat liveboot.log;
This file has been truncated, but you can view the full file.
$ cat liveboot.log
-BOC-
-BOC-
uid=0(root) gid=0(root)
uid=0(root) gid=0(root)
6,0,0,-;[ 0.000000]@0 Booting Linux on physical CPU 0x0
5,1,0,-;[ 0.000000]@0 Linux version 4.14.117-perf+ (OnePlus@rd-build-91) (clang version 8.0.8 for Android NDK) #1 SMP PREEMPT Wed Dec 4 20:44:37 CST 2019
6,2,0,-;[ 0.000000]@0 Boot CPU: AArch64 Processor [51df805e]
6,3,0,-;[ 0.000000]@0 Machine: Qualcomm Technologies, Inc. SM8150P v2 PM8150 SDX55M MTP 19861 53 54
3,4,0,-;[ 0.000000]@0 OF: reserved mem: OVERLAP DETECTED!\x0adisp_rdump_region (0x000000009c000000--0x000000009e400000) overlaps with cont_splash_region (0x000000009c000000--0x000000009e400000)
@hanetzer
hanetzer / $ lspci -nn;
Created April 3, 2023 22:07
$ lspci -nn;
$ lspci -nn
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex [1022:1480]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU [1022:1481]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
@hanetzer
hanetzer / dd devmem
Created March 11, 2023 11:22
flashrom-stable on Asus c7hwifi (ROG CROSSHAIR VII HERO WI-FI)
[hanetzer@c7hwifi flashrom-stable]$ sudo dd if=/dev/mem bs=256 count=1 skip=$((0xfec10000/256)) | hexdump -Cv
1+0 records in
1+0 records out
256 bytes copied, 0.000118817 s, 2.2 MB/s
00000000 03 e3 28 0f 00 00 00 00 00 06 00 00 f2 02 00 02 |..(.............|
00000010 06 20 04 04 06 04 9f 05 03 0b 0a 02 ff b8 06 0e |. ..............|
00000020 13 07 33 11 08 20 20 20 0c 14 06 0e c0 54 c0 14 |..3.. .....T..|
00000030 c0 14 08 46 03 00 00 00 fc fc fc fc fc 88 00 00 |...F............|
00000040 3b 6b bb eb 00 03 00 00 03 00 00 0e 3f 02 03 00 |;k..........?...|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
@hanetzer
hanetzer / $ sudo lspci -xxx -s 14.3;
Created March 11, 2023 00:49
$ sudo lspci -xxx -s 14.3;
$ sudo lspci -xxx -s 14.3
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00: 22 10 0e 79 0f 00 20 02 51 00 01 06 00 00 80 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 43 10 c0 87
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
40: 1c 00 00 00 d5 ff 03 ff 07 ff 20 01 00 00 00 00
50: ff 05 00 fc ff 05 00 fd ff 05 00 fe ff 05 00 ff
60: 00 00 00 00 00 02 00 0a 00 00 0f 00 00 ff ff ff
70: 67 45 23 00 00 00 00 00 90 02 00 00 07 0a 00 00
@hanetzer
hanetzer / $ sudo dd if=devmem bs=256 count=1 skip=1043472 | hexdump -Cv;
Created March 11, 2023 00:48
$ sudo dd if=/dev/mem bs=256 count=1 skip=1043472 | hexdump -Cv;
$ sudo dd if=/dev/mem bs=256 count=1 skip=1043472 | hexdump -Cv
dd: error reading '/dev/mem': Operation not permitted
0+0 records in
0+0 records out
0 bytes copied, 2.3131e-05 s, 0.0 kB/s
(gdb) run
Starting program: /home/hanetzer/Projects/flashrom/flashrom -p internal -r test.rom
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
flashrom-stable v1.2.1-525-g2323aa16 on Linux 6.2.1-gentoo (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Found chipset "AMD Raven Ridge/Matisse/Starship".
Enabling flash write... OK.
@hanetzer
hanetzer / $ sudo .buildflashrom -V -p internal -r backup.rom && dmesg |tail;
Created March 10, 2023 22:44
$ sudo ./build/flashrom -V -p internal -r backup.rom && dmesg |tail;
$ sudo ./build/flashrom -V -p internal -r backup.rom && dmesg |tail
flashrom-stable v1.2.1-525-g2323aa16 on Linux 6.2.1-gentoo (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
flashrom was built with GCC 12.2.1 20230121, little endian
Command line (5 args): ./build/flashrom -V -p internal -r backup.rom
Initializing internal programmer
/sys/class/mtd/mtd0 does not exist
No coreboot table found.
@hanetzer
hanetzer / $ lspci -nn && lspci -nntv;
Created March 10, 2023 20:44
$ lspci -nn && lspci -nntv;
$ lspci -nn && lspci -nntv
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Root Complex [1022:1480]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse IOMMU [1022:1481]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]