]> git.wh0rd.org Git - home.git/commitdiff
cros-board: add arc++ details
authorMike Frysinger <vapier@gentoo.org>
Mon, 10 Dec 2018 00:19:22 +0000 (19:19 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 10 Dec 2018 00:34:27 +0000 (19:34 -0500)
.bin/cros-board

index e9ff570a99cff7e5f2a794a8ffaf40f0f02e3f7a..b8c8e5973f0cc8257a7e09784609152b3443bfe6 100755 (executable)
@@ -129,9 +129,16 @@ ${IMG_TO_USB}
 ### KVM
 ${d}/image_to_vm.sh --board=${BOARD} --from=../build/images/${BOARD}/latest
 ${d}/image_to_vm.sh --board=${BOARD} --from=../build/images/${BOARD}/latest --test_image
-~/chromiumos/src/scripts/bin/cros_start_vm --no_graphics --image_path=\${HOME}/chromiumos/src/build/images/${BOARD}/latest/chromiumos_qemu_image.bin
-qemu-system-x86_64 -enable-kvm -m 1024 -vga std -net nic,model=virtio -net user,hostfwd=tcp::9222-:22 -hda ~/chromiumos/src/build/images/${BOARD}/latest/chromiumos_qemu_image.bin
-http://dev.chromium.org/chromium-os/testing/running-smoke-suite-on-a-vm-image
+~/chromiumos/src/scripts/bin/cros_start_vm --no_graphics --image_path=\${HOME}/chromiumos/src/build/images/${BOARD}/latest/chromiumos_qemu_image.bin --kvm_cpu "max,vmx=on"
+qemu-system-x86_64 -enable-kvm -cpu max,vmx=on -m 1024 -vga std -net nic,model=virtio -net user,hostfwd=tcp::9222-:22 -hda ~/chromiumos/src/build/images/${BOARD}/latest/chromiumos_qemu_image.bin
+
+https://dev.chromium.org/chromium-os/testing/running-smoke-suite-on-a-vm-image
+
+/usr/local/autotest/bin/autologin.py
+
+export CROS_USER_ID_HASH=$(ls /home/user/)
+sudo -u chronos CROS_USER_ID_HASH="${CROS_USER_ID_HASH}" crosh
+  vmc start termina  # might run twice
 
 ### RECOVERY
 ${d}/mod_image_for_recovery.sh --board=${BOARD}