크로스 컴파일 설치

 root@li:/home/li# apt-get install gcc-4.6-arm-linux-gnueabi

 

라스베리파이 소스 및 툴체인 다운로드

root@li:/opt/rpi2# git clone https://github.com/raspberrypi/tools.git

 

For 64bit, use /tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin.  패스를 걸어줘야 한다고한다.

bashrc

 

 

root@li:/opt/rpi2/kernel# git clone https://github.com/raspberrypi/linux.git

 

라즈베리파이투 make bcm2709_defconfig     원 : make bcmrpi_defconfig

 

컴파일 중 에러

 

 

/bin/sh: 1: bc: not found
kernel/time/Makefile:32: recipe for target 'kernel/time/timeconst.h' failed
make[2]: *** [kernel/time/timeconst.h] Error 127
scripts/Makefile.build:402: recipe for target 'kernel/time' failed
make[1]: *** [kernel/time] Error 2
Makefile:937: recipe for target 'kernel' failed
make: *** [kernel] Error 2
make: *** Waiting for unfinished jobs....
 

apt-get install bc

 

 

 

 

공식 사시트 : https://www.raspberrypi.org/documentation/linux/kernel/building.md

 

https://learn.adafruit.com/raspberry-pi-kernel-o-matic/build-a-kernel

+ Recent posts