+ -
当前位置:首页 → 问答吧 → 【求助】jffs2如何移植

【求助】jffs2如何移植

时间:2006-01-25

来源:互联网

各位大虾:
      我在linux2.4 使用CRAMFS成功,现移植JFFS2出现问题.config是这样设置的:

   #############################################
Linux Kernel v2.4.18-rmk7-pxa1 Configuration

Linux Kernel v2.4.18-rmk7-pxa1 Configuration
------------------------------------------------------------------------------
  +-------------------- 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  --->                             | |
        | +---------------------------------------------------------------------+ |
        +------------------------
        | +---------v(+)--------------------------------------------------------+ |
        +-------------------------------------------------------------------------+
        |                    <Select>    < Exit >    < Help >                     |
        +---------------------------------------------------


      Linux Kernel v2.4.18-rmk7-pxa1 Configuration
      ------------------------------------------------------------------------------
        +---------------------- 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 >                     |
        +-------------------------------------------------------------------------+




      Linux Kernel v2.4.18-rmk7-pxa1 Configuration
      ------------------------------------------------------------------------------
        +-------------------- 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 in physical memory map                 | |
        | |       (100000)     Physical start address of flash mapping          | |
        | |       (100000)     Physical length of flash mapping                 | |
        | |       (2)     Bus width in octets                                   | |
        | |       <*>   CFI Flash device mapped on S3C2410                      | |
        | |                                                                     | |
        | |                                                                     | |
        | |                                                                     | |
        | |                                                                     | |
        | |                                                                     | |
        | |                                                                     | |
        | +---------------------------------------------------------------------+ |
        +-------------------------------------------------------------------------+
        |                    <Select>    < Exit >    < Help >                     |
        +-------------------------------------------------------------------------+



      Linux Kernel v2.4.18-rmk7-pxa1 Configuration
      ------------------------------------------------------------------------------
        +----------------------------- 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                                      | |
        | |  
    • /dev file system support (EXPERIMENTAL)                        | |
        | |  
    •    Automatically mount at boot                                  | |
        | |  [ ]   Debug devfs                                                  | |
        | |  
    • /dev/pts file system for Unix98 PTYs                           | |
        | |  < > QNX4 file system support (read only) (EXPERIMENTAL)            | |
        | |  < > ROM file system support                                        | |
        | |  <*> Second extended fs support
        |  [ ]   Debug devfs                                                  | |
        | |  
    • /dev/pts file system for Unix98 PTYs                           | |
        | |  < > QNX4 file system support (read only) (EXPERIMENTAL)            | |
        | |  < > ROM file system support                                        | |
        | |  <*> Second extended fs support                                     | |
        | |  < > 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 >                     |
        +-------------------------------------------------------------------------+

      输出信息:
         

      VIVI version 0.1.4 ([email protected]) (gcc version 2.95.3 20010315 (release)) #0.1.4 涓?1??9 17:34:12 HKT 2006
      Evacuating 1MB of Flash to DRAM at 0x33F00000
      MMU table base address = 0x33DFC000
      Map flash virtual section to DRAM at 0x33F00000
      Succeed memory mapping.
      S3C2410 flash: probing 16-bit flash bus
      S3C2410 Nor flash: Probing for AMD compatible flash...
      S3C2410 Nor flash: unknown flash device at 0x0, mfr id 0xb, dev id 0xea00
      S3C2410 Nor flash: Found no AMD compatible device at location zero
      Could not found stored vivi parameters. Use default vivi parameters.
      Press Return to start the LINUX now, any other key for vivi
      Copy linux kernel from 0x00020000 to 0x30008000, size = 0x000e0000 ... done
      zImage magic = 0x016f2818
      Setup linux parameters at 0x30000100
      linux command line is: "noinitrd root=/dev/mtdblock/3 init=/linuxrc console=tty0 console=ttyS0"
      MACH_TYPE = 193
      NOW, Booting Linux......
      Uncompressing Linux.............................................................. done, booting the kernel.
      Linux version 2.4.18-rmk7-pxa1 ([email protected]) (gcc version 2.95.3 20010315 (release)) #2 浜?1??10 14:40:29 HKT 2006
      CPU: ARM/CIRRUS Arm920Tsid(wb) revision 0
      Machine: Embest EduKit II (S3C2410x)
      On node 0 totalpages: 16384
      zone(0): 16384 pages.
      zone(1): 0 pages.
      zone(2): 0 pages.
      Kernel command line: noinitrd root=/dev/mtdblock/3 init=/linuxrc console=tty0 console=ttyS0
      DEBUG: timer count 15626
      Console: colour dummy device 80x30
      Calibrating delay loop... 99.94 BogoMIPS
      Memory: 64MB = 64MB total
      Memory: 62388KB available (1680K code, 321K data, 76K init)
      Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
      Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
      Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
      Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
      Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
      POSIX conformance testing by UNIFIX
      Linux NET4.0 for Linux 2.4
      Based upon Swansea University Computer Society NET3.039
      Initializing RT netlink socket
      CPU clock = 200.000 Mhz, HCLK = 100.000 Mhz, PCLK = 50.000 Mhz
      Initializing S3C2410 buffer pool for DMA workaround
      Starting kswapd
      Journalled Block Device driver loaded
      devfs: v1.10 (20020120) Richard Gooch ([email protected])
      devfs: boot_options: 0x1
      JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
      ttyS%d0 at I/O 0x50000000 (irq = 52) is a S3C2410
      ttyS%d1 at I/O 0x50004000 (irq = 55) is a S3C2410
      ttyS%d2 at I/O 0x50008000 (irq = 58) is a S3C2410
      Console: switching to colour frame buffer device 40x30
      Installed S3C2410 frame buffer
      pty: 256 Unix98 ptys configured
      s3c2410-ts initialized
      S3C2410 Real Time Clock Driver v0.1
      block: 128 slots per queue, batch=32
      eth0: cs8900 rev K(3.3 Volts) found at 0xd0000300
      cs89x0 media RJ-45, IRQ 37
      loop: loaded (max 8 devices)
      SCSI subsystem driver Revision: 1.00
      request_module[scsi_hostadapter]: Root fs not mounted
      physmap flash device: 100000 at 100000
      Amd/Fujitsu Extended Query Table v1.0 at 0x0040
      number of CFI chips: 1
      cfi_cmdset_0002: Disabling fast programming due to code brokenness.
      mtd: Giving out device 0 to Physically mapped flash
      s3c2410 flash device: 4000KB at 0
      Search for id01 2249) interleave(1) type(2)
      Found: AMD AM29LV160DB
      s3c2410 flash device: Found 1 x16 devices at 0x0 in 16-bit mode
      number of JEDEC chips: 1
      Creating 4 MTD partitions on "s3c2410 flash device":
      0x00000000-0x00010000 : "reserved for bootloader"
      mtd: Giving out device 1 to reserved for bootloader
      0x00010000-0x00020000 : "reserved for param"
      mtd: Giving out device 2 to reserved for param
      0x00020000-0x00100000 : "reserved for kernel"
      mtd: Giving out device 3 to reserved for kernel
      0x00100000-0x00200000 : "file system"
      mtd: Giving out device 4 to file system
      NAND device: Manufacture ID: 0xec, Chip ID: 0x75 (Samsung KM29U256T)
      NAND device: Manufacture ID: 0xec, Chip ID: 0x75
      mtd: Giving out device 5 to Samsung KM29U256T
      nand_read_oob: from = 0x01ffc000, len = 8
      nand_read: from = 0x01ffc000, len = 512
      bon:cannot find partition table
      usb.c: registered new driver usbdevfs
      usb.c: registered new driver hub
      usb-ohci.c: USB OHCI at membase 0xe9000000, IRQ 26
      usb.c: new USB bus registered, assigned bus number 1
      hub.c: USB hub found
      hub.c: 2 ports detected
      usb.c: registered new driver usb_mouse
      usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
      usb.c: registered new driver keyboard
      usbkbd.c: :USB HID Boot Protocol keyboard driver
      Initializing USB Mass Storage driver...
      usb.c: registered new driver usb-storage
      USB Mass Storage support registered.
      mice: PS/2 mouse device common for all mice
      NET4: Linux TCP/IP 1.0 for NET4.0
      IP Protocols: ICMP, UDP, TCP, IGMP
      IP: routing cache hash table of 512 buckets, 4Kbytes
      TCP: Hash tables configured (established 4096 bind 4096)
      NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
      NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
      mtdblock_open
      ok
      mtdblock_open
      mtdblock: read on "reserved for kernel" at 0x400, size 0x400
      mtdblock_release
      ok
      mtdblock_open
      mtdblock_release
      ok
      mtdblock_open
      mtdblock: read on "reserved for kernel" at 0x0, size 0x1000
      mtdblock: read on "reserved for kernel" at 0x1000, size 0x1000
      mtdblock: read on "reserved for kernel" at 0x2000, size 0x1000
      mtdblock: read on "reserved for kernel" at 0x3000, size 0x1000
      cramfs: wrong magic
      mtdblock_release
      ok
      mtdblock_open
      mtdblock: read on "reserved for kernel" at 0x0, size 0x200
      FAT: bogus logical sector size 225
      mtdblock_release
      ok
      mtdblock_open
      mtdblock_release
      ok
      Kernel panic: VFS: Unable to mount root fs on 1f:03

      不知道为什么?      
  • 作者: gaoghp   发布时间: 2006-01-25

    各位大虾有没有jffs2源码下栽,上面jffs2是用ARM7系统用的,直接拿过来下载.      

    作者: gaoghp   发布时间: 2006-01-25

    采用ARM9 2410      

    作者: gaoghp   发布时间: 2006-01-25

    热门下载

    更多