Zynq ultrascale+ rfsoc (zu29/39/49dr) som development platform (61 pages)
Summary of Contents for iWave Qseven RZ/G1M
Page 1
RZ/G1M/G1N Qseven SOM Linux User Guide iW-RainboW-G20M RZ/G1M, RZ/G1N Qseven SOM Linux User Guide REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 1 of 76...
Page 2
If you are not the intended recipient (or authorized to receive for the recipient), you are hereby notified that any disclosure, copying distribution or use of any of the information contained within this document is STRICTLY PROHIBITED. Thank you. “iWave Systems Tech. Pvt. Ltd.” REL 1.6 iWave Systems Technologies Pvt.
Page 3
No warranty of accuracy is given concerning the contents of the information contained in this publication. To the extent permitted by law no liability (including liability to any person by reason of negligence) will be accepted by iWave Systems, its subsidiaries or employees for any direct or indirect loss or damage caused by omissions from or inaccuracies in this document.
Page 5
5.3.5 PWM brightness Test ..........................57 ............................... 58 DEVICES 5.4.1 Testing device Requirements ........................58 5.4.2 Mouse Test ..............................58 5.4.3 Keyboard Test .............................. 58 5.4.4 Touch screen Test ............................59 REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 5 of 76...
Page 6
5.9.1 Processor cooling fan test ........................... 68 5.9.2 Thermal trip LED test ........................... 68 5.9.3 GPIO setting ..............................69 5.10 ............................... 70 HERMAL ESTING APPENDIX – Frequently Asked Questions ....................71 REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 6 of 76...
Page 7
RIVER OURCE 3: D .............................. 14 ABLE EVICE TREE SOURCE 4: W – TV IN ......................63 ABLE AYLAND INPUT RESOLUTION SETTINGS 5: GPIO ..............................69 ABLE DEVICE NODE REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 7 of 76...
Mega Hertz MIPI Mobile Industry CPU Interface Multi Media Card Pulse Width Modulation Real Time Clock SATA Serial Advanced Technology Attachment Secure Digital System On Module Serial Peripheral Interface REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 8 of 76...
Page 9
RZ/G1M/G1N Qseven SOM Linux User Guide Acronyms Abbreviations UART Universal Asynchronous Receiver/Transmitter Universal Serial Bus USB OTG USB On The Go REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 9 of 76...
This device tree source file is for Renesas R8A7743 (Dual) processors used in iW-RainboW-G20 platforms. r8a7744-iwg20m_q7.dts This device tree source file is for Renesas R8A7744 (Dual) processors used in iW-RainboW-G20 platforms. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 14 of 76...
$ patch -Np1 < <path to Yocto patch file>/PATCH000-iW-PREWZ-SC-01-RX.X-RELX.X- YoctoDaisy_basic_customization.patch The copy proprietary script file and Multimedia package directory from deliverables is located in the below path respectively. /<path_to_Source-Code>/Source-Code/Linux/Yocto/copy_proprietary_softwares-v1100.sh /<path_to_Source-Code>/Source-Code/Linux/Yocto/PKG-DIR REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 16 of 76...
Page 17
Copy configuration files, bblayers.conf and local.conf for iWG20M platform. $ cp ../meta-renesas/meta-rzg1/templates/iwg20m_q7-config/*.conf ./conf/ To build Wayland for iWG20 platform, overwrite the local.conf file with wayland configuration files by executing the below command $ cp conf/local-wayland.conf conf/local.conf REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 17 of 76...
After the successful compilation the binaries will be placed in below path. ~/<path to iwg20m-release-bsp>/iwg20-release-bsp/build/tmp/work/cortexa15hf-vfp-neon-poky- linux-gnueabi/u-boot-iwg20m/v2013.01.01+gitAUTOINC+cb82c56b53-r0/git/ The binary files are listed below u-boot.bin Refer the BINARY PROGRAMMING section to update the u-boot binary. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 19 of 76...
Refer the BINARY PROGRAMMING section to update the Linux kernel binary. Refer the Device tree source description section for device tree source code organization. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 20 of 76...
Setting it up...done SDK has been successfully set up and is ready to be used After successful installation of cross-compiler, the cross compiler will be available in below path. /opt/poky/1.6.1 REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 21 of 76...
Before compiling the source code, cross compiler should be installed to “/opt” directory of host machine if it is not present. Refer the Cross-compiler build section to install the cross-compiler. Un-tar the Source-Code.tar.gz from the deliverables. $ cd /<path_to_iW-RainboW-G20M-Q7-RX.X-RELX.X-Linux3.10.31-YoctoDaisy_Deliverables>/iW- RainboW-G20M-Q7-RX.X-RELX.X-Linux3.10.31-YoctoDaisy_Deliverables/Source-Code/ $ tar -xvf Source-Code.tar.gz REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 22 of 76...
To compile the Loader image, execute the below commands. host@host/<Directory>/loader-iwg20m~$ make After successful compilation, Loader (iw_rainbow_g20m_SPI_loader_v020_ddr3l.bin) will be created in the below path respectively. ~/output/iW_Rainbow_G20M_SPI_LOADER_V020_DDR3L.bin Refer the BINARY PROGRAMMING section to update the Loader binary. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 23 of 76...
ARCH=arm host@host/<directory>/uboot-iwg20m~$ export PATH=$PATH:/opt/poky/1.6.1/sysroots/<processor>-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi host@host/<Directory>/u-boot-iwg20m~$ export CROSS_COMPILE=arm-poky-linux-gnueabi- To configure for iWave-G20M-Q7 platform, execute the below command. host@host/<directory>/u-boot-iwg20m~$ make iwg20m_q7_config To compile the u-boot source code, execute the below command. host@host/<directory>/u-boot-iwg20m~$ make After successful compilation, boot loader image (u-boot.bin) will be created in below path.
After successful compilation, kernel image (uImage) and device tree (.dtb) will be created in the below path respectively. ~/linux-iwg20m/arch/arm/boot/uImage ~/linux-iwg20m/arch/arm/boot/dts/r8a7743-iwg20m_q7.dtb ~/linux-iwg20m/arch/arm/boot/dts/r8a7744-iwg20m_q7.dtb Refer the BINARY PROGRAMMING section to update the Linux kernel binary. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 25 of 76...
= of_get_gpio(np, 23); // GPIO Pin 23 is acquired in a gpio variable. To get the base address of GPIO port to mention in of_find_node_by_path(), refer the arch/arm/boot/dts/r8a7743_iwg20m.dtsi file. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 27 of 76...
.fbdev_crtc = 0, #endif .i2c_ch = 5, 2.4.6 Boot Logo Configuration To enable default Linux Boot logo, deselect “Standard 224-color iWave logo” in make menuconfig and compile again. Device Drivers ---> Graphics support ---> [*] Bootup logo ---> [ ] Standard 224-color iWave logo 2.4.7 USB OTG Host Configuration...
To add an package in Yocto filesystem, add a line to conf/local.conf file in Yocto. IMAGE_INSTALL_append = " package" Make sure to include a space before the package name. Refer BSP Yocto Compilation to compile the Yocto with package added. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 30 of 76...
To program the binaries into RZ/G1M/G1N SOM through JTAG Debugger, following Items are required: JTAG Debugger Power Supply RZ/G1M/G1N development platform. Note: Here PEEDI JTAG debugger is taken as example. (http://www.ronetix.at/peedi.html) REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 31 of 76...
Stop in u-boot command prompt by pressing any key. Once command prompt appears, execute the below command in JTAG board to halt the target board core. RZ/G1x > halt REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 32 of 76...
Example: iWave-G20M > sf write 0x50000000 0x0 401c iWave-G20M > sf write 0x50008000 0x20000 3bcdc Hence, the u-boot and loader are programmed to SPI flash through JTAG Debugger. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 33 of 76...
Change the boot arguments to SD boot and boot from SD card. Refer the Environment variables settings section to change the boot arguments to SD card. Boot Linux from the SD card. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 34 of 76...
Last cylinder, +cylinders or +size{K,M,G} (1-1038, default 1038): 512 Press 'n' to create new partition (going to create second partition). Command (m for help): n Command action e extended p primary partition (1-4) REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 35 of 76...
Page 36
Now format both the partitions. Partition 1 as VFAT i.e windows partition and 2nd partition as EXT4. $ sudo mkfs.vfat /dev/mmcblk2p1 $ sudo mkfs.ext4 /dev/mmcblk2p2 Reboot the board and now eMMC is ready to be programmed. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 36 of 76...
Program the loader to SPI Flash root@iWave-G20M/<mount_directory>~$ dd if=iW_RainboW_G20M_SPI_LOADER_V020_DDR3L.bin of=/dev/mtdblock0 bs=1 root@iWave-G20M/<mount_directory>~$ sync Program the u-boot binary to SPI flash root@iWave-G20M/<mount_directory>~$ dd if=u-boot.bin of=/dev/mtdblock0 bs=1k seek=128 root@iWave-G20M/<mount_directory>~$ sync REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 37 of 76...
1, 2, 3, etc until all the partitions are deleted. Once all the partitions are deleted, the below message gets displayed. Command (m for help): d No partition is defined yet! Press 'u' to change the unit to cylinder. Command (m for help): u REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 39 of 76...
Page 40
Hex code (type L to list codes): 6 Changed system type of partition 1 to 6 (FAT16) Command (m for help): t Partition number (1-4): 2 Hex code (type L to list codes): 83 REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 40 of 76...
Page 41
Now SD card is ready to use. Remove the SD card and insert again then the respective partitions can be viewed by the below command. $ mount REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 41 of 76...
$ umount /media/<mount point sdcard windows partition> $ umount /media/<mount point sdcard Linux partition> Now the bootable SD Card is ready to be used in RZ/G1M/G1N SOM to boot the Linux. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 42 of 76...
Note: Accessing the restricted RAM area or other physical address may cause unpredictable behaviour. Make sure, you are not entering the restricted area RAM address. 0x5F800000-0x5FFFFFFF is the u-boot RAM location and this RAM area should not be accessed. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 44 of 76...
To show the USB storage devices details, execute the below command. iWave-G20M> usb storage To set/show the current USB storage device, execute the below command. iWave-G20M> usb dev <device id> Example: iWave-G20M> usb dev 0 REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 46 of 76...
>env default -f -a iWave-G15 >saveenv iWave-G15 >reset Caution: Since MAC address will be stored in the SPI Flash by default, restoring the default environment variable will restore the default MAC address. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 48 of 76...
To test the block devices supported by RZ/G1M/G1N SOM, following Items are required. USB memory stick Micro SD Standard SD USB Type A to micro B cable. PCIe SATA module SATA module REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 49 of 76...
Note: In RZ/G1N CPU, PCIe, USB3.0 and SATA High speed transceivers are multiplexed in same pins and so either one interface only can be used at a time. By default USB3.0 is supported. Please contact iWave if PCIe or SATA1 support is required in RZ/G1N CPU based Qseven SOM.
Then the files and folders from RZ/G1M/G1N SOM’s eMMC will be mounted in the Windows Host PC as removable disk. To unload the modules, execute the below command root@iWave-G20M:~# rmmod g_mass_storage.ko root@iWave-G20M:~# rmmod libcomposite.ko root@iWave-G20M:~# rmmod configfs.ko REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 51 of 76...
To exit from the mount partitions and to unmount, execute the below command. root@iWave-G20M/<mount_directory>$ cd /root To unmount the device, execute the below command. root@iWave-G20M~$ umount <Mount Directory> REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 52 of 76...
(v1.22.1) started Sending discover... Sending select for *********... Lease of ********** obtained, lease time 43200 Deleting routers /etc/udhcpc.d/50default: Adding DNS ********* /etc/udhcpc.d/50default: Adding DNS ********* /etc/udhcpc.d/50default: Adding DNS ********* REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 53 of 76...
-g <server_ip> -r <file_name> To transmit any file from RZ/G1M/G1N SOM to TFTP server (host PC), execute the below command root@iWave-G20M~$ tftp -p <server_ip> -l <file_name> REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 54 of 76...
Note: Execute CAN receive command in receiver side before transmitting the data and If customer uses their own CAN device with the G20M platform then user has to take care of the particular CAN device application part REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 55 of 76...
Figure 2: LCD -Yocto GUI 5.3.3 HDMI Test While the HDMI is connected to RZ/G1M/G1N SOM, GUI will be displayed in HDMI as follows. Figure 3: HDMI -Yocto GUI REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 56 of 76...
To change the brightness, execute below command. root@iWave-G20M~/$ echo 7 > /sys/class/backlight/backlight.<X>/brightness PWM output can be varied from 0 – 7. Observe the LCD backlight brightness for different values. REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 57 of 76...
RZ/G1M/G1N Qseven SOM Linux User Guide 5.4.4 Touch screen Test To calibrate the touch screen, execute the below shown steps. root@iWave-G20M~/$ export XDG_RUNTIME_DIR=/var/run/user/root root@iWave-G20M~/$ weston-calibrator Figure 4: Yocto Touch calibration REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 59 of 76...
-s "2019-01-04 17:15:50" Fri Jan 04 17:15:50 UTC 2019 To update the set date and time into hardware clock, execute the below command. root@iWave-G20M/$ hwclock -w REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 61 of 76...
The given BSP supports GPU libraries. The Processors supports OpenGL ES. This section explains how to test GPU in the RZ/G1M/G1N SOM. To test GPU information in Wayland, execute the below command root@iWave-G20M~$ export XDG_RUNTIME_DIR=/var/run/user/root root@iWave-G20M~$ weston-flower REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 66 of 76...
To switch on the thermal trip LED, execute the below command root@iWave-G20M~$ echo 0 > /sys/class/gpio/gpio863/value To switch off the thermal trip LED, execute the below command root@iWave-G20M~$ echo 1 > /sys/class/gpio/gpio863/value REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 68 of 76...
To set the GPIO value when set as output, execute the below command root@iWave-G20M~$ echo <0/1> > /sys/class/gpio/gpioXXX/value Note: Before changing the pin GPIO functionality and values, make sure that the pins are used as GPIO in the hardware.
5.10 Thermal Testing The RZ/G1M/G1N SOM supports following thermal testing option by reading thermal sensor. To read current temperature of the board, execute the below command root@iWave-G20M~$ cat /sys/class/thermal/thermal_zone0/temp REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 70 of 76...
To disable the cursor blink on the primary console display, execute the below command. $echo 0 > /sys/class/graphics/fbcon/cursor_blink To enable the cursor blink on the primary console display, execute the below command. $echo 1 > /sys/class/graphics/fbcon/cursor_blink REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 71 of 76...
RZ/G1M/G1N Qseven SOM Linux User Guide 9. How to Flash on board SPI using iWave G1M SPI Programmer Board? If the binaries on the on-board SPI is corrupted, it is possible to flash the binaries using iWave G1M SPI Programmer Board following the below procedure.
RZ/G1M/G1N Qseven SOM Linux User Guide Make dipswitch “OFF” in iWave G1M SPI Programmer Board and “ON” in G1M/G1N SOM as shown below. Figure 7: SPI Programming Module switched OFF In U-Boot, execute the below commands to flash On SOM SPI from MicroSD.
Page 76
RZ/G1M/G1N Qseven SOM Linux User Guide REL 1.6 iWave Systems Technologies Pvt. Ltd. Page 76 of 76...
Need help?
Do you have a question about the Qseven RZ/G1M and is the answer not in the manual?
Questions and answers