DHCOM How to use the Update Mechanism: Difference between revisions

From Wiki-DB
Jump to navigationJump to search
Jneuhauser (talk | contribs)
No edit summary
Jneuhauser (talk | contribs)
No edit summary
Line 16: Line 16:
Make the USB stick available in your system by connecting it to your computer. If you work with a virtual machine, then connect the newly connected USB stick to your virtual machine.
Make the USB stick available in your system by connecting it to your computer. If you work with a virtual machine, then connect the newly connected USB stick to your virtual machine.


== Linux (Debian) ==
== Linux ==


This step by step guide has been developed and tested with the [[Virtual Machine for Application Development]] from DH electronics and should also work with gparted on other linux distros.
This step by step guide has been developed and tested with the [[Virtual Machine for Application Development]] from DH electronics and should also work with gparted on other linux distros.


=== Prepare for the next steps ===
=== Open GParted and select device ===
* Open the disk utility '''GParted'''
* Open the disk utility '''GParted'''
: <span style="color: gray;">Note: You will be asked for your user password to gain super user right through sudo.</span>
: <span style="color: gray;">Note: You will be asked for your user password to gain super user right through sudo.</span>
Line 32: Line 32:
* If you see <span style="color: orange;">Partition table: msdos</span> and <span style="color: orange;">File System: fat32</span> your USB stick is already prepared for the Update Mechanism and you can head over to [[#Place Update Files on the USB stick]]
* If you see <span style="color: orange;">Partition table: msdos</span> and <span style="color: orange;">File System: fat32</span> your USB stick is already prepared for the Update Mechanism and you can head over to [[#Place Update Files on the USB stick]]
* If you only see <span style="color: orange;">Partition table: msdos</span> head over to [[#Create FAT32 formatted partition]]
* If you only see <span style="color: orange;">Partition table: msdos</span> head over to [[#Create FAT32 formatted partition]]
* And if you don´t see anything like in the picture follow the next steps
=== Create DOS partition table ===
<span style="color: red;">Warning: The following steps will cause data loss on the selected device!</span>
* Create a empty dos partition table with '''''Create Partition Table''''' in the '''''Device''''' menu and ensure you select <span style="color: orange;">msdos</span> as type.
:[[File:Gparted_create_partition_table.JPG|500px]]
=== Create FAT32 formatted partition ===
<span style="color: red;">Warning: The following steps will cause data loss on the selected device!</span>
* Remove any existing partition by selecting them and choosing '''''Delete''''' in '''''Partition''''' menu
* Create a FAT32 formatted partition with '''''New''''' in the '''''Partition''''' menu and ensure you select <span style="color: orange;">File system: fat32</span>.
:[[File:Gparted_create_partition.JPG|500px]]
* Apply all operations to write changes to disk
:[[File:Gparted_apply_operations.JPG|500px]]
== Windows ==
This step by step guide has been developed and tested with Windows 10 Professional Version 1809 and should also work with Windows 7/8 and similar.
=== Open Disk Management ===
* Press the '''''Windows button''''', type '''''compmgmt.msc''''' and start the Microsoft Service Console as administrator by '''''Run as administrator''''' in the right-click menu.
:[[File:Windows_launch_computer_management.JPG]]
* In the tree view on the left side of the window, select '''''Disk Management''''' in the section '''''Storage'''''.
:[[File:Windows_disk_mgmt.JPG|500px]]
=== Check current partition table and partition format ===
* Open the dialog '''''Properties''''' with a right-click on the device
:[[File:Windows_disk_mgmt_check_properties.JPG|500px]]
* Go to the tab Volumes and check for <span style="color: orange;">Partition style: Master Boot Record (MBR)</span>
:[[File:Windows_disk_mgmt_check_partition_type.JPG]]
* If you don´t see <span style="color: orange;">Partition style: Master Boot Record (MBR)</span> follow [https://docs.microsoft.com/en-us/windows-server/storage/disk-management/change-a-gpt-disk-into-an-mbr-disk#converting-using-a-command-line Convert to MBR using a command line]
* And if you don´t see anything like in the picture follow the next steps
* And if you don´t see anything like in the picture follow the next steps



Revision as of 14:09, 23 October 2019

This guide describes how to properly update the built-in flash or eMMC memory on DHCOM devices with a provided update zip file.

Required hard- and software

  • DHCOM Update files mostly provided as zip file (If you don't have the needed update files, please ask DH electronics)
  • Windows / Linux computer or virtual machine with a administrative account
  • Empty USB stick with at least 1 GB capacity
  • DHCOM i.MX6 / i.MX25 / AM335x / AM35xx
  • Baseboard with USB port like PDK2 / picoITX2 / DRC02

Prepare a USB stick or SD card for the update process

The bootloader update mechanism expects a single FAT32 partition on a storage device such as a USB stick or SD card.

Make the USB stick available in your system by connecting it to your computer. If you work with a virtual machine, then connect the newly connected USB stick to your virtual machine.

Linux

This step by step guide has been developed and tested with the Virtual Machine for Application Development from DH electronics and should also work with gparted on other linux distros.

Open GParted and select device

  • Open the disk utility GParted
Note: You will be asked for your user password to gain super user right through sudo.
  • Choose your device in the drop down menu right at the top of the user interface
Warning: Be sure that you have selected the correct device for the following steps.

Check current partition table and partition format

  • Verify that you already have a DOS partition table and that the first partition is formatted as FAT32 by selecting Device Information in the View menu

Create DOS partition table

Warning: The following steps will cause data loss on the selected device!

  • Create a empty dos partition table with Create Partition Table in the Device menu and ensure you select msdos as type.

Create FAT32 formatted partition

Warning: The following steps will cause data loss on the selected device!

  • Remove any existing partition by selecting them and choosing Delete in Partition menu
  • Create a FAT32 formatted partition with New in the Partition menu and ensure you select File system: fat32.
  • Apply all operations to write changes to disk

Windows

This step by step guide has been developed and tested with Windows 10 Professional Version 1809 and should also work with Windows 7/8 and similar.

Open Disk Management

  • Press the Windows button, type compmgmt.msc and start the Microsoft Service Console as administrator by Run as administrator in the right-click menu.
  • In the tree view on the left side of the window, select Disk Management in the section Storage.

Check current partition table and partition format

  • Open the dialog Properties with a right-click on the device
  • Go to the tab Volumes and check for Partition style: Master Boot Record (MBR)
  • If you don´t see Partition style: Master Boot Record (MBR) follow Convert to MBR using a command line
  • And if you don´t see anything like in the picture follow the next steps

Create DOS partition table

Warning: The following steps will cause data loss on the selected device!

  • Create a empty dos partition table with Create Partition Table in the Device menu and ensure you select msdos as type.

Create FAT32 formatted partition

Warning: The following steps will cause data loss on the selected device!

  • Remove any existing partition by selecting them and choosing Delete in Partition menu
  • Create a FAT32 formatted partition with New in the Partition menu and ensure you select File system: fat32.
  • Apply all operations to write changes to disk

Place Update Files on the USB stick