[Armadeus-commitlog] armadeus branch, master, updated. release-3.3-390-g40da6cd
Brought to you by:
sszy
|
From: jscheer <js...@us...> - 2011-03-02 14:22:50
|
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 40da6cd5f8c94eddfe637702ec28e6a3c0098c21 (commit)
from 7febe02a37193ed1dfe3c23134edbbd7a4f8a698 (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 40da6cd5f8c94eddfe637702ec28e6a3c0098c21
Author: Jeremie Scheer <jer...@ar...>
Date: Wed Mar 2 15:21:50 2011 +0100
[PPS] [LINUX] Add support for USB Gadget RS232 in PPS' Linux config.
[TEST] New PPS' test script for USB Gadget RS232.
-----------------------------------------------------------------------
Summary of changes:
.../device/armadeus/pps/pps-linux-2.6.29.config | 4 ++--
target/pps/scripts/test_ether_gadget.sh | 1 +
.../{test_ether_gadget.sh => test_rs232_gadget.sh} | 20 ++++++++++++--------
3 files changed, 15 insertions(+), 10 deletions(-)
copy target/pps/scripts/{test_ether_gadget.sh => test_rs232_gadget.sh} (67%)
diff --git a/buildroot/target/device/armadeus/pps/pps-linux-2.6.29.config b/buildroot/target/device/armadeus/pps/pps-linux-2.6.29.config
index fef2fcb..333371b 100644
--- a/buildroot/target/device/armadeus/pps/pps-linux-2.6.29.config
+++ b/buildroot/target/device/armadeus/pps/pps-linux-2.6.29.config
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.29.6
-# Mon Jan 10 11:54:08 2011
+# Wed Mar 2 14:25:41 2011
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
@@ -1404,7 +1404,7 @@ CONFIG_USB_ETH=m
CONFIG_USB_ETH_RNDIS=y
# CONFIG_USB_GADGETFS is not set
# CONFIG_USB_FILE_STORAGE is not set
-# CONFIG_USB_G_SERIAL is not set
+CONFIG_USB_G_SERIAL=m
# CONFIG_USB_MIDI_GADGET is not set
# CONFIG_USB_G_PRINTER is not set
# CONFIG_USB_CDC_COMPOSITE is not set
diff --git a/target/pps/scripts/test_ether_gadget.sh b/target/pps/scripts/test_ether_gadget.sh
index a00be05..2dd2644 100644
--- a/target/pps/scripts/test_ether_gadget.sh
+++ b/target/pps/scripts/test_ether_gadget.sh
@@ -20,6 +20,7 @@
modprobe -r smsc95xx
modprobe -r g_ether
+modprobe -r g_serial
modprobe g_ether
diff --git a/target/pps/scripts/test_ether_gadget.sh b/target/pps/scripts/test_rs232_gadget.sh
similarity index 67%
copy from target/pps/scripts/test_ether_gadget.sh
copy to target/pps/scripts/test_rs232_gadget.sh
index a00be05..8838139 100644
--- a/target/pps/scripts/test_ether_gadget.sh
+++ b/target/pps/scripts/test_rs232_gadget.sh
@@ -18,17 +18,21 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-modprobe -r smsc95xx
modprobe -r g_ether
+modprobe -r g_serial
-modprobe g_ether
+modprobe g_serial
-# shutdown other ports
-ifconfig usb0 down 2>/dev/null
-ifconfig eth0 down 2>/dev/null
-ifconfig eth1 down 2>/dev/null
+if [ ! -f /dev/ttyGS0 ]; then
+ mknod /dev/ttyGS0 c 249 0
+fi
-ifconfig usb0 192.168.10.1
+sleep 4
-echo -e "\nTo check the USB Gadget port (usb0), please browse on 192.168.10.1\n"
+echo -e "\nTo test the RS232 Gadget device, you first have to load usbserial module on your host PC:
+sudo modprobe usbserial vendor=0x0525 product=0xA4A6
+Then you should be able to enter datas through /dev/ttyACM0 on your host PC:
+echo \"COUCOU\" > /dev/ttyACM0\n
+Listening for host:"
+cat /dev/ttyGS0
hooks/post-receive
--
armadeus
|