# 編譯openbmc 內部的ast2600 project - 先yocto_docker pull到主機端 [docker連結](https://hub.docker.com/r/crops/yocto/tags) :::warning 注意本機一定要預留至少500GB的空間,openbmc 編譯出來檔案相當龐大 ::: ``` docker pull crops/yocto:ubuntu-20.04-base ``` - 先在本機端新增分享目錄 ``` mkdir share_floder ``` - docker run 命令 > ``` docker run -v `pwd`/share_floder:/mnt -it --user yoctouser -w /home/yocto crops/yocto:ubuntu-20.04-base ``` - 下載openbmc 源碼 :::warning 不要下載官網的倉庫 會出現問題,底下提供一個更新過後的版本 ::: ``` git clone https://github.com/macchen-yu/opbmc_repo ``` 初始化yocto環境 選擇evb-ast2600 ``` source ./setup evb-ast2600 ### source 完之後會自動進入builfd/evb-ast2600資料夾 ``` > 成功會出現以下畫面 ![image](https://hackmd.io/_uploads/BJLyqyIbyg.png) :::danger 官網所提供的.setup 腳本檔 無法成功編譯 直接上去下載上面的倉庫即可 ::: - 編譯 ``` bitbake obmc-phosphor-image ``` > 這個過程會花很多時間,取決電腦本身,且編譯出來的檔案非常龐大 70多GB