Skip to content

Instantly share code, notes, and snippets.

View orangecms's full-sized avatar
🐢
Hack the planet!

Daniel Maslowski orangecms

🐢
Hack the planet!
View GitHub Profile
@orangecms
orangecms / WFD016-UART.log
Last active March 14, 2020 19:41
Investigating a Damai DM S6 WFD016 USB Wi-Fi storage
Calibration successful!
Calibration successful!
Default ADC gain value = 1
Modified ADC gain value to 0
mem_to_mcu
[sdio] Card reset successful
[sdio] Card Version - (0x32)
[sdio] Card initialization successful
[main-196] [perf_demo] 123 Build Time: Aug 7 2017 10:45:05
@orangecms
orangecms / mft.log
Last active March 8, 2020 20:27
MFT logs
INFO[0029] Searching for Magic Bytes: D12A4A10E436A1D60A3AEEBF08F76C150EE924B9186E3A9063603458B4B4727D
Found Intel MC Update at 0x6306b0 with Length: 0x5c00
INFO[0029] Unplausible year: 8211 path=cpu40661_plat32_ver0000000F_2013-08-21_PRD_CC7CD277.bin
Found Intel MC Update at 0x6362b0 with Length: 0x6400
INFO[0029] Unplausible year: 8210 path=cpu40660_plat32_verFFFF0011_2012-10-12_PRD_21AC5E53.bin
Found Intel MC Update at 0x63c6b0 with Length: 0x4c00
INFO[0029] Unplausible year: 8211 path=cpu40651_plat72_ver00000017_2013-09-14_PRD_6D9EC14C.bin
Found Intel MC Update at 0x6412b0 with Length: 0x5800
INFO[0029] Unplausible year: 8210 path=cpu40650_plat72_verFFFF000B_2012-12-06_PRD_A1180C86.bin
Found Intel MC Update at 0x646ab0 with Length: 0x5000
[ 0.000000] Linux version 4.14.162 (cyrevolt@orangetux) (gcc version 9.2.0 (Gentoo Hardened 9.2.0-r2 p3)) #11 SMP PREEMPT Wed Jan 8 20:16:25 CET 2020
[ 0.000000] Command line: console=ttyS0 vga=786 memmap=4G!4G
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
@orangecms
orangecms / chuck-norris.sh
Created October 7, 2019 20:18
Chuck Norris Joke
#!/bin/sh
# requirements: google_speech, jq, curl, sed
URL=https://api.chucknorris.io/jokes/random
JSON_PATH='.value'
curl -s "$URL" | \
jq "$JSON_PATH" | \
sed "s/'//g" | \
@orangecms
orangecms / golang-project.sh
Created September 28, 2019 12:53
Go (golang) project fix
git clone .../my-project
mkdir -p .go/src/
cd .go/src
ln -s ../../my-project .
cd my-project
vim ...
GOPATH=$(pwd)/.. build my-project/cmd/foo
@orangecms
orangecms / laptops.md
Last active July 26, 2020 06:59
laptops I have

laptops I have

AMD

  • Toshiba Satellite A210-15Y
  • MSI M670

Intel

  • TUXEDO BU1406 (Clevo N240BU, HM170 / Sunrise Point / Kaby Lake-U)
  • XMG C404 (Gigabyte P34V2, Lynx Point / Haswell)
  • T-bao Tbook Pro (C116C Rev21 / Z8350, like Hometech h14x or Digimate DGM L-141QH)
@orangecms
orangecms / notes.md
Last active February 27, 2020 19:39
elitebook-2530p

board name: Compal_LA-4021p

SPI flash chip: 4096 KB AT25DF321

KBC fw

see util/kbc1126

# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGO_VENDOR=(
"github.com/go-xorm/builder 1d658d7596c25394aab557ef5b50ef35bf706384"
"github.com/go-xorm/core ccc80c1"
"github.com/go-xorm/xorm 1f39c59"
"github.com/gorilla/context 08b5f42"
@orangecms
orangecms / coreboot-p34v2.md
Last active September 22, 2025 17:04
Porting guide for coreboot: GIGABYTE P34G v2 / Schenker XMG C404

Porting coreboot to a Haswell / Lynx Point laptop: GIGABYTE P34G v2

This mainboard was sold by Schenker XMG as C404, while the original model name by GIGABYTE is P34G v2.

The board schematics are not publicly available. However, from another laptop board's schematics, we can learn a bit about the components it should have: laptop mainboard schematics

autoport

# Porting coreboot to a Haswell / Lynx Point laptop: GIGABYTE P34V2
## autoport
### patch coreboot repo for LynxPoint support in autoport
https://review.coreboot.org/c/coreboot/+/30890
`git fetch https://review.coreboot.org/coreboot refs/changes/90/30890/2 && git cherry-pick FETCH_HEAD`
https://review.coreboot.org/c/coreboot/+/31759
`git fetch https://review.coreboot.org/coreboot refs/changes/59/31759/2 && git cherry-pick FETCH_HEAD`