---
# System prepended metadata

title: Untitled

---



https://www.linux4sam.org/bin/view/Linux4SAM/BuildRoot

//=========================================================================================
required packages install
//=========================================================================================
sudo  apt-get install gtk-doc-tools

sudo apt-get update

sudo apt-get -y install wget git-core unzip make gcc g++ build-essential subversion sed autoconf automake texi2html texinfo \
coreutils diffstat python-pysqlite2 docbook-utils libsdl1.2-dev libxml-parser-perl libgl1-mesa-dev libglu1-mesa-dev xsltproc \
desktop-file-utils chrpath groff libtool xterm gawk fop libncurses5-dev gcc-multilib g++-multilib device-tree-compiler \
u-boot-tools bison flex mercurial net-tools openssh-server net-tools doxygen graphviz libssl-dev gtk-doc-tools \
pkg-config libdrm-dev libinput-dev libcairo-dev libjpeg-dev libmagic-dev gettext

//=========================================================================================
Get sources
//=========================================================================================
$ git clone https://github.com/linux4sam/buildroot-at91.git
$ git clone https://github.com/linux4sam/buildroot-external-microchip.git

$ ls buildroot-external-microchip/
 cd buildroot-external-microchip/
 git tag | grep linux4sam
 git checkout linux4sam-2022.04 -b buildroot-external-microchip-linux4sam-2022.04
 
 cd ../buildroot-at91/
 git tag | grep linux4sam
 git checkout linux4sam-2022.04 -b buildroot-at91-linux4sam-2022.04

 
//=========================================================================================
Build the rootfs image
//=========================================================================================
 in buildroot-at91 folder 
 //sudo make atmel_sama5d27_som1_ek_mmc_dev_defconfig
 sudo BR2_EXTERNAL=../buildroot-external-microchip/ make sama5d27_som1_ek_graphics_defconfig
 sudo BR2_EXTERNAL=../buildroot-external-microchip/ make sam9x60ek_graphics_defconfig
 
 sudo make -j4

//=========================================================================================
change source branch  
//=========================================================================================
make clean

git branch -a
git switch buildroot-at91-linux4sam-2022.04
 
//=========================================================================================
//WSL遠端桌面開啟
//=========================================================================================
https://hackmd.io/@Luote/luotenote/%2F%40Luote%2Fwsl-gui
https://hackmd.io/@Luote/luotenote/%2F%40Luote%2Fwsl-gui#3-%E5%9C%A8WSL%E6%96%B0%E5%A2%9E%E4%B8%80%E5%80%8B%E8%85%B3%E6%9C%AC

sudo apt install xrdp
sudo apt install xubuntu-desktop
sudo vim /etc/xrdp/xrdp.ini
port=3390
echo xfce4-session >~/.xsession
sudo service xrdp restart
sudo service xrdp status
sudo lsof -i -P -n | grep LISTEN
  
  
//=========================================================================================
Eclipse Development Environment Setup 
buildroot or Yocto Project SDK
//=========================================================================================
 
sudo apt install git
git clone --recursive https://github.com/linux4sam/egt.git
sudo apt install build-essential automake autoconf libtool pkg-config libdrm-dev libinput-dev libcairo-dev libjpeg-dev libmagic-dev gettext
sudo apt install librsvg2-dev liblua5.3-dev libcurl4-openssl-dev libxkbcommon-dev xkb-data
sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
sudo apt install libplplot-dev plplot-driver-cairo
sudo apt install libasound2-dev libsndfile1-dev

sudo passwd root

