Skip to content

Instantly share code, notes, and snippets.

View alangregory's full-sized avatar

Alan Gregory alangregory

View GitHub Profile
@alangregory
alangregory / Index.md
Created December 5, 2017 12:21
TL-LINK WR840N (v4.0) Recovery
@alangregory
alangregory / Mount Mtd FS
Last active March 23, 2025 02:51 — forked from naodesu/gist:10620506
How to mount ubifs image in Linux.
# $UBIFS is ubifs image file
# make sure $IMAGE is a ubifs image file
blkid $(IMAGE)
$(IMAGE): ... TYPE="ubifs"
# size of created mtd is 256.0 MiB
modprobe nandsim first_id_byte=0x2c second_id_byte=0xda third_id_byte=0x90 fourth_id_byte=0x95
flash_erase /dev/mtd0 0 0
ubiformat /dev/mtd0
modprobe ubi