Yocto Project
Setting hostname from Yocto build より。 2通りの方法がある。 A. base-files_%.bbappend に次の行を書く hostname = "myhostname" B. conf/local.conf に次の行を書く hostname_pn-base-files = "myhostname"
環境 Yocto 1.6 (daisy) 原因 コンパイラーに gcc 5 を使ったため 現在のバージョンが gcc 5 をサポートしていないため 解決方法 gcc 4 を使う Linux 3.18 以降を使う 参考文献 Linux/compiler-gcc5.h: No such file or directory
Specifies the QA checks to skip for a specific package within a recipe. For example, to skip the check for symbolic link .so files in the main package of a recipe, add the following to the recipe. The package name override must be used, wh…
If multiple recipes provide an item, this variable determines which recipe should be given preference. You should always suffix the variable with the name of the provided item, and you should set it to the PN of the recipe to which you wan…
詳細 ログに次のメッセージが出力される。 checking for new_panel in -lpanelw... no configure: error: panelw library not found 原因 不明 対処 alsa-tools と ncurses をリビルドする。 $ bitbake alsa-tools -c cleansstate $ bitbake ncurses -c clea…
エラーメッセージ build/tmp/work/armv7a-vfp-neon-mx5-poky-linux-gnueabi/qtbase/5.2.1-r0/qtbase-opensource-src-5.2.1/src/plugins/platforms/xcb/qxcbconnection.cpp:280:45: error: invalid conversion from 'EGLNativeDisplayType {aka void*}' to 'D…
問題 bitbake を実行すると package タスクで次のエラーが表示される。 ERROR: QA Issue: <レシピ名>: Files/directories were installed but not shipped /usr/src /usr/src/debug ... 解決方法 レシピに次の行を追加する。 PACKAGE_DEBUG_SPLIT_STYLE = "d…
問題 レシピに do_unpack_append を追加すると、do_unpack 実行時にエラーになる。 レシピ: do_unpack_append(){ rm obstacle.file } エラー: ERROR: ExpansionError during parsing ...: Failure expanding variable do_unpack: SyntaxError: invalid syn…
問題 package タスクが次のエラーで失敗する。 ERROR: objcopy failed with exit code 256 (cmd was 'arm-poky-linux-gnueabi-objcopy' --only-keep-debug '/path/to/workdir/package/usr/bin/example' '/path/to/workdir/package/usr/bin/.debug/example'):…
bitbake コマンドで listtasks タスクを実行する。 なお、表示されたタスクが実行されるとは限らないようだ。 $ bitbake -c listtasks <レシピ名> $ bitbake -c listtasks core-image-minimal do_build Default task for a recipe - depends on all other no…
レシピの複数のバージョンが利用可能である場合、この変数は優先されるべきレシピを決定します。あなたはいつもあなたが選択したい PN で変数をサフィックスする必要があり、優先順位のためにそれに応じて PV を設定する必要があります。あなたは、潜在的に…
レシピ選択の優先順位のための弱いバイアスを指定します。 この変数の最も一般的な使い方は、ソフトウェアの一部の開発バージョンのためのレシピの中に "-1" に設定することです。 このように変数を使うと、PREFERRED_VERSION が無い場合に、デフォルトで構…
レシピに次の行を追記する。 inherit extrausers EXTRA_USERS_PARAMS = "usermod -P (パスワード) root;" 参考文献 FAQ:How do I set or change the root password - Yocto Project
http://www.yoctoproject.org/docs/latest/ref-manual/ref-manual.html#ref-tasks-unpack Unpacks the source code into a working directory pointed to by ${WORKDIR}. The S variable also plays a role in where unpacked source files ultimately resid…
問題 bitbake を実行すると次のエラーが表示される。 ERROR: Function failed: Fetcher failure for URL: 'git://host/repository.git'. Please set a valid SRCREV for url ['SRCREV_default_pn-recipe', 'SRCREV_default', 'SRCREV_pn-recipe', 'SRCREV'] …
http://www.yoctoproject.org/docs/1.6/poky-ref-manual/poky-ref-manual.html#var-GTKIMMODULES_PACKAGES For recipes that inherit the gtk-immodules-cache class, this variable specifies the packages that contain the GTK+ input method modules bei…
http://www.yoctoproject.org/docs/1.6/poky-ref-manual/poky-ref-manual.html#ref-classes-gtk-immodules-cache The gtk-immodules-cache class generates the proper post-install and post-remove (postinst/postrm) scriptlets for packages that instal…
問題 bitbake でイメージをビルドすると、次のエラーが表示される。 ERROR: package not found in the base feeds (arch ...). ... ERROR: Function failed: do_rootfs 原因 レシピの記述に誤りがあって、package.rpm がビルドされていなかった。 package-de…
OpenEmbedded ビルドシステムがルートファイルシステムを作成した後に、ポストプロセスコマンドを実行するクラスが追加されます。あなたは、セミコロンで区切られたシェルコマンドを指定することができます。 ROOTFS_POSTPROCESS_COMMAND += "<shell_command>; ... " コマン</shell_command>…
gconf クラスは、GConf スキーマをインストールする必要があるレシピに共通の機能を提供します。スキーマは、このクラスが継承された時に自動的に作成される別のパッケージ (${PN}-gconf) に入れられます。このパッケージは、ターゲットイメージへのスキーマ…
The update-rc.d class uses update-rc.d to safely install an initialization script on behalf of the package. update-rc.d クラスは update-rc.d を使い、パッケージに代わって初期化スクリプトを安全にインストールします。 The OpenEmbedded build sy…
Usage: bitbake [options] [recipename/target ...] Executes the specified task (default is 'build') for a given set of target recipes (.bb files). It is assumed there is a conf/bblayers.conf available in cwd or in BBPATH which will provide t…
問題 configure タスクを実行すると、次のエラーメッセージが表示される。 error: possibly undefined macro: AM_GLIB_GNU_GETTEXT 原因 AM_GLIB_GNU_GETTEXT の宣言がインクルードされていないため。 解決策 レシピに次の行を追記する。 DEPENDS = "glib-2.…
問題 イメージをビルドすると、次のようなエラーメッセージが表示される。 ERROR: ... Computing transaction...error: Can't install ... : no package provides libxaw 環境 Yocto Project 1.6 (daisy) 原因 "libxaw" というパッケージは存在せず、"libxaw…
問題 bitbake コマンドを実行すると、次のようなエラーが表示される。 ERROR: QA Issue: File '/path/to/file' from recipe was already stripped, this will prevent future debugging! 環境 Yocto Project 1.6 (daisy) 原因 バイナリーファイルにデバッグ…
問題 bitbake コマンドを実行すると、次のようなエラーが表示される。 ERROR: QA Issue: non -dev/-dbg/-nativesdk package contains symlink .so: recipe path 'path/to/libfile.so' 環境 Yocto Project 1.6 (daisy) 原因 ソースファイルに .so ファイルが…
The bin_package class is a helper class for recipes that extract the contents of a binary package (e.g. an RPM) and install those contents rather than building the binary from source. bin_package クラスは、ソースからバイナリーをビルドする…
Prevents the OpenEmbedded build system from splitting out debug information during packaging. OpenEmbedded ビルドシステムによるパッケージング時のデバッグ情報の分離を抑止します。 By default, the build system splits out debugging information…
問題 bitbake を実行すると次のエラーが表示される。 WARNING: Unable to get checksum for ${レシピ名} SRC_URI entry ${ソースファイル名}: file could not be found 環境 Yocto Project 1.6 (daisy) 原因 同じレイヤーに同じ名前のレシピが複数存在してい…
問題 bitbake でイメージをビルドすると、次のようなエラーが表示される。 ERROR: The following packages could not be configuredoffline and rootfs is read-only: ['100-${PN}'] ERROR: Function failed: do_rootfs ERROR: Logfile of failure stored in…