close

 repo init --repo-url=https://github.com/rockchip-linux/repo -u https://github.com/rockchip-linux/manifests -b yocto -m rocko.xml
   repo sync
   MACHINE=firefly-rk3399 DISTRO=rk-x11 . ./setup-environment -b build
   bitbake qt5-image

 

 

http://welkinchen.pixnet.net/blog/post/67122477-bitbake-%e7%b0%a1%e4%bb%8b?utm_source=PIXNET&utm_medium=Index&utm_content=

其它編譯選項

只編譯u-boot

bitbake u-boot-rockchip

清掉舊的u-boot 重新下載編譯
bitbake u-boot-rockchip -c cleanall -f && bitbake u-boot-rockchip

只編譯kernel

bitbake linux-rockchip

清掉舊的kernel 重新下載編譯
bitbake linux-rockchip -c cleanall -f && bitbake linux-rockchip

編譯無視窗系統

bitbake core-image-base

編譯無視窗系統
bitbake core-image-minimal

如果想看全部可以支援的選項 可以執行
列出所有 recipes
bitbake-layers show-recipes

因為很多 所已過濾一下
#bitbake-layers show-recipes | grep u-boot
u-boot:
u-boot-fw-utils:
u-boot-mkimage:
u-boot-rockchip:

 

編譯記錄

1.
出現錯誤
WARNING: bzip2-1.0.6-r5 do_fetch: Checksum mismatch for local file /home/test/k4/rk3399/rk-yocto-bsp2/downloads/bzip2-1.0.6.tar.gz
Cleaning and trying again.
WARNING: bzip2-1.0.6-r5 do_fetch: Renaming /home/test/k4/rk3399/rk-yocto-bsp2/downloads/bzip2-1.0.6.tar.gz to /home/test/k4/rk3399/rk-yocto-bsp2/downloads/bzip2-1.0.6.tar.gz_bad-checksum_60d6761cf2325c5fe66eab0c610a9b4a
WARNING: bzip2-1.0.6-r5 do_fetch: Checksum failure encountered with download of http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz - will attempt other sources if available
WARNING: libpng-native-1.6.31-r0 do_fetch: Failed to fetch URL http://downloads.sourceforge.net/project/libpng/libpng16/1.6.31/libpng-1.6.31.tar.xz, attempting MIRRORS if available
WARNING: rockchip-mali-rk-r0 do_fetch: Failed to fetch URL https://github.com/rockchip-linux/libmali/raw/rockchip/lib/aarch64-linux-gnu/libmali-midgard-t86x-r14p0.so, attempting MIRRORS if available
ERROR: rockchip-mali-rk-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH="/home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/test/k4/rk3399/rk-yocto-bsp2/sources/poky/scripts:/home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/work/aarch64-rk-linux/rockchip-mali/rk-r0/recipe-sysroot-native/usr/bin/aarch64-rk-linux:/home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/work/aarch64-rk-linux/rockchip-mali/rk-r0/recipe-sysroot/usr/bin/crossscripts:/home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/work/aarch64-rk-linux/rockchip-mali/rk-r0/recipe-sysroot-native/usr/sbin:/home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/work/aarch64-rk-linux/rockchip-mali/rk-r0/recipe-sysroot-native/usr/bin:/home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/work/aarch64-rk-linux/rockchip-mali/rk-r0/recipe-sysroot-native/sbin:/home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/work/aarch64-rk-linux/rockchip-mali/rk-r0/recipe-sysroot-native/bin:/home/test/k4/rk3399/rk-yocto-bsp2/sources/poky/bitbake/bin:/home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/hosttools"; export HOME="/home/test"; /usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/test/k4/rk3399/rk-yocto-bsp2/downloads/ 'https://github.com/rockchip-linux/libmali/raw/rockchip/lib/aarch64-linux-gnu/libmali-midgard-t86x-r14p0.so' --progress=dot -v failed with exit code 8, output:
--2018-08-16 08:07:03--  https://github.com/rockchip-linux/libmali/raw/rockchip/lib/aarch64-linux-gnu/libmali-midgard-t86x-r14p0.so
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-08-16 08:07:04 ERROR 404: Not Found.


ERROR: rockchip-mali-rk-r0 do_fetch: Fetcher failure for URL: 'https://github.com/rockchip-linux/libmali/raw/rockchip/lib/aarch64-linux-gnu/libmali-midgard-t86x-r14p0.so'. Unable to fetch URL from any source.
ERROR: rockchip-mali-rk-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/work/aarch64-rk-linux/rockchip-mali/rk-r0/temp/log.do_fetch.15103
ERROR: Task (/home/test/k4/rk3399/rk-yocto-bsp2/sources/meta-rockchip/recipes-graphics/libgles/rockchip-mali_rk.bb:do_fetch) failed with exit code '1'
Waiting for 2 running tasks to finish:

修改
   modify meta-rockchip/recipes-graphics/libgles/rockchip-mail_rk.bb
   Row 68
   SRC_URI = "https://github.com/rockchip-linux/libmali/raw/29mirror/lib/${MALI_TUNE}/${MALI_NAME}"
  
  
  
2.出現錯誤
ERROR: carmachine-git-r0 do_fetch: Fetcher failure: Unable to find revision c042da6827a0159a328e9a4041777af7d0f4466d in branch master even from upstream
ERROR: carmachine-git-r0 do_fetch: Fetcher failure for URL: 'git://github.com/rockchip-linux/carmachine.git;branch=master'. Unable to fetch URL from any source.
ERROR: carmachine-git-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/work/aarch64-rk-linux/carmachine/git-r0/temp/log.do_fetch.12656
ERROR: Task (/home/test/k4/rk3399/rk-yocto-bsp2/sources/meta-rockchip-extra/recipes-rk/carmachine/carmachine_git.bb:do_fetch) failed with exit code '1'

   modify  meta-rockchip-extra/recipes-rk/carmachine/carmachine_git.bb
   #SRCREV = "c042da6827a0159a328e9a4041777af7d0f4466d"
   SRCREV = "0ebdbf0256a133801112942d6dcfd844a0aba970" <-- commit number
  
  
???
ERROR: carmachine-git-r0 do_patch: Command Error: 'quilt --quiltrc /home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/work/aarch64-rk-linux/carmachine/git-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch 0001-don-t-use-frameless-for-mainwindow.patch
patching file mainWindows/main.cpp
Hunk #1 FAILED at 38.
1 out of 1 hunk FAILED -- rejects in file mainWindows/main.cpp
Patch 0001-don-t-use-frameless-for-mainwindow.patch does not apply (enforce with -f)
ERROR: carmachine-git-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/test/k4/rk3399/rk-yocto-bsp2/build/tmp/work/aarch64-rk-linux/carmachine/git-r0/temp/log.do_patch.13229
ERROR: Task (/home/test/k4/rk3399/rk-yocto-bsp2/sources/meta-rockchip-extra/recipes-rk/carmachine/carmachine_git.bb:do_patch) failed with exit code '1'
W  

$vi  ../sources/meta-rockchip-extra/recipes-rk/carmachine/carmachine_git.bb
SRC_URI = " \
        git://github.com/rockchip-linux/carmachine.git;branch=rk3399 \
        file://0001-don-t-use-frameless-for-mainwindow.patch \
"

拿掉 file://0001-don-t-use-frameless-for-mainwindow.patch

 

3.如果編譯時遇到 不明原因重開機 那請改BB_NUMBER_THREADS 別設為8以上
 modify build/conf/local.conf --> add  BB_NUMBER_THREADS = "2"  to avoid system crush 


4. 如果 bitbake qt5-image 編譯完出現下面錯誤
ERROR: qt5-image-1.0-r0 do_image_rockchip_gpt_img

且LOG檔顯示是 trust.img 沒找到
 dd: failed to open '/home/share/hd2/rk3399/rk-yocto-bsp2/0817/tmp/deploy/images/firefly-rk3399/trust.img': No such file or directory
請手動複製過去 這是腳本的問題
 cp -rf rkbin/img/rk3399/trust.img /home/share/hd2/rk3399/rk-yocto-bsp2/0817/tmp/deploy/images/firefly-rk3399/trust.img
 再 bitbake qt5-image

 

 

 

 

arrow
arrow
    全站熱搜

    立你斯 發表在 痞客邦 留言(0) 人氣()