How do i test my jffs2 images?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How do i test my jffs2 images?

Jhon Diaz
So i made a jffs2 image how to test?
Debian stretch with sugar.
_______________________________________________
Devel mailing list
[hidden email]
http://lists.laptop.org/listinfo/devel
Reply | Threaded
Open this post in threaded view
|

Re: How do i test my jffs2 images?

James Cameron-2
When you use mkfs.jffs2 you will have an .img file.

Firmware uses a CRC file to check the IMG file.

Generate a CRC file using the sumtool and crcimg commands, see how we
do it in our builder;

        http://dev.laptop.org/git/projects/olpc-os-builder/tree/modules/jffs2_image/image.50.makeimg.sh

sumtool is part of mtd-utils package.

crcimg is a binary from the crcimg package on Fedora 18, or there is a
perl script crcimg.pl in xodist,

        git clone http://dev.laptop.org/~quozl/xodist.git

Put the two files on a USB drive, e.g. file.img and file.crc

On the XO-1, get to the Ok prompt in the firmware, then

        ok copy-nand u:\file.img

Also at the ok prompt you can explore the filesystem

        ok dir nand:\
        ok dir nand:\boot\

--
James Cameron
http://quozl.netrek.org/
_______________________________________________
Devel mailing list
[hidden email]
http://lists.laptop.org/listinfo/devel