CC := $(CROSS)gcc
-ALL_FILES=libubi.a io_update
+ALL_FILES=libubi io_update
ALL_FILES+=io_paral io_read io_basic mkvol_basic mkvol_bad mkvol_paral rsvol
ALL_FILES+=integ
all: $(ALL_FILES)
-libubi.a: ../src/libubi.c ../inc/libubi.h ../src/libubi_int.h
+libubi: ../src/libubi.c ../inc/libubi.h ../src/libubi_int.h
$(CC) $(CFLAGS) -c ../src/libubi.c -o libubi.o
ar cr libubi.a libubi.o
"cannot open /dev/ubi0_0".
One possible solution of this problem is to pre-create UBI device and volume
-nodes. there is even a script which may be used for this in ubi-utils/scripts/.
+nodes. There is even a script which may be used for this in ubi-utils/scripts/.
But this is not enough because udev will still remove and re-create the nodes
and tests will still fail. So you need to stop removing device nodes using
the following udev rule:
+++ /dev/null
-#!/usr/bin/perl -w
-
-sub usage;
-
-my @tests = ("mkvol_basic", "mkvol_bad", "mkvol_paral", "rsvol",
- "io_basic", "io_read", "io_update", "io_paral");
-
-if (not defined @ARGV) {
- usage();
- exit;
-}
-
-foreach (@ARGV) {
- -c or die "Error: $_ is not character device\n";
-}
-
-my $dev;
-foreach $dev (@ARGV) {
- foreach (@tests) {
- print "Running: $_ $dev";
- system "./$_ $dev" and die;
- print "\tSUCCESS\n";
- }
-}
-
-sub usage
-{
- print "Usage:\n";
- print "$0 <UBI device 1> <UBI device 2> ...\n";
-}