前回、QCA9377-5(miniPCIeインタフェースの無線LANモジュール)を挿してみたところ、ath10kという無線LANドライバ・ファームがインストールされておらず動作できず。今回BD-SABRE-LITEにath10kを組み込みます。

【関連記事】
【組込ボードで無線LAN】②(無線LANカードN-6300を組込ボードに接続するには?)
【組込ボードで無線LAN】⑧(iwのビルド:後編-1)【組込ボードで無線LAN】⑰(QCA9377-5を挿してみた)
  • ath10kをBD-SABRE-LITEに組み込む
例によってカーネルconfigを呼び出す。
$ cd ~/fido
$ MACHINE=nitrogen6x . setup-environment core-image-sato
$ MACHINE=nitrogen6x bitbake -f -c menuconfig virtual/kernel
Loading cache: 100% |###############################################################| ETA:  00:00:00
Loaded 2088 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.26.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "nitrogen6x"
DISTRO            = "poky"
DISTRO_VERSION    = "1.8.2"
TUNE_FEATURES     = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
TARGET_FPU        = "vfp-neon"
meta
meta-yocto        = "(nobranch):87631919819b6f85f23f57689cd1065c64d7fb03"
meta-oe
meta-multimedia   = "(nobranch):902964a4da26e46018d2a8d17dcdda1ac4627a39"
meta-fsl-arm      = "(nobranch):c9f259a4bf8472dfa3ff75f1c3fcbe5e0ded7aaf"
meta-fsl-arm-extra = "(nobranch):b292f6204912ace18e30b7683748a311c5dfa780"
meta-fsl-demos    = "(nobranch):17f9da65efb5c65c1d44b5cc18584034b29a742b"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Currently 1 running tasks (258 of 258):
0: linux-boundary-3.14.28-r0 do_menuconfig (pid 22956)
menuconfig画面で、以下の項目を変更してExit(Save)する。
├  Device Drivers  --->
    └  Network device support
        └  Wireless LAN
            └  IEEE802.11 for Host AP(Prism2/2.5/3 and WEP/TKIP/CCMP)  [ ] → [*]

├  Device Drivers  --->
    └  Network device support
        └  Wireless LAN
            └  IEEE802.11 for Host AP(Prism2/2.5/3 and WEP/TKIP/CCMP)  [ ] → [*]

├  Device Drivers  --->
    └  Network device support
        └  Wireless LAN
            └  Atheros Wireless Cards [ ] → [M]
                └  Atheros 802.11ac wireless cards support [ ] → [M]
                    └  Atheros ath10k PCI support [ ] → [M]
1
2
1

フルビルド...でエラー発生。そういえば【組込ボードで無線LAN】⑧(iwのビルド:後編-1)でビルドエラー出てたの思い出した。イチからビルドし直すか。
$ bitbake core-image-sato
Loading cache: 100% |###############################################################| ETA:  00:00:00
Loaded 2088 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for jpeg (jpeg, libjpeg-turbo)
NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg
NOTE: multiple providers are available for jpeg-native (jpeg-native, libjpeg-turbo-native)
NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg-native

Build Configuration:
BB_VERSION        = "1.26.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "nitrogen6x"
DISTRO            = "poky"
DISTRO_VERSION    = "1.8.2"
TUNE_FEATURES     = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
TARGET_FPU        = "vfp-neon"
meta
meta-yocto        = "(nobranch):87631919819b6f85f23f57689cd1065c64d7fb03"
meta-oe
meta-multimedia   = "(nobranch):902964a4da26e46018d2a8d17dcdda1ac4627a39"
meta-fsl-arm      = "(nobranch):c9f259a4bf8472dfa3ff75f1c3fcbe5e0ded7aaf"
meta-fsl-arm-extra = "(nobranch):b292f6204912ace18e30b7683748a311c5dfa780"
meta-fsl-demos    = "(nobranch):17f9da65efb5c65c1d44b5cc18584034b29a742b"

NOTE: Preparing RunQueue
WARNING: /home/pavement1234/fido/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-boundary_3.14.28.bb.do_compile is tainted from a forced run
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL http://libmpeg2.sourceforge.net/files/mpeg2dec-0.4.1.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://downloads.sourceforge.net/mad/libmad-0.15.1b.tar.gz, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 4, no output
ERROR: Function failed: Fetcher failure for URL: 'http://libmpeg2.sourceforge.net/files/mpeg2dec-0.4.1.tar.gz'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/pavement1234/fido/core-image-sato/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/mpeg2dec/0.4.1-r2/temp/log.do_fetch.24528
ERROR: Task 4357 (/home/pavement1234/fido/sources/poky/meta/recipes-multimedia/mpeg2dec/mpeg2dec_0.4.1.bb, do_fetch) failed with exit code '1'

WARNING: Failed to fetch URL http://downloads.sourceforge.net/lame/lame-3.99.5.tar.gz, attempting MIRRORS if available
ERROR: Fetcher failure: Fetch command failed with exit code 4, no output
ERROR: Function failed: Fetcher failure for URL: 'http://downloads.sourceforge.net/mad/libmad-0.15.1b.tar.gz'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/pavement1234/fido/core-image-sato/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/libmad/0.15.1b-r3/temp/log.do_fetch.5663
ERROR: Task 4344 (/home/pavement1234/fido/sources/poky/meta/recipes-multimedia/libmad/libmad_0.15.1b.bb, do_fetch) failed with exit code '1'
ERROR: Fetcher failure: Fetch command failed with exit code 4, no output
ERROR: Function failed: Fetcher failure for URL: 'http://downloads.sourceforge.net/lame/lame-3.99.5.tar.gz'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/pavement1234/fido/core-image-sato/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/lame/3.99.5-r1/temp/log.do_fetch.5670
ERROR: Task 4331 (/home/pavement1234/fido/sources/poky/meta/recipes-multimedia/lame/lame_3.99.5.bb, do_fetch) failed with exit code '1'

NOTE: Tasks Summary: Attempted 2720 tasks of which 2710 didn't need to be rerun and 3 failed.
Waiting for 0 running tasks to finish:

Summary: 3 tasks failed:
  /home/pavement1234/fido/sources/poky/meta/recipes-multimedia/mpeg2dec/mpeg2dec_0.4.1.bb, do_fetch
  /home/pavement1234/fido/sources/poky/meta/recipes-multimedia/libmad/libmad_0.15.1b.bb, do_fetch
  /home/pavement1234/fido/sources/poky/meta/recipes-multimedia/lame/lame_3.99.5.bb, do_fetch
Summary: There were 4 WARNING messages shown.
Summary: There were 6 ERROR messages shown, returning a non-zero exit code.
  • BD-SABRE-LITEのビルド環境を作り直す
さてと。ビルドビルド...となんかエラー出てますけど。
$  repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b fido
fatal: unable to access 'https://github.com/Freescale/fsl-community-bsp-platform/': Failed to connect to github.com port 443: Connection timed out
Failed connect to github.com:443の解決方法というドンピシャのサイトを発見。

①~/.netrcを記述する
$ vi ~/.netrc
machine github.com
login xxxxxxxx@piyopiyo.com
password zzzzzzzzzz
②~/.gitconfigのhttp.sslVerifyをfalseにする
$ git config --global http.sslVerify false
$ cat ~/.gitconfig | grep ssl
        sslVerify = false
再び実行。結果変わらず(エラー)。じっくり待ってみたら2回トライして2回ともエラー。その後、マニフェストが取れないという新エラー発生。なんなんだこれは。
$  repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b fido
fatal: unable to access 'https://github.com/Freescale/fsl-community-bsp-platform/': Failed to connect to github.com port 443: Connection timed out
fatal: unable to access 'https://github.com/Freescale/fsl-community-bsp-platform/': Failed to connect to github.com port 443: Connection timed out
fatal: cannot obtain manifest https://github.com/Freescale/fsl-community-bsp-platform
なんか色々腑に落ちない。とりあえず①~/.netrcを記述するで生成した~/.netrcを削除し、②~/.gitconfigのhttp.sslVerifyをfalseにするを無効化([http](改行)    sslVerify = falseという記載を削除)して、再度実行。結果変わらず。
$  repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b fido
fatal: unable to access 'https://github.com/Freescale/fsl-community-bsp-platform/': Failed to connect to github.com port 443: Connection timed out
fatal: unable to access 'https://github.com/Freescale/fsl-community-bsp-platform/': Failed to connect to github.com port 443: Connection timed out
fatal: cannot obtain manifest https://github.com/Freescale/fsl-community-bsp-platform
たまたまバックアップを取っていたので、そこから復旧してみることにした。が、tarのサイズが17,744,790,142 byte(=約17.8G byte)。一晩かかりそうなので、一旦CLOSEする。

続く
IMG_-wfgd9c



スポンサードリンク