VAR-SOM-AM33 Linux Unit Testing: Difference between revisions
From Variscite Wiki
(→WLAN) |
No edit summary |
||
Line 67: | Line 67: | ||
please follow TI wiki pages: | please follow TI wiki pages: | ||
http://processors.wiki.ti.com/index.php/AM335x_ADC_Driver%27s_Guide | http://processors.wiki.ti.com/index.php/AM335x_ADC_Driver%27s_Guide | ||
= Bluetooth = | |||
<pre> | |||
$ hciconfig hci0 up | |||
$ hcitool scan | |||
</pre> |
Revision as of 18:41, 25 June 2014
Unit Testing
CPU info
root@am335x-evm:~# cat /proc/cpuinfo Processor : ARMv7 Processor rev 2 (v7l) BogoMIPS : 598.35 Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x3 CPU part : 0xc08 CPU revision : 2 Hardware : VAR-SOM-AM33 Revision : 0000 Serial : 0000000000000000 root@am335x-evm:~# cat /proc/version Linux version 3.2.0-AM335XPSP_04.06.00.11.VAR_R13 (uri@pluto) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #1 T ue Oct 15 10:06:14 IST 2013
RTC
To set the RTC first set the date from Linux shell, type:
$ date 2013.08.27-15:43
Then set the real time clock from Linux shell, type:
$ hwclock --systohc
Power down your board wait 15 seconds and power up. Check your system with date and the time should be up to date.
Audio record/play
$ aplay /usr/share/sounds/alsa/Front_Center.wav $ arecord -f cd -d 10 -D hw:0,0 test.wav $ aplay test.wav
WLAN
List SSIDs, from Linux shell type:
$ ifconfig wlan0 up $ iw wlan0 scan
Connecting to an encrypted network
Find your network from the above scan command.
$ wpa_passphrase <YourAP> <YourPassword> >wpa.conf $ ps | grep wpa_supplicant *kill the wpa_supplicant process if exist. $ wpa_supplicant -Dnl80211 -iwlan0 -c./wpa.conf -B $ udhcpc -iwlan0 $ ifconfig
OpenGL demo (supported CPUs)
Run the demo script at Linux command prompt after the VAR-DVK-AM33 EVB boots up
/etc/init.d/335x-demo
ADC controller
please follow TI wiki pages: http://processors.wiki.ti.com/index.php/AM335x_ADC_Driver%27s_Guide
Bluetooth
$ hciconfig hci0 up $ hcitool scan