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.

文件系统分区

Other Parts Discussed in Thread: AM3354

TI 大神们

       TI AM3354 用的1G NANDFLASH, 内核3.14.28  

    现在MLO, UBOOT, zImage, dtb, ubi五个镜像,想把UBI分成BASICFS, LIB, APP三个镜像来烧写,且文件系统用YAFFS或者RAMDISK等不带CACHE的文件系统,请问有相应文档可供操作吗?谢谢

  • http://processors.wiki.ti.com/index.php/Creating_a_RAMDISK?keyMatch=ramdisk&tisearch=Search-EN-Everything

    http://processors.wiki.ti.com/index.php/UBIFS_Support?keyMatch=ubifs&tisearch=Search-EN

    http://processors.wiki.ti.com/index.php/Create_a_YAFFS_Target_Image?keyMatch=yaffs&tisearch=Search-EN-Everything

    其他的可以在公网上搜一下,都是通用的

  • Yang

    Uboot参数如下

    ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
    ramboot=echo Booting from ramdisk ...; run ramargs;nand read ${fdtaddr} NAND.u-boot-spl-os; nand read ${loadaddr} NAND.kernel; bootz ${loadaddr} ${rdaddr} ${fdtaddr}
    ramdisk_addr_r=0x88080000
    ramroot=/dev/ram0 rw
    ramrootfstype=ext2
    rdaddr=0x88080000    

    制作RAMDISK如下

        genext2fs -b 204800 -d rootfs/ ramdisk
        gzip -9 ramdisk

        mkimage -A arm -O linux -T ramdisk -C gzip -a 0x88080000 -e 0x88080000 -n 'uboot ext2 ramdisk rootfs' -d ramdisk.gz ramdisk.img

    烧写后

    Booting from ramdisk ...

    NAND read: device 0 offset 0x80000, size 0x40000
     262144 bytes read: OK

    NAND read: device 0 offset 0x200000, size 0x800000
     8388608 bytes read: OK
    Kernel image @ 0x82000000 [ 0x000000 - 0x4128a0 ]
    Wrong Ramdisk Image Format
    Ramdisk image is corrupt or invalid

    请指导下,谢谢