background image

 

13

 

VIA SOM-9X50-STK Yocto 3.1 EVK Quick Start Guide

wps_cred_processing=2

p2p_disabled=1

To verify the Wi-Fi function, use the following command:

root@aiv8385-linux:~# ps | grep wpa_supplicant

  569 root      8596 S    wpa_supplicant -Dnl80211 -iwlan0 -c/data/wifi/wpa_supplicant.conf

754350 root      3536 S    grep wpa_supplicant

root@aiv8385-linux:~# kill -9 569

root@aiv8385-linux:~# wpa_supplicant -Dnl80211 -iwlan0 -c /data/wifi/wpa_supplicant.conf -B

Successfully initialized wpa_supplicant

rfkill: Cannot open RFKILL control device

WPS: Converting display to virtual_display for WPS 2.0 compliance

WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance

root@aiv8385-linux:~#

To verify if the Wi-Fi connection is workable, enable the interface, with the following command:

root@aiv8385-linux:~# udhcpc -i wlan0 

udhcpc: started, v1.31.1 

Failed to revert interface configuration: Connection timed out 

udhcpc: sending discover 

udhcpc: sending select for 192.168.0.106 

udhcpc: lease of 192.168.0.106 obtained, lease time 86400 

/etc/udhcpc.d/50default: Adding DNS 192.168.0.1

Then use the "ping" command to verify the network connection:

root@aiv8385-linux:~# ping 8.8.8.8 

3.10 

Bluetooth

To enter "interactive mode" for Bluetooth function verification, use the following commands:

root@aiv8362a-linux:~# btmw-rpc-test

increase the priority of btmw_rpc_test.i4_ret:0 @ main

set btmw_rpc_test priority done

[Client]Func:main Line:670--->: IPC/RPC initialize

YZ rpc_init is called

...

...

<I> [BTMW_RPC_TEST] init ok Normal Mode

<I> [BTMW_RPC_TEST] running.

btmw_test_cli>

In the example below, use a Bluetooth speaker to test.
First, get the Bluetooth speaker MAC address, which is "41:42:FC:81:75:7F" in this example.
To verify the Bluetooth function, use the following commands (using the speaker's MAC address in line 4):

btmw_test_cli> MW_RPC_GAP power 1

...

btmw_test_cli> MW_RPC_GAP set conn_disc 1 1

...

btmw_test_cli> MW_RPC_A2DP_SRC active_src 1

...

btmw_test_cli> MW_RPC_A2DP_SRC connect 41:42:FC:81:75:7F

...

btmw_test_cli> MW_RPC_A2DP_SRC write_stream /data/sda1/test.wav

...

btmw_test_cli> 

Summary of Contents for SOM-9X50-STK

Page 1: ...QUICK START GUIDE VIA SOM 9X50 STK Yocto 3 1 EVK 1 01 15042022 ...

Page 2: ...se in regard to this document and to the products described in this document The information provided in this document is believed to be accurate and reliable as of the publication date of this document However VIA Technologies assumes no responsibility for the use or misuse of the information including use or connection of extra device equipment add on card in this document and for any patent inf...

Page 3: ...iii VIA SOM 9X50 STK Yocto 3 1 EVK Quick Start Guide Revision History Version Date Remarks 1 01 15 04 2022 Updated introduction and product naming 1 00 22 02 2022 Initial release ...

Page 4: ... 1 3 Tool Folder Contents 1 1 2 Version Information and Supported Features 2 2 Image Installation 3 2 1 Installing with the Fastboot Mode 3 3 Hardware Functions 8 3 1 Using the Debug Console 8 3 2 Changing Kernel Debug Level 8 3 3 Checking BSP Version 8 3 4 DVFS 9 3 5 Display 9 3 6 Video Playback 10 3 7 Audio Output and Record 11 3 8 Camera 12 3 9 Wi Fi 12 3 10 Bluetooth 13 iv ...

Page 5: ... in the package listed as below Firmware folder Description VIA_SOM 9X50 STK_Yocto_3 1_EVK zip Yocto image Document folder Description VIA_SOM 9X50 STK_Yocto_3 1_EVK_Quick_Start_Guide pdf Quick Start Guide Tool folder Description VIA_Android_USB_Driver zip VIA USB driver 1 1 1 Firmware Folder Contents VIA_SOM 9X50 STK_Yocto_3 1_EVK zip Contains the precompiled Yocto image for evaluating the VIA SO...

Page 6: ... Supports MIPI DSI capacitive touch panel AUO 10 1 B101UAN01 7 1920x1200 eGalax I2C touch Supports COM1 as RS 232 mode TX RX and COM as debug port Supports two 10 100Mbps Ethernet ports Supports MediaTek MT6358 Headphone and Mic in Supports MediaTek MT7668 Wi Fi 802 11ac and Bluetooth 5 0 Supports VIA EMIO 2574 SIM7600JC H 4G LTE mobile broadband miniPCIe module Supports MIPI CSI OV5648 camera mod...

Page 7: ...e button to install the android_winusb When finished it will show The operation completed successfully Then connect the Windows 10 host machine and the VIA SOM 9X50 STK through the Micro USB 2 0 port using the Micro USB cable Micro USB 2 0 port diagram Next on the VIA SOM 9X50 STK set the two OS image jumpers J7 and J5 to download mode as shown in the diagram below OS image jumpers diagram J5 and ...

Page 8: ...2040 0x2203f Addr 0x4408000 0x5308000 size 0xf00000 Addr 0x22040 0x2983f Addr 0x5308000 0x6208000 size 0xf00000 Addr 0x29840 0x3103f Addr 0x6208000 0x7108000 size 0xf00000 Addr 0x31040 0x3883f Addr 0x7108000 0x7208000 size 0x100000 Addr 0x38840 0x3903f Addr 0x7208000 0x7308000 size 0x100000 Addr 0x39040 0x3983f Addr 0x7308000 0x7408000 size 0x100000 Addr 0x39840 0x3a03f Addr 0x7408000 0x7908000 si...

Page 9: ...mage size 20877906 Sending boot_a 20388 KB OKAY 1 033s Writing boot_a OKAY 0 453s Finished Total time 1 608s bootloader display hdmi bootloader display hdmi bootloader display hdmi bootloader display hdmi bootloader display hdmi Warning skip copying boot image avb footer boot partition size 0 boot image size 20877906 Sending boot_b 20388 KB OKAY 0 864s Writing boot_b OKAY 0 457s Finished Total tim...

Page 10: ...64504 KB OKAY 2 727s Writing system_a OKAY 1 459s Sending sparse system_a 2 12 57428 KB OKAY 2 429s Writing system_a OKAY 1 385s Sending sparse system_a 3 12 65532 KB OKAY 2 768s Writing system_a OKAY 1 444s Sending sparse system_a 4 12 65532 KB OKAY 2 769s Writing system_a OKAY 1 452s Sending sparse system_a 5 12 64588 KB OKAY 2 731s Writing system_a OKAY 1 445s Sending sparse system_a 6 12 65532...

Page 11: ...2 6116 KB OKAY 0 262s Writing system_b OKAY 0 138s Finished Total time 47 431s bootloader display hdmi bootloader display hdmi bootloader display hdmi Sending logo 6750 KB OKAY 0 287s Writing logo OKAY 0 151s Finished Total time 0 463s bootloader display hdmi bootloader display hdmi bootloader display hdmi Sending userdata 22528 KB OKAY 0 952s Writing userdata OKAY 0 500s Finished Total time 1 477...

Page 12: ...tion program such as PuTTY or Tera Term to connect the debug console Set the console Baud Rate to 921600 COM connector diagram Next power on the VIA SOM 9X50 STK to initiate the boot process When the boot process has completed log in to the debug console The default account is username root password root 3 2 Changing Kernel Debug Level To disable kernel messages modify the debug level using the fo...

Page 13: ... 31 10 21 scaling_max_freq rwxr xr x 1 root root 4096 Dec 31 10 21 scaling_min_freq rwxr xr x 1 root root 4096 Dec 31 10 21 scaling_setspeed drwxr xr x 2 root root 0 Dec 31 10 21 stats To check the supported and current CPU frequency use the following commands cat sys devices system cpu cpu0 cpufreq scaling_available_frequencies 1989000 1924000 1846000 1781000 1716000 1677000 1625000 1586000 15080...

Page 14: ...he Micro USB cable and then power on the VIA SOM 9X50 STK When the boot process has completed the LCD panel output will be set as the display device Note The default display device is HDMI output After changing the display device you must restart the VIA SOM 9X50 STK To control the LCD backlight use the following commands root aiv8385 linux cd sys devices platform backlight_lcd0 backlight backligh...

Page 15: ...iv8385 linux amixer cset numid 4 0 Note Before changing to different audio output device you must make sure the previous audio output device is disabled To change the audio volume use the following command root aiv8385 linux amixer cset numid 10 17 numid 10 iface MIXER name Lineout_PGAL_GAIN type ENUMERATED access rw values 1 items 20 Item 0 8Db Item 1 7Db Item 2 6Db Item 3 5Db Item 4 4Db Item 5 3...

Page 16: ...record video file from the CSI camera use the following command root aiv8385 linux gst launch 1 0 q playbin uri file data test avi flags 0x42 video sink mtkmdp width 640 height 480 mtkwaylandsink audio sink fakesink 3 9 Wi Fi To check the current Wi Fi AP ssid and psk use the follwing command root aiv8385 linux cat data wifi wpa_supplicant conf ctrl_interface tmp wpa_supplicant update_config 1 net...

Page 17: ...er udhcpc sending select for 192 168 0 106 udhcpc lease of 192 168 0 106 obtained lease time 86400 etc udhcpc d 50default Adding DNS 192 168 0 1 Then use the ping command to verify the network connection root aiv8385 linux ping 8 8 8 8 3 10 Bluetooth To enter interactive mode for Bluetooth function verification use the following commands root aiv8362a linux btmw rpc test increase the priority of b...

Page 18: ...10 687 4654 Email embedded viatech com Email embedded via tech eu Taiwan Headquarters USA Europe Tsinghua Science Park Bldg 7 No 1 Zongguancun East Road Haidian Dist Beijing 100084 China Tel 86 10 59852288 Fax 86 10 59852299 Email embedded viatech com cn 3 15 7 Ebisu MT Bldg 6F Higashi Shibuya ku Tokyo 150 0011 Japan Tel 81 3 5466 1637 Fax 81 3 5466 1638 Email embedded viatech co jp China Japan ...

Reviews: