onekey-sec / ubi_reader

Collection of Python scripts for reading information about and extracting data from UBI and UBIFS images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to extract LEDE ubifs image

opened this issue · comments

I wanted to download the image from https://downloads.compex.com.sg/index.php?dir=uploads/LEDE/WPQ864-LEDE-17.01.1/b170608-ath10k-ct and extract it via ./ubireader_extract_files lede-ipq806x-AP148-squashfs-nand-factory.ubi

$ ubireader_extract_files lede-ipq806x-AP148-squashfs-nand-factory.ubi
UBIFS Fatal: Super block error: Wrong node type.
$ find ubifs-root
ubifs-root
ubifs-root/1880761555
ubifs-root/1880761555/kernel

Ok, It seems that i did it wrong. The correct command is ubireader_extract_images