VAR-SOM-MX6 Android Unit Testing: Difference between revisions
(Created page with "= Testing<br/> = == Audio == The default Android sound recorder application use a a very low sampling rate producing a poor sound. Plug a Disk-On-Key FAT32 formated into th...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{PageHeader|Unit Testing}} | |||
= Audio = | |||
The default Android sound recorder application use a a very low sampling rate producing a poor sound. | The default Android sound recorder application use a a very low sampling rate producing a poor sound. | ||
Line 15: | Line 15: | ||
<pre>root@android:/ # tinyplay /mnt/udisk/48b.wav | <pre>root@android:/ # tinyplay /mnt/udisk/48b.wav | ||
</pre> | </pre> | ||
= USB OTG as a device<br/> = | |||
Test the OTG as a device using Android ADB tool.<br/>On target:<br/>Under devloper option enable ADB debugguing | Test the OTG as a device using Android ADB tool.<br/>On target:<br/>Under devloper option enable ADB debugguing | ||
Line 25: | Line 25: | ||
$ sudo out/host/linux-x86/bin/adb shell | $ sudo out/host/linux-x86/bin/adb shell | ||
</pre> | </pre> | ||
= USB OTG as a host = | |||
Use an external HUB. Plug into it a Disk-On-Key, mouse and keyboard. | Use an external HUB. Plug into it a Disk-On-Key, mouse and keyboard. | ||
Line 31: | Line 31: | ||
Make sure with the Android GUI that they are functional. | Make sure with the Android GUI that they are functional. | ||
= USB HOST = | |||
Plug a mouse into all 3 ports and make sure it is working. | Plug a mouse into all 3 ports and make sure it is working. | ||
Line 37: | Line 37: | ||
Use an external HUB. Plug into it a Disk-On-Key, mouse and keyboard.<br/>Plug it into all 3 ports and make sure all 3 devices are functioning. | Use an external HUB. Plug into it a Disk-On-Key, mouse and keyboard.<br/>Plug it into all 3 ports and make sure all 3 devices are functioning. | ||
= HDMI<br/> = | |||
Boot the system and press spacebar to get into u-boot. | Boot the system and press spacebar to get into u-boot. | ||
Line 48: | Line 48: | ||
You should see the Android on a full 1080p device. | You should see the Android on a full 1080p device. | ||
= External LVDS display<br/> = | |||
Boot the system and press spacebar to get into u-boot.<br/>Change enviroment setting with the folowing command | Boot the system and press spacebar to get into u-boot.<br/>Change enviroment setting with the folowing command | ||
Line 58: | Line 58: | ||
<pre>setenv bootargs console=ttymxc0,115200 init=/init ldb=sin1 video=mxcfb0:dev=ldb,800x600M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off arm_freq=1000 fbmem=24M vmalloc=400M androidboot.console=ttymxc0 androidboot.hardware=freescale gpumem=64M mtdparts=gpmi-nand:16m(bootloader),16m(bootimg),32m(recovery),-(root) ubi.mtd=3 | <pre>setenv bootargs console=ttymxc0,115200 init=/init ldb=sin1 video=mxcfb0:dev=ldb,800x600M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off arm_freq=1000 fbmem=24M vmalloc=400M androidboot.console=ttymxc0 androidboot.hardware=freescale gpumem=64M mtdparts=gpmi-nand:16m(bootloader),16m(bootimg),32m(recovery),-(root) ubi.mtd=3 | ||
</pre> | </pre> | ||
= Ethernet<br/> = | |||
Just plug a cable into the system | Just plug a cable into the system | ||
= WIFI<br/> = | |||
Use the Android GUI to enable and connect to a WIFI AP. | Use the Android GUI to enable and connect to a WIFI AP. | ||
= BLUETOOTH = | |||
Use the Android GUI to enable. | Use the Android GUI to enable. | ||
Line 72: | Line 72: | ||
Test with file transfer to host PC, Bluetooth mouse and Bluetooth keyboard. | Test with file transfer to host PC, Bluetooth mouse and Bluetooth keyboard. | ||
= Camera<br/> = | |||
Use the Android GUI to activate and test the camera. You can take a picture and send it over Bluetooth to a PC host. | Use the Android GUI to activate and test the camera. You can take a picture and send it over Bluetooth to a PC host. | ||
Line 80: | Line 80: | ||
|info}} | |info}} | ||
= SATA<br/> = | |||
<pre>cat /proc/scsi/scsi | <pre>cat /proc/scsi/scsi | ||
busybox fdisk -ul /dev/block/sda | busybox fdisk -ul /dev/block/sda | ||
Line 88: | Line 88: | ||
If the device is FAT32 formated Android will auto mount it. | If the device is FAT32 formated Android will auto mount it. | ||
= RTC (Real Time Clock)<br/> = | |||
Disable the auto clock sync from the Android GUI. | Disable the auto clock sync from the Android GUI. |
Revision as of 14:38, 10 March 2014
Audio
The default Android sound recorder application use a a very low sampling rate producing a poor sound.
Plug a Disk-On-Key FAT32 formated into the USB host port.
Plug an audio source (like a PC line out or smartphone line out) into the line in connector.
Plug speakers (like PC speakers) into the line out connector.
root@android:/ # tinycap /mnt/udisk/48b.wav -d 0 -b 24 -c 2 -r 48000
Hit CTRL-C after couple of seconds or more.
root@android:/ # tinyplay /mnt/udisk/48b.wav
USB OTG as a device
Test the OTG as a device using Android ADB tool.
On target:
Under devloper option enable ADB debugguing
On Host:
$ sudo out/host/linux-x86/bin/adb kill-server $ sudo out/host/linux-x86/bin/adb start-server $ sudo out/host/linux-x86/bin/adb devices $ sudo out/host/linux-x86/bin/adb shell
USB OTG as a host
Use an external HUB. Plug into it a Disk-On-Key, mouse and keyboard.
Make sure with the Android GUI that they are functional.
USB HOST
Plug a mouse into all 3 ports and make sure it is working.
Use an external HUB. Plug into it a Disk-On-Key, mouse and keyboard.
Plug it into all 3 ports and make sure all 3 devices are functioning.
HDMI
Boot the system and press spacebar to get into u-boot.
Change enviroment setting with the folowing command
setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb2:off arm_freq=1000 fbmem=28M vmalloc=400M androidboot.hardware=freescale caam mxc_hdmi.only_cea=1 mtdparts=setenv mtdpar gpmi-nand:16m(bootloader),16m(bootimg),32m(recovery),-(root) ubi.mtd=3 var_ts_type=ctw6120
Plug an HDMI TV or monitor to the HDMI port and boot the system by typing boot into u-boot.
You should see the Android on a full 1080p device.
External LVDS display
Boot the system and press spacebar to get into u-boot.
Change enviroment setting with the folowing command
For Quad, Dual and DualLite SOM's use:
setenv bootargs console=ttymxc0,115200 init=/init ldb=sin1 video=mxcfb0:dev=ldb,800x600M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off arm_freq=1000 fbmem=24M vmalloc=400M androidboot.console=ttymxc0 androidboot.hardware=freescale mtdparts=gpmi-nand:16m(bootloader),16m(bootimg),32m(recovery),-(root) ubi.mtd=3
For Solo use:
setenv bootargs console=ttymxc0,115200 init=/init ldb=sin1 video=mxcfb0:dev=ldb,800x600M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off arm_freq=1000 fbmem=24M vmalloc=400M androidboot.console=ttymxc0 androidboot.hardware=freescale gpumem=64M mtdparts=gpmi-nand:16m(bootloader),16m(bootimg),32m(recovery),-(root) ubi.mtd=3
Ethernet
Just plug a cable into the system
WIFI
Use the Android GUI to enable and connect to a WIFI AP.
BLUETOOTH
Use the Android GUI to enable.
Test with file transfer to host PC, Bluetooth mouse and Bluetooth keyboard.
Camera
Use the Android GUI to activate and test the camera. You can take a picture and send it over Bluetooth to a PC host.
First time boot of Android must be with camera module installed. If you booted without the camera module installed Android will mark the system as "no camera". In such a case you need to re flash the Android and first time boot it with camera installed.
SATA
cat /proc/scsi/scsi busybox fdisk -ul /dev/block/sda
In the above commands you will see SCSI status and device partition table.
If the device is FAT32 formated Android will auto mount it.
RTC (Real Time Clock)
Disable the auto clock sync from the Android GUI.
busybox date 2013.12.01-10:50 busybox hwclock --systohc
Also can set clock via GUI and check it later.
In any method power down the board and wait 5 minutes. After that power up the board and check the the clock is correct.