TI中文支持网
TI专业的中文技术问题搜集分享网站

文件系统分区

TI 大神们

       TI AM3354 用的1G NANDFLASH, 内核3.14.28  

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

Denny%20Yang99373:

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

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

CHAO TANG2:

回复 Denny%20Yang99373:

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=0x88080000ramroot=/dev/ram0 rwramrootfstype=ext2rdaddr=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: OKKernel image @ 0x82000000 [ 0x000000 – 0x4128a0 ]Wrong Ramdisk Image FormatRamdisk image is corrupt or invalid

请指导下,谢谢

赞(0)
未经允许不得转载:TI中文支持网 » 文件系统分区
分享到: 更多 (0)