搜索
bottom↓
回复: 0

请讲解一下 实验十 linux-2.6.35内核移植—yaffs2文件系统的支持

[复制链接]

出0入0汤圆

发表于 2011-5-10 20:57:00 | 显示全部楼层 |阅读模式
-----------------------------------------------这个试验我是按照这个手册做的,
uboot 2010.03
yaffs2                     这里下载的 http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/yaffs2.tar.gz?view=tar
请问问题出在哪里怎么解决



实验十 linux-2.6.35内核移植—yaffs2文件系统的支持
【实验目的】
        yaffs2文件系统是嵌入式系统中常用到的一种文件系统,并且在主要用在nand flash上,
这里我们在内核里添加yaffs2的支持
【实验环境】
Ubuntu 10.10发行版
u-boot-2010.03
FS2410平台
交叉编译器 arm-none-linux-gnueabi-gcc-4.3.2
【实验步骤】
        源码下载
        $ wget http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/yaffs2.tar.gz
解压源码到内核的fs目录下
        $ cp yaffs2.tar.gz   linux-2.6.35/fs
        $ cd  linux-2.6.35/fs
        $ tar xvf yaffs2.tar.gz
安装补丁
        cd yaffs2
        $ ./patch-ker.sh  c   linux-2.6.35(这里是内核源码路径)
修改makefile
        $ cp Makefile.kernel  Makefile
配置内核
        $ make menuconfig
File systems  --->
           
  • Miscellaneous filesystems  --->
                            <*>   YAFFS2 file system support
                             -*-     512 byte / page devices
                            -*-     2048 byte (or larger) / page devices
                           
  •        Autoselect yaffs2        format
                           
  •                 Cache short        names in RAM
    重新编译内核
            $ make zImage
            拷贝内核到开发板上
            $ cp arch/arm/boot/zImage /tftpboot
    重新启动开发板
    # cat /proc/filesystems
    nodev        sysfs
    nodev        rootfs
    nodev        bdev
    nodev        proc
    nodev        tmpfs
    nodev        sockfs
    nodev        usbfs
    nodev        pipefs
    nodev        anon_inodefs
    nodev        rpc_pipefs
    nodev        devpts
                     ext3
                    ext2
                    cramfs
    nodev        ramfs
                     vfat
                    msdos
                    iso9660
    nodev        nfs
    nodev        jffs2
                    romfs
                    yaffs
                    yaffs2
    nodev        mtd_inodefs








    -----------------------------------------------------------------------------------------结果杯具啦~\(≧▽≦)/~啦啦啦

    js@jas:/opt/kernel/5linux-2.6.35.9$ make zImage
      CHK     include/linux/version.h
      CHK     include/generated/utsrelease.h
    make[1]: `include/generated/mach-types.h' is up to date.
      CALL    scripts/checksyscalls.sh
      CHK     include/generated/compile.h
      CC      fs/yaffs2/yaffs_fs.o
    fs/yaffs2/yaffs_fs.c:234: error: unknown field 'prepare_write' specified in initializer
    fs/yaffs2/yaffs_fs.c:234: warning: initialization from incompatible pointer type
    fs/yaffs2/yaffs_fs.c:235: error: unknown field 'commit_write' specified in initializer
    fs/yaffs2/yaffs_fs.c:235: warning: initialization from incompatible pointer type
    fs/yaffs2/yaffs_fs.c:246: warning: initialization from incompatible pointer type
    fs/yaffs2/yaffs_fs.c:304: warning: initialization from incompatible pointer type
    fs/yaffs2/yaffs_fs.c: In function 'yaffs_mknod':
    fs/yaffs2/yaffs_fs.c:1062: error: 'struct task_struct' has no member named 'fsuid'
    fs/yaffs2/yaffs_fs.c:1063: error: 'struct task_struct' has no member named 'fsgid'
    fs/yaffs2/yaffs_fs.c: In function 'yaffs_symlink':
    fs/yaffs2/yaffs_fs.c:1242: error: 'struct task_struct' has no member named 'fsuid'
    fs/yaffs2/yaffs_fs.c:1243: error: 'struct task_struct' has no member named 'fsgid'
    fs/yaffs2/yaffs_fs.c: In function 'yaffs_internal_read_super':
    fs/yaffs2/yaffs_fs.c:1781: warning: format '%d' expects type 'int', but argument 2 has type 'uint64_t'
    make[2]: *** [fs/yaffs2/yaffs_fs.o] Error 1
    make[1]: *** [fs/yaffs2] Error 2
    make: *** [fs] Error 2
    js@jas:/opt/kernel/5linux-2.6.35.9$ ci fs/yaffs2/
  • 阿莫论坛20周年了!感谢大家的支持与爱护!!

    一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。
    回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

    GMT+8, 2024-5-20 18:15

    © Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

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