Am Montag, den 26.03.2007, 10:54 +0800 schrieb Yue Han: > Hi Mr. Li, > I'm using uclinxu-2.4.19 which doesn't has the flash_tools cmd(include > flash_eraseall mkfs.jffs2 .etc). So I made them out of > mtd-snapshot-20040730.tar.bz2. > > Unfortunately, I got the error what I mentioned before. > > In the light of your prompt, I dig into mtdchar.c and > flash_eraseall.c, > I used printk to trace the bug and found it DO jump from mtd_ioctl(). > > I find the function mtd_open() and mtd_ioctl() implemented like this: ... > > So, I pin the problem on the function mtd_ioctl() 's parameter > doesn't match. > But when I check other uclinux-dist who has flash_tools, I saw the > same implement and call method. > > Ohh..I have no clue to fix it again, please give me some hint. > Thank you! >
The ioctcl calls are correct. I think that the problem comes from using different mtd kernel header files when you build flash_eraseall. Using an old kernel like 2.4.19 is rather bad, I think there were a lot of bugs fixed in MTD since. Regards, Erwin _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
