[Armadeus-commitlog] armadeus branch, master, updated. armadeus-6.0-286-g6c525f8
Brought to you by:
sszy
|
From: Sébastien S. <ss...@us...> - 2017-04-26 13:47:09
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 6c525f83c3c0f23d893a3b8429d11fac5937da5a (commit)
via c3b1d7f0e8538ba9092060baab9213baffb07a0d (commit)
via 70b5917184569dc110364e607c84c54704907e20 (commit)
via 47b8f00548233cea17c3906505738a7dca62226d (commit)
via f18ad0e2d76338577e20fb81c34f3fe465277c89 (commit)
via 638d2f09935394e9e3a5c97df33c077b7a4b4038 (commit)
via 85512ee810fe840521fe0d8337e70ac3274b902e (commit)
via e585fcc9f8b5c1fbc2b846cc2bfd8c93ca212d33 (commit)
via e451bdf4c8d27ea3d4b4d7066b0c40ee89e96514 (commit)
via 7ffed74d5176076d7f7d650973785a91c7a30978 (commit)
via 9a217cb75dabb01600f55e9adcdfeb01f4be499c (commit)
via 0bacd2afab308fe0b136604ca6c011aa32bd5812 (commit)
via f9b4e34503ba5861371cee72a304af86d6533f95 (commit)
via 8ae7c27a83f21494cfc04a9b584cb09aadfcff46 (commit)
via 347c21995941252ab0754eb1103247476f9e4b96 (commit)
via 6502c67488047ef546bd6b76af4c633820eac84d (commit)
from 509b361afc130b02c3f1861d2b5cbc03344fbc26 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6c525f83c3c0f23d893a3b8429d11fac5937da5a
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Apr 26 15:52:39 2017 +0200
[BUILDROOT] opos6ul: add opos6ultest_defconfig file
commit c3b1d7f0e8538ba9092060baab9213baffb07a0d
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Apr 26 15:46:02 2017 +0200
[TEST] bluetooth: add OPOS6UL support
commit 70b5917184569dc110364e607c84c54704907e20
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Apr 26 15:00:30 2017 +0200
[TEST] backlight: fix backlight /sys path
commit 47b8f00548233cea17c3906505738a7dca62226d
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Apr 26 14:52:23 2017 +0200
[TEST] package: prboom: add OPOS6UL support
commit f18ad0e2d76338577e20fb81c34f3fe465277c89
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Apr 26 14:24:36 2017 +0200
[TEST] package: python: add OPOS6UL support
commit 638d2f09935394e9e3a5c97df33c077b7a4b4038
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Apr 26 14:01:19 2017 +0200
[TEST] package: mplayer: add OPOS6UL support
commit 85512ee810fe840521fe0d8337e70ac3274b902e
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Apr 26 11:36:27 2017 +0200
[TEST] usb_device: add OPOS6UL support
commit e585fcc9f8b5c1fbc2b846cc2bfd8c93ca212d33
Author: Sébastien Szymanski <seb...@ar...>
Date: Wed Apr 26 10:51:12 2017 +0200
[TEST] wifi: add OPOS6UL support
commit e451bdf4c8d27ea3d4b4d7066b0c40ee89e96514
Author: Sébastien Szymanski <seb...@ar...>
Date: Tue Apr 25 18:47:11 2017 +0200
[TEST] media_perf: add OPOS6UL support (USB only)
commit 7ffed74d5176076d7f7d650973785a91c7a30978
Author: Sébastien Szymanski <seb...@ar...>
Date: Tue Apr 25 17:31:14 2017 +0200
[TEST] gpio: add OPOS6UL support
commit 9a217cb75dabb01600f55e9adcdfeb01f4be499c
Author: Sébastien Szymanski <seb...@ar...>
Date: Tue Apr 25 17:25:34 2017 +0200
[BUILDROOT] drivers-helpers: add Config.in file
Since commit 47eb02ac744181019e0c6490d85ba2bb309dca3b ([BUILDROOT]
drivers-helpers: convert it to BR's generic-package), drivers-helpers
package is no more enabled by default. Add a Config.in file to enable
drivers-helpers package by default.
commit 0bacd2afab308fe0b136604ca6c011aa32bd5812
Author: Sébastien Szymanski <seb...@ar...>
Date: Tue Apr 25 15:46:58 2017 +0200
[TEST] adc: add OPOS6UL support
commit f9b4e34503ba5861371cee72a304af86d6533f95
Author: Sébastien Szymanski <seb...@ar...>
Date: Tue Apr 25 15:07:51 2017 +0200
[TEST] dac: OPOS6UL is not supported
commit 8ae7c27a83f21494cfc04a9b584cb09aadfcff46
Author: Sébastien Szymanski <seb...@ar...>
Date: Tue Apr 25 15:06:18 2017 +0200
[TEST] touchscreen: add OPOS6UL support
commit 347c21995941252ab0754eb1103247476f9e4b96
Author: Sébastien Szymanski <seb...@ar...>
Date: Tue Apr 25 15:01:54 2017 +0200
[TEST] usb_host: add OPOS6UL support
commit 6502c67488047ef546bd6b76af4c633820eac84d
Author: Sébastien Szymanski <seb...@ar...>
Date: Tue Apr 25 15:00:58 2017 +0200
[TEST] rs232: add OPOS6UL support (ttymxc1)
-----------------------------------------------------------------------
Summary of changes:
.../{opos6ul_defconfig => opos6ultest_defconfig} | 18 ++++++++++--
buildroot/package/armadeus/Config.in | 1 +
.../package/armadeus/drivers-helpers/Config.in | 3 ++
target/test/mmc/media_perf.sh | 33 ++++++++++++++++------
target/test/packages/test_mplayer.sh | 2 +-
target/test/packages/test_prboom.sh | 2 ++
target/test/packages/test_python.sh | 13 +++++++--
target/test/test_adc.sh | 22 +++++++++++++++
target/test/test_backlight.sh | 2 +-
target/test/test_bluetooth.sh | 7 +++++
target/test/test_dac.sh | 2 +-
target/test/test_gpio.sh | 19 +++++++++++--
target/test/test_rs232.sh | 11 ++++++++
target/test/test_touchscreen.sh | 4 +++
target/test/test_usb_device.sh | 2 +-
target/test/test_usb_host.sh | 3 +-
target/test/test_wifi.sh | 15 ++++++++--
17 files changed, 135 insertions(+), 24 deletions(-)
copy buildroot/configs/{opos6ul_defconfig => opos6ultest_defconfig} (91%)
create mode 100644 buildroot/package/armadeus/drivers-helpers/Config.in
diff --git a/buildroot/configs/opos6ul_defconfig b/buildroot/configs/opos6ultest_defconfig
similarity index 91%
copy from buildroot/configs/opos6ul_defconfig
copy to buildroot/configs/opos6ultest_defconfig
index 07548ad..ada984f 100644
--- a/buildroot/configs/opos6ul_defconfig
+++ b/buildroot/configs/opos6ultest_defconfig
@@ -5,12 +5,10 @@ BR2_BACKUP_SITE="ftp://ftp2.armadeus.com/armadeusw/download"
BR2_CCACHE=y
BR2_CCACHE_DIR="$(TOPDIR)/.$(BR2_BOARD_NAME)-buildroot-ccache"
BR2_TOOLCHAIN_EXTERNAL=y
-BR2_ENABLE_LOCALE_PURGE=y
BR2_TARGET_GENERIC_HOSTNAME="opos6ul"
BR2_TARGET_GENERIC_ISSUE="Welcome to Armadeus development platform !"
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
-BR2_TARGET_TZ_INFO=y
BR2_TARGET_TZ_ZONELIST="europe"
BR2_TARGET_LOCALTIME="Europe/Paris"
BR2_ROOTFS_OVERLAY="$(ARMADEUS_PATH)/rootfs/target_overlay"
@@ -33,11 +31,13 @@ BR2_LINUX_KERNEL_INSTALL_TARGET=y
BR2_PACKAGE_BUSYBOX_CONFIG="$(ARMADEUS_PATH)/busybox.config"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_IMXREGS=y
+BR2_PACKAGE_TESTSUITE=y
BR2_PACKAGE_ALSA_UTILS=y
BR2_PACKAGE_ALSA_UTILS_AMIXER=y
BR2_PACKAGE_ALSA_UTILS_APLAY=y
BR2_PACKAGE_ALSA_UTILS_SPEAKER_TEST=y
BR2_PACKAGE_FAAD2=y
+BR2_PACKAGE_MPLAYER=y
BR2_PACKAGE_GDB=y
BR2_PACKAGE_LTRACE=y
BR2_PACKAGE_PV=y
@@ -50,11 +50,20 @@ BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT=y
BR2_PACKAGE_E2FSPROGS_E4DEFRAG=y
BR2_PACKAGE_MMC_UTILS=y
+BR2_PACKAGE_DOOM_WAD=y
+BR2_PACKAGE_PRBOOM=y
+BR2_PACKAGE_SLIDESHOW=y
BR2_PACKAGE_FBGRAB=y
BR2_PACKAGE_FB_TEST_APP=y
BR2_PACKAGE_FBTERM=y
BR2_PACKAGE_FBV=y
# BR2_PACKAGE_FBV_GIF is not set
+BR2_PACKAGE_SDL_IMAGE=y
+BR2_PACKAGE_SDL_IMAGE_GIF=y
+BR2_PACKAGE_SDL_IMAGE_JPEG=y
+BR2_PACKAGE_SDL_IMAGE_PNG=y
+BR2_PACKAGE_SDL_IMAGE_TIFF=y
+BR2_PACKAGE_SDL_WATER=y
BR2_PACKAGE_LINUX_FIRMWARE=y
BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XXX=y
BR2_PACKAGE_APF_CONFIG=y
@@ -63,6 +72,7 @@ BR2_PACKAGE_I2C_TOOLS=y
BR2_PACKAGE_KBD=y
BR2_PACKAGE_SPI_TOOLS=y
BR2_PACKAGE_UBOOT_TOOLS=y
+BR2_PACKAGE_LUA=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON3_CURSES=y
BR2_PACKAGE_PYTHON3_DECIMAL=y
@@ -92,6 +102,7 @@ BR2_PACKAGE_BLUEZ5_UTILS_OBEX=y
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
BR2_PACKAGE_BLUEZ5_UTILS_GATTTOOL=y
BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL=y
+BR2_PACKAGE_BOA=y
BR2_PACKAGE_CAN_UTILS=y
BR2_PACKAGE_DROPBEAR=y
BR2_PACKAGE_ETHTOOL=y
@@ -99,8 +110,11 @@ BR2_PACKAGE_HOSTAPD=y
BR2_PACKAGE_IPERF=y
BR2_PACKAGE_IPROUTE2=y
BR2_PACKAGE_IW=y
+BR2_PACKAGE_LIGHTTPD=y
+BR2_PACKAGE_LINKS=y
BR2_PACKAGE_LRZSZ=y
BR2_PACKAGE_RSYNC=y
+BR2_PACKAGE_TCPDUMP=y
BR2_PACKAGE_WIRELESS_TOOLS=y
BR2_PACKAGE_WPA_SUPPLICANT=y
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
diff --git a/buildroot/package/armadeus/Config.in b/buildroot/package/armadeus/Config.in
index 2b90cdd..daa99ff 100644
--- a/buildroot/package/armadeus/Config.in
+++ b/buildroot/package/armadeus/Config.in
@@ -3,6 +3,7 @@ menu "Armadeus specific tools/utilities"
source package/armadeus/anybus-tools/Config.in
source package/armadeus/as_devices/Config.in
source package/armadeus/demos/Config.in
+source package/armadeus/drivers-helpers/Config.in
source package/armadeus/fpgaregs/Config.in
source package/armadeus/fpga_firmware/Config.in
source package/armadeus/imx28-usb-downloader/Config.in
diff --git a/buildroot/package/armadeus/drivers-helpers/Config.in b/buildroot/package/armadeus/drivers-helpers/Config.in
new file mode 100644
index 0000000..5458cae
--- /dev/null
+++ b/buildroot/package/armadeus/drivers-helpers/Config.in
@@ -0,0 +1,3 @@
+config BR2_PACKAGE_DRIVERS_HELPERS
+ bool
+ default y
diff --git a/target/test/mmc/media_perf.sh b/target/test/mmc/media_perf.sh
index 6d88acb..b5d99da 100755
--- a/target/test/mmc/media_perf.sh
+++ b/target/test/mmc/media_perf.sh
@@ -214,17 +214,32 @@ fi
show_test_banner "Storage medium performances"
clean_report
-if [ ! -b $MMC_DEVICE ] && [ ! -b $USB_DEVICE ]; then
- echo -n "Please insert your storage device: MMC/SD/microSD or USB key"
- it=0
- while [ ! -b $MMC_DEVICE ] && [ ! -b $USB_DEVICE ] && [ $it -le 20 ]; do
- it=$((it+1))
- sleep 2
- echo -n "."
- done
+BOARD=`cat /etc/machine`
+if [ "$BOARD" == "OPOS6UL" ]; then
+ if [ ! -b $USB_DEVICE ]; then
+ echo -n "Please insert your USB key"
+
+ it=0
+ while [ ! -b $USB_DEVICE ] && [ $it -le 20 ]; do
+ it=$((it+1))
+ sleep 2
+ echo -n "."
+ done
+ fi
+else
+ if [ ! -b $MMC_DEVICE ] && [ ! -b $USB_DEVICE ]; then
+ echo -n "Please insert your storage device: MMC/SD/microSD or USB key"
+
+ it=0
+ while [ ! -b $MMC_DEVICE ] && [ ! -b $USB_DEVICE ] && [ $it -le 20 ]; do
+ it=$((it+1))
+ sleep 2
+ echo -n "."
+ done
+ fi
fi
-if [ -b $MMC_DEVICE ]; then
+if [ "$BOARD" != "OPOS6UL" -a -b $MMC_DEVICE ]; then
echo "Testing MMC/SD/microSD"
REM_DEVICE=$MMC_DEVICE
MOUNT_DIR=$MMC_MOUNT_DIR
diff --git a/target/test/packages/test_mplayer.sh b/target/test/packages/test_mplayer.sh
index ca51fec..48ce382 100755
--- a/target/test/packages/test_mplayer.sh
+++ b/target/test/packages/test_mplayer.sh
@@ -35,7 +35,7 @@ remove_files()
if [ "$1" == "APF9328" ]; then
# We are a little short in memory on APF9328
rm -f $VIDEO_FILE_NAME
- elif [ "$1" == "APF27" ] || [ "$1" == "APF51" ] || [ "$1" == "APF28" ]; then
+ elif [ "$1" == "APF27" ] || [ "$1" == "APF51" ] || [ "$1" == "APF28" ] || [ "$1" == "OPOS6UL" ]; then
echo
else
echo "Platform not supported by this test"
diff --git a/target/test/packages/test_prboom.sh b/target/test/packages/test_prboom.sh
index 52ce898..34c463b 100755
--- a/target/test/packages/test_prboom.sh
+++ b/target/test/packages/test_prboom.sh
@@ -22,6 +22,8 @@ set_exec_options()
{
if [ "$1" == "APF51" ]; then
EXEC_OPTIONS="-width 640 -height 480 -vidmode 16bit &"
+ elif [ "$1" == "OPOS6UL" ]; then
+ EXEC_OPTIONS="-width 800 -height 480 -vidmode 32bit -nosound &"
else
EXEC_OPTIONS="-width 320 -height 240 &"
fi
diff --git a/target/test/packages/test_python.sh b/target/test/packages/test_python.sh
index 66fff0d..a7efdcd 100755
--- a/target/test/packages/test_python.sh
+++ b/target/test/packages/test_python.sh
@@ -20,12 +20,19 @@ PYTHON_FILE="/tmp/test.py"
generate_test_file()
{
- cat << EOF > $PYTHON_FILE
+ if [ "$1" == "OPOS6UL" ]; then
+cat << EOF > $PYTHON_FILE
+import sys
+print("If you read this then Python is running")
+sys.exit(0)
+EOF
+ else
+cat << EOF > $PYTHON_FILE
import sys
-
print "If you read this then Python is running"
sys.exit(0)
EOF
+ fi
}
test_cleanup()
@@ -41,7 +48,7 @@ test_python()
is_package_installed $EXEC_NAME
if [ "$?" == 0 ]; then
- generate_test_file
+ execute_for_target generate_test_file
# Launch it
$EXEC_NAME $PYTHON_FILE
if [ "$?" == 0 ]; then
diff --git a/target/test/test_adc.sh b/target/test/test_adc.sh
index 50b216a..baf68de 100755
--- a/target/test/test_adc.sh
+++ b/target/test/test_adc.sh
@@ -29,6 +29,8 @@ test_setup()
modprobe as1531
elif [ "$1" == "APF28" ]; then
ask_user "Connect (jumper) pin 38 (LRADC0) and 40 (GND) of the connector j10, then press ENTER"
+ elif [ "$1" == "OPOS6UL" ]; then
+ return 0
else
echo "Platform not supported by this test"
fi
@@ -95,6 +97,24 @@ test_running_lradc()
return 0
}
+test_running_opos6ul()
+{
+ ask_user "Connect (jumper) pin 7 (AIN9) and 9 (GND) of J3 connector, then press ENTER"
+ VALUE=`cat /sys/bus/iio/devices/iio\:device0/in_voltage9_raw`
+ if [ "$VALUE" -gt 30 ]; then
+ exit_failed
+ fi
+ echo "OK"
+ ask_user "Disconnect pin 7 (AIN9) and 9 (GND) of J3 connector, then press ENTER"
+ VALUE=`cat /sys/bus/iio/devices/iio\:device0/in_voltage9_raw`
+ if [ "$VALUE" -lt 4000 ]; then
+ exit_failed
+ fi
+ echo "OK"
+
+ return 0
+}
+
test_running()
{
if [ "$1" == "APF9328" ]; then
@@ -105,6 +125,8 @@ test_running()
test_running_as1531
elif [ "$1" == "APF28" ]; then
test_running_lradc
+ elif [ "$1" == "OPOS6UL" ]; then
+ test_running_opos6ul
else
echo "Platform not supported by this test"
fi
diff --git a/target/test/test_backlight.sh b/target/test/test_backlight.sh
index 70553a5..da60604 100755
--- a/target/test/test_backlight.sh
+++ b/target/test/test_backlight.sh
@@ -48,7 +48,7 @@ load_driver()
LOOP=`seq 1 1 8`
LOOP_DELAY=500000
elif [ "$1" == "OPOS6UL" ]; then
- SYS_DIR=/sys/class/backlight/lcd/
+ SYS_DIR=/sys/class/backlight/lcd_backlight/
min_bright=0
mid_bright=4
max_bright=7
diff --git a/target/test/test_bluetooth.sh b/target/test/test_bluetooth.sh
index 38d292a..5958a02 100755
--- a/target/test/test_bluetooth.sh
+++ b/target/test/test_bluetooth.sh
@@ -20,6 +20,13 @@ attach_bt_chip()
/usr/sbin/hciattach -s 921600 ttySMX5 csr 921600
elif [ "$1" == "APF51" ]; then
/usr/sbin/hciattach -s 921600 ttymxc1 csr 921600
+ elif [ "$1" == "OPOS6UL" ]; then
+ echo 42 > /sys/class/gpio/export
+ echo low > /sys/class/gpio/gpio42/direction
+ sleep 1
+ echo 1 > /sys/class/gpio/gpio42/value
+ sleep 1
+ hciattach -t 30 /dev/ttymxc7 bcm43xx 921600 flow
else
echo "Platform not supported by this test"
fi
diff --git a/target/test/test_dac.sh b/target/test/test_dac.sh
index bae2fcf..a0ccc34 100755
--- a/target/test/test_dac.sh
+++ b/target/test/test_dac.sh
@@ -16,7 +16,7 @@ source ./test_helpers.sh
check_platform()
{
- if [ "$1" == "APF28" ] || [ "$1" == "APF6" ]; then
+ if [ "$1" == "APF28" ] || [ "$1" == "APF6" ] || [ "$1" == "OPOS6UL" ]; then
echo "Platform not supported by this test"
exit 0
fi
diff --git a/target/test/test_gpio.sh b/target/test/test_gpio.sh
index 172d4dd..08d0825 100755
--- a/target/test/test_gpio.sh
+++ b/target/test/test_gpio.sh
@@ -13,6 +13,7 @@
source ./test_helpers.sh
source /usr/bin/gpio_helpers.sh
+LED_NAME=""
load_module()
{
@@ -22,7 +23,7 @@ load_module()
echo "Module failed to load"
exit_failed
fi
- elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ] || [ "$1" == "APF6" ]; then
+ elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ] || [ "$1" == "APF6" ] || [ "$1" == "OPOS6UL" ]; then
echo
else
echo "Platform not supported by this test"
@@ -34,7 +35,7 @@ unload_module()
{
if [ "$1" == "APF9328" ] || [ "$1" == "APF27" ]; then
rmmod gpio
- elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ] || [ "$1" == "APF6" ]; then
+ elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ] || [ "$1" == "APF6" ] || [ "$1" == "OPOS6UL" ]; then
echo
else
echo "Platform not supported by this test"
@@ -129,6 +130,9 @@ blink_led()
else
blink_led_gpioled Heartbeat
fi
+ elif [ "$1" == "OPOS6UL" ]; then
+ LED_NAME="User"
+ blink_led_gpioled User
else
echo "Platform not supported by this test"
fi
@@ -148,6 +152,15 @@ check_button()
fi
elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ]; then
echo "TBDL"
+ elif [ "$1" == "OPOS6UL" ]; then
+ echo gpio > "/sys/class/leds/$LED_NAME/trigger"
+ echo 43 > "/sys/class/leds/$LED_NAME/gpio"
+ echo 1 > "/sys/class/leds/$LED_NAME/inverted"
+
+ ask_user "Is $LED_NAME LED on when you press the User button ? (y/N)"
+ if [ "$response" != "y" ] && [ "$response" != "yes" ]; then
+ exit_failed
+ fi
else
echo "Platform not supported by this test"
fi
@@ -167,6 +180,8 @@ test_led_gpio()
exit_failed
fi
+ show_test_banner "GPIO (BUTTON)"
+
execute_for_target check_button
execute_for_target unload_module
diff --git a/target/test/test_rs232.sh b/target/test/test_rs232.sh
index 0c18476..619fd5d 100755
--- a/target/test/test_rs232.sh
+++ b/target/test/test_rs232.sh
@@ -54,6 +54,13 @@ echo_jumper_help()
else
echo " (No consign yet for this port)"
fi
+ elif [ "$1" == "OPOS6UL" ]; then
+ if [ "$2" == "1" ]; then
+ echo
+ echo "(PIN 8 & 10 (Tx/Rx) of J3 connector | o o o o o o o o o o |)"
+ echo " | o o o o o v v o o o |"
+ echo
+ fi
else
echo "Platform not supported by this test"
fi
@@ -125,6 +132,10 @@ configure_ports_devices()
elif [ "$1" == "APF6" ]; then
REGEXPR="[4]"
SERIAL_DEVICES="/dev/ttymxc"
+ elif [ "$1" == "OPOS6UL" ]; then
+ # ttymxc0 is debug console, ttymxc7 is Bluetooth
+ REGEXPR="[!07]"
+ SERIAL_DEVICES="/dev/ttymxc"
else
echo "$1 platform not supported by this test"
exit 0
diff --git a/target/test/test_touchscreen.sh b/target/test/test_touchscreen.sh
index 5fc2af1..be30172 100755
--- a/target/test/test_touchscreen.sh
+++ b/target/test/test_touchscreen.sh
@@ -38,6 +38,10 @@ load_driver()
# driver is in-kernel/static
grep "SX8674 Touchscreen" $(echo /sys/class/input/event*/device/name)
RES="$?"
+ elif [ "$1" == "OPOS6UL" ]; then
+ # driver is in-kernel/static
+ grep "iMX6UL Touchscreen" $(echo /sys/class/input/event*/device/name)
+ RES="$?"
else
echo "$1 platform not supported by this test"
fi
diff --git a/target/test/test_usb_device.sh b/target/test/test_usb_device.sh
index 7ace5fb..16138c7 100755
--- a/target/test/test_usb_device.sh
+++ b/target/test/test_usb_device.sh
@@ -22,7 +22,7 @@ check_driver()
elif [ "$1" == "APF27" ]; then
echo "APF27 do not support USB device mode"
exit 0
- elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ] || [ "$1" == "APF6" ]; then
+ elif [ "$1" == "APF51" ] || [ "$1" == "APF28" ] || [ "$1" == "APF6" ] || [ "$1" == "OPOS6UL" ]; then
dmesg | grep "USB" | grep "Device"
STORAGE_DRIVER=g_mass_storage
else
diff --git a/target/test/test_usb_host.sh b/target/test/test_usb_host.sh
index 10ee298..5c35d0f 100755
--- a/target/test/test_usb_host.sh
+++ b/target/test/test_usb_host.sh
@@ -56,6 +56,7 @@ wait_key_removal()
check_usb_key()
{
+ mkdir -p $USB_MOUNT_POINT
mount `ls /dev/sd*1` $USB_MOUNT_POINT && ls $USB_MOUNT_POINT
df -h
umount $USB_MOUNT_POINT
@@ -71,7 +72,7 @@ test_usb_host()
# execute_for_target load_usb_host_driver_apf9328 echo
BOARD=`cat /etc/machine`
- if [ "$BOARD" == "APF28" ] || [ "$BOARD" == "APF6" ]; then
+ if [ "$BOARD" == "APF28" ] || [ "$BOARD" == "APF6" ] || [ "$BOARD" == "OPOS6UL" ]; then
wait_key_insertion "the"
check_usb_key
wait_key_removal
diff --git a/target/test/test_wifi.sh b/target/test/test_wifi.sh
index 523af92..72ec53a 100755
--- a/target/test/test_wifi.sh
+++ b/target/test/test_wifi.sh
@@ -23,7 +23,7 @@ get_interface_name()
{
if [ "$1" == "APF27" ]; then
WLAN_IF=eth1
- elif [[ "$1" == "APF51" || "$1" == "APF6" ]]; then
+ elif [ "$1" == "APF51" ] || [ "$1" == "APF6" ] || [ "$1" == "OPOS6UL" ]; then
WLAN_IF=wlan0
else
echo "Platform not supported by this test"
@@ -44,6 +44,15 @@ load_driver()
modprobe wlcore_sdio
RES=$?
sleep 1
+ elif [ "$1" == "OPOS6UL" ]; then
+ DRIVER_NAME=brcmfmac
+ modprobe brcmfmac
+ sleep 3
+ rmmod brcmfmac
+ sleep 1
+ modprobe brcmfmac
+ sleep 3
+ RES=$?
fi
if [ "$RES" != 0 ]; then
echo "Failed to load $DRIVER_NAME driver !!"
@@ -58,9 +67,9 @@ test_wifi()
ask_user "This test assumes that you run a private Wi-Fi network (WEP shared key security). \nYour Access Point (AP) should be connected to your Host. Press ENTER to continue"
if [ "$1" == "" ]; then
- ask_user "Do you have an APF27Dev+APW extension or an APF51Dev or an APF6+Wi-Fi? (Y/n)"
+ ask_user "Do you have an APF27Dev+APW extension or an APF51Dev or an APF6+Wi-Fi or an OPOS6UL+Wi-Fi? (Y/n)"
if [ "$response" == "n" ] || [ "$response" == "no" ]; then
- echo "Currently, only the APW, the APF51Dev & the APF6 are supported by this test !!"
+ echo "Currently, only the APW, the APF51Dev, the APF6 & the OPOS6UL are supported by this test !!"
exit_failed
fi
hooks/post-receive
--
armadeus
|