Buildroot - Making Embedded Linux Easy

build_root 라고 좋은 build_root?가 있습니다. 쉽게 bootloader, kernel 부터 rootfs와 필요한 라이브러리들은 죄다 설치해줍니다. qt부터 webkit까지 되는군요. 오예!?

필요한 일이 있어서 컴파일 해봅니다. 다운로드 받으러 간김에 repository에 가보니 다른 프로젝트와 다르게 commit이 정말 엄청나게 많군요!? 역시 모든 보드에 맞게 컴파일하고 잘 동작하게 하려면 엄청난 케바케가 있었던거죠.

먼저 홈페이지와 다운로드
https://buildroot.org/
$ wget https://buildroot.org/downloads/buildroot-2018.02.tar.gz
$ tar xvfz buildroot-2018.02.tar.gz

README를 봐줍니다.

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

임베디드 개발자들에겐 익숙한 make menuconfig입니다. 하지만 옵션 하나 하나 다 선택하기는 매우 귀찮은 일이죠. 전 알려진 보드를 쓰기때문에 아마 config가 있을 겁니다. 역시 있군요!

$ make menuconfig

 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.

실패! 초장부터 아름답군요. 덥벼라 build_root!

$ sudo apt install libncurses5-dev

다시



$ make menuconfig


커널 개발자에게는 매우 익숙한 menuconfig 입니다.  적당히 선택해줍니다. 전 다른것보다 Target packages에 관심이 있어서 그쪽으로 선택하였습니다.

그리고 메잌!

$ make

cross-compiler부터 죄다 다운받아서 설치해줍니다. 이 편한 세상....
오래 걸릴테니 다음편에....

댓글

이 블로그의 인기 게시물

WSL2 Ubuntu 20.04 및 네트워크 설정

리눅스 멀티코어를 사용하는 tar 압축/해제

git pull 을 했더니 branch가 갈라지는 경우