service:winiot:appnotepub:deployimage

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu dieser Vergleichsansicht

Both sides previous revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
service:winiot:appnotepub:deployimage [2020/11/06 10:53]
[Trizeps8mini / Myon2 / SBCSOM (emmc)]
service:winiot:appnotepub:deployimage [2020/11/18 10:51] (aktuell)
[Update Firmware on emmc]
Zeile 59: Zeile 59:
 install image in SDCard: install image in SDCard:
 <​code>​ <​code>​
-dism.exe /​Apply-Image /​ImageFile:"​*.ffu"​ /​ApplyDrive:​\\.\PhysicalDrive{disk_nummber} /​SkipPlatformCheck+dism.exe /​Apply-Image /​ImageFile:"​*.ffu"​ /​ApplyDrive:​\\.\PhysicalDrive{disk_number} /​SkipPlatformCheck
 or: or:
-flashSD.cmd eval_image test {disk_nummber}+flashSD.cmd eval_image test {disk_number}
 </​code>​ </​code>​
 the first boot is very slow and take much time  ​ the first boot is very slow and take much time  ​
  
 +
 +==== Update Firmware on sd ====
 +you can easily insert your sd card into you host pc
 +
 +insert SDCard and get the physical disk number: ​
 +<​code>​
 +powershell Get-WmiObject Win32_DiskDrive
 +</​code>​
 +
 +update the sdcard with  [[http://​www.chrysocome.net/​dd|dd for windows]]
 +<​code>​
 +dd if=firmware.tr8m.bin of=\\.\PhysicalDrive{disk_number} bs=512 seek=66
 +</​code>​
 ===== Trizeps8mini / Myon2 / SBCSOM (emmc) ===== ===== Trizeps8mini / Myon2 / SBCSOM (emmc) =====
  
Zeile 89: Zeile 102:
  
 ==== Update Firmware on emmc ==== ==== Update Firmware on emmc ====
 +boot the device an press ESC to stop the boot process in uboot \\
 +
 +update the firmware with fastboot
 +<​code>​
 +fastboot
 +on host pc with linux:
 +sudo fastboot flash bootloader firmware.tr8m.bin
 +</​code>​
 +
 +copy firmware from emmc user partition to boot partition (the ffu contains the firmware even on emmc images)
 +<​code>​
 +read mmc 0:0 0x40800000 0x42 0x3FBD
 +mmc dev 0 1 
 +or (for boot1 or boot2)
 +mmc dev 0 2
 +mmc write 0x40800000 0x42 0x3FBD
 +</​code>​
 +
 +copy firmware from external SDCard (FAT32 partitioned with firmware.im8m.bin)
 +calulate the firmware size after read file (e.g. 3601897 bytes --> #​blocks=ceil(3601897/​512)=0x1B7B) \\
 +<​code>​
 +fatls mmc 1
 +fatload mmc 1 0x40800000 firmware.tr8m.bin
 +mmc dev 0 1 
 +or (for boot1 or boot2)
 +mmc dev 0 2
 +mmc write 0x40800000 0x42 0x1B7B
 +</​code>​
 +
 +
 +===== Hints =====
 +if the emmc/sd card has an saved environment,​ sometime the system will not boot (mostly after an update from linux/​android)\\
 +you can erase the save environment with
 +<​code>​
 +mmc env_erase
 +reset
 +</​code>​
 +
 +if the deployment breaks, sometime the emmc has no valid gpt table
 +<​code>​
 +ums 0 0
 +** Invalid partition 1 **
 +</​code>​
 +you can write an dummy gpt before calling mounting in massstorage mode
 +<​code>​
 +gpt write mmc 0 name=emmc,​size=-,​type=system
 +ums 0 0
 +</​code>​
 +
 +on emmc you can choose the boot partion
 +<​code>​
 +//display configuration
 +mmc partconf 0
 +
 +//boot0
 +mmc partconf 0 1 1 0
 +
 +//boot1
 +mmc partconf 0 1 2 0
 +
 +//no boot partition, the the emmc will be used like an sd card
 +mmc partconf 0 0 0 0
 +</​code>​
 +
 +
  
-Boot the device an press ESC to stop the boot process in uboot 
-    *  
service/winiot/appnotepub/deployimage.1604656428.txt.gz · Zuletzt geändert: 2020/11/06 10:53 von