The emtrion SBC is a platform based on the Renesas RZN1D cpu. It consists of a CM3 core and a A7 core. For the CM3 core a firmware containing PROFINET, EtherNet/IP and EtherCAT stack is available. Ethernet ports J8 and J9 are exclusively used by the CM3 core. Ethernet ports J1 and J2 are exclusively used by linux.
24 V power adapter
USB Serial converter
a ARM (arm-none-eabi) gcc compiler (e.g. version 9.2.1 20191025)
Emtrion SDK and software documentation (sbc-rzn1d-yocto-manual_v005en.pdf)
updated device tree
port application sdk
Industrial Communication Explorer
Entering the boot loader
You will need a USB serial converter connected to the device (header J5). UART speed is 115200 baud. After bootup of the device you will have the possibility to enter the uboot boot loader. From there the following steps can be executed.
Update of uboot
Please refer to the documentation from emtrion (sbc-rzn1d-yocto-manual_v005en.pdf) on how to update the uboot boot loader (u-boot.img). This is possible using a NFS or a TFTP server. The correct version shown should be “U-Boot 2017.01 sbc-rzn1d v01.0xp (Feb 02 2021 - 11:46:11 +0000)”.
Update of the device tree
Now you need to boot into linux (power cycle or u-boot command "boot"). The device is initially configured to use DHCP. Ethernet ports J1 and J2 are used by the linux system. To login into linux, use the account root with no password (default settings).
Please place the dtb into the /boot folder of the filesystem accessible within linux.
Programming of the CM3 firmware
This step is done from the u-boot bootloader. Following commands show the procedure. Update is done using tftp here:
# set cm3_max_fw_size
env set cm3_max_fw_size 0xC0000
env set CM3 yes
# load scripts
# set mode to tftp
setenv lmode tftp
# set ip mode to dhcp
setenv ip-method dhcp
# get ip address
# set server ip address
setenv serverip 192.168.178.103
# set nfsroot to anything, even required of tftp is used
setenv nfsroot "/System/Volumes/Data/Users/Shared/nfs"
# set boot for tftp mode
setenv bootdir /private/tftpboot
# update the cm3
If successful, following log messages are shown:
SBC-RZN1D U-Boot > run update_cm3
Speed: 1000, full duplex
Using dwmac.44002000 device
TFTP from server 192.168.2.1; our IP address is 192.168.2.2
Load address: 0x80008000
Bytes transferred = 180287 (2c03f hex)
SF: Detected s25fl128s_64k with page size 256 Bytes, erase size 64 KiB, total 16 MiB, mapped at 10000000
SF: 196608 bytes @ 0xe0000 Erased: OK
device 0 offset 0xe0000, size 0x2c03f
SF: 180287 bytes @ 0xe0000 Written: OK
Setup of the port SDK
The port SDK can be be used on any linux machine capable of cross compiling for the arm platform (see compiler requirements). To install the SDK create a folder and unpack the delivered archive (2021015_20210816_2_22_1_port_emtrion_sbc_CCM_ci968.zip).
To compile a profinet example application, do the following steps: