[RDKM] Set up Env. in Windows10 WSL

有鑑於用VirtualBox跑OpenBfc-RDKM的make速度太慢

又不想重灌Linux的host.....

經過Tom的題點....開試用win10的WSL

建立的放法很簡單 Win10的版本請自己google

以下只寫我的做法:

1. 先開啟一個命令提示符號字元,請用管理者權限開啟。


2. 先看看要使用哪個版本的linux

    wsl --list --online


3. 安裝要使用的版板,我是用Ubuntu 20.04 LTS

    wsl --install --distribution Ubuntu-20.04

    這時就會開始安裝,然後會重開機。


4. 重開機後,Ubuntu的終端機會自行打開,請設定帳號&密碼


5. 再來是如何開啟samba,請參考這邊:

    https://www.twblogs.net/a/5c458f41bd9eee35b3a72258

    做完後samba應該就可以從本機直接連上,把SDK丟進去。

5-1. 其實這邊可以根本不用samba來溝通檔案

    因為 只要用//wsl$    就可以直接傳檔案 XD


6. 在Ubuntu中,請先sudo apt-get update & upgrade


7. 因為讓系統執行32bit的程式的lib名字不一樣了

    原先的解法 sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 無法使用

    所以要先 sudo dpkg --add-architecture i386 再 sudo apt-get update

    上面那行就可以用了。

7a. i386的部份應該是不裝也可以


8. 這可以安裝所有需要的庫:

    sudo apt-get install curl gawk socat bison unzip git chrpath diffstat python python3.8-dev python3-distutils gcc-multilib g++-multilib libncurses5-dev build-essential mtd-utils -y


9. 這一定要做
    sudo dpkg-reconfigure dash           [Select NO]


10. 然後一樣的,執行以下命令

mkdir ~/bin

PATH=~/bin/:$PATH

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

chmod 777 -R ~/bin/

echo "machine code.rdkcentral.com login dhsiao password CTIsw@5@67" > ~/.netrc


11. 設定GIT

git config --global url."https://".insteadOf git://

git config --global user.email "Your_mail@your.address"

git config --global user.name "Your_mail"


11. 開始build code

    time source meta-rdk-broadcom-generic-rdk/setup-environment-broadcom-generic-rdkb

    選2 3384lwvg

    time bitbake rdk-generic-broadband-image

沒意外的話就要等很久了

留言

這個網誌中的熱門文章

Ubuntu 64bit 32bit 的問題