You are not logged in.

#1 2018-08-14 18:46:22

marakasmalan
Member
Registered: 2017-05-02
Posts: 15

Mounting yaffs image

Good day,

I need to do some development on a device and succeeded in creating an image with dd of the various /dev/mtdx and /dev/mtdblockx devices, but I am not having any success in mounting the images in order to do proceed with development on my pc.

I have installed mtd-utils, and followed several different "guides" could find, using the modules nandsim, mtd, ubi, ubifs, jffs2 etc.  but did not manage any success. Part of the problem seems to be yaffs2 fs support.

Can anybody provide some assistance or point me to a source of information that will help me solve the problem.

The flash chip is the mx25l5121e, nandsim module does not seen to recognize the chip?
From the device,

 cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00020000 "booter"
mtd1: 003c0000 00020000 "kernel"
mtd2: 07c00000 00020000 "ubi"
# ubinfo -a
UBI version:                    1
Count of UBI devices:           0
UBI control device major/minor: 10:59

 

the images were created as follows:

# dd if=/dev/mtdX conv=sync,noerror | ssh user@local dd of=mtdX_bak.img.gz
and 
# dd if=/dev/mtdblockX conv=sync,noerror | ssh user@local dd of=mtdblockX_bak.img.gz

Moreor less the same question has been asked before in 2009, though never received a single answer.

Thanks

Offline

#2 2018-08-16 08:27:25

marakasmalan
Member
Registered: 2017-05-02
Posts: 15

Re: Mounting yaffs image

Ok, so should anybody be interested, the only successful way I have managed is somewhat cumbersome.

Install virtual box and vagrant.

On the yaffs website, go to this link and download the vagrant package and follow the instructions to get the vm up. then you can scp or copy with ssh your image to the vm and mount it on the vm, extract all the files you need.

Offline

Board footer

Powered by FluxBB