天嵌 ARM开发社区

 找回密码
 注册
查看: 2169|回复: 0

Linux2.6.34.2在tq6410上的移植详解(二)

[复制链接]
liushuiyue 发表于 2010-8-14 13:52:07 | 显示全部楼层 |阅读模式
7.添加yaffs文件系统的支持:
1、下载Yaffs2
      http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/
2、解压Yaffs2并将其加入Linux内核(打补丁的方式)
       #cd yaffs2
       #./patch-ker.sh c /linux-2.6.34.2/
3.        修改配置文件,添加对yaffs文件系统的支持(同时也支持cramfs和nfs文件系统)
        File systems --->
Miscellaneous filesystems --->
<*> YAFFS2 file system support
-*- 512 byte / page devices
[ ] Use older-style on-NAND data format with pageStatus byte
[ ] Lets Yaffs do its own ECC
-*- 2048 byte (or larger) / page devices
  • Autoselect yaffs2 format
    [ ] Disable lazy loading
    [ ] Turn off wide tnodes
    [ ] Force chunk erase check
  • Cache short names in RAM
    < > Journalling Flash File System v2 (JFFS2) support
    <*> Compressed ROM file system support (cramfs)
  • Network File Systems --->
    --- Network File Systems
    最后重新编译烧写到开发板,打印信息为:
    NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
    Scanning device for bad blocks
    Bad eraseblock 517 at 0x0000040a0000
    Bad eraseblock 1383 at 0x00000ace0000
    Bad eraseblock 1737 at 0x00000d920000
    Bad eraseblock 1897 at 0x00000ed20000
    Bad eraseblock 1968 at 0x00000f600000
    Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":
    0x000000000000-0x000000040000 : "u-boot"
    0x000000200000-0x000000500000 : "Kernel"
    0x000000500000-0x000010000000 : "Yaffs2"
    mice: PS/2 mouse device common for all mice
    i2c /dev entries driver
    sdhci: Secure Digital Host Controller Interface driver
    sdhci: Copyright(c) Pierre Ossman
    s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133000000 Hz)
    s3c-sdhci s3c-sdhci.0: clock source 1: hsmmc (133000000 Hz)
    s3c-sdhci s3c-sdhci.0: clock source 2: mmc_bus (24000000 Hz)
    mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using PIO
    TCP cubic registered
    VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
    。。。
    yaffs: dev is 32505858 name is "mtdblock2"
    yaffs: passed flags ""
    yaffs: Attempting MTD mount on 31.2, "mtdblock2"
    block 478 is bad
    block 1344 is bad
    block 1698 is bad
    block 1858 is bad
    block 1929 is bad
    yaffs_read_super: isCheckpointed 0
    VFS: Mounted root (yaffs2 filesystem).
    Freeing init memory: 140K
    Warning: unable to open an initial console.
    Kernel panic - not syncing: No init found.  Try passing init= option to kernel.Kernel panic - not syncing:
    Backtrace:
    [<c0025c34>] (dump_backtrace+0x0/0x10c) from [<c023caf4>] (dump_stack+0x18/0x1c)
    r7:c0318350 r6:00008000 r5:c0339cb0 r4:c7c27f40
    [<c023cadc>] (dump_stack+0x0/0x1c) from [<c023cb44>] (panic+0x4c/0xd0)
    [<c023caf8>] (panic+0x0/0xd0) from [<c0008fc0>] (mount_block_root+0x178/0x234)
    r3:00000000 r2:c7c3af2c r1:c7c27f40 r0:c02d5a38
    [<c0008e48>] (mount_block_root+0x0/0x234) from [<c000912c>] (mount_root+0xb0/0xf4)
    [<c000907c>] (mount_root+0x0/0xf4) from [<c0009278>] (prepare_namespace+0x108/0x1c8)
    r7:c001e378 r6:c0339600 r5:c001e378 r4:c001e388
    [<c0009170>] (prepare_namespace+0x0/0x1c8) from [<c00084ec>] (                                        kernel_init+0x118/0x160)
    r7:00000000 r6:c001d8b8 r5:c001db68 r4:c001db68
    [<c00083d4>] (kernel_init+0x0/0x160) from [<c0041c44>] (do_exit+0x0/0x640)
    r7:00000000 r6:00000000 r5:00000000 r4:00000000
    文件系统还没有移植好所以只能到这了只完成了基本功能的制作
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    关闭

    i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

    Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

    GMT+8, 2025-5-2 00:03 , Processed in 2.046091 second(s), 20 queries .

    Powered by Discuz! X3.5 Licensed

    © 2001-2024 Discuz! Team.

    快速回复 返回顶部 返回列表