2 * YAFFS: Yet another FFS. A NAND-flash specific file system.
4 * Copyright (C) 2002 Aleph One Ltd.
5 * for Toby Churchill Ltd and Brightstar Engineering
7 * Created by Charles Manning <charles@aleph1.co.uk>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
25 #include "nor_stress.h"
33 printf("usage root_dir test_id seed \n");
34 printf(" test_id: fw_update fw_update_init\n");
37 int main(int argc, const char *argv[])
41 random_seed = atoi(argv[3]);
45 if(!strcmp(argv[2],"fw_update_init")){
46 NorStressTestInitialise(argv[1]);
48 else if(!strcmp(argv[2],"fw_update")){
49 printf("Running stress on %s with seed %d\n",argv[1],random_seed);
50 NorStressTestRun(argv[1]);