天嵌 ARM开发社区

 找回密码
 注册
查看: 3112|回复: 0

MfgTool烧写镜像至SD卡失败

[复制链接]
zyp568 发表于 2019-2-1 06:26:47 | 显示全部楼层 |阅读模式
烧写EMMC是成功的,烧写SD则失败,
配置:
  1. <LIST name="MAX6Q-SDCard-Android" desc="Choose SD Card as media">
  2.         <CMD state="BootStrap" type="boot" body="BootStrap" file ="firmware/u-boot.imx" ifdev="MX6Q">Loading U-boot</CMD>
  3.         <CMD state="BootStrap" type="load" file="firmware/zImage_mfgtool" address="0x12000000"
  4.                 loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6Q MX6D">Loading Kernel.</CMD>
  5.         <CMD state="BootStrap" type="load" file="firmware/zImage_mfgtool" address="0x80800000"
  6.                 loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6SL MX6SX MX7D MX6UL">Loading Kernel.</CMD>
  7.         <CMD state="BootStrap" type="load" file="firmware/fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.gz.u-boot" address="0x12C00000"
  8.                 loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6Q MX6D">Loading Initramfs.</CMD>
  9.         <CMD state="BootStrap" type="load" file="firmware/imx6q-sabresd.dtb" address="0x18000000"
  10.                 loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" ifdev="MX6Q">Loading device tree.</CMD>
  11.         <CMD state="BootStrap" type="jump" > Jumping to OS image. </CMD>

  12.           <!-- create partition -->
  13.         <CMD state="Updater" type="push" body="send" file="mksdcard-android.sh.tar">Sending partition shell</CMD>
  14.         <CMD state="Updater" type="push" body="$ tar xf $FILE "> Partitioning...</CMD>
  15.         <CMD state="Updater" type="push" body="$ sh mksdcard-android.sh /dev/mmcblk2"> Partitioning...</CMD>
  16.        
  17.         <!-- burn uboot -->
  18.         <CMD state="Updater" type="push" body="send" file="files/android/u-boot.imx">Sending u-boot.bin</CMD>
  19.         <CMD state="Updater" type="push" body="$ dd if=/dev/zero of=/dev/mmcblk%mmc% bs=1k seek=384 conv=fsync count=129">clear u-boot arg</CMD>
  20.         <CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk%mmc% bs=1k seek=1 conv=fsync">write u-boot.bin to sd card</CMD>

  21.         <CMD state="Updater" type="push" body="$ ls -l /dev/mmc* ">Formatting sd partition</CMD>

  22.         <CMD state="Updater" type="push" body="send" file="files/android/boot.img">Sending and writting boot.img</CMD>
  23.         <CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk%mmc%p1">write boot.img</CMD>


  24.         <CMD state="Updater" type="push" body="$ mkfs.ext4 /dev/mmcblk%mmc%p5">Formatting system partition</CMD>
  25.         <CMD state="Updater" type="push" body="$ mkfs.ext4 /dev/mmcblk%mmc%p6">Formatting cache partition</CMD>

  26.         <CMD state="Updater" type="push" body="$ mkfs.ext4 /dev/mmcblk%mmc%p7">Formatting device partition</CMD>
  27.         <CMD state="Updater" type="push" body="$ mount -o remount,size=600M rootfs /">change size of tmpfs</CMD>
  28.         <CMD state="Updater" type="push" body="send" file="files/android/system.img">Sending system.img</CMD>
  29.         <CMD state="Updater" type="push" body="$ simg2img $FILE /dev/mmcblk%mmc%p5">writting sparse system.img</CMD>
  30.         <!-- Write userdata.img is optional, for some customer this is needed, but it's optional. -->
  31.         <!-- Also, userdata.img will have android unit test, you can use this to do some auto test. -->
  32.         <!--        <CMD state="Updater" type="push" onError="ignore" body="pipe dd of=/dev/mmcblk0p7" file="file/android/userdate.img"> Sending userdata.img(optional) </CMD>
  33.         <CMD state="Updater" type="push" body="frf">flush the memory.</CMD>  -->
  34.         <CMD state="Updater" type="push" body="pipe dd of=/dev/mmcblk%mmc%p2 bs=512" file="files/android/recovery.img">Sending and writting recovery.img</CMD>
  35.         <CMD state="Updater" type="push" body="$ sync">Sync file system</CMD>
  36.         <CMD state="Updater" type="push" body="frf">Finishing rootfs write</CMD>

  37.         <CMD state="Updater" type="push" body="$ echo Update Complete!">Done</CMD>
  38. </LIST>
复制代码
LOG:
  1. DLL version: 2.6.2
  2. ...
  3. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is send
  4. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ tar xf $FILE
  5. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ sh mksdcard-android.sh /dev/mmcblk2
  6. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is send
  7. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ dd if=/dev/zero of=/dev/mmcblk2 bs=1k seek=384 conv=fsync count=129
  8. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ dd if=$FILE of=/dev/mmcblk2 bs=1k seek=1 conv=fsync
  9. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ ls -l /dev/mmc*
  10. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is send
  11. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ dd if=$FILE of=/dev/mmcblk2p1
  12. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ mkfs.ext4 /dev/mmcblk2p5
  13. ModuleID[2] LevelID[1]: PortMgrDlg(0)--MSCDevice--Command Push(no file) excute failed
  14. ModuleID[2] LevelID[10]: CmdOperation[0], current command executed failed, so SetEvent(hDevCanDeleteEvent)
  15. ModuleID[2] LevelID[10]: ExecuteCommand--Push[WndIndex:0], Body is $ mkfs.ext4 /dev/mmcblk2p5
  16. ModuleID[2] LevelID[1]: PortMgrDlg(0)--MSCDevice--Command Push(no file) excute failed
  17. ModuleID[2] LevelID[10]: CmdOperation[0], current command executed failed, so SetEvent(hDevCanDeleteEvent)
  18. ModuleID[2] LevelID[10]: CCmdOpreation[0] thread is Closed
  19. ModuleID[2] LevelID[10]: CCmdOpreation[0] thread is Closed
  20. ModuleID[2] LevelID[10]: DeviceManager::OnMsgDeviceEvent() - EVENT_KILL
  21. ModuleID[2] LevelID[10]: CMyExceptionHandler::OnMsgExceptionEvent() - KillExceptionHandlerThread
  22. ModuleID[2] LevelID[10]: Exception Handler thread is closed
  23. ModuleID[2] LevelID[1]: delete MxHidDeviceClass
  24. ModuleID[2] LevelID[10]: Device Manager thread is closed
复制代码
应该是 mkfs.ext4 /dev/mmcblk2p5 出错了,请教原因?


您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-24 22:26 , Processed in 1.031250 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表