FSL_TICS_Rita 发表于 2014-8-20 16:39 
楼主你好,请问你的问题解决了吗?
rita,我现在是可以用命令去把uboot,kenerl,rootfs写到sata盘里边,boot都是可以了,但是我自己修改了mfg tool里边的ucl,.xml下载在jump的时候就出错了。
<LIST name="Sabre-SD" desc="Choose SD as media">
<CMD state="BootStrap" type="boot" body="BootStrap" file ="u-boot-mx6q-sabresd.bin" >Loading U-boot</CMD>
<CMD state="BootStrap" type="load" file="uImage" address="0x10800000"
loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Kernel.</CMD>
<CMD state="BootStrap" type="load" file="initramfs.cpio.gz.uboot" address="0x10C00000"
loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Initramfs.</CMD>
<CMD state="BootStrap" type="jump" > Jumping to OS image. </CMD>
<!-- -->
<CMD state="Updater" type="push" body="mknod block,sda,/dev/sda,block"/>
<CMD state="Updater" type="push" body="send" file="mksdcard.sh.tar">Sending partition shell</CMD>
<CMD state="Updater" type="push" body="$ tar xf $FILE "> Partitioning...</CMD>
<CMD state="Updater" type="push" body="$ sh mksdcard.sh /dev/sda"> Partitioning...</CMD>
<CMD state="Updater" type="push" body="mknod block/sda,sda1,/dev/sda1,block"/>
<CMD state="Updater" type="push" body="send" file="files/u-boot-mx6q-sabresd.bin">Sending u-boot.bin</CMD>
<CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/sda bs=1k seek=1 skip=1 conv=fsync">write u-boot.bin to sd card</CMD>
<CMD state="Updater" type="push" body="send" file="files/uImage">Sending kernel uImage</CMD>
<CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/sda bs=1M seek=1 conv=fsync">write kernel image to sd card</CMD>
<CMD state="Updater" type="push" body="$ mkfs.ext3 -j /dev/sda1">Formatting rootfs partition</CMD>
<CMD state="Updater" type="push" body="$ mkdir -p /mnt/sda1"/>
<CMD state="Updater" type="push" body="$ mount -t ext3 /dev/sda1 /mnt/sda1"/>
<CMD state="Updater" type="push" body="pipe tar -jxv -C /mnt/sda1" file="files/rootfs.tar.bz2">Sending and writting rootfs</CMD>
<CMD state="Updater" type="push" body="frf">Finishing rootfs write</CMD>
<CMD state="Updater" type="push" body="$ umount /mnt/sda1">Unmounting rootfs partition</CMD>
<CMD state="Updater" type="push" body="$ echo Update Complete!">Done</CMD>
</LIST>
|