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 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...
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...
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...
$ 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...
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...
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...
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...
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...
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...
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 ...
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...
= 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...
.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 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...
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...
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...
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...
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...
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...
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...
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...
$ 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...
> 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>...
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.
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...
>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...
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...
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.
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...
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...
(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...
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...
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...
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...
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...
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...
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...
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 ...
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.
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...
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...
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.
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...
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...
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...
$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...
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...
Need help?
Do you have a question about the iW-RainboW-G21M and is the answer not in the manual?
Questions and answers