- Joined
- Aug 5, 2023
- Messages
- 39
- Reaction score
- 63
I suggest sharing your experience on modifying the karma firmware
In any case you will need linux
I prefer Xubuntu
Mounting the Karma file system for viewing and testing
dev: size erasesize name
mtd0: 00800000 00001000 "BIOS"
mtd1: 00400000 00001000 "intel-spi"
mtd2: 10000000 00020000 "NAND simulator partition 0"
For unpacking and packing use https://github.com/onekey-sec/ubi_reader
In any case you will need linux
I prefer Xubuntu
Mounting the Karma file system for viewing and testing
sudo apt-get install mtd-utils
- Install mtd-utilssudo modprobe nandsim first_id_byte=0x2c second_id_byte=0xda third_id_byte=0x90 fourth_id_byte=0x95
- NAND Flash simulatorcat /proc/mtd
- Looking for number the created MTDdev: size erasesize name
mtd0: 00800000 00001000 "BIOS"
mtd1: 00400000 00001000 "intel-spi"
mtd2: 10000000 00020000 "NAND simulator partition 0"
sudo dd if=mtdblock4.bin of=/dev/mtd2
- Copy falesystem to simulated NANDsudo modprobe ubi
sudo modprobe ubifs
sudo ubiattach /dev/ubi_ctrl -d 1 -m 2 -O 2048
- ( -m 2) Change namber to namber mtdsudo mkdir Filesystem
- Create a folder where you will mount Filesystemubinfo -a
- Get information about filesystemsudo mount -t ubifs ubi1:rootfs Filesystem
- Mount file system in folder "Filesystem"For unpacking and packing use https://github.com/onekey-sec/ubi_reader
Last edited: