gpt4 book ai didi

linux - 为 DragonBoard 410c 构建 Yocto 图像,如何构建 Chromium

转载 作者:太空狗 更新时间:2023-10-29 12:01:08 25 4
gpt4 key购买 nike

如何使用 Sato 和 Chromium 为 DragonBoard 410c 生成图像?

qcom-oe-manifest开始在 Dragonboard-410c-OpenEmbedded-and-Yocto documentation 中提到

将 Sato 桌面和 Chromium 添加到此基本配置的正确/正确方法是什么?

我做了什么:

  • x11-base x11-sato 添加到 IMAGE_FEATURES
  • 已将 chromium alsa-utils lsb 添加到 CORE_IMAGE_BASE_INSTALL

我的图片.bb

/oe-qcom-yocto/sources$ more ./meta-rpb/recipes-samples/images/my-image.bb

SUMMARY = "Basic console image"

IMAGE_FEATURES += "x11-base x11-sato splash package-management ssh-server-dropbear hwcodecs"

LICENSE = "MIT"

inherit core-image distro_features_check extrausers

# let's make sure we have a good image..
REQUIRED_DISTRO_FEATURES = "pam systemd"

CORE_IMAGE_BASE_INSTALL += " \
chromium alsa-utils lsb \
coreutils gptfdisk kernel-modules connman 96boards-tools \
"

EXTRA_USERS_PARAMS = "\
useradd -p '' linaro; \
"

然后运行 ​​bitbake -v

chromium 被跳过:与机器 dragonboard-410c 不兼容

~/oe-qcom-yocto/build-jethro$  bitbake -v my-image


NOTE: Started PRServer with DBfile: /home/joel/oe-qcom-yocto/build-jethro/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 51063, PID: 1432
Loading cache: 100% |############################################################################################################################################################################| ETA: 00:00:00
Loaded 2948 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: selecting pigz-native to satisfy gzip-native due to PREFERRED_PROVIDERS
NOTE: selecting pseudo-native to satisfy virtual/fakeroot-native due to PREFERRED_PROVIDERS
NOTE: selecting linux-linaro-qcomlt to satisfy virtual/kernel due to PREFERRED_PROVIDERS
NOTE: selecting opkg-native to satisfy opkg-native due to PREFERRED_PROVIDERS
NOTE: selecting opkg-utils-native to satisfy virtual/update-alternatives-native due to PREFERRED_PROVIDERS
ERROR: Nothing RPROVIDES 'chromium' (but /home/joel/oe-qcom-yocto/build-jethro/conf/../../sources/meta-rpb/recipes-samples/images/my-image.bb RDEPENDS on or otherwise requires it)
ERROR: chromium was skipped: incompatible with machine dragonboard-410c (not in COMPATIBLE_MACHINE)
NOTE: Runtime target 'chromium' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['chromium']
NOTE: Target 'my-image' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['my-image', 'chromium']
ERROR: Required build target 'my-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['my-image', 'chromium']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

已将 dragonboard-410c 添加到 COMPATIBLE_MACHINE - 新错误

...
NOTE: selecting gettext to satisfy virtual/gettext due to PREFERRED_PROVIDERS
ERROR: Nothing PROVIDES 'libav' (but /home/joel/oe-qcom-yocto/build-jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium_40.0.2214.91.bb DEPENDS on or otherwise requires it)
ERROR: libav was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST
NOTE: Target 'libav' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libav']
NOTE: Runtime target 'chromium' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['chromium', 'libav']
NOTE: Target 'my-image' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['my-image', 'chromium', 'libav']
ERROR: Required build target 'my-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['my-image', 'chromium', 'libav']

更新

build_jethro/conf/local.conf 文件的末尾添加了 LICENSE_FLAGS_WHITELIST = "commercial" 并且它正在构建我的图像

错误:Fetcher 失败:无法在任何地方找到文件 file://include.gypi。

WARNING: Failed to fetch URL file://include.gypi, attempting MIRRORS if available
ERROR: Fetcher failure: Unable to find file file://include.gypi anywhere. The paths that were searched were:
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium-40.0.2214.91/rpb
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium/rpb
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/files/rpb
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium-40.0.2214.91/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/files/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium-40.0.2214.91/dragonboard-410c
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium/dragonboard-410c
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/files/dragonboard-410c
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium-40.0.2214.91/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/files/aarch64
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium-40.0.2214.91/
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium/
/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/files/
/home/joel/oe-qcom-yocto/sources/downloads
ERROR: Function failed: Fetcher failure for URL: 'file://include.gypi'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/joel/oe-qcom-yocto/build_jethro/tmp-rpb-glibc/work/aarch64-oe-linux/chromium/40.0.2214.91-r0/temp/log.do_fetch.10845
ERROR: Task 197 (/home/joel/oe-qcom-yocto/build_jethro/conf/../../sources/meta-browser/recipes-browser/chromium/chromium_40.0.2214.91.bb, do_fetch) failed with exit code '1'
include.gypi 在 Chromium 配方中
joel@linux-Lenovo-G50-70:~/oe-qcom-yocto/sources$ grep -r "include.gypi" *
meta-browser/recipes-browser/chromium/chromium_40.0.2214.91.bb: file://include.gypi \
meta-browser/recipes-browser/chromium/chromium_40.0.2214.91.bb: -I ${WORKDIR}/include.gypi \

添加了aarch64

创建了 meta-browser/recipes-browser/chromium/chromium/aarch64 文件夹并添加了 include.gypioe-defaults.gypi按照 LightenS 的建议

包括.gypi
meta-browser/recipes-browser/chromium/chromium/aarch64$ more include.gypi

{
'variables': {
'target_arch': 'arm64',
'use_allocator': 0,
'use_xkbcommon': 1,
'v8_use_external_startup_data' : 0,
'v8_use_snapshot' : 'false',
},
}
oe-defaults.gypi
meta-browser/recipes-browser/chromium/chromium/aarch64$ more oe-defaults.gypi

{
'variables': {
'use_system_bzip2': 1,
'disable_nacl': 1,
'proprietary_codecs': 1,
'v8_use_snapshot': 1,
'ffmpeg_branding' : 'Chrome',
'use_system_ffmpeg': 0,
'linux_link_kerberos': 0,
'use_kerberos': 0,
'use_cups': 0,
'use_gnome_keyring': 0,
'linux_link_gnome_keyring': 0
},
}

新刊

 [301/16647] CXX obj/breakpad/src/client/linux/minidump_writer/breakpad_client.linux_ptrace_dumper.o
|
| [301/16647] CXX obj/breakpad/src/client/linux/minidump_writer/breakpad_client.linux_ptrace_dumper.o
| FAILED: aarch64-oe-linux-g++ --sysroot=/home/joel/oe-qcom-yocto/build_jethro/tmp-rpb-glibc/sysroots/dragonboard-410c -MMD -MF obj/breakpad/src/client/linux/dump_writer_common/breakpad_client.thread_info.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DUSE_XI2_MT=2 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV -DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DCLD2_DATA_SOURCE=static -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_LOAD_COMPLETION_HACKS=1 -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../breakpad/src -I../../breakpad/src/client -I../../breakpad/src/third_party/linux/include -I../.. -I../../breakpad -fstack-protector --param=ssp-buffer-size=4 -pthread -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-unused-local-typedefs -Wno-format -Wno-unused-result -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -Wno-error=unused-local-typedefs -O2 -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated -std=gnu++11 -Wno-narrowing -Wno-literal-suffix -c ../../breakpad/src/client/linux/dump_writer_common/thread_info.cc -o obj/breakpad/src/client/linux/dump_writer_common/breakpad_client.thread_info.o
| In file included from ../../breakpad/src/client/linux/dump_writer_common/thread_info.cc:30:0:
| ../../breakpad/src/client/linux/dump_writer_common/thread_info.h:69:23: error: field 'regs' has incomplete type 'google_breakpad::user_pt_regs'
| struct user_pt_regs regs;
| ^
| ../../breakpad/src/client/linux/dump_writer_common/thread_info.h:69:10: note: forward declaration of 'struct google_breakpad::user_pt_regs'
| struct user_pt_regs regs;
| ^
| ../../breakpad/src/client/linux/dump_writer_common/thread_info.h:70:28: error: field 'fpregs' has incomplete type 'google_breakpad::user_fpsimd_state'
| struct user_fpsimd_state fpregs;
| ^
| ../../breakpad/src/client/linux/dump_writer_common/thread_info.h:70:10: note: forward declaration of 'struct google_breakpad::user_fpsimd_state'
| struct user_fpsimd_state fpregs;
|

最佳答案

Openembedded-core 中有一个 Sato 包,您可以继承到 HERE

如果你想构建 Sato 图像,这里有一个列表来自 Openembedded-core HERE

来自 chromium.inc , Chromium 不支持你的主板。这是Quad-core ARM® Cortex® A53,您可以尝试将机器添加到列表中并编译。你的机器应该是aarch64

COMPATIBLE_MACHINE = "(-)"
COMPATIBLE_MACHINE_x86 = "(.*)"
COMPATIBLE_MACHINE_x86-64 = "(.*)"
COMPATIBLE_MACHINE_armv6 = "(.*)"
COMPATIBLE_MACHINE_armv7a = "(.*)"
COMPATIBLE_MACHINE_aarch64 = "(.*)"

编辑:Chromium 需要编译以下内容;

DEPENDS = "xz-native pciutils pulseaudio cairo nss zlib-native libav cups ninja-native gconf libexif pango libdrm"

取决于 += "libgnome-keyring"

在这些依赖项中,libav 需要被列入白名单。为此,我们需要转到 conf/local.conf 并添加 LICENSE_FLAGS_WHITELIST = "commercial"

Click Here, and look for Section 12.5了解有关许可证的更多信息。


编辑:提取器问题:您需要将 include.gypioe-defaults.gypi 文件添加到 /meta-browser/recipes-browser/chromium/chromium/aarch64/

chromium/chromium/aarch64/include.gypi

{
'variables': {
'target_arch': 'arm64',
'use_allocator': 0,
'use_xkbcommon': 1,
'v8_use_external_startup_data' : 0,
'v8_use_snapshot' : 'false',
},
}

chromium/chromium/oe-defaults.gypi

{
'variables': {
'use_system_bzip2': 1,
'disable_nacl': 1,
'proprietary_codecs': 1,
'v8_use_snapshot': 1,
'ffmpeg_branding' : 'Chrome',
'use_system_ffmpeg': 0,
'linux_link_kerberos': 0,
'use_kerberos': 0,
'use_cups': 0,
'use_gnome_keyring': 0,
'linux_link_gnome_keyring': 0
},
}

编辑: dragonboard 的正确元浏览器应该是这样的:https://github.com/kuscsik/meta-browser-1 .里面有开发板所需的所有文件。

关于linux - 为 DragonBoard 410c 构建 Yocto 图像,如何构建 Chromium,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36184976/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com