Closed cjbd closed 3 years ago
Assuming you are building chromium as well from our repo.
You need to check your chrome-root
under ${chrome-root}/src/third_party/widevine/cdm/chromeos/arm
and if libwidevinecdm.so exist. If not, rerun gclient sync
or figure out a way to make sure the missing file is there.
@fydeos-alpha, thank you for the update!
yes, i'm building chromium as well, but i'm using vanilla chromium, it's fetched from google
i checked ${chrome-root}/src/third_party/widevine/cdm/
using both Files
from ubuntu os and chroot
, there's no chromeos/arm
, but all other folders don't have that either ...
i noticed that some files under /build/rpi4/tmp/portage/chromeos-base/libwidevine-0.0.1/
are broken, and libwidevine-0.0.1
is the only one in /build/rpi4/tmp/portage/chromeos-base
is it possible that the temp files for libwidevine are broken? from log i can see, the build was completed, it's saying install failed ...
vanilla chromium doesn't have widevinecdm support, to pass the build, you need to remove widevine from the relevant ebuild files.
Or consider using chromium-raspberry_pi
@fydeos-alpha, oh... since i've started building with vanilla chromium, how do i remove widevine from ebuild files?
It's registered in fyde-packages-0.0.1.ebuild
file, remove/comment the widevine
package under RDEPEND
as well as from the IUSE
.
Also, under chromeos-chrome-86.0.4240.260_rc-r1.ebuild
file, remove/comment line 698-700 where a patch for widevine is called when vanilla chromium is detected:
if [[ "${CHROME_ORIGIN}" == "SERVER_SOURCE" ]]; then
use widevine && patch_widevine
fi
@fydeos-alpha, sorry, i only found chromeos-chrome-86.0.4240.260_rc-r1.ebuild
, where do i find fyde-packages-0.0.1.ebuild
?
i tried seaching using Files
in the chroot.img
, the closest file i can find is /chroot/var/cache/edb/dep/mnt/host/source/src/overlays/project-cros-pi/virtual/fyde-packages-0.0.1
DEFINED_PHASES=-
DEPEND=chromeos-base/auto-expand-partition chromeos-base/power_wash_command chromeos-base/fyde-chromedev-flags widevine? ( chromeos-base/libwidevine ) kiosk_demo? ( chromeos-base/fyde-kiosk-demo ) fyde_extension? ( chromeos-base/fyde-shell-daemon-bin )
DESCRIPTION=empty project
EAPI=5
HOMEPAGE=https://fydeos.io
IUSE=kiosk_demo widevine fyde_extension
KEYWORDS=*
LICENSE=BSD
RDEPEND=chromeos-base/auto-expand-partition chromeos-base/power_wash_command chromeos-base/fyde-chromedev-flags widevine? ( chromeos-base/libwidevine ) kiosk_demo? ( chromeos-base/fyde-kiosk-demo ) fyde_extension? ( chromeos-base/fyde-shell-daemon-bin )
SLOT=0
_md5_=c505da669389cb53e51dde188c33e4c8
is this the one to edit?
all files that I was referring to belonged to this current project, it'd be helpful if you have followed the Guide and have them located somewhere outside cros_sdk repo and created symlinks and bind mounts.
search this git repository rather than the choot.img
.
@fydeos-alpha, thanks a lot! i thought they must be files inside chroot.img, i copied this project to overlay folder directly i edited the 2 files, the build_packages passed!
pls keep this ticket open for a while, i'm going for next step
@fydeos-alpha, last step went wrong, the card is new, please help, thanks a lot!
(cr) (release-R86-13421.B/(7bd3fbb...)) pi@dev ~/trunk/src/scripts $ cros flash usb:// rpi4/latest
Removable device(s) found. Please select/confirm to continue:
[0]: Generic Mass Storage Device 14.9G (/dev/sdc)
Please choose an option [0-0]:
Input is not an integer
Please choose an option [0-0]: 0
[###############################################################################################] 100%
The backup GPT table is not on the end of the device. This problem will be corrected by write.
Checking that no-one is using this disk right now ... FAILED
This disk is currently in use - repartitioning is probably a bad idea.
Umount all file systems, and swapoff all swap partitions on this disk.
Use the --no-reread flag to suppress this check.
sfdisk: Use the --force flag to overrule all checks.
partx: /dev/sdc: error updating partition 1
14:14:18: ERROR: Failed copying image to device /dev/sdc
14:14:18: NOTICE: cros flash completed successfully.
the image should work afaik, try it out.
@fydeos-alpha , thanks a lot! the image works, it's booted sorry to bother you over and over again
when i boot from the image, this error message is in the top screen:
You will not be able to add users because Google API keys are missing. See
https://www.chromium.org/developers/how-tos/api-keys for details.
but i did follow the README.md to add the key in ~/.googleapikeys
, is this location in host or chroot? i put in host, btw i do remember see log in build_packages saying they found google key
also, after picking wifi, it stuck in this almost blank window, saying Please wait...
, and have been spinning long time ...
shall i wait or what?
but i did follow the README.md to add the key in ~/.googleapikeys, is this location in host or chroot? i put in host, btw i do remember see log in build_packages saying they found google key
.googleapikeys
in the host is fine, it gets cloned to chroot too so you should really see it in both places, especially if you remember the log confirmed it was found.
The WSOD is more than likely caused by API issues causing the OS being unable to talk to Google's login services.
Not sure how you've configured and applied API accesses from your GCP account, unfortunately it's out of the scope of this project, can't help you too much on this front.
Comments welcome, issue closed.
@fydeos-alpha
i would like to take this opportunity to express my gratitude to this project, you guys rock!
it's been a very exciting journey to build an entire OS from scratch and be able to use it in raspberry pi!
Awesome job, FydeOS team!
Describe the bug or issue Hello, I followed the steps in the README.md, and made it to
build_packages
step, most packages passed, there're about 11 left, I ran a few times, it always errors out at below:Failed to emerge chromeos-base/libwidevine-0.0.1
Describe your setup
To Reproduce Steps to reproduce the behavior:
./build_packages --board=rpi4 --nowithautotest
commandExpected behaviour expect
build_packages
pass all stepsScreenshots and/or hardware setup photos no screenshot, pls check below log
Additional context logfile: /build/rpi4/tmp/portage/chromeos-base/libwidevine-0.0.1/temp/build.log