Arm Linux Kernel Hacks

rousalome.egloos.com

포토로그 Kernel Crash


통계 위젯 (화이트)

21236
1488
262017


[라즈베리] 커널 빌드 스크립트 [Raspberry-pi] Tips


라즈베리파이에서 커널 빌드
----------------------------------------------------------
#!/bin/sh

OUTPUT=/home/pi/src_kernel/out

#move kernel source path
cd linux
#make config

KERNEL=kernel7
make O=$OUTPUT bcm2709_defconfig

#make compile
make O=$OUTPUT zImage modules dtbs -j4
----------------------------------------------------------

라즈베리파이에서 커널 인스톨
----------------------------------------------------------
#!/bin/sh

OUTPUT="/home/pi/src_kernel/out"

cd linux
#make modules_install
make O=$OUTPUT modules_install -j3

cp $OUTPUT/arch/arm/boot/dts/*.dtb /boot/
cp $OUTPUT/arch/arm/boot/dts/overlays/*.dtb* /boot/overlays/
cp $OUTPUT/arch/arm/boot/zImage /boot/kernel7.img
----------------------------------------------------------


크로스 컴파일 명령어
----------------------------------------------------------
#!/bin/sh

OUTPUT="/home/austin/src/rasberry_kernel/out"


KERNEL=kernel

#make config
make ARCH=arm O=$OUTPUT CROSS_COMPILE=arm-linux-gnueabihf- bcmrpi_defconfig -j333

#compile
make ARCH=arm O=$OUTPUT CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs  -j333
-----------------------------------------------

덧글

댓글 입력 영역