2009-09-08 02:21:29 trying to use NAND flash on custom board as USB mass storage
Konstantin Utkin (RUSSIAN FEDERATION)
Message: 79664
current uClinux release: R1.1-RC3 ; custom board with BF532 and ISP1761 as USB controller, yaffs2 on nand (/dev/mtdblock2).
---
In documentation we can see good "how-to" intructions:
docs.blackfin.uclinux.org/doku.php?id=linux-kernel:usb-gadget:file-backed_storage&s[]=usb&s[]=gadget
But on step " root:/mnt> mount -t vfat -o sync /mnt/vfat.bin /mnt/vfat_dir/ " I've got an error message "cannot setup loop device". By debugging I've found place in sources, where this error happens:
(in /user/busybox/libbb/loop.c )
/* Ran out of block devices, return failure. */
if (stat(try, &statbuf) || !S_ISBLK(statbuf.st_mode)) {
rc=-ENOENT;
break;
}
What does it mean? What kind of block device it needs?
QuoteReplyEditDelete
2009-09-08 10:00:20 Re: trying to use NAND flash on custom board as USB mass storage
Mike Frysinger (UNITED STATES)
Message: 79680
just like the error says, it couldnt find any loop devices. did you disable the loopback driver ?
QuoteReplyEditDelete
2009-09-09 00:24:36 Re: trying to use NAND flash on custom board as USB mass storage
Konstantin Utkin (RUSSIAN FEDERATION)
Message: 79688
Oh, thanks! You're right. I was just looking wrong way