-
UDOO 부트로더(Bootloader) 빌드Linux/UDOO board 2020. 7. 13. 20:16반응형
| 부트로더 디렉토리 생성
부트로더 파일을 위한 디렉토리를 만든다
명령어 : cd udoo_linux_bsp/
mkdir u-boot ; cd u-boot
samba를 이용해서 가져온 파일을 현재 디렉토리에 복사한다
명령어 : cp /srv/samba/2015.10.fslc-qdl.zip .
파일을 압축해제 한다
명령어 : unzip 2015.10.fslc-qdl.zip
파일 안으로 진입
명령어 : cd uboot-imx-2015.10.fslc-qdl/
명령어 : sudo apt update
명령어 : sudo apt install gawk git texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm picocom libncurses5-dev lzop
명령어를 이용해 sources.list 에 진입한 후 마지막 줄 58행을 추가해 준다
명령어 : sudo vi /etc/apt/sources.list
deb http://cz.archive.ubuntu.com/ubuntu xenial main universe
중요!
명령어 : sudo apt update
명령어 : sudo apt install gcc-4.8-arm-linux-gnueabihf
명령어 : sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-gcc arm-linux-gnueabihf /usr/bin/arm-linux-gnueabihf-gcc-4.8 1
명령어 : ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make udoo_qdl_defconfig
명령어 : ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make
u-boot.img를 nfs를 이용해서 타겟 보드에 전송(위의 그림에는 복사하는 부분이 생략됨)
명령어 : cp u-boot.img /srv/nfs
| UDOO board에서
nfs로 복사된 파일을 타겟 보드 터미널에서 sd카드에 write
명령어 : sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1K seek=69
중요! 리부팅을 꼭 해준다
명령어 : sudo reboot
| 실행결과
부트로더의 빌드 시간을 확인한다
Jul 13 2020!!
728x90'Linux > UDOO board' 카테고리의 다른 글
부트로더 응용 실습 (0) 2020.07.20 UDOO 커널(Kernel) 빌드 (10) 2020.07.13 UDOO 파일시스템 빌드 (0) 2020.07.13 UDOO board nfs 설치 (0) 2020.07.13 UDOO board samba 설치 (0) 2020.07.13