chuxuezhe 发表于 2006-11-19 17:14:28

请教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

jiangtao9999 发表于 2006-11-19 21:01:16

你的编译器有问题?

chuxuezhe 发表于 2006-11-20 17:04:12

不好意思   我自己添加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
不清楚是怎么回事?希望您能给指点一下   非常感谢!

chuxuezhe 发表于 2006-11-20 18:01:06

+-------------------- Memory Technology Devices (MTD) --------------------+
难道是我内核配置的问题?以下是我的内核配置选项
|Arrow keys navigate the menu.<Enter> selects submenus --->.          |
|Highlighted letters are hotkeys.Pressing <Y> includes, <N> excludes, |
|<M> modularizes features.Press <Esc><Esc> to exit, <?> for Help.   |
|Legend: [*] built-in[ ] excluded<M> module< > module capable   |
| +---------------------------------------------------------------------+ |
| |         <*> Memory Technology Device (MTD) support                  | |
| |         [*] Debugging                                             | |
| |         (3)   Debugging verbosity (0 = quiet, 3 = noisy)            | |
| |         <*>   MTD partitioning support                              | |
| |         < >   MTD concatenating support                           | |
| |         < >   RedBoot partition table parsing                     | |
| |         < >   Command line partition table parsing                  | |
| |         < >   ARM Firmware Suite partition parsing                  | |
| |         --- User Modules And Translation Layers                     | |
| |         <*>   Direct char device access to MTD devices            | |
| |         <*>   Caching block device access to MTD devices            | |
|         < >   FTL (Flash Translation Layer) support               | |
| |         < >   NFTL (NAND Flash Translation Layer) support         | |
| |         RAM/ROM/Flash chip drivers--->                            | |
| |         Mapping drivers for chip access--->                     | |
| |         Self-contained MTD device drivers--->                     | |
| |         NAND Flash Device Drivers--->                           | |
| +---------------------------------------------------------------------+ |
+---------------------- RAM/ROM/Flash chip drivers -----------------------+
|Arrow keys navigate the menu.<Enter> selects submenus --->.          |
|Highlighted letters are hotkeys.Pressing <Y> includes, <N> excludes, |
|<M> modularizes features.Press <Esc><Esc> to exit, <?> for Help.   |
|Legend: [*] built-in[ ] excluded<M> module< > module capable   |
| +---------------------------------------------------------------------+ |
| |<*>   Detect flash chips by Common Flash Interface (CFI) probe       | |
| |<*>   Detect JEDEC JESD21c compatible flash chips                  | |
| |[ ]   Flash chip driver advanced configuration options               | |
| |< >   Support for Intel/Sharp flash chips                            | |
| |< >   Support for AMD/Fujitsu flash chips                            | |
| |< >   Support for RAM chips in bus mapping                           | |
| |< >   Support for ROM chips in bus mapping                           | |
| |< >   Support for absent chips in bus mapping                        | |
| |[ ]   Older (theoretically obsoleted now) drivers for non-CFI chips| |
| |                                                                     | |
| |                                                                     | |
| +---------------------------------------------------------------------+ |
+-------------------------------------------------------------------------+
|                  <Select>    < Exit >    < Help >                     |

+-------------------- Mapping drivers for chip access --------------------+
|Arrow keys navigate the menu.<Enter> selects submenus --->.          |
|Highlighted letters are hotkeys.Pressing <Y> includes, <N> excludes, |
|<M> modularizes features.Press <Esc><Esc> to exit, <?> for Help.   |
|Legend: [*] built-in[ ] excluded<M> module< > module capable   |
| +---------------------------------------------------------------------+ |
    | |       <*>   CFI Flash device mapped on S3C4510B                     | |
+----------------------------- File systems ------------------------------+
|Arrow keys navigate the menu.<Enter> selects submenus --->.          |
|Highlighted letters are hotkeys.Pressing <Y> includes, <N> excludes, |
|<M> modularizes features.Press <Esc><Esc> to exit, <?> for Help.   |
|Legend: [*] built-in[ ] excluded<M> module< > module capable   |
| +---------------------------------------------------------------------+ |
| |[ ] Quota support                                                | |
| |< > Kernel automounter support                                     | |
| |< > Kernel automounter version 4 support (also supports v3)      | |
| |< > Reiserfs support                                             | |
| |< > ADFS file system support                                       | |
| |< > Amiga FFS file system support (EXPERIMENTAL)                   | |
| |< > Apple Macintosh file system support (EXPERIMENTAL)             | |
| |< > BFS file system support (EXPERIMENTAL)                         | |
| |<*> Ext3 journalling file system support (EXPERIMENTAL)            | |
| |[ ]   JBD (ext3) debugging support                                 | |
| |< > DOS FAT fs support                                             | |
|< >   MSDOS fs support                                             | |
| |< >   VFAT (Windows-95) fs support                                 | |
| |< > EFS file system support (read only) (EXPERIMENTAL)             | |
| |< > Journalling Flash File System (JFFS) support                   | |
| |<*> Journalling Flash File System v2 (JFFS2) support               | |
| |(2) JFFS2 debugging verbosity (0 = quiet, 2 = noisy)               | |
| |< > Compressed ROM file system support                           | |
| |[ ] Virtual memory file system support (former shm fs)             | |
| |< > Simple RAM-based file system support                           | |

| |< > ISO 9660 CDROM file system support                           | |
| |< > Minix fs support         
|< > FreeVxFS file system support (VERITAS VxFS(TM) compatible)   | |
| |< > NTFS file system support (read only)                           | |
| |< > OS/2 HPFS file system support                                  | |
| |[*] /proc file system support                                    | |
| |< > ROM file system support                                        | |
| |<*> Second extended fs support
|[ ]   Debug devfs                                                | |
    | |< > System V/Xenix/V7/Coherent file system support               | |
| |< > UDF file system support (read only)                            | |
| |< > UFS file system support (read only)                            | |
| |Network File Systems--->                                       | |
| |Partition Types--->                                              | |
| |Native Language Support--->         
| +--v(+)---------------------------------------------------------------+ |
+-------------------------------------------------------------------------+
|                  <Select>    < Exit >    < Help >                     |
+-------------------------------------------------------------------------+

jiangtao9999 发表于 2006-11-20 22:41:48

还真不太清楚 memcpy_* 这些接口是那些模块提供的。
看样子和存储系统有关系,似乎是内存?

chuxuezhe 发表于 2006-11-21 15:00:30

谢谢版主赐教

天啊      这下可完蛋了       再让我想几个月也想不出来啊

我要写一个字      惨!!!!!!!!!!!!!!!!!!!!

chuxuezhe 发表于 2006-11-21 21:28:05

我自己试着把出错误的那两个函数的名字改成memcpy就没有这个错误了!
不清楚是怎么回事!
但是又出现最开始第一个帖子里出现的那个错误了!郁闷死了!
没有人遇到这样类似的问题么?   希望哪位大侠能共享一下这方面的经验!
页: [1]
查看完整版本: 请教JFFS2文件系统的移植问题