chuxuezhe 发表于 2006-11-19 17:13:18

请教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: *** Error 1
make: Leaving directory `/usr/local/uClinux-dist/user/mtd-utils'
make: *** Error 2
make: Leaving directory `/usr/local/uClinux-dist/user'
make: *** Error 1

chuxuezhe 发表于 2006-11-20 17:06:42

不好意思 我自己添加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: *** Error 1
make: Leaving directory `/usr/local/NewuClinux-wsdist/uClinux-dist/linux-2.4.x'
make: *** Error 1
不清楚是怎么回事? 希望高手能给指点一下 非常感谢!
页: [1]
查看完整版本: 请教JFFS2文件系统的移植问题