close

在網路找不太到如何用 Yocto 建構 Cubieboard2 的 Linux,有些描述的不是很清楚,很多操作都有問題! 所以只好自己瞎子摸象試試!

建置環境

UBUNTU 18.04

建置步驟

1.安裝建置所需套件

    sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa pylint3 xterm

2.下載 Yocto thud 版本 (因為所需配方只支援這個版本)

    git clone -b thud git://git.yoctoproject.org/poky.git

 或

 git clone -b thud https://git.yoctoproject.org/git/poky

3.進 Yocto 目錄

   cd poky

4.下載 Cubieboard 2 所需配方

    git clone -b thud https://github.com/openembedded/meta-openembedded.git
    git clone -b thud https://github.com/linux-sunxi/meta-sunxi.git

5.建立新專案的預設設置檔

   source oe-init-build-env cubieboard2

   cubieboard2 可依你所需取名。

6.修改設置檔

6.1.加入所需配方

圖片

6.2.修改要建置的目標

圖片

7.開始建置

   bitbake core-image-base

圖片

建置完成,Image 檔會產成在 /tmp/deploy/images/cubieboard2 目錄下的 core-image-base-cubieboard2-20210802073628.rootfs.sunxi-sdimg

圖片

8.燒錄至 SDCard 放進 Cubieboard2 開機

dd if=core-image-base-cubieboard2-20210802073628.rootfs.sunxi-sdimg of=/dev/sda

圖片

參考資料:

1.https://tchelmis07.wordpress.com/2019/07/29/getting-started-with-yocto-for-the-cubieboard2/

 

 

 

arrow
arrow
    文章標籤
    Cubieboard2 Yocto
    全站熱搜

    山哥 發表在 痞客邦 留言(0) 人氣()