0% found this document useful (0 votes)
36 views10 pages

Install Image eMMc V1.0

Uploaded by

felipe.guerrero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views10 pages

Install Image eMMc V1.0

Uploaded by

felipe.guerrero
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Install Example Image

on eMMc

SIMATIC IOT2050 Advanced - 6ES7647-0BA00-1YA2


Legal information

Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG (“Siemens”). They are non-
binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sublicensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.

Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
© Siemens AG 2020 All rights reserved

foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.

Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.

Security information
Siemens provides products and solutions with industrial security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: https://www.siemens.com/industrialsecurity.

Install Example Image on eMMcIOT2050 Setting Up


Version 1.0, 04/2020
2
Table of contents

Table of contents
Legal information ......................................................................................................... 2
1 Task ..................................................................................................................... 4
1.1 Overview............................................................................................... 4
2 Requirements ..................................................................................................... 5
2.1 Required Hardware .............................................................................. 5
2.2 Required Software ................................................................................ 6
3 Operating ............................................................................................................ 7
3.1 General description .............................................................................. 7
3.2 Prerequisites ........................................................................................ 7
3.3 Use one single USB flash drive ............................................................ 8
3.4 Use two different USB flash drives ....................................................... 9
© Siemens AG 2020 All rights reserved

Install Example Image on eMMcIOT2050 Setting Up


Version 1.0, 04/2020
3
1 Task

1 Task
1.1 Overview
Introduction
The first batches of the IOT2050 Advanced are delivered without any OS pre-
installed on the eMMc. This document describes how to install the Example Image
to the eMMc of the IOT2050 Advanced.

Goals
After working through this document, you know how to
• Install Example Image to the eMMc of IOT2050 Advanced
© Siemens AG 2020 All rights reserved

Install Example Image on eMMcIOT2050 Setting Up


Version 1.0, 04/2020
4
2 Requirements

2 Requirements
2.1 Required Hardware
This chapter contains the hardware required for this Setting up.

SIMATIC IOT2050
This document is only valid for the IOT2050 Advanced (6ES7647-0BA00-1YA2)
since only the Advanced version has an internal eMMc.

Micro-SD Card / USB flash drive


A Micro-SD card or USB flash drive is used for running the Example image and
transfer the image to the eMMc.

Engineering Station
To work with the SIMATIC IOT2050 an Engineering Station is required. In this
document a PC with Windows 10 Enterprise is used.
The Engineering Station has to include the following Interfaces:
• SD Card Slot
• Ethernet Port
© Siemens AG 2020 All rights reserved

Ethernet cable
For an Ethernet Connection between the Engineering Station and the SIMATIC
IOT2050 in order to establish a SSH an Ethernet cable is required.

DisplayPort Cable (Male-Male) and Monitor


If you would like to have local connection to the SIMATIC IOT2050, you need to
have DisplayPort Cable and a monitor that supports DisplayPort.

Keyboard
If you would like to have local connection to the SIMATIC IOT2050, you need to
have a keyboard connected to IOT2050.

Power supply
In order to run the SIMATIC IOT2050 a power supply is required.
This power supply has to provide between 12V and 24V DC.

Install Example Image on eMMcIOT2050 Setting Up


Version 1.0, 04/2020
5
2 Requirements

2.2 Required Software


This chapter contains the software required for this document.

Micro-SD Card Example Image


To use the full functionality of the SIMATIC IOT2050 a SD-Card Example Image with
a Debian based Linux Operating System is necessary to be installed. This Image is
provided through the Siemens Industry Online Support.
It can be downloaded here.

ssh Client
To get remote access to the SIMATIC IOT2050 a ssh client is required.
In this document “PuTTY” is used. With this software it is possible to establish a
connection to different devices for example via Serial, SSH or Telnet.
The “PuTTY” software can be downloaded here.

NOTE Instead of PuTTY you also can use Windows 10 or Linux built-in ssh client.
© Siemens AG 2020 All rights reserved

Win32 Disk Imager


In order to put the SD Card image to the µSD Card software is needed.
In this Setting Up the Win32 Disk Imager is used.
The “Win32 Disk Imager” can be downloaded here.

NOTE All existing data on the SD Card will be removed!

Install Example Image on eMMcIOT2050 Setting Up


Version 1.0, 04/2020
6
3 Operating

3 Operating
This chapter describes the steps necessary to install and start up the Example Image
to/from the eMMc of the SIMATIC IOT2050 Advanced.
For the necessary software components please refer to the download links in chapter
2.2

3.1 General description


For flashing the Example Image to the eMMc we need a running OS on the IOT2050.
Therefore, we use the Example Image installed on a USB flash drive or SD card.
We copy the file “IOT2050_Example_Image_V1.0.2.img” to the same or a different
removable device.
When running the Example Image we can make use of the Linux tool dd to flash the
“IOT2050_Example_Image_V1.0.2.img” file to the eMMc.
Basically, we use the Example Image running on a removable device to flash the
Example Image to the internal eMMc.

There are two different ways to do so:


1. Using one single USB flash drive / SD card
© Siemens AG 2020 All rights reserved

2. Using two different USB flash drives / SD card


a. One for running the Example Image
b. One for transferring the Example Image to the eMMc

3.2 Prerequisites
• You know how to flash the SD-Card Example image to a SD-card or USB
flash drive. This is described in the document SIMATIC IOT2050 Setting
Up
• The eMMC is empty! This procedure works only for the first time with an
empty eMMC.

Install Example Image on eMMcIOT2050 Setting Up


Version 1.0, 04/2020
7
3 Operating

3.3 Use one single USB flash drive


For this procedure you need a Linux PC in order to access the file system of the
USB flash drive the Example Image is written to.

Table 3-1
No. Action
1. Flash the Example Image to an USB flash drive or SD card using e.g
Win32DiskImager
2. Boot the IOT2050 once from this stick to resize the filesystem of the USB
flash drive. Otherwise the flash drive is too small to perform step 3.
Boot is finished if STAT LED flashes green.
3. Mount this USB flash drive or SD card to a Linux PC and copy the file
“IOT2050_Example_Image_V1.0.2.img” to it (e.g to /home)
4. Plug the USB flash drive or SD card into the IOT2050 and connect power.
The IOT2050 should boot up.
5. Connect to the IOT2050 using ssh or a monitor and login as root
6. Use dd to flash the “IOT2050_Example_Image_V1.0.2.img” from the USB
flash drive / SD card to the internal eMMc:

dd if=/home/IOT2050_Example_Image_V1.0.2.img of=/dev/mmcblk1
© Siemens AG 2020 All rights reserved

bs=100M conv=fsync status=progress

if=/home/IOT2050_Example_Image_V1.0.2.img: This is the image file path


of=/dev/mmcblk1: This is the block device path of the eMMC
bs=100M: Write 100MB at a time
conv=fsync: Sync to device before finishing
status=progress: Show progress status

7. Power off the IOT2050


8. Remove the USB flash drive / SD card
9. Power on the IOT2050.
The IOT2050 boots now into eMMc

Install Example Image on eMMcIOT2050 Setting Up


Version 1.0, 04/2020
8
3 Operating

3.4 Use two different USB flash drives


If you cannot perform step 2 of chapter 3.3 because you don’t have a Linux PC,
you can use another USB flash drive to copy the file
“IOT2050_Example_Image_V1.0.2.img” to.
Table 3-2
No. Action
1. Flash the Example Image to the first USB flash drive or SD card using e.g
Win32DiskImager
2. Plug the first USB flash drive or SD card into the IOT2050 and connect power.
The IOT2050 should boot up.
3. Copy the file “IOT2050_Example_Image_V1.0.2.img” to a second USB stick
4. Connect the second USB stick with file to the IOT2050
5. Connect to the IOT2050 using ssh or a monitor and login as root
6. Mount the second USB stick to the file system:
mkdir /mnt/USB
mount /dev/sdb1 /mnt/USB
© Siemens AG 2020 All rights reserved

It is most likely /dev/sdb1 if using USB flash drive as device in step 1


It is most likely /dev/sda1 if using SD card as device in step 1
You can doublecheck with the command fdisk -l before mounting
7. Use dd to flash “IOT2050_Example_Image_V1.0.2.img” from the second USB
flash drive to the internal eMMc:

dd if=/mnt/USB/IOT2050_Example_Image_V1.0.2.img of=/dev/mmcblk1
bs=100M conv=fsync status=progress

if=/mnt/USB/IOT2050_Example_Image_V1.0.2.img: This is the image file path


of=/dev/mmcblk1: This is the block device path of the eMMC
bs=100M: Write 100MB at a time
conv=fsync: Sync to device before finishing
status=progress: Show progress status
8. Power off the IOT2050
9. Remove the USB flash drives / SD card
10. Power on the IOT2050.
The IOT2050 boots now into eMMc

Install Example Image on eMMcIOT2050 Setting Up


Version 1.0, 04/2020
9
4 Related links

4 Related links
Table 4-1
Topic
\1\ SIMATIC IOT2050 forum
https://support.industry.siemens.com/tf/ww/en/threads/309w
\2\ Download SD-Card Example Image
https://support.industry.siemens.com/cs/ww/en/view/109780231
\3\ Operating Instructions
https://support.industry.siemens.com/cs/ww/en/view/109779016
\4\ Initial Setup (Setting Up) of the IOT2050
https://support.industry.siemens.com/tf//ww/en/posts/238945/

5 History
Table 5-1
© Siemens AG 2020 All rights reserved

Version Date Modifications


V1.0 06/2020 First version

Install Example Image on eMMcIOT2050 Setting Up


Version 1.0, 04/2020
10

You might also like