VAB-820 Linux EVK v4.1.2 Quick Start Guide 1� Introduction This Quick Start Guide provides an overview on how to boot the Linux EVK system image on the VAB-820 board and configure the supported hardware functions in the build. The VAB-820 Linux EVK v4.1.2 is developed based on the NXP fsl-yocto-L4.1.15_1.1.0-ga (Yocto 2.0 Jethro) and enables the hardware features of the VAB-820 board. 1�1 EVK Package Content There are two folders in the package listed as below. Firmware folder Description VAB-820_Yocto2.0_BIN_v4.1.2.tar.gz Yocto EVK system image and installation script files Document folder Description VAB-820_Linux_EVK_v4.1.2_Quick_Start_ Quick Start Guide Guide _v1.00_20171107.pdf VAB-820 Linux EVK contents 1�1�1 Firmware Folder Contents VAB-820_Yocto2.0_BIN_v4.1.2.tar.gz: contains installation script files and the precompiled U-boot and image for evaluating the VAB-820 board. 1�1�2 Document Folder Contents VAB-820_Linux_EVK_v4.1.2_Quick_Start_Guide _v1.00_20171107.pdf: This Quick Start Guide provides an...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 2� Image Installation This section explains the setup requirements for booting from a Micro SD card or the SPI ROM and eMMC. The installation script files, precompiled U-boot and image are provided in the “Firmware” folder. 2�1 Booting from a Micro SD Card The first step is to install this image onto a Micro SD card. Insert a Micro SD card into your Linux host machine and make sure it is not mounted. Install the SD Card image onto the Micro SD card with the commands below, replacing <device name> with the correct value for the card. *Important: Make sure you are writing to the correct device or the host system environment could be damaged� $ tar xvf VAB820_Yocto2.0_BIN_v4.1.2.tar.gz $ cd sd_installer/ $ sudo ./mk_sd_installer.sh /dev/<device name> --yocto Next, on the VAB-820, set the boot jumper (J11) to the Micro SD position as shown below. Micro SD / SPI boot jumper diagram Insert the prepared Micro SD card into the VAB-820, connect an HDMI display, and power on the VAB-820 to initiate the boot process.
VAB-820 Linux EVK v4.1.2 Quick Start Guide 2�2 Booting from the SPI ROM with eMMC The VAB-820 supports booting from the SPI ROM while loading the kernel and root filesystem from eMMC. The first step is to prepare a Micro SD card as the system installer. Insert a Micro SD card into your Linux host machine and make sure it is not mounted. Install the system installer onto the Micro SD card with the command below, replacing <device name> with the correct value for the card. $ tar xvf VAB820_Yocto2.0_BIN_v4.1.2.tar.gz $ cd sd_installer/ $ sudo ./mk_sd_installer.sh /dev/<device name> Next, on the VAB-820, set the boot jumper to the Micro SD position as shown below. Micro SD / SPI boot jumper diagram Insert the prepared Micro SD card into the VAB-820, and power on the VAB-820. The system will automatically start to install U-boot and image into SPI ROM and eMMC. When the install process is completed, unplug the power cable and remove the Micro SD card.
Page 9
VAB-820 Linux EVK v4.1.2 Quick Start Guide And then, in order to boot from the SPI ROM make sure the boot jumper (J11) is set to SPI ROM boot. Micro SD / SPI boot jumper diagram Next, connect an HDMI display, and power on the device to initiate the boot process. When the boot process is completed, you will see the OpenEmbedded desktop.
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3� Hardware Function This section explains how to enable and test the hardware functions precompiled in the VAB-820 Linux EVK including setting up U-Boot parameters, configuring display parameters, setting up the Video-in, setting up the CVBS, configuring FlexCAN , configuring Watchdog timer, setting up GPIO, and configuring RTC. 3�1 Setting Up U-Boot Parameters When setting up the U-Boot parameters, the first step is to connect the host machine and the VAB-820 through the COM 2 connector (J5). Use a serial port communication program such as PuTTY, GtkTerm, or Minicom to configure serial port setting and connect to the debug console. There you will be able to see the U-Boot boot log and adjust settings in the U-Boot console. Serial port setting of host machine COM 2 connector (J5) diagram...
Page 11
VAB-820 Linux EVK v4.1.2 Quick Start Guide Next, power on the VAB-820 to initiate the boot process. When prompted, press any key to stop the boot process and enter the U-Boot console as illustrated by the screenshot below. U-Boot 2015.04-imx_v2015.04_4.1.15_1.0.0_ga+gd7d7c43 (Feb 20 2017 – 14:19:23) CPU: Freescale i.MX6Q rev1.5 at 996 MHz CPU: Temperature 30 C Reset cause: POR Board: MX6Q-VAB820 I2C: ready DRAM: 1 GiB MMC: FSL_SDHC: 0, FSL_SDHC: 1...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3�2 Restoring Default U-Boot Parameters If the U-Boot parameters have been modified, the “destroyenv” command in the U-Boot console can restore the factory defaults settings To restart the device, use the “reset” command: => destroyenv => reset 3�3 Using the OpenEmbedded Console The first step is to connect the host machine and the VAB-820 through the COM 2 connector (J5). Use a serial port communication program such as PuTTY, GtkTerm, or Minicom to connect to the debug console. There you will be able to see the U-Boot boot log and adjust settings in the U-Boot console. Next, power on the VAB-820 to initiate the boot process. When the boot process is completed you will be prompted to login. COM 2 connector (J5) diagram The default account is “root”, with no password set (just press Enter when prompted for password). Freescale i.MX Release Distro 4.1.15_1.1.1 imx6qvab820 /dev/ttymxc1 imx6qvab820 login: root...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3�4 Setting Up Display Device The VAB-820 Linux EVK v4.1.2 supports the following display devices: • HDMI monitor • AUO 10.4” G104XVN01.0 LVDS panel (1024x768) • AUO 7” G070VW01 V0 LVDS panel (800x480) 3�4�1 Setting Up the U-Boot Display Parameters for HDMI To set the HDMI monitor as the display output, use the following command: => run o_hdmi => saveenv In order to confirm the settings are correct use the following command to list the new U-Boot parameters: => printenv hdmi hdmi=video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 Make sure the display device is HDMI and the resolution matches your monitor’s resolution. 3�4�2 Setting Up the U-Boot Display Parameters for LVDS Before setting an LVDS panel as the display output make sure the LVDS backlight power jumper is set to +12V and the LVDS panel power jumper is set to +3.3V as shown below. LVDS panel and backlight power jumper diagram...
Page 14
VAB-820 Linux EVK v4.1.2 Quick Start Guide To set the AUO 10.4” G104XVN01.0 LVDS panel as the display output, use the following command: => run o_lvdsg104 => saveenv In order to confirm the settings are correct use the following command to list the new U-Boot parameters: => printenv lvds_auo_g104 lvds_auo_g104=video=mxcfb0:dev=ldb,LDB-XGA, if=RGB24 ldb=sin0 To set the AUO 7” G070VW01 V0 LVDS panel as the display output, use the following command: => run o_lvdsg070 => saveenv In order to confirm the settings are correct use the following command to list the new U-Boot parameters: => printenv lvds_auo_g070 lvds_auo_g070=video=mxcfb0:dev=ldb,480C60,if=RGB24 ldb=sep0...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3�5 Setting Up Dual Displays An HDMI monitor and an LVDS panel can be used to create a dual display set up for the VAB-820, with support for clone and extension modes. • HDMI monitor and AUO 10.4” G104XVN01.0 LVDS panel • HDMI monitor and AUO 7” G070VW01 V0 LVDS panel 3�5�1 Setting Up the U-Boot Display Parameters for Dual Displays Due to system limitations, the maximum resolution suggested for the HDMI monitor in the dual display set up is 1280x720. To change the HDMI resolution to 1280x720 use the following command: # xrandr --output HDMI --mode 1280x720 --rate 60 --output LVDS --mode building The next step is to set the U-Boot display parameters for dual display. (Note: For the dual display set up you must use an HDMI device and one of the LVDS panels supported in the BSP). To set an HDMI monitor and an AUO 10.4” G104XVN01.0 (1024x768) LVDS panel as the display devices, use the following command: => setenv hdmilvds_g104 ‘video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=16 video=mxcfb1:dev=ldb,LDB-XGA,if=RGB24 ldb=sin0’...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3�5�3 Setting Video Playback in Extension Mode There are four panel configurations supported in extension mode. Follow the commands below for your desired set up. Extension mode configuration 1: To set this configuration, use the following command: # xrandr –output HDMI --left-of LVDS Extension mode configuration 2: To set this configuration, use the following command: # xrandr –output HDMI --right-of LVDS Extension mode configuration 3: To set this configuration, use the following command: # xrandr –output HDMI --above LVDS...
VAB-820 Linux EVK v4.1.2 Quick Start Guide Extension mode configuration 4: To set this configuration, use the following command: # xrandr –output HDMI --below LVDS To play video on an HDMI monitor and LVDS panel in extension mode, use the following command: # gst-launch playbin2 uri=file:///$file2 video-sink=”imxv4l2sink device=/dev/video17 disp- width=1920 disp-height=1080” & # gst-launch playbin2 uri=file:///$file1 video-sink=”imxv4l2sink device=/dev/video19” 3�5�4 Changing Back to Clone Mode If you would like to switch back to clone mode from extension mode, use the following command: # xrandr --output HDMI --same-as LVDS...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3�6 Setting Up the Video-in The VAB-820 supports two video inputs. The composite RCA jack is a CVBS signal input and the S-VIDEO1 pin header is an S-Video signal input. The following steps are for video-in function verification. Composite RCA jack diagram S-Video pin header diagram 3�6�1 Setting Up the CVBS To enable the video-in, use the following command: # gst-launch-0.10 imxv4l2src input=1 deinterlace=true! imxv4l2sink If the source of the video -in is PAL, use the following command to display the video on the screen: # gst-launch-0.10 imxv4l2src input=1 deinterlace=true ! imxv4l2sink crop-top-by-pixel=1 To display other video-in sources on the screen, use the following command: # gst-launch-0.10 imxv4l2src input=1 deinterlace=true ! imxv4l2sink 3�6�1�1 CVBS Video-in Recording...
VAB-820 Linux EVK v4.1.2 Quick Start Guide For example, to save the video-in video as a 10-second MP4 file into /home folder with a filename demo_1. mp4, use the following command: # gst-launch-0.10 imxv4l2src input=1 num-buffers=300 ! vpuenc codec=6 ! ffmux_mov ! filesink location=/home/demo_1.mp4 To play the saved video file, use the following command: # gst-launch-0.10 playbin2 uri=file:/ <path/filename.mp4> If you need to display the video-in source on the screen and record the feed at the same time, use the following command: # gst-launch-0.10 imxv4l2src input=1 num-buffers=900 queue-size=30 ! tee name=t ! queue ! imxv4l2sink t.
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3�7 Configuring FlexCAN The CAN/COM 2 port of the VAB-820 supports debug port (COM 2) and two CAN bus ports. The CAN bus supports CAN protocol specification Version 2.0 B while the COM 2 supports TX/RX for debugging purposes only� The first step is to connect the VAB-820-A daughter-board and COM/CAN converter cable. Installing the VAB-820-A daughterboard and COM/CAN conversion cable diagram...
Page 21
VAB-820 Linux EVK v4.1.2 Quick Start Guide Please note that you need to disable the CAN bus first, set the CAN bus bitrate. The CAN bus bitrate should be 5000 < [BRT_value] < 1000000. CAN bus 1 is can0 and CAN bus 2 is can1. To set the CAN bus 1 bitrate [BRT_value], use the following command: # ip link set can0 type can bitrate [BRT_value] To enable the CAN bus 1, use the following command: # ip link set can0 type can bitrate [BRT_value] To disable the CAN bus 1, use the following command: # ifconfig can0 down Use the cansend command to send CAN bus 1 data: # cansend can0 <ID>#<Data>...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3�8 Configuring Watchdog Timer A Watchdog timer is an electronic timer that is used to detect and recover from system malfunctions. The wdt_driver_test.out provides an application to configure the Watchdog timer. To enable the Watchdog with the default timeout (60 seconds), use the following command: $ /unit_tests/wdt_driver_test.out enable wdt To change the timeout <value> and the system reboot <value> (seconds), use the following command: $ /unit_tests/wdt_driver_test.out set_timeout <value> To send keep-alive requests to the Watchdog <value> (seconds), use the following command: $ /unit_tests/ wdt_driver_test.out set_keep_alive <value> When the value of “set_keep_alive” is smaller than the value of “set_timeout”, the system will not reboot. To disable the Watchdog, use the following command: $ /unit_tests/wdt_driver_test.out disable wdt...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3�9 Setting Up GPIO The GPIO pins are located on the J7 (Miscellaneous) pin header. The J7 pin header on the VAB-820 is consists of 19-pins where pin11 ~ pin19 are the GPIO pins. The following section explains setting up these pins for input/ output communication. J7 pin header diagram Signal Signal RESET_N P_LED+ P_LED- I2C3_SCL W_LED+ I2C3_SDA W_LED- 5VIN GPIO_1 GPIO_7 GPIO_2 GPIO_8 GPIO_4 GPIO_9 GPIO_5 GPIO_16 J7 pin header pinout table...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3�9�1 Setting Up DIO Port for GPIO Functionality The echo value of GPIO pins are listed below: Signal GPIO echo value GPIO_7 GPIO_1 GPIO_8 GPIO_2 GPIO_9 GPIO_4 GPIO_16 GPIO_5 GPIO port pinout table Set the multifunction pin as a GPIO pin. Here is the example for GPIO pin 1: $ echo 7 > /sys/class/gpio/export 3�9�2 Setting Up GPI Mode To set a pin to “input” mode (GPI), use the following command (here is the example for GPIO pin 1): $ echo “in” > /sys/class/gpio/gpio7/direction...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 3�10 Configuring RTC The RTC (Real-Time Clock) keeps track of the current time values. The time values include the year, month, date, hours, minutes and seconds. To configure the RTC on the VAB-820, set the system time with the Linux date command as the example shown below: $ date mmddHHMMYYYY Time Value 2-digit month 2-digit day 2-digit hours in 24h system 2-digit minutes YYYY 4-digit year Time value table For example, the value 061110072013 means June 11 2013 10:07. The date command also accepts other time formats. For more information, use the following command: $ date --help To write the system time to the RTC, use the following command: $ hwclock -w -f /dev/rtc0 To read the RTC time, use the following command: $ hwclock -r...
VAB-820 Linux EVK v4.1.2 Quick Start Guide 4� Accessories This section explains how to install and configure the various EMIO modules available for the VAB-820 board. 4�1 Configuring the VNT9271 USB Wi-Fi Dongle/EMIO- 1533 USB Wi-Fi Module The VNT9271 USB Wi-Fi dongle and EMIO-1533 USB Wi-Fi module support Wi-Fi functionality through USB port or onboard USB pin header connection respectively. The first step is to insert the VNT9271 USB Wi-Fi dongle into a USB port or connect the EMIO-1533 module to the onboard USB pin (J8) using the USB cable (P/N 99G3-190042). After installing the EMIO-1533 module, the antenna must be installed as well. Next, make sure to unplug any LAN cables or other Wi-Fi/3G modules you have installed. Finally, power on the VAB-820. Inserting the VNT9271 USB Wi-Fi dongle Connecting the EMIO-1533 module...
Page 27
VAB-820 Linux EVK v4.1.2 Quick Start Guide When the boot process is completed, click on the “Connection Manager” icon to configure WLAN. Connection Manager icon diagram When the connection is created, connect to the internet through your web browser.
VAB-820 Linux EVK v4.1.2 Quick Start Guide 4�2 Configuring the EMIO-1541 miniPCIe Wi-Fi Module The EMIO-1541 module supports Wi-Fi through the onboard miniPCIe slot. The first step is to insert the EMIO-1541 module into the miniPCIe slot. After installing the module connect the provided antenna to the module. Next, make sure to unplug any LAN cables or USB Wi-Fi dongles you have installed. Finally, power on the VAB-820. Inserting the EMIO-1541 module When the boot process is completed, click on the “Connection Manager” icon to configure WLAN. Connection Manager icon diagram When the connection is created, connect to the internet through your web browser.
VAB-820 Linux EVK v4.1.2 Quick Start Guide 4�3 Configuring the EMIO-2531 miniPCIe / EMIO-5531 USB Wi-Fi & Bluetooth Module The EMIO-2531 and EMIO-5531 modules support Wi-Fi and Bluetooth functionality through USB or miniPCIe connections respectively. 4�3�1 Connecting to the Internet The first step is to insert the EMIO-2531 module into the miniPCIe slot or connect the EMIO-5531 module to the onboard USB pin header (J8) using the USB cable (P/N 99G3-190042). After installing either module connect the provided antenna to the module. Next, make sure to unplug any LAN cables or other Wi-Fi/3G modules you have installed. Finally, power on the VAB-820. Inserting the EMIO-2531 module Connecting the EMIO-5531 module...
Page 30
VAB-820 Linux EVK v4.1.2 Quick Start Guide When the boot process is completed, click on the “Connection Manager” icon to configure WLAN. Connection Manager icon diagram When the connection is created, connect to the internet through your web browser.
VAB-820 Linux EVK v4.1.2 Quick Start Guide 4�3�2 Enabling Bluetooth The following section explains setting up the Advanced Audio Distribution Profile (A2DP) and Serial Port Profile (SPP). 4�3�2�1 Setting Up Bluetooth A2DP Profile To add A2DP support to the VAB-820, first copy and replace the pulseaudio-system.conf, bluetooth.conf to the /etc/dbus-1/system.d folder. Next, copy and replace the system.pa files to the /etc/pulse/folder. These files are located in the EVK/BT_Config folder of the BSP. To enable the Bluetooth service, use the following command: $ rfkill unblock bluetooth $ hciconfig hci0 up $ hciconfig hci0 piscan $ /usr/lib/bluez5/bluetooth/bluetoothd -C -d & Use the following commands to run the “bluetoothctl” to show the EMIO-2531 or EMIO-5531 Bluetooth MAC address and set up pairing mode. $ bluetoothctl [NEW] Controller 5C:F3:70:24:4B:2E...
VAB-820 Linux EVK v4.1.2 Quick Start Guide The default audio output setting for the VAB-820 is HDMI device. To list all the available audio output devices, use the following command: $ pactl list short sinks 0 alsa_output.platform-sound-hdmi.23.analog-stereo module-alsa-card.c s16le 2ch 48000Hz SUSPENDED 1 alsa_output.platform-sound.22.analog-stereo module-alsa-card.c s16le 2ch 48000Hz SUSPENDED 2 bluez_sink.00_1D_82_BC_C1_C4 module-bluez5-device.c s16le 2ch 48000Hz IDLE From the output, we can see the following: • 0 = HDMI device • 1 = Line-out •...
Page 33
VAB-820 Linux EVK v4.1.2 Quick Start Guide SPP server mode: If you do not change the listen channel number, the service will automatically use the default channel number. Make sure the server or client mode is using the same Bluetooth channel number. To set up the SPP server mode and allow other devices to connect, use the following commands: # sdptool add SP Serial Port service registered # rfcomm listen hci0 Waiting for connection on channel 1 Connection from 5C:F3:70:25:DD:33 to /dev/rfcomm0 Press CTRL-C for hangup SPP client mode: If you do not change the listen channel number, the service will automatically use the default channel number.
VAB-820 Linux EVK v4.1.2 Quick Start Guide 4�4 Configuring the EMIO-2550 miniPCIe Mobile Broadband Module The EMIO-2550 miniPCIe Mobile Broadband module supports 3G and GPS functions. 4�4�1 Connecting to the Internet The first step is to insert an active SIM card into the EMIO-2550 module, and then insert the EMIO-2550 module into the miniPCIe slot. After installing the module connect the provided antenna to the module. Next, make sure to unplug any LAN cables or USB Wi-Fi dongles you have installed. Finally, power on the VAB-820. Inserting the EMIO-2550 module To check that the system has correctly detected the EMIO-2550 module, use the following command: $ lsusb Make sure the printout message includes “Bus 001 Device 004: ID 1545:1102 U-Blox AG”. Configure the 3G function by creating a PPP connection with root privilege. $ pppd call Module-ZU200 Once the PPP connection has been created, connect to the internet through your web browser.
VAB-820 Linux EVK v4.1.2 Quick Start Guide 4�4�2 Enabling GPS To configure the GPS function of the module requires the use of the Minicom serial communication program. Open the Minicom serial communication program with the following command: $ minicom -s Connect to the /dev/ttyUSB1 serial device with the following settings: +--------------------------------------------------------------+ Serial Device : /dev/ttyUSB1 Lockfile Location : /var/lock Callin Program Callout Program Bps/Par/Bits : 115200 8N1 Hardware Flow Control : No Software Flow Control...
Page 36
Taiwan Headquarters Japan China 1F, 531 Zhong-zheng Road, 940 Mission Court 3-15-7 Ebisu MT Bldg. 6F, Tsinghua Science Park Bldg. 7 Xindian Dist., New Taipei City 231 Fremont, CA 94539, Higashi, Shibuya-ku No. 1 Zongguancun East Road, Taiwan Tokyo 150-0011 Haidian Dist., Beijing, 100084 Japan China...
Need help?
Do you have a question about the VAB-820 and is the answer not in the manual?
Questions and answers