iWave iW-RainboW-G21M User Manual

Rz/g1h qseven som
Hide thumbs Also See for iW-RainboW-G21M:
Table of Contents

Advertisement

Quick Links

RZ/G1H Qseven SOM Linux User Guide
iW-RainboW-G21M
RZ/G1H Qseven SOM
Linux User Guide
REL 1.2
iWave Systems Technologies Pvt. Ltd.
Page 1 of 83

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the iW-RainboW-G21M and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for iWave iW-RainboW-G21M

  • Page 1 RZ/G1H Qseven SOM Linux User Guide iW-RainboW-G21M RZ/G1H Qseven SOM Linux User Guide REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 1 of 83...
  • 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.2 iWave Systems Technologies Pvt.
  • Page 3 (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 4: Table Of Contents

    3.1.2 Booting Via JTAG ............................34 3.1.3 U-Boot Programming ..........................35 ............................. 36 ANUAL ROGRAMMING 3.2.1 Requirements .............................. 36 3.2.2 SD Card Preparation ............................ 36 3.2.3 eMMC Partition ............................37 REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 4 of 83...
  • Page 5 5.3.2 LCD Test ............................... 62 5.3.3 HDMI Test ..............................62 5.3.4 Qseven LVDS control Test ..........................63 5.3.5 PWM brightness Test ..........................63 ............................... 64 DEVICES 5.4.1 Testing device Requirements ........................64 REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 5 of 83...
  • Page 6 ROCESSOR COOLING CONTROL TEST 5.11 ................................77 AYLAND 5.11.1 Camera Test ..............................77 5.11.2 GPU Test ..............................78 5.11.3 Gstreamer Test ............................79 APPENDIX – Frequently Asked Questions ....................80 REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 6 of 83...
  • Page 7 AMERA INPUT RESOLUTION SETTINGS 5: GPIO ..............................75 ABLE DEVICE NODE 6: W – C ..................... 78 ABLE AYLAND AMERA INPUT RESOLUTION SETTINGS 7: SOM S ............................81 ABLE WITCH SETTINGS REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 7 of 83...
  • Page 8: Introduction

    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.2 iWave Systems Technologies Pvt. Ltd. Page 8 of 83...
  • Page 9 RZ/G1H Qseven SOM Linux User Guide Acronyms Abbreviations UART Universal Asynchronous Receiver/Transmitter Universal Serial Bus USB OTG USB On The Go REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 9 of 83...
  • Page 10: Board Support Package

    SDHI driver, SD/SDIO driver header file drivers/rtc/rtc-bq32k.c RTC Driver Source File drivers/net/can/rcar_can.c CAN Driver Source file include/linux/can/platform/rcar_can.h CAN Driver header file UART drivers/tty/serial/sh-sci.c Serial source file drivers/tty/serial/sh-sci.h Serial header file REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 10 of 83...
  • Page 11 R-Car Gen2 USB phy driver for EHCI/OHCI source file drivers/pci/host/pci-rcar-gen2.c R-Car Gen2 Internal PCI driver source file drivers/phy/phy-core.c Generic Phy framework drivers/phy/phy-rcar-gen2.c R-Car Gen2 USB phy driver for xHCI source file REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 11 of 83...
  • Page 12 VGA connector header file drivers/gpu/drm/rcar-du/rcar_lvds_regs.h LVDS register header file drivers/gpu/drm/rcar-du/vsp_du_if.c vsp-du interface file drivers/gpu/drm/rcar-du/vsp_du_if.h vsp-du interface header file drivers/gpu/drm/rcar-du/vspd_dl.c vspd display list file drivers/gpu/drm/rcar-du/vspd_drv.h vsp driver header file REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 12 of 83...
  • Page 13 TVP5150 TV-In driver file drivers/media/i2c/tvp5150_reg.h TVP5150 TV-In header file include/media/ov772x.h OV7725 Camera header file include/linux/platform_data/camera_rcar.h Video capture driver header file Touch drivers/input/touchscreen/edt-ft5x06.c Touch Driver Source file include/linux/input/edt-ft5x06.h Touch Driver header file REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 13 of 83...
  • Page 14: Device Tree Source Description

    This device tree source include file defines the common CPU controllers configuration of RZ/G1H (Quad) processors used in iW- RainboW-G21 platform. r8a7742-iwg21m_q7.dts This device tree source file is for Renesas R8A7742 (Quad) processors used in iW-RainboW-G21 platforms. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 14 of 83...
  • Page 15: Bsp Yocto Compilation

    $ sudo apt-get install sed wget cvs subversion git-core coreutils \ unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk \ python-pysqlite2 diffstat help2man make gcc build-essential \ g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev \ mercurial autoconf automake groff bc libtool xterm REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 15 of 83...
  • Page 16: Yocto Project Setup

    $ patch -Np1 < <path to Yocto patch file>/PATCH003-iW-PREXZ-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. iW-RainboW-G21M-Q7-RX.X-RELX.X-Linux3.10.31-YoctoDaisy_Deliverables/Source- Code/Linux/Yocto/copy_proprietary_softwares.sh iW-RainboW-G21M-Q7-RX.X-RELX.X-Linux3.10.31-YoctoDaisy_Deliverables/Source- Code/Linux/Yocto/PKG-DIR REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 16 of 83...
  • Page 17 $ cp -rf ../meta-renesas/meta-rzg1/templates/iwg21m_q7-config/local-x11.conf ./conf/local.conf  To build Wayland for iWG21 platform, overwrite the local.conf file with wayland configuration files by executing the below command $ cp -rf ../meta-renesas/meta-rzg1/templates/iwg21m_q7-config/local-wayland.conf ./conf/local.conf REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 17 of 83...
  • Page 18: Yocto Build

    Rename the binary files as mentioned below core-image-<x11/weston>-iwg21m-<date & time>.rootfs.tar.bz2 - -> rootfs.tar.bz2 uImage--<revision>-iwg21m-<date & time>.bin - -> uImage uImage--<revision>-r8a7742-iwg21m_q7-<date & time>.dtb - - > r8a7742-iwg21m_q7.dtb u-boot-iwg21m-<revision>.bin - -> u-boot.bin REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 18 of 83...
  • Page 19  Refer the BINARY PROGRAMMING section to update the Linux kernel binary. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 19 of 83...
  • Page 20: U-Boot

    After the successful compilation the binaries will be placed in below path. ~/<path to iwg21m-release-bsp>/iwg21-release-bsp/build/tmp/work/cortexa15hf-vfp-neon-poky- linux-gnueabi/u-boot-iwg21m/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.2 iWave Systems Technologies Pvt. Ltd. Page 20 of 83...
  • Page 21: Linux Kernel

    The binary files are listed below uImage dts/r8a7742-iwg21m_q7.dtb  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.2 iWave Systems Technologies Pvt. Ltd. Page 21 of 83...
  • Page 22: Cross-Compiler Build

    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.2 iWave Systems Technologies Pvt. Ltd. Page 22 of 83...
  • Page 23: Bsp Standalone Compilation

    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. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 23 of 83...
  • Page 24: Loader

    To compile the Loader image, execute the below commands. host@host/<Directory>/loader-iwg21m~$ make  After successful compilation, Loader (iw_rainbow_G21M_SPI_loader_v031.bin) will be created in the below path respectively. ~/output/iW_Rainbow_G21M_SPI_LOADER_V031.bin  Refer the BINARY PROGRAMMING section to update the Loader binary. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 24 of 83...
  • Page 25: U-Boot

     Create a directory and open the directory in host to build the u-boot. host@host~$ mkdir <directory_name> host@host~$ cd <directory_name>  Un-tar the downloaded u-boot-iwave.tar.gz file in to newly created directory. host@host/<directory>~$ tar -xvzf /<path to iW-RainboW-G21M-Q7-RX.X-RELX.X-Linux3.10.31- YoctoDaisy_Deliverables>/iW-RainboW-G21M-Q7-RX.X-RELX.X-Linux3.10.31- YoctoDaisy_Deliverables/Source-Code/U-Boot/uboot-iwg21m.tar.gz ...
  • Page 26: Linux Kernel

    Create a directory and open the directory in host to build the Linux. host@host~$ mkdir <directory_name> host@host~$ cd <directory_name>  Un-tar the downloaded linux-iwg21m.tar.gz file in to newly created directory. host@host/<Directory>~$ tar -xvzf /<path_to_ iW-RainboW-G21M-Q7-RX.X-RELX.X-Linux3.10.31- YoctoDaisy_Deliverables>/iW-RainboW-G21M-Q7-RX.X-RELX.X-Linux3.10.31- YoctoDaisy_Deliverables/Source-Code/Linux/Kernel/linux-iwg21m.tar.gz host@host/<Directory>~$ sync  Copy the kernel patch file to current directory. host@host/<Directory>~$ /<path_to_...
  • Page 27 After successful compilation, kernel image (uImage) and device tree (.dtb) will be created in the below path respectively. ~/linux-iwg21m/arch/arm/boot/uImage ~/linux-iwg21m/arch/arm/boot/dts/r8a7742-iwg21m_q7.dtb  Refer the BINARY PROGRAMMING section to update the Linux kernel binary. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 27 of 83...
  • Page 28: Bsp Customization

     Add the pfc,I2C2 pins as mentioned below &pfc { pinctrl-0 = <&du_pins &du0_pins &usb0_pins &usb1_pins >; pinctrl-names = "default"; i2c2_pins: i2c2 { renesas,groups = "i2c2"; renesas,function = "i2c2"; REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 28 of 83...
  • Page 29: Uart

    = 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/r8a7742_iwg21m.dtsi file. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 29 of 83...
  • Page 30: Lvds

    .clock = 30066, .hdisplay = 800, .hsync_start = 840, .hsync_end = 928, .htotal = 1056, .vdisplay = 480, .vsync_start = 490, .vsync_end = 523, .vtotal = 525, .flags = 0, REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 30 of 83...
  • Page 31: Primary Display

    .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...
  • Page 32: Yocto Package

    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 REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 32 of 83...
  • Page 33 RZ/G1H Qseven SOM Linux User Guide BSP Yocto Compilation to compile the Yocto with package added. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 33 of 83...
  • Page 34: Binary Programming

    To program the binaries into RZ/G1H SOM through JTAG Debugger, following Items are required:  JTAG Debugger  Power Supply  RZ/G1H development platform. Note: Here PEEDI JTAG debugger is taken as example. (http://www.ronetix.at/peedi.html) REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 34 of 83...
  • Page 35: Booting Via Jtag

    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.2 iWave Systems Technologies Pvt. Ltd. Page 35 of 83...
  • Page 36: U-Boot Programming

    Example: iWave-G21M > sf write 0x50000000 0x0 3A00 iWave-G21M > sf write 0x50004000 0x20000 3A000  Hence, the u-boot and loader is programmed to SPI flash through JTAG Debugger. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 36 of 83...
  • Page 37: Manual Programming

    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.2 iWave Systems Technologies Pvt. Ltd. Page 37 of 83...
  • Page 38: Emmc Partition

    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.2 iWave Systems Technologies Pvt. Ltd. Page 38 of 83...
  • Page 39 Now format both the partitions. Partition 1 as VFAT i.e windows partition and 2nd partition as EXT3. $ sudo mkfs.vfat /dev/mmcblk1p1 $ sudo mkfs.ext3 /dev/mmcblk1p2  Reboot the board and now eMMC is ready to be programmed. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 39 of 83...
  • Page 40: U-Boot Programming

    Program the loader to SPI Flash root@iWave-G21M/<mount_directory>~$ dd if=iW_RainboW_G21M_SPI_LOADER_V031.bin of=/dev/mtdblock0 bs=1 root@iWave-G21M/<mount_directory>~$ sync  Program the u-boot binary to SPI flash root@iWave-G21M/<mount_directory>~$ dd if=u-boot.bin of=/dev/mtdblock0 bs=1k seek=128 root@iWave-G21M/<mount_directory>~$ sync REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 40 of 83...
  • Page 41: Kernel Programming

    -xvf rootfs.tar.bz2 -C /media/mmcblk1p2/ root@iWave-G21M/<mount_directory>~$ sync  Copy the iwtest folder to linux partition of eMMC root@iWave-G21M/<mount_directory>~$ cp -rf iwtest /media/mmcblk1p2 root@iWave-G21M/<mount_directory>~$ sync  Reboot the board root@iWave-G21M/<mount_directory>~$ reboot REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 41 of 83...
  • Page 42: Bootable Sd Card

    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.2 iWave Systems Technologies Pvt. Ltd. Page 42 of 83...
  • Page 43 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.2 iWave Systems Technologies Pvt. Ltd. Page 43 of 83...
  • Page 44  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.2 iWave Systems Technologies Pvt. Ltd. Page 44 of 83...
  • Page 45: Sd Card Programming

    $ 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/G1H SOM to boot the Linux. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 45 of 83...
  • Page 46: U-Boot Testing And Boot Configuration

    = <NULL> baudrate = 115200 bps TLB addr = 0x5FFF0000 relocaddr = 0x5FF77000 reloc off = 0x79C73000 irq_sp = 0x5FE74F60 sp start = 0x5FE74F50 FB base = 0x00000000 REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 46 of 83...
  • Page 47: Ram Test

    > mw <RAM_addr> <DATA> <No_of_location_to_be_write>  To display the data in the RAM location, execute the below command. iWave-G21M > md <RAM_addr> <No_of_location_to_be_display>  To test the RAM read/write, execute the below command. iWave-G21M > mtest <RAM_addr_start> <RAM_addr_end> <DATA> <No_of_times>...
  • Page 48: Sd/Mmc Test

    Device: sh-sdhi Manufacturer ID: 3 OEM: 5344 Name: SU04G Tran Speed: 25000000 Rd Block Len: 512 SD version 3.0 Clock: 50000000 High Capacity: Yes Capacity: 3965190144 Bytes Bus Width: 4-bit REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 48 of 83...
  • Page 49: Spi Nor Flash Test

    To show the USB storage devices details, execute the below command. iWave-G21M> usb storage  To set/ show the current USB storage device, execute the below command. iWave-G21M> usb dev <device id> Example: iWave-G21M> usb dev 0 REL 1.2 iWave Systems Technologies Pvt. Ltd.
  • Page 50: Ethernet Test

    Open file /etc/exports by below comment $ sudo vim /etc/exports  Insert the following line in /etc/exports file <path to rootfs> *(rw,sync,no_root_squash) Example: /home/iwave/test/rootfs *(rw,sync,no_root_squash)  Restart the NFS server. $ sudo /etc/init.d/nfs-kernel-server restart REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 50 of 83...
  • Page 51 $ sudo chown -R <user_name>:<user_name> /tftpboot  Restart the tftp services, $ sudo service xinetd restart  Verify the TFTP is running correctly or not $netstat -na | grep LIST | grep 22 REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 51 of 83...
  • Page 52: Environment Variables Settings

    'setenv bootargs ${bootargs_base} root=/dev/mmcblk0p2 rootwait rootfstype=ext3 rw' iWave-G21M > setenv bootcmd 'run bootcmd_ssd' iWave-G21M > saveenv  To boot the platform, execute the below command. iWave-G21M > boot REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 52 of 83...
  • Page 53: Tftp & Nfs Boot

    Example: iWave-G21M > setenv bootargs_mmc ‘setenv bootargs ${bootargs_base} root=/dev/mmcblk1p2 rootwait rootfstype=ext3 rw video=HDMI-A-1:640x480-16@60’  To save the environment variables, execute the below command. iWave-G21M> saveenv REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 53 of 83...
  • Page 54: Vin Camera Selection

    >env default -f -a iWave-G21M >saveenv iWave-G21M >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.2 iWave Systems Technologies Pvt. Ltd. Page 54 of 83...
  • Page 55: Linux Peripheral Testing

    To test the block devices supported by RZ/G1H SOM, following Items are required.  USB memory stick  Standard SD  USB Type A to micro B cable.  PCIe SATA module  SATA module REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 55 of 83...
  • Page 56: Block Device Test

    Note: In RZ/G1H CPU, PCIe & SATA1 High speed transceivers are multiplexed in same pins and so either one interface only can be used at a time. By default PCIe is supported in RZ/G1H SOM. Please contact iWave if SATA support is required.
  • Page 57: Usb Otg As Device

    To unload the modules, execute the below command root@iWave-G21M:/iwtest# rmmod g_mass_storage.ko root@iWave-G21M:/iwtest# rmmod libcomposite.ko root@iWave-G21M:/iwtest# rmmod configfs.ko  To change the directory to “root” folder, execute the below command root@iWave-G21M~$ cd /home/root REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 57 of 83...
  • Page 58: Spi Nor Flash Test

    To exit from the mount partitions and to unmount, execute the below command. root@iWave-G21M/<mount_directory>$ cd /root  To unmount the device, execute the below command. root@iWave-G21M~$ umount <Mount Directory> REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 58 of 83...
  • Page 59: Network Devices Test

    (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.2 iWave Systems Technologies Pvt. Ltd. Page 59 of 83...
  • Page 60 PING ********** (**********) 56(84) bytes of data. 64 bytes from **********: icmp_seq=1 ttl=64 time=0.206 ms 64 bytes from **********: icmp_seq=2 ttl=64 time=0.160 ms 64 bytes from **********: icmp_seq=6 ttl=64 time=0.161 ms REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 60 of 83...
  • Page 61: Ethernet Speed And Duplex Settings

    To view the NFS mounted files and folders, execute below command. root@iWave-G21M~$ ls /<mount_directory>/ Note: To configure the host PC (under Linux OS) for TFTP and NFS server refer the TFTP & NFS Host PC setup section. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 61 of 83...
  • Page 62: Can Test

    Note: Execute CAN receive command in receiver side before transmitting the data and If customer uses their own CAN device with the G21M platform then user has to take care of the particular CAN device application part REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 62 of 83...
  • Page 63: Display Devices Test

    Figure 2: LCD -Yocto GUI 5.3.3 HDMI Test  While the HDMI is connected to RZ/G1H SOM, GUI will be displayed in HDMI as follows. Figure 3: HDMI -Yocto GUI REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 63 of 83...
  • Page 64: Qseven Lvds Control Test

    To change the brightness, execute below command. root@iWave-G21M~/$ 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.2 iWave Systems Technologies Pvt. Ltd. Page 64 of 83...
  • Page 65: Hid Devices Test

    1-1.2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes input: DELL Dell Entry Keyboard /devices/ee000000.xhci/usb1/1-1/1-1.2/1- 1.2:1.0/input/input3 hid-generic 0003:413C:2107.0003: input: USB HID v1.10 Keyboard [DELL Dell USB Entry Keyboard] on usb-ee000000.xhci-1.2/input0 REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 65 of 83...
  • Page 66: Touch Screen Test

    To calibrate the touch screen, execute the below shown steps.  Click on the menu bar and select the Utilities menu as mentioned in below steps. Figure 4 : Yocto home screen Figure 5: Yocto menu selection REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 66 of 83...
  • Page 67: Figure 6: Yocto Touch Calibration Icon

    After selecting the Utilities menu, to calibrate the touch screen, click on the “Calibration Touch” icon as mentioned below. Figure 6: Yocto Touch calibration Icon  Calibrate the touch screen as mentioned below screen. Figure 7: Yocto Touch calibration REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 67 of 83...
  • Page 68: Uart Test

    Flow control: none  To transmit data through the UART, execute the below command. root@iWave-G21M/$echo “uart_test_mesage” > /dev/<node> Example: root@iWave-G21M/$ echo iW-RainboW-G21M > /dev/ttySC3  To receive the data by UART, execute the below command. root@iWave-G21M/$cat /dev/<node> Example: root@iWave-G21M/$cat /dev/ttySC3 ...
  • Page 69: Pcie Device Test

     To set the date and time, execute the below command. root@iWave-G21M/$date -s Example: root@iWave-G21M:~# date -s "2016-3-16 10:40:50" Wed Mar 16 10:40:50 UTC 2016  To update the set date and time into hardware clock, execute the below command.
  • Page 70: Multimedia Test

    -d 10  To play an audio file, execute the below command. root@iWave-G21M~$ aplay -D plughw:<card>,<subdevice> /<path to audio file>/<audiofile_name> Example: root@iWave-G21M~$ aplay -D plughw:0,0 /iwtest/jazz.wav REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 70 of 83...
  • Page 71: Camera Test

    -d /dev/media0 -l '"vsp1.2 rpf.0":1 -> "vsp1.2 uds.0":0 [1]' root@iWave-G21M~$ media-ctl -d /dev/media0 -l '"vsp1.2 uds.0":1 -> "vsp1.2 wpf.0":0 [1]' root@iWave-G21M~$ media-ctl -d /dev/media0 -l '"vsp1.2 wpf.0":1 -> "vsp1.2 lif":0 [1]' REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 71 of 83...
  • Page 72: Gpu Test

    The given BSP supports GPU libraries. The Processors supports OpenGL ES. This section explains how to test GPU in the RZ/G1H SOM.  To test GPU information, execute the below command root@iWave-G21M~$ cd /usr/local/bin/ root@iWave-G21M/usr/local/bin~$ ./gles2test1 100 REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 72 of 83...
  • Page 73: Gstreamer Test

    To specify the resolution for input data for HDMI, execute the below command (input resolution is 1920x1080). root@iWave-G21M~$ media-ctl -d /dev/media1 -V '"vsp1.3 rpf.0":0 [fmt:AYUV32/1920x1080]' root@iWave-G21M~$ media-ctl -d /dev/media1 -V '"vsp1.3 rpf.0":1 [fmt:AYUV32/1920x1080]' root@iWave-G21M~$ media-ctl -d /dev/media1 -V '"vsp1.3 uds.0":0 [fmt:AYUV32/1920x1080]' REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 73 of 83...
  • Page 74 Run gst-launch-1.0 command to play video in HDMI as follows root@iWave-G21M~$ gst-launch-1.0 filesrc location=<filename> ! qtdemux ! omxh264dec no- copy=true ! v4l2sink device=`media-ctl -d /dev/media1 -e "vsp1.3 rpf.0 input"` io-mode=userptr REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 74 of 83...
  • Page 75: Gpio Testing

    To switch on the thermal trip LED, execute the below command root@iWave-G21M~$ echo 0 > /sys/class/gpio/gpio875/value  To switch off the thermal trip LED, execute the below command root@iWave-G21M~$ echo 1 > /sys/class/gpio/gpio875/value REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 75 of 83...
  • Page 76: Table 5: Gpio Device Node

     To set the GPIO value when set as output, execute the below command root@iWave-G21M~$ 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.
  • Page 77: Processor Cooling Fan Control Test

    To control Fan speed using PWM, execute the below command root@iWave-G21M~$ echo 7 > /sys/class/backlight/fan.<X>/brightness  PWM output can be varied from 0 – 7. Observe the FAN speed for different values. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 77 of 83...
  • Page 78: Wayland

    To set environment variable and exporting libraries required for Gstreamer, execute the below command root@iWave-G21M~$ export LD_LIBRARY_PATH="/lib:/usr/lib:/usr/local/lib:"  To load memory needed for Gstreamer, execute the below command. root@iWave-G21M~$ modprobe -a mmngr mmngrbuf s3ctl uvcs_cmn vspm fdpm REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 78 of 83...
  • Page 79: Gpu Test

    The given BSP supports GPU libraries. The Processors supports OpenGL ES. This section explains how to test GPU in the RZ/G1H SOM.  To test GPU information in Wayland, execute the below command root@iWave-G21M~$ export XDG_RUNTIME_DIR=/var/run/user/root root@iWave-G21M~$ weston-simple-egl REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 79 of 83...
  • Page 80: Gstreamer Test

    ! queue ! aacparse ! faad ! alsasink device=hw:0,0 demux.video_0 ! queue ! h264parse ! omxh264dec ! vspfilter ! video/x-raw, format=BGRA, width=800, height=480 ! waylandsink REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 80 of 83...
  • Page 81: Appendix - Frequently Asked Questions

    $echo 1 > /sys/class/graphics/fbcon/cursor_blink 8. How to make display to wake up when screen goes off? To make screen on, execute the below command DISPLAY=:0 xset -dpms s off REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 81 of 83...
  • Page 82: Table 7: Som Switch Settings

    Table 7: SOM Switch settings Switch on SOM Description ON – VIN0 Camera OFF – EtherAVB selected ON – VIN1 camera OFF – eMMC (8-bit) For more details, refer the iW-RainboW-G21D-RZG1H_QsevenSOM-HardwareUserGuide-RELx.x. REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 82 of 83...
  • Page 83 RZ/G1H Qseven SOM Linux User Guide REL 1.2 iWave Systems Technologies Pvt. Ltd. Page 83 of 83...

Table of Contents