Building Chromium OS for QEMU for Linux Mint missing build file

61 views
Skip to first unread message

bob olbrich

unread,
Jan 22, 2021, 9:41:11 PM1/22/21
to Chromium OS Discussion
Hello,
I'm trying to do something beyond my experience.
I found a site for building Chromium OS for QEMU.
The procedure they detailed follows:

mkdir chromiumos
cd chromiumos
repo sync -j75
cros_sdk
export BOARD=amd64-generic
./setup_board --board=${BOARD}
./build_packages --board=${BOARD}
./build_image --board=${BOARD} --boot_args "earlyprintk=serial,keep console=tty0" --noenable_rootfs_verification test
./image_to_vm.sh --board=${BOARD} --test_image

I completed the steps through cros_sdk.
At that  point setup_board was not in the current folder.
The other three builds - build_packages, build_image, and image_to_vm - were present.
Is this procedure outdated? Did I do something wrong?
Can someone help a first timer?
Thanks

Mike Frysinger

unread,
Jan 22, 2021, 9:42:49 PM1/22/21
to rjol...@gmail.com, Chromium OS Discussion
the docs you're reading are out of date.  don't run setup_board at all.
-mike

--
--
Chromium OS Discussion mailing list: chromium-...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-discuss

bob olbrich

unread,
Jan 29, 2021, 9:22:46 PM1/29/21
to Chromium OS Discussion, Mike Frysinger, Chromium OS Discussion, bob olbrich


OK, Mike.
I tried build_packages and got fatal errors.
I modified the procedure to the following:

mkdir chromiumos
cd chromiumos
repo sync -j $(nproc)
cros_sdk
export BOARD=amd64-generic
./build_packages --board=${BOARD}
./build_image --board=${BOARD}
./image_to_vm.sh --board=${BOARD}

and received no errors!!!

I then invoked QEMU with:

cd chromiumos
/usr/bin/qemu-system-x86_64 \
    -enable-kvm \
    -m 2G \
    -smp 4 \
    -hda src/build/images/amd64-generic/R90-13755.0.2021_01_28_1949-a1/chromiumos_qemu_image.bin \
    -vga virtio \
    -net nic,model=virtio \
    -net user,hostfwd=tcp:127.0.0.1:9222-:22 \
    -usb -device usb-mouse -device usb-kbd

and Chromium OS booted successfully!!!

BUT,.....
I'm having keyboard trouble at the login page. I can't get the "@" symbol to enter to type the email address!
With the default keyboard selected, it seems the shift or caps lock does not work on the row of numeric keys.
(1234567890   !@#$%^&*(),  etc). Hmm, for a second there they were not working as I typed this response, but now work fine!
A Linux issue?? I'll do some more investigating and post a new topic if I can't figure it out.
Reply all
Reply to author
Forward
0 new messages