New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 603374 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Apr 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Chameleon upgrade to fpga-chameleon-4.2 image

Project Member Reported by josephsih@chromium.org, Apr 14 2016

Issue description

There was some problem in fpga-chameleon-3.18 such that the USB port in Chameleon cannot act as a host. It is desirable to upgrade the kernel release to 4.2 to fix the problem.

For fpga-chameleon-4.2, USB OTG dual role is enabled. It could act in the host mode or peripheral gadget mode depending on what device is plugged.

The task includes
- Create a new fpga-chameleon-4.2 branch in linux-fpga-chameleon repo. Thanks to cychiang@ who has done this job.
- Cherry pick the add-on patches from fpga-chameleon-3.18 to fpga-chameleon-4.2. Resolve conflicts when necessary. Also the patch -- Revert "tty: serial: 8250_core: read only RX if there is something in the FIFO" -- is not needed anymore since it has been fixed upstream.
- Put the new kernel in platform/chameleon.
 
Components: -UI>Accessibility>Chameleon OS>Kernel>Graphics
Please test the new kernel before deploying it broadly
Project Member

Comment 2 by bugdroid1@chromium.org, Apr 15 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/chameleon/+/8ce7b3a07e38a391e48dd1c906774f52a15a07b0

commit 8ce7b3a07e38a391e48dd1c906774f52a15a07b0
Author: Joseph Hwang <josephsih@chromium.org>
Date: Thu Apr 14 02:28:11 2016

updatable/fpga_tio: upgrade to fpga-chameleon-4.2 image

This patch upgrades the kernel to fpga-chameleon-4.2 so that
we could enable USB OTG dual role.

Please refer to Gerrit to see the patches added to kernel 4.2.
https://chromium-review.googlesource.com/#/q/status:open+project:linux-fpga-chameleon+branch:fpga-chameleon-4.2

BUG= chromium:603374 
TEST=Perform the following tests:
1. Unplug any USB cable connected from developer host to the Chameleon.
   Reboot Chameleon and observe that it boots without problem.
2. Connect a USB cable from a DUT to a chameleon board, and perform
   the two tests:
   - display_ServerChameleonConnection
   - audio_AudioBasicUSBPlayback
   This confirms that USB could act in the gadget mode.
3. Unplug the USB cable mentioned above in step 2.
   Plug a peripheral, e.g., a mouse, to Chameleon USB port.
   Type "evtest /dev/input/event0" and move the mouse.
   Observe that there are mouse events.
   This confirms that USB could act in the host mode.

Change-Id: Ie7fb58e46bfd8ac8e6862e27ca6d04e2bd572ea8
Reviewed-on: https://chromium-review.googlesource.com/338925
Commit-Ready: Shyh-In Hwang <josephsih@chromium.org>
Tested-by: Shyh-In Hwang <josephsih@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>

[modify] https://crrev.com/8ce7b3a07e38a391e48dd1c906774f52a15a07b0/updatable/fpga_tio/socfpga.dtb
[modify] https://crrev.com/8ce7b3a07e38a391e48dd1c906774f52a15a07b0/updatable/fpga_tio/modules.tgz
[modify] https://crrev.com/8ce7b3a07e38a391e48dd1c906774f52a15a07b0/updatable/fpga_tio/zImage

Project Member

Comment 3 by bugdroid1@chromium.org, Apr 29 2016

Labels: merge-merged-fpga-chameleon-4.2
The following revision refers to this bug:
  https://chromium.googlesource.com/linux-fpga-chameleon/+/8c0d826f7ab1772f70b7d66e07e91fda28afcf1b

commit 8c0d826f7ab1772f70b7d66e07e91fda28afcf1b
Author: Cheng-Yi Chiang <cychiang@chromium.org>
Date: Fri Feb 19 08:39:44 2016

CHERRY-PICK: ARM: socfpga: Enable USB gadget audio driver

Enable config related to audio, dwc2, and USB gadget audio driver.
Set dwc2 mode to gadget only.

BUG= chromium:603374 
TEST=Boot and check g_audio can be installed.

Change-Id: I9e0c9deef1269bc0142ed1011f373a96dcb7b1e2
(cherry picked from commit 1087d1897ce34607885a24d82fe47ba9530f4c33)
Signed-off-by: Joseph Hwang <josephsih@chromium.org>

[modify] https://crrev.com/8c0d826f7ab1772f70b7d66e07e91fda28afcf1b/arch/arm/configs/socfpga_defconfig

Project Member

Comment 4 by bugdroid1@chromium.org, Apr 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/linux-fpga-chameleon/+/607457eebceb0f7c080e4572f1526f2bf154a0d1

commit 607457eebceb0f7c080e4572f1526f2bf154a0d1
Author: Johny Lin <johnylin@google.com>
Date: Wed Mar 02 13:54:09 2016

CHERRY-PICK: ARM: socfpga: Enable USB gadget HID driver

BUG= chromium:603374 
TEST=Boot and check g_hid can be installed.

Change-Id: I83a7837514fe52d8698bf2b7cdbe284a99200a2f
(cherry picked from commit 898f487e9477533c76037d8a85b141ba3b5f52d0)
Signed-off-by: Joseph Hwang <josephsih@chromium.org>

[modify] https://crrev.com/607457eebceb0f7c080e4572f1526f2bf154a0d1/arch/arm/configs/socfpga_defconfig

Project Member

Comment 5 by bugdroid1@chromium.org, Apr 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/linux-fpga-chameleon/+/79b862d2023238ef6d0eac3a8ac87cc85b2ed7ab

commit 79b862d2023238ef6d0eac3a8ac87cc85b2ed7ab
Author: Johny Lin <johnylin@google.com>
Date: Tue Feb 23 04:22:36 2016

CHERRY-PICK: ARM: socfpga: HID keyboard and touchscreen emulation

BUG= chromium:603374 
TEST=Boot and enable g_hid. Check there are /dev/hidg0 and /dev/hidg1

Change-Id: Ifddd58ffc74bd1b94d71acfe791243e15c100e28
(cherry picked from commit 6ec433b5e0d5de8450c1e1064174962a94aed93e)
Signed-off-by: Joseph Hwang <josephsih@chromium.org>

[modify] https://crrev.com/79b862d2023238ef6d0eac3a8ac87cc85b2ed7ab/drivers/usb/gadget/legacy/hid.c

Project Member

Comment 6 by bugdroid1@chromium.org, Apr 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/linux-fpga-chameleon/+/f17a6391e729f3e87a7b1dc38366840966f4ad4b

commit f17a6391e729f3e87a7b1dc38366840966f4ad4b
Author: Joseph Hwang <josephsih@chromium.org>
Date: Wed Apr 13 11:03:23 2016

ARM: socfpga: enable USB dual role

This patch removes CONFIG_USB_DWC2_PERIPHERAL=y
USB acts as a host or peripheral role depending on the plugged device.

BUG= chromium:603374 
TEST=USB is in the host mode or gadget mode based on
what USB device is plugged.

Change-Id: I9e03c8da19c2a14813c7a5959b481d62a3ce1a45

[modify] https://crrev.com/f17a6391e729f3e87a7b1dc38366840966f4ad4b/arch/arm/configs/socfpga_defconfig

Status: Fixed (was: Started)

Comment 8 Deleted

Bulk verified
Status: Verified (was: Fixed)
bulk verified

Sign in to add a comment