mknod /dev/mtd$a c 90 `expr $a + $a`
mknod /dev/mtdr$a c 90 `expr $a + $a + 1`
mknod /dev/mtdblock$a b 31 $a
-done
+done
#include <crc32.h>
#define ERASE_SIZE 131072
-//#define PKT_SIZE 1400
#define NR_PKTS ((ERASE_SIZE + PKT_SIZE - 1) / PKT_SIZE)
#define DROPS 8
fd = open("after", O_WRONLY|O_TRUNC|O_CREAT, 0644);
if (fd >= 0)
write(fd, pktbuf, ERASE_SIZE);
-
+
exit(1);
}
if [ "$module" = "nandsim" ]; then
printf "%s" "page size ${page_size}KiB, VID offset $vid_offs, "
fi
- printf "%s\n" "fastmap $fastmap"
+ printf "%s\n" "fastmap $fastmap"
}
# Load mtdram with specified size and PEB size
# Usage: load_mtdram <flash size> <PEB size>
-# 1. Flash size is specified in MiB
+# 1. Flash size is specified in MiB
# 2. PEB size is specified in KiB
load_mtdram()
{
# Usage: run_test <nandsim|mtdram> <flash size> <PEB size> \
# <Page size> <VID hdr offs> <enable fastmap>
# 1. Simulator type (nandsim or mtdram)
-# 2. Flash size is specified in MiB
+# 2. Flash size is specified in MiB
# 3. PEB size is specified in KiB
# 4. Page size is specified in bytes (mtdram ingores this)
# 5. VID header offset (mtdram ingores this)
local peb_size="$3";
local page_size="$4";
local vid_offs="$5"
- local fastmap="$6";
+ local fastmap="$6";
local fm_supported fm_param mtdnum
print_separator
req->dev_num = r.ubi_num;
/*
* The call succeeded. It means that the kernel ignored
- * 'max_beb_per1024' parameter.
+ * 'max_beb_per1024' parameter.
*/
return 1;
} else if (errno != EINVAL)