打印

请教JFFS2文件系统的移植问题

请教JFFS2文件系统的移植问题

我接触LINUX的时间不长,最近仿照HOW TO USE MTD/JFFS2 UNDER µClinux制作jffs2文件系统遇到难题,郁闷许久,望哪位好心的高手指点迷津   内核选项配置完以后 make出错 如下:
mkfs.jffs2.elf2flt: In function `create_target_filesystem':
/usr/local/uClinux-dist/user/mtd-utils/mkfs.jffs2.c:999: undefined reference to `__xpg_basename'
/usr/local/uClinux-dist/user/mtd-utils/mkfs.jffs2.c:1010: undefined reference to `__xpg_basename'
collect2: ld returned 1 exit status
make[2]: *** [mkfs.jffs2] Error 1
make[2]: Leaving directory `/usr/local/uClinux-dist/user/mtd-utils'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/uClinux-dist/user'
make: *** [subdirs] Error 1

TOP

不好意思 我自己添加obj-$(CONFIG_MTD_S3C4510B) += s3c4510b.o
的时候把MTD后面的‘_’给写成‘—’了! 我就说我之前自己编译了一个小程序烧进内核里还能运行来着呢! 不过又出现了一个新错误:
drivers/mtd/mtdlink.o: In function `s3c4510b_copy_from':
/usr/local/NewuClinux-wsdist/uClinux-dist/linux-2.4.x/drivers/mtd/maps/s3c4510b.c:41: undefined reference to `memcpy_fromio'
drivers/mtd/mtdlink.o: In function `s3c4510b_copy_to':
/usr/local/NewuClinux-wsdist/uClinux-dist/linux-2.4.x/drivers/mtd/maps/s3c4510b.c:64: undefined reference to `memcpy_toio'
make[1]: *** [linux] Error 1
make[1]: Leaving directory `/usr/local/NewuClinux-wsdist/uClinux-dist/linux-2.4.x'
make: *** [linux] Error 1
不清楚是怎么回事? 希望高手能给指点一下 非常感谢!

TOP