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 11:02]
[Update Firmware on emmc]
service:winiot:appnotepub:deployimage [2020/11/18 10:51] (aktuell)
[Update Firmware on emmc]
Zeile 65: Zeile 65:
 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 108: Zeile 121:
  
 copy firmware from external SDCard (FAT32 partitioned with firmware.im8m.bin) copy firmware from external SDCard (FAT32 partitioned with firmware.im8m.bin)
-calulate the firmware size after read file (e.g. 1059088 ​bytes --> #​blocks=ceil(1059088/512)=0x814) \\+calulate the firmware size after read file (e.g. 3601897 ​bytes --> #​blocks=ceil(3601897/512)=0x1B7B) \\
 <​code>​ <​code>​
 fatls mmc 1 fatls mmc 1
-fatload mmc 1 0x40800000 firmware.im8m.bin+fatload mmc 1 0x40800000 firmware.tr8m.bin
 mmc dev 0 1  mmc dev 0 1 
 or (for boot1 or boot2) or (for boot1 or boot2)
 mmc dev 0 2 mmc dev 0 2
-mmc write 0x40800000 0x42 0x814+mmc write 0x40800000 0x42 0x1B7B
 </​code>​ </​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.1604656923.txt.gz · Zuletzt geändert: 2020/11/06 11:02 von