This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ubifs文件系统移植?

Other Parts Discussed in Thread: AM3505, AM3517

 X-Loader 1.51

U-Boot 2010.06

Linux version 2.6.37

CPU:AM3505

以上是我的开发环境,请问怎样修改u-boot,使之支持ubifs?我已经配置了kernel,使之支持ubifs。

  • processors.wiki.ti.com/.../UBIFS_Support

    这个网页没有介绍u-boot支持ubi的移植方法

  • ti-sdk-am3517-evm-05.02.00.00

  • www.360doc.com/.../496343_113206690.shtml 这个你看看吧,其实这个是比较标准的作法

  • 在u-boot/include/configs/am3517_evm.h中加上以下定以后,nand驱动有问题

    #define CONFIG_MTD_DEVICE          1

    #define CONFIG_MTD_PARTITIONS      1

    Hit any key to stop autoboot:  0

    环境变量如下:

    AM3517_EVM # pri

    bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run nandboot; fi; fi; else run nandboot; fi

    bootdelay=1

    baudrate=115200

    bootfile=uImage

    loadaddr=0x82000000

    console=ttyO2,115200n8

    mmcargs=setenv bootargs console=${console} root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait

    nandargs=setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=ubifs

    loadbootscript=fatload mmc 0 ${loadaddr} boot.scr

    bootscript=echo Running bootscript from mmc ...; source ${loadaddr}

    loaduimage=fatload mmc 0 ${loadaddr} uImage

    mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}

    nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000 400000; bootm ${loadaddr}

    mtdparts=nandflash0:0x80000@0x0(x-loader),0x240000@0x80000(u-boot),0x280000@0x240000(u-boot-envl),0x780000@0x280000(kernel),0x3980000@0x78000(ubifs),-(jffs2)

    stdin=serial

    stdout=serial

    stderr=serial

    dieid#=32ea00010000000001608a901200a014

    Environment size: 997/131068 bytes

    打印nand信息,没有任何输出

    AM3517_EVM  # nand info

    AM3517_EVM #

    擦出nand的ubifs分区,提示没有可用的设备

    AM3517_EVM # nand erase ubifs

    no devices available

    AM3517_EVM #

  • nand 的页面,oob等配置了么,你现在要做的就是配置这些