Download UBI image file from Wink server:
https://wink-hub-images.s3.amazonaws.co ... rootfs.ubi
You can use this text file to find out what file versions are available:
https://wink-hub-images.s3.amazonaws.co ... _00.01.txt
Note: "00.01" in the URL is the wink BoardID, pretty sure theres only 00.01 right now, but its kept in /database/cf_build if you want to double check
Use these commands to create a dummy NAND flash device and flash the UBI image to it then mount the new UBI device.
Code: Select all
Load nandim and Create fake NAND device
$ modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15
Check if device was created (should be mtd0 if its a normal PC)
$ cat /proc/mtd
Load ubi
$ modprobe ubi mtd=0
Might need to detach newly created UBI, probably will fail ignore and move on
$ ubidetach /dev/ubi_ctrl -m 0
Flash UBI image file
$ ubiformat /dev/mtd0 -f app-rootfs.ubi -O 2048 -s 2048
Attach mtd0 which creates /dev/ubi0
$ ubiattach -p /dev/mtd0 -O 2048
Create a dir to mount to
$ mkdir temp
Mount /dev/ubi0 to previous dir
$ mount -t ubifs ubi0 temp