How do i test my jffs2 images?
James Cameron
quozl at laptop.org
Tue Jul 25 20:02:38 EDT 2017
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/
More information about the Devel
mailing list