/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
make[1]: *** [s-attrtab] Killed
問題
“gcc-cross-initial-arm” レシピのコンパイルがエラーで失敗する。
環境
- AmazonLinuxAMI-2016.09
- Yocto 2.2.1 (Morty)
メッセージ
make[1]: *** [s-attrtab] Killed
原因
メモリ不足により、OOM Killer に kill された。
解決方法
スワップを作る。
SWAP=/tmp/swap dd if=/dev/zero of=$SWAP bs=1M count=1024 mkswap $SWAP sudo swapon $SWAP
参考文献
amazon ec2 - Make exits with "Error 2" when trying to install gcc-4.8.1 - Stack Overflow
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
メッセージ
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:
訳
エラー: OE-core のコンフィグ正当性チェッカーが潜在的なミスを検知した。 このエラーの原因を修正するか、あるいは自己責任でチェッカーを無効にするか (sanity.conf を参照)。 以下は、潜在的な問題 / アドバイスの一覧:
WARNING: Host distribution ... has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
メッセージ
WARNING: Host distribution “AmazonLinuxAMI-2016.09” has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
訳
警告: ホストのディストリビューション “AmazonLinuxAMI-2016.09” は、このビルドシステムバージョンで検証されていない。予期しない失敗をする可能性がある。テストされたディストリビューションを使うことを勧める。
error: Can't install nativesdk-qt4-tools-4.8.7-r0@x86_64_nativesdk: no package provides libQtDBus.so.4()(64bit)
問題
bitbake meta-toolchain-qt がエラーで失敗する。
メッセージ
ERROR: meta-toolchain-qt-1.0-r7 do_populate_sdk: Unable to install packages. Command 'build/tmp/sysroots/x86_64-linux/usr/bin/smart --log-level=warning --data-dir=build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt/1.0-r7/sdk/image/var/lib/smart install -y nativesdk-packagegroup-qt-toolchain-host@x86_64_nativesdk packagegroup-cross-canadian-imx6qsabresd@x86_64_nativesdk' returned 1: Computing transaction...error: Can't install nativesdk-qt4-tools-4.8.7-r0@x86_64_nativesdk: no package provides libQtDBus.so.4()(64bit) ERROR: meta-toolchain-qt-1.0-r7 do_populate_sdk: Function failed: do_populate_sdk ERROR: Logfile of failure stored in: build/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/meta-toolchain-qt/1.0-r7/temp/log.do_populate_sdk ERROR: Task 7 (meta-qt4/recipes-qt4/meta/meta-toolchain-qt.bb, do_populate_sdk) failed with exit code '1'
解決方法
meta-qt4/recipes-qt4/qt4/nativesdk-qt4-tools.inc を書き換える。
do_install() { install -d ${D}${bindir} install -m 0755 bin/qmake2 ${D}${bindir}/qmake2 - for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do + for i in moc uic rcc lrelease; do install -m 0755 bin/${i} ${D}${bindir}/${i}4 done (cd ${D}${bindir}; \ ln -s qmake2 qmake; \ - for i in moc uic uic3 rcc lrelease lupdate qdbuscpp2xml qdbusxml2cpp; do \ + for i in moc uic rcc lrelease; do \ ln -s ${i}4 ${i}; \ done)
WARNING: ... do_package_qa: QA Issue: ... rdepends on ..., but it isn't a build dependency? [build-deps]
メッセージ
WARNING: nativesdk-qt4-tools-4.8.7-r0 do_package_qa: QA Issue: nativesdk-qt4-tools rdepends on qt4-native, but it isn’t a build dependency? [build-deps]
訳
警告: nativesdk-qt4-tools-4.8.7-r0 do_package_qa: QA 問題: nativesdk-qt4-tools は qt4-native に rdepends するが、build dependency では無いのでは? [build-deps]
WARNING: ... do_package_qa: QA Issue: ... contained in package ... requires ..., but no providers found in RDEPENDS_...? [file-rdeps]
メッセージ
WARNING: nativesdk-qt4-tools-4.8.7-r0 do_package_qa: QA Issue: /opt/poky/2.1.1/sysroots/x86_64-pokysdk-linux/usr/bin/qdbusxml2cpp4 contained in package nativesdk-qt4-tools requires libQtXml.so.4()(64bit), but no providers found in RDEPENDS_nativesdk-qt4-tools? [file-rdeps]
訳
警告: nativesdk-qt4-tools-4.8.7-r0 do_package_qa: QA の問題: パッケージ nativesdk-qt4-tools に含まれる /opt/poky/2.1.1/sysroots/x86_64-pokysdk-linux/usr/bin/qdbusxml2cpp4 は libQtXml.so.4()(64bit) を必要とする, しかし RDEPENDS_nativesdk-qt4-tools に提供するものが無いのでは? [file-rdeps]