TI的技术大牛好。
第一步:
Partitioning eMMC from U-Boot
The eMMC device typically ships without any partition table. We make use of the GPT support in U-Boot to write a GPT partition table to eMMC. In this case we need to use the uuidgen program on the host to create the UUIDs used for the disk and each partition.$ uuidgen
…first uuid…
$ uuidgen
…second uuid…
U-Boot # printenv partitions
uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}
U-Boot # setenv uuid_gpt_disk …first uuid…
U-Boot # setenv uuid_gpt_rootfs …second uuid…
U-Boot # gpt write mmc 1 ${partitions}
第二步:
U-Boot # mmc dev 0
U-Boot # mmc rescan
U-Boot # mmc dev 1
U-Boot # fatload mmc 0 ${loadaddr} MLO
U-Boot # mmc write ${loadaddr} 0x100 0x100
U-Boot # mmc write ${loadaddr} 0x200 0x100
U-Boot # fatload mmc 0 ${loadaddr} u-boot.img
U-Boot # mmc write ${loadaddr} 0x300 0x400
U-Boot # fatload mmc 0 ${loadaddr} rootfs.ext4
U-Boot # mmc write ${loadaddr} 0x1000 ...rootfs.ext4 size in bytes divided by 512, in hex...
问题:上面的rootfs.ext4制作,如何将sdk中自带的文件系统直接制作成rootfs.ext4,我试了很久都没有成功,求解答,谢谢
Chris Meng:
Ding Honghong,
请问你使用的是SD卡么?如果是,你是否有尝试过sdk里面带的制作sd卡的脚本?
http://processors.wiki.ti.com/index.php/Processor_SDK_Linux_create_SD_card_script#SD_Card_Using_Default_Images
TI中文支持网