background image

 

 

REL 1.0 

Page 13 of 69 

iWave Systems Technologies Pvt. Ltd. 

iW-RainboW-G15D Linux User Manual 

2.1.3

 

Device tree source description 

This section explains about  the device  tree  source  code  configuration and organization for iW-RainboW-G15M-Q7 

platform. The device tree source codes will be available in below path of the Linux kernel. 

~/arch/arm/boot/dts/ 

Table 3: Device tree source 

File Name 

Description 

imx6qdl_iwg15.dtsi 

This  device  tree  source  include  file  defines  the  common  SOC 
controllers  configuration  of  i.MX6  (Quad,Dual,Duallite  &  Solo) 
processors used in iW-RainboW-G15 platforms. 

imx6q_iwg15.dtsi 

This  device  tree  source  include  file  defines  the  specific  SOC 
controllers configuration of i.MX6 Quad and Dual processors used in 
iW-RainboW-G15 platforms. 

imx6dl_iwg15.dtsi 

This  device  tree  source  include  file  defines  the  specific  SOC 
controllers configuration of i.MX6 Duallite and Solo processors used 
in iW-RainboW-G15 platforms. 

imx6qdl-iwg15m-q7.dtsi 

This  device  tree  source  include  file  defines  the  peripherals  used  in 
iW-RainboW-G15M-Q7 SOM. 

imx6dls-iwg15m-q7_pmic_ldoactive.dts 

This device tree source file is for i.MX6 Duallite and solo PMIC SOMs 
with CPU regulators in LDO active mode. 

imx6qd-iwg15m-q7_pmic_ldoactive.dts 

This  device  tree  source  file  is  for  i.MX6  Quad  and  Dual  PMIC  SOMs 
with CPU regulators in LDO active mode. 

imx6dqp-iwg15m-q7_pmic_ldoactive.dts 

This device tree source file is for i.MX6 Quad plus and Dual plus PMIC 
SOMs with CPU regulators in LDO active mode. 

imx6dls-iwg15m-q7_ldobypass.dts 

This  device  tree  source  file  is  for  i.MX6 Duallite  and  solo  Non PMIC 
SOMs with CPU regulators in LDO bypass mode. 

imx6qd-iwg15m-q7_ldobypass.dts 

This device tree source is for i.MX6 Quad and Dual Non PMIC SOMs 
with CPU regulators in LDO bypass mode. 

imx6dqp-iwg15m-q7_ldobypass.dts 

This  device  tree  source  is  for  i.MX6  Quad  plus  and  Dual  plus  Non 
PMIC SOMs with CPU regulators in LDO bypass mode. 

imx6dls-iwg15m-q7_pmic_ldobypass.dts 

This device tree source file is for i.MX6 Duallite and solo PMIC SOMs 
with CPU regulators in LDO bypass mode. 

imx6qd-iwg15m-q7_pmic_ldobypass.dts 

This  device  tree  source  file  is  for  i.MX6  Quad  and  Dual  PMIC  SOMs 
with CPU regulators in LDO bypass mode. 

imx6dqp-iwg15m-q7_pmic_ldobypass.dts 

This device tree source file is for i.MX6 Quad plus and Dual plus PMIC 
SOMs with CPU regulators in LDO bypass mode. 

imx6dls-iwg15m-q7_ldoactive.dts

1

 

This  device  tree  source  file  is  for  i.MX6 Duallite  and  solo  Non PMIC 
SOMs with CPU regulators in LDO active mode. 

imx6qd-iwg15m-q7_ldoactive.dts

1

 

This  device  tree  source  file  is  for  i.MX6  Quad  and  Dual  Non  PMIC 
SOMs with CPU regulators in LDO active mode. 

imx6dqp-iwg15m-q7_ldoactive.dts

1

 

This device tree source file is for i.MX6 Quad plus and Dual plus Non 
PMIC SOMs with CPU regulators in LDO active mode. 

1

 

It  is  not  recommended  to  use  the  CPU  regulators  in  LDO  active  mode  in  Non  PMIC  SOMs.    This  may  lead  to 

hardware bug. 

 

Summary of Contents for iW-RainboW-G15D

Page 1: ...REL 1 0 Page 1 of 69 iWave Systems Technologies Pvt Ltd iW RainboW G15D Linux User Manual iW RainboW G15D i MX6 Qseven SOM Development platform Linux User Guide ...

Page 2: ...ument contains proprietary material for the sole use of the intended recipient s Do not read this document if you are not the intended recipient Any review use distribution or disclosure by others is strictly prohibited 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 c...

Page 3: ... for the silicon errata and associated issues Trademarks All registered trademarks and product names mentioned in this publication are used for identification purposes only Certification iWave Systems Technologies Pvt Ltd is an ISO 9001 2015 Certified Company Warranty RMA Warranty support for Hardware 1 Year from iWave or iWave s EMS partner For warranty terms go through the below web link http ww...

Page 4: ...the repo utility 15 2 2 5 Yocto project setup 15 2 2 6 Cross compiler build 16 2 2 7 Yocto build 17 2 2 8 U boot 18 2 2 9 Linux kernel 19 2 3 BSP Standalone compilation 19 2 3 1 U Boot 20 2 3 2 Linux kernel 21 2 4 BSP Customization 23 2 4 1 Display device 23 2 4 2 I2C device 24 2 5 Default Linux boot logo 24 3 BINARY PROGRAMMING 25 3 1 MFG Tool Programming 25 3 1 1 Requirements 25 3 1 2 MFG Tool 2...

Page 5: ...UX PERIPHERAL TESTING 45 5 1 Block devices Test 45 5 1 1 SD eMMC USB host USB OTG as host SATA test 46 5 1 2 USB OTG as device 47 5 1 3 SPI NOR Flash Test 49 5 2 Network devices Test 49 5 2 1 Ethernet Test 50 5 2 2 CAN Test 52 5 2 3 Bluetooth Test 53 5 3 Display devices Test 54 5 3 1 PWM brightness Test 54 5 3 2 Qseven LVDS control Test 54 5 3 3 LVDS 1 Test 55 5 3 4 LVDS 2 Test 55 5 3 5 HDMI Test ...

Page 6: ... iWave Systems Technologies Pvt Ltd iW RainboW G15D Linux User Manual 5 10 1 Audio Test 64 5 10 2 Camera Test 65 5 10 3 Gstreamer Test 66 5 10 4 VPU Test 67 5 10 5 GPU Test 67 6 APPENDIX 68 6 1 Frequently Asked Question 68 ...

Page 7: ... 2 Platform Detection 27 Figure 3 Binary Programming Succeed 28 Figure 4 OTG device detection on Host PC 48 Figure 5 LCD Image Dump 55 Figure 6 HDMI 1080p Image 56 Figure 7 HDMI 720p Image 57 Figure 8 Yocto home screen 58 List of Tables Table 1 Acronyms Abbreviations 8 Table 2 Driver Source Path 10 Table 3 Device tree source 13 Table 4 Codec list 67 ...

Page 8: ...ge and a root file system for iW RainboW G15M Q7 platform 1 3 List of Acronyms The following acronyms will be used throughout this document Table 1 Acronyms Abbreviations Acronyms Abbreviations BSP Board Support Package CAN Controller Area Network CPU Central Processing Unit CSI Camera Serial Interface DDR3 Double Data Rate 3 eMMC Enhanced Multi Media Card HDMI High Definition Multimedia Interface...

Page 9: ...tems Technologies Pvt Ltd iW RainboW G15D Linux User Manual Acronyms Abbreviations SOM System On Module SPI Serial Peripheral Interface UART Universal Asynchronous Receiver Transmitter USB Universal Serial Bus USB OTG USB On The Go ...

Page 10: ...mmc host mxc_mmc h MMC driver header file drivers mmc host mxc_mmc c MMC driver source file PCIe drivers pci host pci imx6 c PCIe controller source file SATA drivers ata ahci_imx c SATA driver source file SD drivers mmc host sdhci c SDHI driver source file drivers mmc host sdhci pltfm c SDHI platform layer file drivers mmc host sdhci esdhc imx c uSDHC driver source file drivers mmc host sdhci esdh...

Page 11: ...ers mxc ipu3 ipu_capture c IPU CSI capture base driver source file drivers mxc ipu3 ipu_calc_stripes_sizes c Multistripes method functions for ipu_device c drivers mxc ipu3 pre c Prefetch Resolve the engine driver source file drivers mxc ipu3 prg c Prefetch Resolve the Gasket driver source file drivers mxc ipu3 ipu_param_mem h IPU parameter memory access helper functions header file drivers mxc ip...

Page 12: ...configurations source file drivers gpio gpiolib c GPIO library source file arch arm include asm gpio h GPIO header file include linux gpio h I2C drivers i2c busses i2c imx c I2C bus driver source file Touch drivers input touchscreen edt ft5x06 c Touch driver Source file Thermal drivers thermal imx_thermal c Thermal zone driver source file drivers thermal device_cooling c Regulator drivers regulato...

Page 13: ...c_ldoactive dts This device tree source file is for i MX6 Quad plus and Dual plus PMIC SOMs with CPU regulators in LDO active mode imx6dls iwg15m q7_ldobypass dts This device tree source file is for i MX6 Duallite and solo Non PMIC SOMs with CPU regulators in LDO bypass mode imx6qd iwg15m q7_ldobypass dts This device tree source is for i MX6 Quad and Dual Non PMIC SOMs with CPU regulators in LDO b...

Page 14: ...thon versions which are available only starting with Ubuntu 14 04 2 2 3 Host package installation To get the Yocto Project expected behaviour in a Linux Host Machine the packages and utilities described below must be installed An important consideration is the hard disk space required in the host machine For example when building on a machine running Ubuntu the minimum hard disk space required is ...

Page 15: ...obal user name Your Name git config global user email Your Email repo init u git git freescale com imx fsl arm yocto bsp git b imx 4 1 krogoth m imx 4 1 15 2 1 0 xml repo sync Perform repo synchronization with the command repo sync periodically to update to the latest codes During the synchronization the git configuration may confirm the user name email and color display of the user account as men...

Page 16: ... cross compiler and this cross compiler can be used for standalone compilation of U boot and Linux kernel Open a terminal window and change the directory to yocto setup path cd path to iwg15 release bsp iwg15 release bsp To setup environment build path execute the below command This is required only once on switching of every new terminal window MACHINE imx6qdl iwg15 q7 source setup environment bu...

Page 17: ...d the yocto image execute the below commands bitbake f fsl image gui After the successful compilation the binaries will be placed in below path path to iwg15 release bsp iwg15 release bsp build_iwg15 tmp deploy images imx6qdl iwg15 q7 The binary files are listed below fsl image gui imx6qdl iwg15 date time rootfs tar bz2 zImage revision imx6 iwg15m q7_ date time dtb zImage revision imx6qdl iwg15m q...

Page 18: ...ired only once on switching of every new terminal window MACHINE imx6qdl iwg15 q7 source setup environment build_iwg15 To compile the u boot execute the below command bitbake u boot iwg15 To re build u boot execute the below commands bitbake f c compile u boot iwg15 After the successful compilation the binaries will be placed in below path path to iwg15 release bsp iwg15 release bsp build_iwg15 tm...

Page 19: ...he zImage will be placed in below path path to iwg15 release bsp iwg15 release bsp build_iwg15 tmp work imx6qdl_iwg15_q7 poky linux gnueabi linux iwg15 4 1 15 r0 build arch arm boot The dtb files will be placed in below path path to iwg15 release bsp iwg15 release bsp build_iwg15 tmp work imx6qdl_iwg15_q7 poky linux gnueabi linux iwg15 4 1 15 r0 build arch arm boot dts The binary files are listed ...

Page 20: ...inux4 1 15_UBoot_basic_customization patch Change the directory to u boot source code directory host host directory cd path to u boot source u boot iwg15 To apply the patch file execute the below command host host directory u boot iwg15 patch Np1 PATCH001 iW PRDVZ SC 01 RX X RELX X Linux4 1 15_UBoot_basic_customization patch To export the Cross Compiler and tool chain path execute the below comman...

Page 21: ... SC 01 RX X RELX X Linux4 1 15_Kernel_basic_customization patch Change the directory to Linux source code directory host host Directory cd path_to_linux iwg15 linux iwg15 To apply the patch file execute the below command host host Directory linux iwg15 patch Np1 PATCH002 iW PRDVZ SC 01 RX X RELX X Linux4 1 15_Kernel_basic_customization patch Export the architecture cross compiler and tool chain pa...

Page 22: ... Change the directory to Linux source code directory host host Directory cd path_to_linux iwg15 linux iwg15 To apply the audio in patch file execute the below command host host Directory linux iwg15 patch Np1 path to patch file PATCH003 iW PRDVZ SC 01 RX X RELX X Linux4 1 15_Kernel_audio in_customization patch Export the architecture cross compiler and tool chain path host host Directory linux iwg...

Page 23: ...orts 800x480 resolution RGB666 pixel format and 16 bpp Add the display formats in the frame buffer as mentioned below mxcfb1 fb 0 compatible fsl mxc_sdc_fb disp_dev ldb interface_pix_fmt RGB666 default_bpp 16 int_clk 0 late_init 0 status disabled Add the display timing parameters such as horizontal and vertical active period blanking period pixel clock etc as mentioned below ldb status okay lvds c...

Page 24: ...ctrl_i2c2_1 i2c2 q7 fsl pins MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1 Add the mag3110 in I2C2 bus devices as mentioned below i2c2 clock frequency 100000 pinctrl names default pinctrl 0 pinctrl_i2c2_1 status okay mag3110 0e compatible fsl mag3110 reg 0x0e position 2 2 5 Default Linux boot logo To Enable Default Linux Boot logo deselect Standard 224 color iWa...

Page 25: ...tool 3 1 1 Requirements To program the binaries for iW RainboW G15M Q7 platform following Items are required Micro SD Standard SD eMMC SATA Binary files u boot imx zImage imx6 iwg15m q7 dtb rootfs tar bz2 USB type A to micro B cable for MFG Tool programming Host PC Windows for MFG Tool programming The below figure shows the minimum memory requirement of partition for the boot device Figure 1 Boot ...

Page 26: ...tion section in this document The pre built binaries for iW RainboW G15M Q7 Quad Dual DualLite Solo QuadPlus DualPlus platform will be in built with IW G15M Q7LXC_RX X RELX X_MFG_ package in the Deliverables 3 1 3 Programming Device Selection SPI NOR Flash is the default boot device Open the cfg ini file with Notepad change the name to select the boot device for programming the binaries as shown b...

Page 27: ...iW RainboW G15M Q7 platform with host PC via USB OTG port The MFG Tool package will be in the below path iW RainboW G15M Q7 RX X RELX X Linux4 1 15 YoctoKrogoth_Deliverables MFG Tool iW RainboW G15M Q7 R5 0 REL1 0 Linux4 1 15 MFG Copy the binary files into the below path in case to program the user compiled binaries iW RainboW G15M Q7 R5 0 REL1 0 Linux4 1 15 MFG Profiles Linux OS Firmware files Op...

Page 28: ...dows7 when it runs in the updater phase a popup message will be shown to ask whether disk should be formatted Please ignore it or click the Cancel button It will not affect any function When the xml file ucl2 xml or the configuration file cfg ini or UICfg ini is modified while the application is running the change will not work until the application is restarted If you stop the application in betw...

Page 29: ...D card reader to the PC Execute mount command to see the attached nodes and mount points mount SD card may attach to the dev nodes either sdb sdc sdd sde Assume the SD card is attached to dev sdb node Unmount if dev sdb is mounted in any mount point SD card should not be mounted while partitioning umount dev sdb Start partitioning using fdisk command sudo fdisk dev sdb After running fdisk it will ...

Page 30: ... going to create second partition Command m for help n Command action e extended p primary partition 1 4 Press p to create primary partition Give 2 as partition number Just press enter without any arguments for First and Last cylinder Because First Last cylinder locations will be displayed from end of 1st partition to end of disk p Partition number 1 4 2 First cylinder 513 1038 default 513 513 Las...

Page 31: ...d Blocks Id System dev sdb1 7 512 492001 6 FAT16 dev sdb2 513 1038 505486 83 Linux Now the partitions are created as above Save these changes by pressing w Command m for help w Again make sure both the partitions are unmounted umount dev sdb1 umount dev sdb2 umount dev sdb1 Now format both the partitions Partition 1 as DOS windows partition and 2nd partition as EXT4 Linux sudo mkdosfs dev sdb1 sud...

Page 32: ...if path into uboot imx u boot imx of dev mount point of sdcard bs 512 seek 2 conv fsync Copy zImage and dtb files into SD card windows partition cp path_to_zImage zImage media mount_point_of_sdcard VFAT partition cp path_to_dtb files imx6 iwg15m q7 dtb media mount_point_of_sdcard VFAT partition Untar the tar file rootfs tar bz2 inside the SD card Linux partition sudo tar jxvf path_to_rootfs tar gz...

Page 33: ...QuickStartGuide document to connect debug UART and power ON procedure To enter in boot loader console refer the section Linux Test Environment section in iW RainboW G15D QuickStartGuide document to get the boot loader console Note Refer the section Boot Media Setting in i MX6 QsevenSOM HardwareUserGuide document for boot media device selection 4 1 Basic commands To find available commands and desc...

Page 34: ...00 start 0x10000000 size 0x40000000 ethaddr aa bb cc dd ee f1 baudrate 115200 bps DRAM bank 0x00000000 start 0x10000000 size 0x40000000 ethaddr aa bb cc dd ee f1 baudrate 115200 bps 4 2 Basic device Tests In U Boot level the supported devices are RAM Standard SD Micro SD eMMC SPI NOR flash I2C SATA Ethernet Note To know about the procedure for connecting the peripherals to iW RainboW G15M Q7 platf...

Page 35: ...n AABBCCDD Writing Reading Tested 1 iteration s without errors 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 0x10008000 is the u boot RAM location and this RAM area should not be accessed 4 2 2 SD MMC Test Initialize the particular SD eMMC device by the below command iWave G15 mmc de...

Page 36: ...s size Example iWave G15 sf erase 0x000000 0x10000 Erasing SPI NOR flash 0x0 0x10000 bytes SUCCESS To write any data to the SPI flash First need to write that data into the RAM location then can be copied to SPI flash To write the data into RAM refer the RAM Test section To write the data from RAM into SPI flash execute the below iWave G15 sf write RAM_addr flash_offset size Example iWave G15 sf w...

Page 37: ...on execute the below command iWave G15 sata info SATA device 0 Model 16GB SATA Flash Drive Firm SFDDA01A Ser 011201111100000000B Type Hard Disk Supports 48 bit addressing Capacity 15272 0 MB 14 9 GB 31277232 x 512 4 2 6 Ethernet Test To set the MAC address and IP address for the platform and to save the environment variables execute the below command iWave G15 setenv ethaddr MAC addr iWave G15 set...

Page 38: ...phyaddr reg value To set the Ethernet speed as 1000Mbps and full duplex execute the below command iWave G15 mdio write busname phyaddr 0x0 0x0140 To set the Ethernet speed as 1000Mbps and half duplex execute the below command iWave G15 mdio write busname phyaddr 0x0 0x0040 To set the Ethernet speed as 100Mbps and full duplex execute the below command iWave G15 mdio write busname phyaddr 0x0 0x2100...

Page 39: ...FF iWave G15 fuse prog 4 3 0xAABB To read the MAC address execute the below command iWave G15 fuse read bank word cnt Example iWave G15 fuse read 4 2 2 TFTP NFS Host PC setup This section describes to setup a TFTP server and NFS server in Ubuntu Linux distributions Host PC The following host pc setup is required only once per host Install the nfs kernel server tftpd and xinetd sudo apt get install...

Page 40: ...me server usr sbin in tftpd server_args tftpboot s disable no Example service tftp protocol udp prot 69 socket_type dgram wait yes user iwave server usr sbin in tftpd server_args tftpboot s disable no Change the ownership of the directory sudo mkdir tftpboot sudo chmod R 777 tftpboot sudo chown R user_name user_name tftpboot Start the tftp services sudo service xinetd stop sudo service xinetd star...

Page 41: ... 0x10800000 0x100 0x10 To write to the USB storage device execute the below command iWave G15 usb write RAM address starting block count Example iWave G15 usb write 0x10800000 0x100 0x10 4 3 Environment variables settings By default the environment variables will be saved in the boot device 4 3 1 Micro SD boot To load the kernel and file systems from the Micro SD the environment variables should b...

Page 42: ...t as shown below iWave G15 setenv bootcmd_ssd run bootargs_ssd run fdt_check mmc dev 0 fatload mmc 0 loadaddr kernel fatload mmc 0 fdt_addr fdt_file bootz loadaddr fdt_addr iWave G15 setenv bootargs_ssd setenv bootargs bootargs_base root dev mmcblk0p2 rootwait rootfstype ext4 rw hdmi lcd iWave G15 setenv bootcmd run bootcmd_ssd iWave G15 saveenv To boot the platform execute the below command iWave...

Page 43: ... TFTP NFS Host PC setup section 4 3 6 HDMI and LCD settings By default HDMI is mapped with frame buffer 2 and LVDS 1 is mapped with frame buffer 0 The environment variables should be set as shown below Frame buffer 0 LVDS WVGA 800x480 Frame buffer 2 HDMI 1080p 1920x1080M 60 iWave G15 setenv hdmi video mxcfb1 dev hdmi 1920x1080M 60 if RGB24 bpp 24 iWave G15 setenv lcd video mxcfb0 dev ldb LDB WVGA ...

Page 44: ...15 setenv bootargs_mmc setenv bootargs bootargs_base root dev mmcblk2p2 rootwait rootfstype ext4 rw hdmi lcd maxcpus 2 By default LDO core regulators will be bypassed LDO bypass To activate the LDO regulators LDO active set the below environment variable Uboot_ldo_active 1 LDO Active Uboot_ldo_active 0 LDO bypass default Example iWave G15 setenv Uboot_ldo_active 1 To restore the default environmen...

Page 45: ...sole refer the section Linux Test Environment section in iW RainboW G15D Quick Start Guide document to get the boot loader console To connect the peripherals with iW RainboW G15M Q7 platform refer iW RainboW G15D Harware User Guide document 5 1 Block devices Test The iW RainboW G15M Q7 platform will support the below block devices Micro SD eMMC Standard SD USB host USB OTG host and device SATA SPI...

Page 46: ...execute below command root iWave G15 cd mount_directory root iWave G15 mount_directory ls To create a directory and remove a directory from the mounted partition execute below commands respectively root iWave G15 mount_directory mkdir directory_name root iWave G15 mount_directory rm rf target_directory To copy a file to the mounted partition execute below command root iWave G15 mount_folder cp sou...

Page 47: ...s_storage ko root iWave G15 lib modules 4 xx xx xx kernel insmod drivers usb gadget legacy g_mass_storage ko file dev mmcblk2p1 removable 1 After successful module registration it shows the below debug message Mass Storage Function version 2009 09 11 LUN removable file no medium LUN removable file dev mmcblk0p1 Number of LUNs 1 Number of LUNs 1 g_mass_storage gadget Mass Storage Gadget version 200...

Page 48: ...Wave G15 lib modules 4 xx xx xx kernel rmmod g_mass_storage ko root iWave G15 lib modules 4 xx xx xx kernel rmmod usb_f_mass_storage ko root iWave G15 lib modules 4 xx xx xx kernel rmmod libcomposite ko root iWave G15 lib modules 4 xx xx xx kernel rmmod configfs ko To change the directory to root folder execute the below command root iWave G15 lib modules 4 xx xx xx kernel cd home root ...

Page 49: ...irectory ls To create a directory and remove a directory in mounted partition execute the below commands respectively root iWave G15 mount_directory mkdir directory_name root iWave G15 mount_directory rm rf target_directory To copy a file to the mounted partition execute the below command root iWave G15 mount_folder cp source_file Destination To exit from the mount partitions execute the below com...

Page 50: ...Lease of obtained lease time 43200 Deleting routers adding dns adding dns To check the IP address set execute the below command root iWave G15 ifconfig eth0 Link encap Ethernet HWaddr 00 01 02 03 04 05 inet addr Bcast Mask 255 255 255 0 UP BROADCAST RUNNING MULTICAST MTU 1500 Metric 1 RX packets 28783 errors 0 dropped 87 overruns 0 frame 0 TX packets 15286 errors 0 dropped 0 overruns 0 carrier 0 c...

Page 51: ... duplex full Execute the below command to check the current Ethernet network speed and duplex settings root iWave G15 ethtool eth0 Note The Max Speed 1000Mbps can be set only if the iW RainboW G15M platform is connected in the 1000Mbps network File transfer using TFTP server To receive any file from TFTP server to iW RainboW G15M Q7 platform execute the below command root iWave G15 tftp g server_i...

Page 52: ...p type can bitrate bitrate The CAN_DEVICE depends upon the CAN port you have connected with another platform It may be can0 or can1 To ensure the CAN network status execute the below command root iWave G15 ifconfig can0 Link encap UNSPEC HWaddr 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 UP RUNNING NOARP MTU 16 Metric 1 RX packets 2 errors 0 dropped 0 overruns 0 frame 0 TX packets 1 errors 0 d...

Page 53: ...s and names execute the below command root iWave G15 hcitool scan Scanning XX XX XX XX XX XX XXXX XX XX XX XX XX XX XXXX Get surrounding devices addresses and classes by executing below command root iWave G15 hcitool inq Inquiring XX XX XX XX XX XX clock offset 0x6354 class 0x5a0204 To get the info about a scanned device execute the below command root iWave G15 hcitool info MAC address Requesting ...

Page 54: ...cute below command root iWave G15 cat sys class backlight backlight max_brightness To change the brightness execute below command root iWave G15 echo 7 sys class backlight backlight brightness PWM output can be varied from 0 7 Observe the LCD backlight brightness for different values 5 3 2 Qseven LVDS control Test The given BSP supports the LVDS backlight and power control through Qseven connector...

Page 55: ...D Image Dump To change the directory to root folder execute the below command root iWave G15 cd home root 5 3 4 LVDS 2 Test LVDS 2 is the will not be enabled by default Note LVDS 2 is an optional To change the directory to iwtest folder execute the below command and enable the LVDS 2 frame buffer root iWave G15 cd iwtest root iWave G15 iwtest echo 0 sys class graphics fb3 blank Dump the image on L...

Page 56: ...DMI and LCD settings section Change the directory to iwtest folder and to enable the HDMI frame buffer execute the below commands respectively root iWave G15 cd iwtest root iWave G15 iwtest echo 0 sys class graphics fb2 blank To ensure the HDMI resolution is 1080p execute the below command root iWave G15 iwtest cat sys class graphics fb2 mode Dump the image on HDMI frame buffer root iWave G15 iwte...

Page 57: ...0p execute below command root iWave G15 iwtest cat sys class graphics fb2 mode Dump the image on HDMI frame buffer root iWave G15 iwtest cat image name bin dev fb2 Example root iWave G15 iwtest cat 720p bin dev fb2 Image will be displayed on the HDMI as shown below Figure 7 HDMI 720p Image To change the directory to root folder execute the below command root iWave G15 cd home root 5 4 HID devices ...

Page 58: ...C05A 0002 input hidraw0 USB HID v1 11 Mouse Logitech USB Optical Mouse on usb fsl ehci 1 1 1 input0 Keyboard Insert the USB Keyboard in iW RainboW G15M Q7 platform USB slot The following message will be displayed in command prompt usb 2 1 1 new low speed USB device number 5 using fsl ehci input Dell Dell USB Keyboard as devices platform fsl ehci 1 usb2 2 1 2 1 1 2 1 1 1 0 input input3 generic usb ...

Page 59: ...s as mentioned below Bits per second 9600 bps Data bits 8 Parity none Stop bits 1 Flow control nonesd To transmit data through the UART execute the below command root iWave G15 echo uart_test_mesage dev node Example root iWave G15 echo iW RainboW G15M dev ttymxc2 To receive the data by UART execute the below command root iWave G15 cat dev node Example root iWave G15 cat dev ttymxc2 To set the Baud...

Page 60: ...put ISO 8601 compliant date string SPEC date default for date only hours minutes or seconds for date and time to the indicated precision r reference FILE Display last modification time of FILE d date TIME Display TIME not now D FMT Use FMT for d TIME conversion Recognized TIME formats hh mm ss YYYY MM DD hh mm ss YYYY MM DD hh mm ss YY YY MM DD hh mm ss date TIME form accepts MMDDhhmm YY YY ss ins...

Page 61: ...Class 0604 16c3 abcd 01 00 0 Class 0280 1814 3090 5 8 WDOG Test The given BSP supports the built in WDOG This section explains how to test WDOG in the iW RainboW G15M platform To list out the options execute the below command root iWave G15 cd unit_tests root iWave G15 unit_tests wdt_driver_test out To test execute the below command and the platform will reset after cancelling the application root...

Page 62: ...n hwmon1 device read To power off shut down the magnetometer execute the below command root iWave G15 echo 0 sys class hwmon hwmon1 device enable 5 9 2 Accelerometer To display the accelerometer name execute the below command root iWave G15 cat sys class hwmon hwmon2 device name To enable the accelerometer execute the below command root iWave G15 echo 1 sys class hwmon hwmon2 device enable To read...

Page 63: ...device enable 5 9 4 Light sensor To display the light sensor name execute the below command root iWave G15 cat sys class i2c dev i2c 1 device 1 0044 name Light sensor supported modes are listed below 0 Power off mode 1 ALS ONCE mode 2 IR ONCE mode 5 ALS CONTINUOUS mode 6 IR CONTINUOUS mode To set the light sensor mode execute the below command root iWave G15 echo mode sys class i2c dev i2c 1 devic...

Page 64: ... iWave G15 aplay l The registered audio interfaces will be displayed on terminal as shown below List of PLAYBACK Hardware Devices card 0 rt5610audio rt5610 audio device 0 rt5610 HIFI rt5610 hifi 0 Subdevices 1 1 Subdevice 0 subdevice 0 card 1 imxhdmisoc imx hdmi soc device 0 IMX HDMI TX mxc hdmi soc 0 Subdevices 1 1 Subdevice 0 subdevice 0 To play an audio file execute the below command root iWave...

Page 65: ...on execute the below command root iWave G15 unit_tests mxc_v4l2_overlay out ow output width oh output height di video device Example root iWave G15 unit_tests mxc_v4l2_overlay out ow 800 oh 480 di dev video1 To test the capture application execute the below command root iWave G15 unit_tests mxc_v4l2_capture out iw input_width ih input_height ow output width oh output height d video device c no of ...

Page 66: ... command root iWave G15 gst launch 1 0 playbin uri file video file audio sink alsasink device plughw card subdevice video sink imxv4l2sink device dev video device Example root iWave G15 gst launch 1 0 playbin uri file iwtest tfr mp4 audio sink alsasink device plughw 1 0 video sink imxv4l2sink device dev video19 To play an audio file using a particular audio device execute the below command root iW...

Page 67: ...root iWave G15 unit_tests mxc_vpu_test out E o test mpeg4 f 0 c 200 w 720 h 480 b 4096 Repeat the above steps to encode the different types of Encoder formats Decoder To list out the available options in vpu application execute the below command root iWave G15 unit_tests mxc_vpu_test out H To decode the frames execute the below command root freescale unit_tests mxc_vpu_test out D i file_name f for...

Page 68: ...ion Linux Test Environment in iW RainboW G15M QuickStartGuide for iW RainboW G15M Q7 platform uboot and linux console 5 How to change the boot mode settings for iW RainboW G15M Q7 platform How to switch to serial downloader mode in iW RainboW G15M Q7 platform Refer the section for Boot Mode Settings in iW RainboW G15M QuickStartGuide for iW RainboW G15M Q7 platform boot mode settings 6 How to chan...

Page 69: ...iW RainboW G15M Q7 during Linux is booting normally turned off the power without doing while running application If you power off the platform while running any application the running application may corrupt 11 How to set change the MAC address in u boot environment variables To set change the MAC address in u boot environment variables refer the section Ethernet 12 How to make the cursor blink u...

Reviews: