Error, TMPDIR has changed location. You need to either move it back to /path/to/tmp or rebuild
問題
コピーした Yocto ディレクトリーで bitbake を実行すると、次のエラーが発生する。
ERROR: OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf). Following is the list of potential problems / advisories: Error, TMPDIR has changed location. You need to either move it back to /path/to/tmp or rebuild
訳
エラー: OE-core's コンフィグサニティチェッカーが潜在的ミスコンフィギュレーションを検知した。 このエラーの発生原因を修正するか、自己責任でチェッカーを無効にするか (sanity.conf 参照)。 以下は、潜在的な問題 / アドバイスの一覧: エラー, TMPDIR の位置が変更された。それを /path/to/tmp に戻すか、リビルドする必要がある。
環境
- Yocto 2.2.1 (morty)
解決方法
TMPDIR/saved_tmpdir に書かれているパスを書き換える。
参考文献
https://groups.google.com/forum/#!topic/beagleboard/4j6BLhWkats
INFO: rcu_preempt detected stalls on CPUs/tasks:
メッセージ
INFO: rcu_preempt detected stalls on CPUs/tasks:
訳
情報: rcu_preempt が CPU/タスク の停止を検知した:
イメージファイルを圧縮させない
local.conf に次の行を書く。
IMAGE_FSTYPES = "sdcard"
参考文献
[meta-fsl-arm,V2] Add compression method to apply to SDCARD - Patchwork
root ユーザーのパスワードを変更する
local.conf に次の行を追加する。
INHERIT += "extrausers" EXTRA_USERS_PARAMS = "usermod -P mypassword root;"
参考文献
WARNING: ... LICENSE value ... has an invalid format - license names must be separated by the following characters to indicate the license selection: ...
メッセージ
WARNING: MyRecipe: LICENSE value “My License” has an invalid format - license names must be separated by the following characters to indicate the license selection: &|()
訳
警告: MyRecipe: LICENSE の値 “My License” は無効な形式 - ライセンス名は選択条件を示すために次の文字で区切られていなければならない: &|()
Yocto レイヤーの作り方
レイヤーディレクトリーに移動して、yocto-layer create コマンドを実行する。
$ cd <meta-*** のあるディレクトリー> $ yocto-layer create <meta- の後ろに付ける名前>
/dev/root の実デバイスの調べ方
/proc/cmdline の root= の値を見る。
$ cat /proc/cmdline ... root=/dev/mmcblk2p2 ...
参考文献
proc - Find out what device /dev/root represents in Linux? - Unix & Linux Stack Exchange