4 compile u-boot for spi flash, 5 compile u-boot for sd card, Bsp build environment – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual

Page 22

Advertising
background image

BSP Build Environment

COMX-P2020 BSP User Guide (6806800L84B)

22

4.1.4

Compile U-boot for SPI Flash

1. Run the command: "make uboot-spi" at the P2020 BSP directory:

[percy@localhost p2020]$ make uboot-spi

make -C u-boot -f Makefile uboot-spi

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

if [ "" != "SPI" ] ; then \

make config-clean; \

make -C current -f Makefile blackadder_SPIFLASH_config; \

echo "SPI" > uboot.conf ;

……

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'

./boot_format config_sram.dat ./current/u-boot.bin -spi

/local/tftpboot/COMX- p2020/current/u-boot-spi.bin

Write user code to offset 0x400, len = 0x80000, Total reserved space =

0x80000

Congratulations! It is done successfully.

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

[percy@localhost p2020]$

2. If the build is successful, the U-boot image for SPI Flash: u-boot-spi.bin can be found at the

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

P2020/current/u-boot-spi.bin

-rw-r--r-- 1 percy percy 525312 Dec 13 11:19

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

[percy@localhost p2020]$

4.1.5

Compile U-boot for SD Card

1. Run the command: "make uboot-sd" at the P2020 BSP directory:

[percy@localhost p2020]$ make uboot-sd

make -C u-boot -f Makefile uboot-sd

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

if [ "SPI" != "SD" ] ; then \

make config-clean; \

make -C current -f Makefile blackadder_SDCARD_config; \

echo "SD" > uboot.conf ; \

fi

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

Advertising