New issue
Advanced search Search tips

Issue 882987 link

Starred by 1 user

Issue metadata

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

Blocking:
issue 878565



Sign in to add a comment

mosys error when trying to enable usb boot on kevin64

Project Member Reported by manojgupta@chromium.org, Sep 11

Issue description

On a kevin64 (kevin/arm64) image, I am not able to enable usb boot after flashing the arm64 image. The error seems to be coming from the mosys invocation inside crossystem.

# enable_dev_usb_boot 
ERROR: Failed to enable USB boot.

# crossystem dev_boot_usb
waitpid() or mosys error
 
probably good to provide reproducer instructions.
I don't want anyone to work on it till Chrome build + graphics sandbox issues are resolved since currently it is a bit of work to get a working image.

Repro instructions are fairly standard:
Use prebuilt images from kevin64-release builder (after Chrome build issues are resolved)
Or build image locally:
$ ./build_packages --board=kevin64 (will build chrome from source so will take a while)
$ ./build_image --board=kevin64 --noenable_rootfs_verification test


# flash the image to a kevin board (usb/locally).
$ cros flash ....

Try running the commands:
# enable_dev_usb_boot 
ERROR: Failed to enable USB boot.

# crossystem dev_boot_usb
waitpid() or mosys error
Project Member

Comment 3 by bugdroid1@chromium.org, Sep 18

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/mosys/+/2bcf2e064e4e680c2270e739f102a0453f1886b8

commit 2bcf2e064e4e680c2270e739f102a0453f1886b8
Author: Adam Kallai <kadam@inf.u-szeged.hu>
Date: Tue Sep 18 13:42:14 2018

mosys: allows some syscalls for arm64

crossystem cannot obtain system specific information or set
any property because of mosys error (i.e. enable dev_boot_usb).

BUG= chromium:882987 
BUG=chromium:878565
TEST=checks with minijail0 and run crossystem

Change-Id: I06632486f2b68b241c87860a2a317450df8954cc
Reviewed-on: https://chromium-review.googlesource.com/1228134
Commit-Ready: Adam Kallai <kadam@inf.u-szeged.hu>
Tested-by: Adam Kallai <kadam@inf.u-szeged.hu>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[modify] https://crrev.com/2bcf2e064e4e680c2270e739f102a0453f1886b8/seccomp/mosys-seccomp-arm64.policy

Owner: ka...@inf.u-szeged.hu
Status: Fixed (was: Untriaged)
Status: Verified (was: Fixed)

Sign in to add a comment