repo init -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo repo sync然後選平台:
source meta-agl/scripts/aglsetup.sh -h ------------ aglsetup.sh: Starting Usage: . aglsetup.sh [options] [feature [feature [... ]]] Version: 1.1.0 Compatibility: bash, zsh, ksh Options: -m|--machine要 build wandboard...what machine to use default: 'qemux86-64' -b|--build build directory to use default: './build' -s|--script file where setup script is generated default: none (no script) -f|--force flag to force overwriting any existing configuration default: false -v|--verbose verbose mode default: false -d|--debug debug mode default: false -h|--help get some help Available machines: [meta-agl] beaglebone cyclone5 dra7xx-evm dragonboard-410c h3ulcb imx6qsabreauto imx6qsabrelite intel-corei7-64 joule m3ulcb m3ulcb-nogfx nitrogen6x porter porter-nogfx qemux86 * qemux86-64 raspberrypi2 raspberrypi3 raspberrypi3-64 wandboard Available features: [meta-agl] agl-all-features :( agl-demo agl-appfw-smack agl-devel agl-netboot agl-sota agl-sdl ) agl-appfw-smack agl-archiver agl-ci agl-ci-change-features :( agl-demo agl-appfw-smack agl-devel agl-devel agl-netboot agl-appfw-smack agl-sdl ) agl-ci-change-features-nogfx :( agl-devel agl-netboot agl-appfw-smack ) agl-ci-snapshot-features :( agl-demo agl-appfw-smack agl-devel agl-devel agl-netboot agl-appfw-smack agl-isafw agl-archiver agl-sdl ) agl-ci-snapshot-features-nogfx :( agl-devel agl-netboot agl-appfw-smack agl-isafw agl-archiver ) agl-devel agl-isafw agl-netboot agl-sota [meta-agl-demo] agl-demo :( agl-appfw-smack agl-devel ) agl-iotivity agl-sdl [meta-agl-devel] agl-egvirt agl-oem-extra-libs agl-renesas-kernel [meta-agl-extra] agl-localdev
所以..參考 build for raspberry pi 的部份..
$source meta-agl/scripts/aglsetup.sh -m wandboard agl-demo agl-netboot agl-appfw-smack ------------ aglsetup.sh: Starting Generating configuration files: Build dir: /home/charles-chang/AGL/build Machine: wandboard Features: agl-appfw-smack agl-demo agl-devel agl-netboot Running /home/charles-chang/AGL/poky/oe-init-build-env Templates dir: /home/charles-chang/AGL/meta-agl/templates/base Config: /home/charles-chang/AGL/build/conf/bblayers.conf Config: /home/charles-chang/AGL/build/conf/local.conf Setup script: /home/charles-chang/AGL/build/conf/setup.sh Executing setup script ... --- beginning of setup script --- fragment /home/charles-chang/AGL/meta-agl/templates/base/01_setup_EULAfunc.sh --- fragment /home/charles-chang/AGL/meta-agl/templates/base/99_setup_EULAconf.sh --- end of setup script OK Generating setup file: /home/charles-chang/AGL/build/agl-init-build-env ... OK ------------ aglsetup.sh: Done ### Shell environment set up for builds. ### You can now run 'bitbake然後 build..' Common targets are: - meta-agl: (core system) agl-image-minimal agl-image-minimal-qa agl-image-ivi agl-image-ivi-qa agl-image-ivi-crosssdk agl-image-weston - meta-agl-demo: (demo with UI) agl-demo-platform (* default demo target) agl-demo-platform-qa agl-demo-platform-crosssdk agl-demo-platform-html5
$bitbake agl-demo-platform然後就出現 error:
ERROR: Layer directory '/home/charles-chang/AGL/meta-fsl-arm' does not exist! Please check BBLAYERS in /home/charles-chang/AGL/build/conf/bblayers.conf... 難怪 imx 的都沒 prebuild 了...
然後倒退...chinook 3.0.2 版,不會出現這個 error
3.0.1/0 都會出現 meta-rcar sha error
build fail
ERROR: imx-gpu-viv-1_5.0.11.p8.4-hfp-r0 do_unpack: To use 'imx-gpu-viv' you need to accept the Freescale EULA at '/home/charles-chang/AGL/meta-fsl-arm/EULA'. Please read it and in case you accept it, write: ACCEPT_FSL_EULA = "1" in your local.conf. ERROR: imx-gpu-viv-1_5.0.11.p8.4-hfp-r0 do_unpack: Function failed: do_unpack ERROR: Logfile of failure stored in: /home/charles-chang/AGL/build/tmp/work/cortexa9hf-neon-mx6qdl-agl-linux-gnueabi/imx-gpu-viv/1_5.0.11.p8.4-hfp-r0/temp/log.do_unpack.8709 ERROR: Task 2321 (/home/charles-chang/AGL/meta-fsl-arm/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p8.4-hfp.bb, do_unpack) failed with exit code '1'所以遵照說明,在 build/conf/local.confg 最後加上:
ACCEPT_FSL_EULA = "1"test build
build$ bitbake -b /home/charles-chang/AGL/meta-fsl-arm/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p8.4-hfp.bb重 build 一次,出現 Error:
ERROR: aim-network-0.1-r0 do_compile: oe_runmake failed ERROR: aim-network-0.1-r0 do_compile: Function failed: do_compile (log file is located at /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/temp/log.do_compile.3681) ERROR: aim-sound-0.1-r0 do_compile: oe_runmake failed ERROR: aim-sound-0.1-r0 do_compile: Function failed: do_compile (log file is located at /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-sound/0.1-r0/temp/log.do_compile.3589) ERROR: Logfile of failure stored in: /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/temp/log.do_compile.3681 Log data follows: | DEBUG: Executing shell function do_compile | NOTE: make -j 8 KERNEL_SRC=/home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-source KERNEL_PATH=/home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-source KERNEL_VERSION=3.14.28_1.0.0_ga-wandboard+ge2df042 CC=arm-agl-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd LD=arm-agl-linux-gnueabi-ld.bfd AR=arm-agl-linux-gnueabi-ar O=/home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-build-artifacts | make -C /home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-source M=/home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/git/driver/aim-network modules | make[1]: Entering directory `/home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-source' | CC [M] /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/git/driver/aim-network/networking.o | /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/git/driver/aim-network/networking.c: In function 'aim_probe_channel': | /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/git/driver/aim-network/networking.c:366:23: error: macro "alloc_netdev" passed 4 arguments, but takes just 3 | most_nd_setup); | ^ | /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/git/driver/aim-network/networking.c:365:4: error: 'alloc_netdev' undeclared (first use in this function) | alloc_netdev(0, "meth%d", NET_NAME_UNKNOWN, | ^ | /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/git/driver/aim-network/networking.c:365:4: note: each undeclared identifier is reported only once for each function it appears in | /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/git/driver/aim-network/networking.c: At top level: | /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/git/driver/aim-network/networking.c:293:13: warning: 'most_nd_setup' defined but not used [-Wunused-function] | static void most_nd_setup(struct net_device *dev) | ^ | make[3]: *** [/home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/git/driver/aim-network/networking.o] Error 1 | make[2]: *** [_module_/home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/git/driver/aim-network] Error 2 | make[1]: *** [sub-make] Error 2 | make[1]: Leaving directory `/home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-source' | make: *** [all] Error 2 | WARNING: exit code 1 from a shell command. | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (log file is located at /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-network/0.1-r0/temp/log.do_compile.3681) ERROR: Task 632 (/home/charles-chang/AGL/meta-agl-demo/recipes-kernel/aim-network/aim-network.bb, do_compile) failed with exit code '1' ERROR: Logfile of failure stored in: /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-sound/0.1-r0/temp/log.do_compile.3589 Log data follows: | DEBUG: Executing shell function do_compile | NOTE: make -j 8 KERNEL_SRC=/home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-source KERNEL_PATH=/home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-source KERNEL_VERSION=3.14.28_1.0.0_ga-wandboard+ge2df042 CC=arm-agl-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd LD=arm-agl-linux-gnueabi-ld.bfd AR=arm-agl-linux-gnueabi-ar O=/home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-build-artifacts | make -C /home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-source M=/home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-sound/0.1-r0/git/driver/aim-sound modules | make[1]: Entering directory `/home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-source' | CC [M] /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-sound/0.1-r0/git/driver/aim-sound/sound.o | /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-sound/0.1-r0/git/driver/aim-sound/sound.c: In function 'audio_probe_channel': | /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-sound/0.1-r0/git/driver/aim-sound/sound.c:598:8: error: implicit declaration of function 'snd_card_new' [-Werror=implicit-function-declaration] | ret = snd_card_new(NULL, -1, card_name, THIS_MODULE, | ^ | cc1: some warnings being treated as errors | make[3]: *** [/home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-sound/0.1-r0/git/driver/aim-sound/sound.o] Error 1 | make[2]: *** [_module_/home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-sound/0.1-r0/git/driver/aim-sound] Error 2 | make[1]: *** [sub-make] Error 2 | make[1]: Leaving directory `/home/charles-chang/AGL/build/tmp/work-shared/wandboard/kernel-source' | make: *** [all] Error 2 | ERROR: oe_runmake failed | ERROR: Function failed: do_compile (log file is located at /home/charles-chang/AGL/build/tmp/work/wandboard-agl-linux-gnueabi/aim-sound/0.1-r0/temp/log.do_compile.3589) ERROR: Task 646 (/home/charles-chang/AGL/meta-agl-demo/recipes-kernel/aim-sound/aim-sound.bb, do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 3603 tasks of which 827 didn't need to be rerun and 2 failed. Waiting for 0 running tasks to finish: Summary: 2 tasks failed: /home/charles-chang/AGL/meta-agl-demo/recipes-kernel/aim-network/aim-network.bb, do_compile /home/charles-chang/AGL/meta-agl-demo/recipes-kernel/aim-sound/aim-sound.bb, do_compile Summary: There were 7 WARNING messages shown. Summary: There were 4 ERROR messages shown, returning a non-zero exit code.試試看 3.0.5 --- 之後的 tag 都沒有 meta-fsl 了...
變成;
ERROR: imx-gpu-viv-1_5.0.11.p8.4-hfp-r0 do_configure: QA Issue: imx-gpu-viv: LIC_FILES_CHKSUM points to an invalid file: /home/charles-chang/AGL/build/tmp/work/cortexa9hf-neon-mx6qdl-agl-linux-gnueabi/imx-gpu-viv/1_5.0.11.p8.4-hfp-r0/imx-gpu-viv-5.0.11.p8.4-hfp/gpu-core/usr/include/gc_vdk.h [license-checksum] ERROR: imx-gpu-viv-1_5.0.11.p8.4-hfp-r0 do_configure: Fatal QA errors found, failing task. ERROR: imx-gpu-viv-1_5.0.11.p8.4-hfp-r0 do_configure: Function failed: do_qa_configure ERROR: Logfile of failure stored in: /home/charles-chang/AGL/build/tmp/work/cortexa9hf-neon-mx6qdl-agl-linux-gnueabi/imx-gpu-viv/1_5.0.11.p8.4-hfp-r0/temp/log.do_configure.4436 ERROR: Task 2317 (/home/charles-chang/AGL/meta-fsl-arm/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p8.4-hfp.bb, do_configure) failed with exit code '1' NOTE: Tasks Summary: Attempted 3431 tasks of which 1284 didn't need to be rerun and 1 failed. Waiting for 0 running tasks to finish: Summary: 1 task failed: /home/charles-chang/AGL/meta-fsl-arm/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p8.4-hfp.bb, do_configure Summary: There was 1 WARNING message shown. Summary: There were 3 ERROR messages shown, returning a non-zero exit code.找一下,是..meta-fsl-arm/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc..
LIC_FILES_CHKSUM = "file://gpu-core/usr/include/gc_vdk.h;beginline=5;endline=11;md5=12c028cbbbedb4b8770267131500592c"ref:http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#usingpoky-configuring-LIC_FILES_CHKSUM
沒有留言:
張貼留言