Skip to content

Instantly share code, notes, and snippets.

View martonmiklos's full-sized avatar

Miklós Márton martonmiklos

View GitHub Profile
@martonmiklos
martonmiklos / ATmega16M1.cfg
Created February 1, 2024 09:08
ATmega16M1 IDA config file
.ATmega16M1
SUBARCH=107 ; should be AVR8 -- 107 is highest supported
ROM=16384
RAM=1280
EEPROM=512
area DATA REGISTERS_ 0x0000:0x0020 REGISTERS_
area DATA MAPPED_IO_ 0x0020:0x0100 MAPPED_IO_
mm@P15:/opt/microchip/mplabx/v6.15/mplab_platform/mplab_ipe$ ./ipecmd.sh /?
------------------------------------------------------------------------------------------------------
IPECMD COMMAND LINE HELP
------------------------------------------------------------------------------------------------------
Usage: ipecmd <deviceName> <toolName> [Options] - Note: Device and Tool are mandatory commands
Note: More examples available in [Readme for IPECMD.html] under installation docs folder
------------------------------------------------------------------------------------------------------
Options Description Default
------------------------------------------------------------------------------------------------------
# Communication Ports 1 thru 255 supported.
mm@P15:~$ diff /tmp/env_ff /tmp/env_tb
9a10
> force_s3tc_enable=true
13a15,16
> NO_AT_BRIDGE=1
> XUL_APP_FILE=
14a18,19
> XRE_BINARY_PATH=
> MOZ_CRASHREPORTER_STRINGS_OVERRIDE=/usr/lib/thunderbird/crashreporter-override.ini
16a22
m@DESKTOP-4AITTRD /z/Projektek/flashrom_git
$ meson compile -C build
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: "c:\Program Files\Meson\ninja.EXE" -C //VBoxSvr/mm/Projektek/flashrom_git/build
ninja: Entering directory `//VBoxSvr/mm/Projektek/flashrom_git/build'
[8/116] Compiling C object libflashrom-1.dll.p/helpers_fileio.c.obj
FAILED: libflashrom-1.dll.p/helpers_fileio.c.obj
"gcc" "-Ilibflashrom-1.dll.p" "-I." "-I.." "-I..\include" "-IC:\Program Files (x86)\National Instruments\Ni-845x\MS Visual C" "-fdiagnostics-color=always" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-Wextra" "-Werror" "-std=c99" "-Os" "-Wshadow" "-Wmissing-prototypes" "-Wwrite-strings" "-Wno-unused-parameter" "-Wno-missing-braces" "-D_DEFAULT_SOURCE" "-D_POSIX_C_SOURCE=200809L" "-D_BSD_SOURCE" "-D__BSD_VISIBLE" "-D__XSI_VISIBLE" "-D_NETBSD_SOURCE" "-D_DARWIN_C_SOURCE" "-DFLASHROM_VERSION=\"1.4.0-devel (git:v1.2-1291-gfa8720d2)\"" "-DHAVE_STRNLEN=1" "-DIS_WINDOWS=1" "-D__FLASHROM_LITTLE_ENDIAN__=1
@martonmiklos
martonmiklos / bootlog.txt
Last active January 20, 2023 15:27
Broken Techson TC DVR SS3008 IP NVR bootlog
Device does not boot on VGA black screen present.
UART pinout:
1: +3V3 (Square pin)
2: RX
3: Tx
4: GND
115200 8n1
PCB label: TD2808NS-A(V1.3)
@martonmiklos
martonmiklos / Bosch indego firmware strings.txt
Created September 25, 2022 19:46
Bosch indego firmware strings.txt
BOOTING xxxxx
CodVnxxx.bin
RdMapxxx.bin
CovInxxx.bin
CvMapxxx.bin
HMI__xxx.bin
DSMu1xxx.bin
DSMu2xxx.bin
LTH__xxx.bin
GrAstxxx.bin
@martonmiklos
martonmiklos / gist:27564ca2fc0ac7108c7fccc117e1413a
Created June 16, 2022 12:37
Circle contour for gencad issue reproduction
$HEADER
GENCAD 1.4
USER ""
DRAWING board-outline.cad
REVISION ""
UNITS USER 1000
ORIGIN 0 0
INTERTRACK 0
$ENDHEADER
@martonmiklos
martonmiklos / gencad.cad
Created June 14, 2022 14:51
gencad issue test
$HEADER
GENCAD 1.4
USER ""
DRAWING board-outline.cad
REVISION ""
UNITS USER 1000
ORIGIN 0 0
INTERTRACK 0
$ENDHEADER
@martonmiklos
martonmiklos / fix_barcode_layout.sh
Created March 21, 2022 08:37
script for an udev rule to fix layout for a specific barcodereader
#!/bin/bash
usbkbd=`xinput -list | grep -c "USBKey Chip USBKey Module"`
if [[ "$usbkbd" -gt 0 ]]
then
usbkbd_ids=`xinput -list | grep "USBKey Chip USBKey Module" | awk -F'=' '{print $2}' | cut -c 1-2`
usbkbd_layout="us"
for ID in $usbkbd_ids
do
setxkbmap -device "${ID}" -layout "${usbkbd_layout}"
done
@martonmiklos
martonmiklos / gist:7daae1ef2a80c48262e1dd7f73d2047f
Created December 22, 2021 21:16
Bburago BLE RC car gattool output
0A:C0:31:44:FE:A1 SL-SF1000:
[ ][LE]> connect 0A:C0:31:44:FE:A1
Attempting to connect to 0A:C0:31:44:FE:A1
Connection successful
[0A:C0:31:44:FE:A1][LE]> char-desc
handle: 0x0001, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0002, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, uuid: 00002800-0000-1000-8000-00805f9b34fb