New issue
Advanced search Search tips

Issue 735090 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug

Blocking:
issue 653949



Sign in to add a comment

lsusb does not print iSerial for stm32 devices

Project Member Reported by dnojiri@chromium.org, Jun 20 2017

Issue description

Steps to reproduce:
(0. Upgrade openocd to 0.10.0. In progress: 626487)
1. Attach stm32l476g-eval
2. Inside chroot, run "lsusb -v -d 0x0483:0x374b | grep iSerial"

Expected:
It prints "iSerial 3 xxxxxxxxxxxxxxxxxxxxxxxx"

Observed:
It prints "iSerial 3"

Additional Info:
It works by adding sudo: "sudo lsusb -v -d 0x0483:0x374b". Outside chroot, it works without sudo.
 
Components: -IO>USB -Platform>Apps>API>USB
Labels: -OS-Linux OS-Chrome
Removing unrelated flags. IO>USB and Platform>Apps>API>USB are both for Chrome browser issues and this is a Chrome OS platform issue.

I don't know why lsusb needs to be able to open the USB device node in order to read the serial number since it is available through sysfs.
There seems to be a permission problem to run lsusb to get iSerial. I did the following and now I can get iSerial without sudo just like in the host environment:

1. If plugdev doesn't exist or it's group ID doesn't match with                 
the ID on the host:                                                             
  $ sudo groupadd -g <plugdev group id> plugdev                                   
2. Add the user to plugdev group:                                               
  $ sudo usermod -G <group1>,<group2>,...plugdev <username>                       
3. Exit chroot and enter back in

Project Member

Comment 3 by bugdroid1@chromium.org, Jun 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/eclass-overlay/+/b4245d75d91b5389bcc3252759009877935a8a7d

commit b4245d75d91b5389bcc3252759009877935a8a7d
Author: Daisuke Nojiri <dnojiri@chromium.org>
Date: Thu Jun 22 01:48:06 2017

Add plugdev group for openocd-0.10.0

This patch adds plugdev group, which is required by openocd-0.10.0.

BUG= chromium:735090 
TEST=emerge-fizz openocd

Change-Id: I42a620d783d77ba318dcbe7dc12545bb32edca9e
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/541939

[add] https://crrev.com/b4245d75d91b5389bcc3252759009877935a8a7d/profiles/base/accounts/group/plugdev

Status: Fixed (was: Untriaged)

Comment 5 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment