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:41]
[Trizeps7/Trizeps8mini (SDCard)]
service:winiot:appnotepub:deployimage [2020/11/18 10:51] (aktuell)
[Update Firmware on emmc]
Zeile 53: Zeile 53:
  
 ===== Trizeps7/​Trizeps8mini (SDCard) ===== ===== Trizeps7/​Trizeps8mini (SDCard) =====
-  * insert SDCard and get the physical disk number: ​(CommandPrompt(as administrator) **diskpart.exe** then **list disk**) or use (powershell Get-WmiObject Win32_DiskDrive) +insert SDCard and get the physical disk number: ​ 
-    * flash the SDCard ​(**dism.exe /​Apply-Image /​ImageFile:"​*.ffu"​ /​ApplyDrive:​\\.\PhysicalDriveXXX ​/​SkipPlatformCheck**) +<​code>​ 
-    * from KuK_IoT_BuildEnvironment_Tr8mini_RS5 you also use the command**flashSD.cmd eval_image test {disk_numer}** +powershell Get-WmiObject Win32_DiskDrive 
-  ​* ​the first boot is very slow and take much time  ​+</​code>​ 
 +install image in SDCard
 +<​code>​ 
 +dism.exe /​Apply-Image /​ImageFile:"​*.ffu"​ /​ApplyDrive:​\\.\PhysicalDrive{disk_number} ​/​SkipPlatformCheck 
 +or: 
 +flashSD.cmd eval_image test {disk_number
 +</​code>​ 
 +the first boot is very slow and take much time  ​
  
-===== Trizeps8mini (emmc) ===== 
  
-    * Boot the device an press ESC to stop the boot process in uboot +==== Update Firmware on sd ==== 
-    ​* ​start the Massstorage Mode ("ums 0 mmc 0") +you can easily insert your sd card into you host pc 
-    ​* ​connect the USB Slave with your Host PC + 
-    * Open a Powershell as Administrator and get the Physical Device number of the emmc (powershell Get-WmiObject Win32_DiskDrive) +insert SDCard and get the physical disk number:  
-    ​* ​flash the emmc (dism.exe /​Apply-Image /​ImageFile:"​*.ffu"​ /​ApplyDrive:​\\.\PhysicalDriveXXX ​/​SkipPlatformCheck) +<​code>​ 
-    ​* ​reset the device to boot into Windows IoT Core+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) ===== 
 + 
 +Boot the device an press ESC to stop the boot process in uboot \\ 
 +start the Massstorage Mode  
 +<​code>​ 
 +ums 0 mmc 0 
 +</​code>​ 
 +connect the USB Slave with your Host PC \\ 
 +get the Physical Device number of the emmc 
 +<​code>​ 
 +powershell Get-WmiObject Win32_DiskDrive 
 +</​code>​ 
 +flash the emmc 
 +<​code>​ 
 +dism.exe /​Apply-Image /​ImageFile:"​*.ffu"​ /​ApplyDrive:​\\.\PhysicalDrive{disk_number} ​/​SkipPlatformCheck 
 +or: 
 +flashSD.cmd eval_image test {disk_number} 
 +</​code>​ 
 +reset the device to boot into Windows IoT Core 
  
 Sometime the flash will crash, please close VirtualBox and all Explorer Windows. Sometime the flash will crash, please close VirtualBox and all Explorer Windows.
 +
 +==== 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>​
 +
 +
 +
service/winiot/appnotepub/deployimage.1604655707.txt.gz · Zuletzt geändert: 2020/11/06 10:41 von