Skip to content

Instantly share code, notes, and snippets.

@macromorgan
macromorgan / gist:927fa855ec77dd21ba902253b6d7bd23
Created December 31, 2018 23:57
Crash When Loading XR819 Drivers on OpenWRT Master
root@OpenWrt:/# modprobe xradio_wlan
[ 28.855786] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 28.863902] pgd = dd9141c0
[ 28.866607] [00000000] *pgd=5df60003, *pmd=5df75003, *pte=00000000
[ 28.872793] Internal error: Oops: a07 [#1] PREEMPT SMP ARM
[ 28.878269] Modules linked in: xradio_wlan(+) ath9k_htc ath9k_common rtl8192cu rtl8192c_common rtl_usb rt2800usb rt2800lib rt2500usb pppoe
ppp_async mt76x0u mt76x0_common brcmfmac ath9k_hw ath6kl_usb ath6kl_core ath rtlwifi rtl8812au rtl8187 rt73usb rt2x00usb rt2x00lib pppox ppp_g
eneric nf_conntrack_ipv6 mt76x2u mt76x2_common mt76x02_usb mt76x02_lib mt7601u mt76_usb mt76 mac80211 lz4 iptable_nat ipt_REJECT ipt_MASQUERAD
E cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper x
t_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt
Type | Subtype | Offset | Size | CRC32 | Name
Image | Intel | 00000000 | 00800000 | 6D59AD0C | Intel image
Region | Descriptor | 00000000 | 00001000 | F11D2681 | - Descriptor region
Region | ME | 00001000 | 003FF000 | 57E82486 | - ME region
Region | BIOS | 00400000 | 00400000 | 42F22B86 | - BIOS region
Volume | FFSv2 | 00400000 | 00020000 | 3D4B8B2E | -- EfiFirmwareFileSystem2Guid
File | Raw | 00400048 | 0001FFB8 | B9247F6F | --- NVRAM | NVAR store
NVAR entry | Full | 00400060 | 000003F0 | E80B7B98 | ---- 4599D26F-1A11-49B8-B91F-858745CFF824 | StdDefaults
NVAR entry | Full | 00400077 | 0000026E | 97B85DC6 | ----- EfiSetupVariableGuid | Setup
NVAR entry | Full | 004002E5 | 0000001E | 94187FA9 | ----- EfiGlobalVariableGuid | PlatformLang
@macromorgan
macromorgan / gist:323a5f7af7259034a22955a9658f8515
Created February 14, 2019 04:50
Intel Firmware Descriptor for Atomic Pi
File /srv/coreboot/api.rom is 8388608 bytes
ICH Revision: Baytrail
FLMAP0: 0x02040003
NR: 2
FRBA: 0x40
NC: 1
FCBA: 0x30
FLMAP1: 0x0e100206
ISL: 0x0e
FPSBA: 0x100
@macromorgan
macromorgan / .config
Created April 13, 2019 02:34
T420 Coreboot Config Master with Tianocore
#
# Automatically generated file; DO NOT EDIT.
# coreboot configuration
#
#
# General setup
#
CONFIG_COREBOOT_BUILD=y
CONFIG_LOCALVERSION=""
@macromorgan
macromorgan / gist:72bf137c169edef6dedb7e50c5b79849
Created August 20, 2019 17:52
ARM XML for Libvirt On Raspberry Pi 4
<domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>Debian</name>
<title>Debian 10.0</title>
<description>Debian Buster</description>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<resource>
<partition>/machine</partition>
</resource>
@macromorgan
macromorgan / config.txt
Created October 9, 2019 01:42
dmesg/config.txt of a working system
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
coreboot-4.11-994-gd250063c09-dirty Fri Jan 24 09:53:14 UTC 2020 bootblock starting (log level: 5)...
FMAP: Found "FLASH" version 1.1 at 0xa50000.
FMAP: base = 0xff400000 size = 0xc00000 #areas = 5
FMAP: area COREBOOT found @ a50200 (1768960 bytes)
CBFS: Locating 'fallback/romstage'
CBFS: Found @ offset 80 size 5c24
BS: bootblock times (exec / console): total (unknown) / 0 ms
coreboot-4.11-994-gd250063c09-dirty Fri Jan 24 09:53:14 UTC 2020 romstage starting (log level: 5)...
@macromorgan
macromorgan / gist:c5828b93cef0156051e78b499e8d251f
Last active January 27, 2020 15:25
make savedefconfig for t440p
CONFIG_CCACHE=y
CONFIG_USE_OPTION_TABLE=y
CONFIG_USE_BLOBS=y
CONFIG_NO_STAGE_CACHE=y
CONFIG_VENDOR_LENOVO=y
CONFIG_ONBOARD_VGA_IS_PRIMARY=y
CONFIG_VGA_BIOS=y
CONFIG_VGA_BIOS_ID="8086,0406"
CONFIG_MAINBOARD_SERIAL_NUMBER="123456789"
CONFIG_VGA_BIOS_FILE="optionroms/vga_8086_0406.bin"
@macromorgan
macromorgan / ectool dump
Last active January 28, 2020 17:25
ECTOOL Dump
00: a6 05 a8 c0 00 86 00 00 00 09 47 00 00 01 80 00 (01 changes to 41 and 81 for keyboard backlight half/full bright)
10: 00 00 ff ff c0 3c 00 01 7b ff 00 00 ff ff 9d 00
20: 00 00 00 00 00 00 00 e8 00 00 00 00 00 00 00 80
30: 00 00 00 00 70 04 00 00 00 00 30 10 00 50 00 00
40: 00 00 00 00 00 00 14 42 52 14 00 00 00 00 00 00 (52 changes to 53 for the headphone insertion)
50: 00 80 02 0c 00 01 02 03 04 05 06 07 6f b7 a9 e2
60: 4f df e2 01 02 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 08 00 00 00 2a 00 00 00 00 00 00 00
80: 00 00 05 06 00 00 03 00 00 00 00 00 00 00 2b 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
@macromorgan
macromorgan / pmh7.dump
Created January 31, 2020 18:14
Dump of pmh7tool for T440P (with backlight and dGPU)
0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0010: 41 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03
0020: 8d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0040: 00 09 02 00 02 00 00 00 03 00 00 0b 00 00 00 00
0050: f8 02 fc 00 00 00 00 00 00 00 80 00 80 80 80 80
0060: 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0080: cc db 13 77 7f 00 37 00 00 00 00 00 00 00 00 00
0090: 02 02 02 02 90 90 90 90 08 12 19 19 00 00 00 00