ARM아키텍쳐
[ARM] Boot Loader 설치
key_boom
2023. 1. 11. 22:09
$ wget ftp://ftp.denx.de/pub/u-boot/u-boot-2010.03.tar.bz2
$ tar -xvf u-boot-2010.03.tar.bz2
$ cd u-boot-2010.03
다음 명령어로 U-Boot 파일을 다운받는다.
$ make versatilepb_config ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
$ make all ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
그 다음 해당 명령어로 make를 진행해준다.
$ make clean ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
make 옵션을 변경해서 clean을 진행하고 싶으면 다음 명령어로 clean을 진행하고 Cross_Compile 옵션은
arm-none-linux-gnueabi를 이용하였고 변경 할 수 있다.
make가 완료된 U-Boot를 Qemu를 통해 실행 할 수 있다.
$ qemu-system-arm -M versatilepb -nographic -kernel u-boot.bin