2 build linux kernel and device tree, 1 configure the linux kernel with default setting – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual

Page 23

Advertising
background image

BSP Build Environment

COMX-P2020 BSP User Guide (6806800L84B)

23

powerpc-none-linux-gnuspe-objcopy -O srec u-boot u-boot.srec

powerpc-none-linux-gnuspe-objcopy --gap-fill=0xff -O binary u-boot u-

boot.bin

make[2]: Leaving directory `/home/percy/p2020/u-boot/u-boot-2009.11'

cp ./current/u-boot.bin /local/tftpboot/COMX-P2020/current/u-boot-

sd.bin

make[1]: Leaving directory `/home/percy/p2020/u-boot'

[percy@localhost p2020]$

2. If the build is successful, the U-boot image for SD Card: u-boot-sd.bin can be found at the

output directory.
[percy@localhost p2020]$ ls -al /local/tftpboot/COMX-

P2020/current/u-boot-sd.bin

-rwxr-xr-x 1 percy percy 524288 Dec 13 11:20

/local/tftpboot/COMX-P2020/current/u-boot-sd.bin

[percy@localhost p2020]$

4.2

Build Linux Kernel and Device Tree

4.2.1

Configure the Linux kernel with default setting

The COMX-P2020 provides the default configuration file for the linux kernel. To use the default
configuration, run the command: "make config-default" at the P2020 BSP directory:

[percy@localhost p2020]$ make config-default

make -C linux/kernel -f Makefile config-default

make[1]: Entering directory `/home/percy/p2020/linux/kernel'

make -C current -f blackadder.mk config-default

make[2]: Entering directory `/home/percy/p2020/linux/kernel/linux-

2.6.32'

rm -f /local/tftpboot/COMX-P2020/current/uImage

rm -f include/asm

make -f Makefile mrproper

Advertising