This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] 66AK2E05: How to build u-boot for K2E ? from the package "PROCESSOR-SDK-LINUX-K2E"

Part Number: 66AK2E05

HI,

How to build u-boot for K2E ? from the package  "PROCESSOR-SDK-LINUX-K2E" 

Regards

Shankari G

  • Pre-requisite 

    1. Linux-PC with Ubuntu 18.04 LTS
    2. Download " PROCESSOR-SDK-LINUX-K2ELinux Processor SDK for K2E " from https://www.ti.com/tool/PROCESSOR-SDK-K2E

    Steps:

    1. Install all the necessary packages.

    ==============================

    sudo apt-get install diffstat texi2html texinfo subversion chrpath build-essential subversion ccache sed wget cvs coreutils unzip texinfo docbook-utils gawk help2man file g++ bison flex htmldoc chrpath libxext-dev xserver-xorg-dev doxygen socat u-boot-tools git

    2. Install Toolchain
    ==============

    cd /opt/


    sudo tar xvf gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz


    cd /opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin

    3. Export Toolchain
    =============

    vi ~/.bashrc


    export PATH=/opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin:$PATH

    4. Building u-boot
    ===============

    cd /home/shankari/ti-processor-sdk-linux-k2e-evm-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3

    make distclean ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    make k2e_evm_config ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    make -j8 all ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    make u-boot-spi.gph ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    ----------------------------

    The same steps are captured in the video below.

    The following are the logs:-

    -----------------------------

    shankari@shankari-Latitude-E7470:~$ cd /home/shankari/ti-processor-sdk-linux-k2e-evm-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3
    shankari@shankari-Latitude-E7470:~/ti-processor-sdk-linux-k2e-evm-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3$ make distclean ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
      CLEAN   dts/../arch/arm/dts
      CLEAN   dts
      CLEAN   examples/standalone
      CLEAN   tools
      CLEAN   tools/lib tools/common
      CLEAN   spl/arch spl/board spl/cmd spl/common spl/disk spl/drivers spl/dts spl/env spl/fs spl/lib spl/u-boot.cfg spl/u-boot-spl spl/u-boot-spl.bin spl/u-boot-spl.gph spl/u-boot-spl.lds spl/u-boot-spl.map spl/u-boot-spl-nodtb.bin
      CLEAN   u-boot-dtb.bin u-boot.lds u-boot-dtb.img u-boot.cfg.configs u-boot.map u-boot-spi.gph u-boot.cfg u-boot.bin u-boot.srec u-boot-nodtb.bin u-boot u-boot.dtb u-boot.img u-boot.sym MLO System.map
      CLEAN   scripts/basic
      CLEAN   scripts/dtc
      CLEAN   scripts/kconfig
      CLEAN   include/config include/generated spl
      CLEAN   .config include/autoconf.mk.dep include/autoconf.mk include/config.h
    shankari@shankari-Latitude-E7470:~/ti-processor-sdk-linux-k2e-evm-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3$ make k2e_evm_config ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
      HOSTCC  scripts/basic/fixdep
      HOSTCC  scripts/kconfig/conf.o
      YACC    scripts/kconfig/zconf.tab.c
      LEX     scripts/kconfig/zconf.lex.c
      HOSTCC  scripts/kconfig/zconf.tab.o
      HOSTLD  scripts/kconfig/conf
    #
    # configuration written to .config
    #
    shankari@shankari-Latitude-E7470:~/ti-processor-sdk-linux-k2e-evm-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3$ make -j8 all ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
    scripts/kconfig/conf  --syncconfig Kconfig
      CHK     include/config.h
      UPD     include/config.h
      CFG     u-boot.cfg
      GEN     include/autoconf.mk.dep
      CFG     spl/u-boot.cfg
      GEN     spl/include/autoconf.mk
      GEN     include/autoconf.mk
      CHK     include/config/uboot.release
      CHK     include/generated/timestamp_autogenerated.h
      UPD     include/generated/timestamp_autogenerated.h
      HOSTCC  scripts/dtc/dtc.o
      HOSTCC  scripts/dtc/flattree.o
      HOSTCC  scripts/dtc/treesource.o
      HOSTCC  scripts/dtc/data.o
      HOSTCC  scripts/dtc/livetree.o
      HOSTCC  scripts/dtc/fstree.o
      HOSTCC  scripts/dtc/srcpos.o
      UPD     include/config/uboot.release
      HOSTCC  scripts/dtc/checks.o
      HOSTCC  scripts/dtc/util.o
      CHK     include/generated/version_autogenerated.h
      UPD     include/generated/version_autogenerated.h
      LEX     scripts/dtc/dtc-lexer.lex.c
      YACC    scripts/dtc/dtc-parser.tab.h
      YACC    scripts/dtc/dtc-parser.tab.c
      CC      lib/asm-offsets.s
      CC      arch/arm/lib/asm-offsets.s
      HOSTCC  scripts/dtc/dtc-lexer.lex.o
      HOSTCC  scripts/dtc/dtc-parser.tab.o
      CHK     include/generated/asm-offsets.h
      CHK     include/generated/generic-asm-offsets.h
      UPD     include/generated/asm-offsets.h
      UPD     include/generated/generic-asm-offsets.h
      LDS     u-boot.lds
      CHK     include/config.h
      CFG     u-boot.cfg
      HOSTLD  scripts/dtc/dtc
      HOSTCC  tools/envcrc.o
      WRAP    tools/lib/crc32.c
      HOSTCC  tools/env/embedded.o
      WRAP    tools/lib/sha1.c
      HOSTCC  tools/gen_ethaddr_crc.o
      WRAP    tools/lib/crc8.c
      HOSTCC  tools/mkenvimage.o
      HOSTCC  tools/os_support.o
      HOSTCC  tools/gen_eth_addr
      HOSTCC  tools/aisimage.o
      HOSTCC  tools/img2srec
      HOSTCC  tools/atmelimage.o
      WRAP    tools/common/bootm.c
      HOSTCC  tools/default_image.o
      WRAP    tools/lib/fdtdec_common.c
      WRAP    tools/lib/fdtdec.c
      HOSTCC  tools/fit_common.o
      HOSTCC  tools/fit_image.o
      WRAP    tools/common/image-fit.c
      HOSTCC  tools/image-host.o
      WRAP    tools/common/image.c
      HOSTCC  tools/imagetool.o
      HOSTCC  tools/imximage.o
      HOSTCC  tools/imx8image.o
      HOSTCC  tools/imx8mimage.o
      WRAP    tools/lib/md5.c
      HOSTCC  tools/kwbimage.o
      HOSTCC  tools/lpc32xximage.o
      HOSTCC  tools/mxsimage.o
      HOSTCC  tools/omapimage.o
      HOSTCC  tools/pblimage.o
      HOSTCC  tools/pbl_crc32.o
      HOSTCC  tools/vybridimage.o
      HOSTCC  tools/stm32image.o
      WRAP    tools/lib/rc4.c
      HOSTCC  tools/rkimage.o
      HOSTCC  tools/rkcommon.o
      HOSTCC  tools/rksd.o
      HOSTCC  tools/rkspi.o
      HOSTCC  tools/socfpgaimage.o
      WRAP    tools/lib/crc16.c
      WRAP    tools/lib/sha256.c
      WRAP    tools/common/hash.c
      HOSTCC  tools/zynqimage.o
      HOSTCC  tools/ublimage.o
      HOSTCC  tools/zynqmpimage.o
      HOSTCC  tools/zynqmpbif.o
      HOSTCC  tools/libfdt/fdt.o
      HOSTCC  tools/libfdt/fdt_wip.o
      HOSTCC  tools/libfdt/fdt_sw.o
      HOSTCC  tools/libfdt/fdt_rw.o
      HOSTCC  tools/libfdt/fdt_strerror.o
      HOSTCC  tools/libfdt/fdt_empty_tree.o
      HOSTCC  tools/libfdt/fdt_overlay.o
      HOSTCC  tools/libfdt/fdt_addresses.o
      HOSTCC  tools/gpimage.o
      WRAP    tools/lib/libfdt/fdt_ro.c
      WRAP    tools/lib/libfdt/fdt_region.c
      HOSTCC  tools/gpimage-common.o
      HOSTCC  tools/mtk_image.o
      HOSTCC  tools/dumpimage.o
      HOSTCC  tools/mkimage.o
      HOSTCC  tools/proftool
      HOSTCC  tools/fdtgrep.o
      HOSTCC  tools/lib/crc32.o
      HOSTCC  tools/lib/sha1.o
      HOSTCC  tools/lib/crc8.o
      HOSTCC  tools/common/bootm.o
      HOSTCC  tools/lib/fdtdec_common.o
      HOSTCC  tools/lib/fdtdec.o
      HOSTCC  tools/common/image-fit.o
      HOSTCC  tools/common/image.o
      HOSTCC  tools/lib/md5.o
      HOSTCC  tools/lib/rc4.o
      HOSTCC  tools/lib/crc16.o
      HOSTCC  tools/lib/sha256.o
      HOSTCC  tools/common/hash.o
      HOSTCC  tools/lib/libfdt/fdt_ro.o
      HOSTCC  tools/lib/libfdt/fdt_region.o
      HOSTLD  tools/gen_ethaddr_crc
      HOSTLD  tools/mkenvimage
      HOSTLD  tools/envcrc
      HOSTLD  tools/fdtgrep
      HOSTLD  tools/mkimage
      HOSTLD  tools/dumpimage
      LD      arch/arm/cpu/built-in.o
      LD      board/ti/common/built-in.o
      CC      board/ti/ks2_evm/board.o
      CC      arch/arm/cpu/armv7/cache_v7.o
      CC      board/ti/ks2_evm/board_k2e.o
      CC      board/ti/ks2_evm/ddr3_k2e.o
      AS      arch/arm/lib/vectors.o
      CC      arch/arm/mach-keystone/init.o
      AS      arch/arm/lib/crt0.o
      AS      arch/arm/cpu/armv7/cache_v7_asm.o
      AS      arch/arm/lib/setjmp.o
      AS      arch/arm/lib/relocate.o
      CC      arch/arm/lib/bootm-fdt.o
      CC      arch/arm/cpu/armv7/cpu.o
      CC      arch/arm/lib/bootm.o
      CC      arch/arm/lib/zimage.o
      CC      cmd/boot.o
      LD      board/ti/ks2_evm/built-in.o
      AS      arch/arm/lib/memset.o
      CC      arch/arm/mach-keystone/psc.o
      CC      disk/part.o
      CC      arch/arm/cpu/armv7/cp15.o
      CC      disk/part_dos.o
      CC      disk/part_iso.o
      CC      cmd/bootm.o
      CC      common/init/board_init.o
      CC      arch/arm/cpu/armv7/syslib.o
      CC      arch/arm/mach-keystone/clock.o
      AS      arch/arm/lib/memcpy.o
      LD      common/init/built-in.o
      CC      common/main.o
      AS      arch/arm/cpu/armv7/sctlr.o
      CC      arch/arm/mach-keystone/mon.o
      CC      arch/arm/mach-keystone/cmd_clock.o
      CC      arch/arm/lib/sections.o
      CC      disk/part_efi.o
      CC      arch/arm/cpu/armv7/arch_timer.o
      CC      cmd/help.o
      CC      common/exports.o
      CC      arch/arm/lib/stack.o
      CC      arch/arm/lib/interrupts.o
      CC      cmd/version.o
      CC      arch/arm/mach-keystone/cmd_mon.o
      CC      cmd/blk_common.o
      CC      common/hash.o
      CC      common/cli_hush.o
      AS      arch/arm/cpu/armv7/start.o
      CC      arch/arm/mach-keystone/cmd_poweroff.o
      CC      arch/arm/mach-keystone/msmc.o
      LD      arch/arm/cpu/armv7/built-in.o
      CC      cmd/source.o
      CC      arch/arm/lib/reset.o
      CC      common/autoboot.o
      CC      arch/arm/mach-keystone/ddr3.o
      CC      arch/arm/mach-keystone/keystone.o
      CC      cmd/bdinfo.o
      CC      arch/arm/lib/cache.o
      CC      cmd/bootefi.o
      CC      arch/arm/mach-keystone/ddr3_spd.o
      LD      disk/built-in.o
      CC      common/board_f.o
      CC      arch/arm/lib/cache-cp15.o
      CC      drivers/dma/keystone_nav.o
      CC      drivers/dma/keystone_nav_cfg.o
      CC      drivers/dma/ti-edma3.o
      CC      cmd/bootz.o
      CC      arch/arm/lib/psci-dt.o
      CC      cmd/console.o
      LD      drivers/adc/built-in.o
      LD      drivers/dma/ti/built-in.o
      LD      arch/arm/mach-keystone/built-in.o
      LD      drivers/ata/built-in.o
      LD      drivers/axi/built-in.o
      CC      cmd/echo.o
      LD      drivers/gpio/built-in.o
      AS      arch/arm/lib/ashldi3.o
      CC      drivers/i2c/i2c-uclass.o
      AS      arch/arm/lib/ashrdi3.o
      CC      drivers/block/blk_legacy.o
      CC      drivers/mtd/mtdcore.o
      CC      cmd/exit.o
      CC      common/board_r.o
      CC      arch/arm/lib/div0.o
      LD      drivers/dma/built-in.o
      CC      cmd/ext4.o
      AS      arch/arm/lib/div64.o
      CC      drivers/mtd/nand/raw/nand.o
      CC      drivers/mtd/nand/raw/nand_bbt.o
      LD      drivers/block/built-in.o
      AS      arch/arm/lib/lib1funcs.o
      LD      drivers/board/built-in.o
      CC      cmd/ext2.o
      AS      arch/arm/lib/lshrdi3.o
      AS      arch/arm/lib/muldi3.o
      CC      common/board_info.o
      CC      drivers/i2c/davinci_i2c.o
      CC      drivers/core/device.o
      CC      cmd/fat.o
      AS      arch/arm/lib/uldivmod.o
      CC      arch/arm/lib/eabi_compat.o
      LD      drivers/mtd/onenand/built-in.o
      CC      drivers/core/fdtaddr.o
      CC      common/bootm.o
      AS      arch/arm/lib/crt0_arm_efi.o
      CC      cmd/fdt.o
      LD      drivers/i2c/built-in.o
      CC      arch/arm/lib/reloc_arm_efi.o
      CC      drivers/mtd/nand/raw/nand_ids.o
      LD      arch/arm/lib/built-in.o
      CC      drivers/mtd/mtd_uboot.o
      AR      arch/arm/lib/lib.a
      CC      drivers/mtd/mtdpart.o
      CC      common/bootm_os.o
      CC      drivers/core/lists.o
      CC      drivers/core/root.o
      CC      common/fdt_support.o
      CC      drivers/mtd/nand/raw/nand_util.o
      CC      common/miiphyutil.o
      CC      drivers/core/uclass.o
      CC      common/usb.o
      CC      drivers/crypto/fsl/sec.o
      CC      cmd/fs.o
      LD      drivers/crypto/fsl/built-in.o
      LD      drivers/crypto/rsa_mod_exp/built-in.o
      CC      drivers/mtd/nand/raw/nand_ecc.o
      CC      drivers/mtd/nand/raw/nand_base.o
      LD      drivers/crypto/built-in.o
      LD      drivers/firmware/built-in.o
      LD      drivers/mtd/nand/built-in.o
      CC      drivers/core/util.o
      CC      cmd/i2c.o
      CC      cmd/itest.o
      CC      common/usb_hub.o
      LD      drivers/mtd/built-in.o
      CC      drivers/mtd/spi/sf-uclass.o
      CC      drivers/core/device-remove.o
      CC      common/usb_storage.o
      CC      cmd/load.o
      CC      drivers/core/simple-bus.o
      CC      drivers/mtd/spi/sf_probe.o
      CC      common/splash.o
      CC      cmd/mem.o
      CC      drivers/core/dump.o
      CC      cmd/mii.o
      CC      drivers/mtd/spi/spi-nor-ids.o
      CC      drivers/mtd/spi/spi-nor-core.o
      CC      drivers/core/of_extra.o
      CC      drivers/core/ofnode.o
      CC      drivers/input/input.o
      CC      common/menu.o
      CC      drivers/input/key_matrix.o
      CC      cmd/mdio.o
      LD      drivers/mailbox/built-in.o
      CC      drivers/core/read_extra.o
      CC      common/cli_readline.o
      CC      cmd/misc.o
      LD      drivers/input/built-in.o
      CC      cmd/mtdparts.o
      CC      drivers/mtd/nand/raw/nand_timings.o
      LD      drivers/core/built-in.o
      CC      drivers/mtd/nand/raw/davinci_nand.o
      CC      drivers/memory/ti-aemif.o
      LD      drivers/memory/built-in.o
      CC      common/cli_simple.o
      CC      drivers/mtd/ubi/attach.o
      CC      drivers/net/ti/keystone_net.o
      CC      drivers/misc/misc-uclass.o
      LD      drivers/mtd/spi/spi-nor.o
      LD      drivers/mtd/spi/built-in.o
      CC      drivers/net/ti/cpsw_mdio.o
      CC      cmd/nand.o
      LD      drivers/mtd/nand/raw/built-in.o
      CC      common/ddr_spd.o
      LD      drivers/misc/built-in.o
      LD      drivers/pcmcia/built-in.o
      CC      drivers/net/phy/phy.o
      CC      drivers/net/phy/marvell.o
      CC      drivers/phy/phy-uclass.o
      LD      drivers/net/ti/built-in.o
      LD      drivers/net/built-in.o
      CC      common/console.o
      LD      drivers/power/built-in.o
      LD      drivers/power/battery/built-in.o
      CC      drivers/phy/nop-phy.o
      LD      drivers/power/domain/built-in.o
      CC      drivers/phy/keystone-usb-phy.o
      CC      cmd/net.o
      CC      drivers/mtd/ubi/build.o
      CC      drivers/mtd/ubi/vtbl.o
      LD      drivers/phy/cadence/built-in.o
      CC      cmd/part.o
      LD      drivers/phy/ti/built-in.o
      CC      common/dlmalloc.o
      LD      drivers/phy/built-in.o
      LD      drivers/phy/allwinner/built-in.o
      LD      drivers/phy/marvell/built-in.o
      LD      drivers/net/phy/built-in.o
      CC      cmd/pcmcia.o
      LD      drivers/pwm/built-in.o
      LD      drivers/power/fuel_gauge/built-in.o
      LD      drivers/reset/built-in.o
      CC      common/malloc_simple.o
      CC      drivers/rtc/date.o
      LD      drivers/power/mfd/built-in.o
      CC      common/image-fdt.o
      CC      common/image.o
      CC      cmd/pxe.o
      CC      common/image-fit.o
      CC      drivers/rtc/rtc-lib.o
      CC      common/memsize.o
      CC      drivers/mtd/ubi/vmt.o
      CC      common/stdio.o
      CC      common/cli.o
      LD      drivers/rtc/built-in.o
      LD      drivers/scsi/built-in.o
      CC      cmd/sf.o
      LD      drivers/smem/built-in.o
      CC      cmd/spi.o
      CC      drivers/soc/ti/keystone_serdes.o
      CC      cmd/time.o
      CC      cmd/test.o
      CC      common/command.o
      CC      common/s_record.o
      CC      cmd/ubi.o
      LD      drivers/soc/ti/built-in.o
      LD      drivers/soc/built-in.o
      CC      cmd/ubifs.o
      CC      cmd/usb.o
      LD      drivers/sound/built-in.o
      CC      drivers/mtd/ubi/upd.o
      CC      cmd/disk.o
      LD      drivers/spmi/built-in.o
      LD      drivers/sysreset/built-in.o
      LD      drivers/thermal/built-in.o
      LD      drivers/power/pmic/built-in.o
      LD      drivers/ufs/built-in.o
      CC      drivers/mtd/ubi/kapi.o
      CC      drivers/mtd/ubi/eba.o
      CC      common/xyzModem.o
      LD      drivers/power/regulator/built-in.o
      LD      drivers/video/bridge/built-in.o
      CC      cmd/ximg.o
      LD      drivers/video/sunxi/built-in.o
      LD      drivers/video/built-in.o
      CC      cmd/nvedit.o
      LD      drivers/watchdog/built-in.o
      LD      drivers/built-in.o
      CC      drivers/mtd/ubi/io.o
      CC      drivers/mtd/ubi/wl.o
      CC      cmd/elf.o
      CC      drivers/mtd/ubi/crc32.o
      CC      drivers/mtd/ubi/misc.o
      LD      common/built-in.o
      CC      drivers/mtd/ubi/debug.o
      CC      drivers/serial/serial-uclass.o
      CC      drivers/serial/ns16550.o
      CC      cmd/ti/ddr3.o
      CC      drivers/spi/spi-uclass.o
      LD      drivers/usb/cdns3/built-in.o
      CC      drivers/usb/common/common.o
      CC      drivers/usb/dwc3/core.o
      CC      drivers/spi/spi-mem.o
      CC      drivers/usb/dwc3/dwc3-generic.o
      LD      drivers/serial/built-in.o
      LD      drivers/usb/emul/built-in.o
      LD      drivers/usb/eth/built-in.o
      LD      cmd/ti/built-in.o
      LD      drivers/usb/common/built-in.o
      CC      drivers/spi/davinci_spi.o
      LD      cmd/built-in.o
      CC      drivers/usb/host/usb-uclass.o
      CC      drivers/usb/host/xhci.o
      LD      drivers/mtd/ubi/built-in.o
      CC      drivers/usb/host/xhci-mem.o
      CC      drivers/usb/host/xhci-ring.o
      LD      drivers/usb/musb/built-in.o
      LD      drivers/spi/built-in.o
      LD      drivers/usb/phy/built-in.o
      LD      drivers/usb/ulpi/built-in.o
      LD      drivers/usb/dwc3/dwc3.o
      LD      drivers/usb/dwc3/built-in.o
      LD      drivers/usb/musb-new/built-in.o
      CC      env/common.o
      CC      fs/fs.o
      CC      net/checksum.o
      CC      env/env.o
      CC      fs/ext4/ext4fs.o
      CC      net/arp.o
      CC      env/attr.o
      CC      fs/fat/fat_write.o
      CC      env/callback.o
      CC      lib/efi_driver/efi_uclass.o
      LD      drivers/usb/host/built-in.o
      CC      net/bootp.o
      CC      fs/ubifs/ubifs.o
      CC      fs/ext4/ext4_common.o
      CC      fs/ubifs/io.o
      CC      env/flags.o
      CC      env/nand.o
      LD      lib/efi_driver/built-in.o
      CC      lib/efi_loader/efi_bootmgr.o
      CC      lib/efi_loader/efi_boottime.o
      CC      net/eth-uclass.o
      LD      env/built-in.o
      CC      lib/efi_loader/efi_console.o
      CC      fs/fs_internal.o
      CC      lib/libfdt/fdt.o
      CC      net/eth_common.o
      CC      lib/lzo/lzo1x_decompress.o
      CC      fs/ubifs/super.o
      CC      lib/libfdt/fdt_wip.o
      CC      net/net.o
      CC      fs/ext4/dev.o
      CC      lib/libfdt/fdt_strerror.o
      CC      lib/libfdt/fdt_sw.o
      LD      fs/fat/built-in.o
      CC      lib/zlib/zlib.o
      CC      lib/charset.o
      CC      fs/ext4/ext4_write.o
      LD      lib/lzo/built-in.o
      CC      fs/ext4/ext4_journal.o
      CC      lib/libfdt/fdt_rw.o
      CC      net/nfs.o
      CC      net/ping.o
      CC      lib/efi_loader/efi_device_path.o
      CC      lib/libfdt/fdt_empty_tree.o
      CC      lib/efi_loader/efi_device_path_to_text.o
      CC      net/tftp.o
      CC      lib/libfdt/fdt_addresses.o
      CC      fs/ubifs/sb.o
      CC      fs/ubifs/master.o
      CC      lib/libfdt/fdt_overlay.o
      CC      fs/ext4/crc16.o
      CC      lib/efi_loader/efi_device_path_utilities.o
      LD      net/built-in.o
      CC      lib/efi_loader/efi_file.o
      CC      lib/efi_loader/efi_image_loader.o
      CC      fs/ubifs/lpt.o
      LD      fs/ext4/built-in.o
      CC      fs/ubifs/lpt_commit.o
      LD      lib/zlib/built-in.o
      CC      lib/crc7.o
      CC      fs/ubifs/scan.o
      CC      lib/efi_loader/efi_memory.o
      CC      lib/crc8.o
      CC      lib/efi_loader/efi_root_node.o
      CC      lib/libfdt/fdt_ro.o
      CC      fs/ubifs/lprops.o
      CC      lib/libfdt/fdt_region.o
      CC      lib/efi_loader/efi_runtime.o
      CC      fs/ubifs/tnc.o
      CC      lib/efi_loader/efi_unicode_collation.o
      CC      fs/ubifs/tnc_misc.o
      CC      lib/crc16.o
      CC      fs/ubifs/debug.o
      LD      lib/libfdt/built-in.o
      CC      lib/fdtdec_common.o
      CC      lib/efi_loader/efi_variable.o
      CC      lib/efi_loader/efi_watchdog.o
      CC      lib/efi_loader/efi_disk.o
      CC      fs/ubifs/crc16.o
      CC      fs/ubifs/budget.o
      CC      lib/smbios.o
      CC      lib/initcall.o
      CC      lib/lmb.o
      CC      lib/efi_loader/efi_net.o
      CC      lib/efi_loader/efi_smbios.o
      CC      lib/ldiv.o
      CC      fs/ubifs/log.o
      CC      fs/ubifs/orphan.o
      CC      fs/ubifs/recovery.o
      AS      lib/efi_loader/efi_crt0.o
      CC      lib/efi_loader/efi_reloc.o
      CC      lib/efi_loader/helloworld.o
      CC      lib/md5.o
      CC      lib/net_utils.o
      CC      fs/ubifs/replay.o
      LD      lib/efi_loader/built-in.o
      LD      lib/efi_loader/helloworld_efi.so
      OBJCOPY lib/efi_loader/helloworld.efi
    rm lib/efi_loader/helloworld_efi.so lib/efi_loader/helloworld.o
      CC      fs/ubifs/gc.o
      CC      lib/qsort.o
      CC      lib/rc4.o
      CC      lib/bitmap.o
      CC      lib/rbtree.o
      CC      lib/list_sort.o
      CC      lib/sha1.o
      CC      lib/sha256.o
      CC      lib/gunzip.o
      CC      lib/hashtable.o
      CC      lib/fdtdec.o
      CC      lib/errno.o
      CC      lib/display_options.o
      CC      lib/crc32.o
      CC      lib/ctype.o
      CC      lib/div64.o
      CC      lib/linux_compat.o
      CC      lib/hang.o
      LD      fs/ubifs/built-in.o
      LD      fs/built-in.o
      CC      lib/linux_string.o
      CC      lib/membuff.o
      CC      lib/string.o
      CC      lib/slre.o
      CC      lib/tables_csum.o
      CC      lib/time.o
      CC      lib/uuid.o
      CC      lib/hexdump.o
      CC      lib/rand.o
      CC      lib/panic.o
      CC      lib/vsprintf.o
      CC      lib/strto.o
      CC      lib/strmhz.o
      LD      lib/built-in.o
      CC      examples/standalone/stubs.o
      CC      examples/standalone/hello_world.o
      LD      examples/standalone/libstubs.o
      LD      examples/standalone/hello_world
      OBJCOPY examples/standalone/hello_world.srec
      OBJCOPY examples/standalone/hello_world.bin
      LD      u-boot
      OBJCOPY u-boot-nodtb.bin
      OBJCOPY u-boot.srec
      SYM     u-boot.sym
      DTC     arch/arm/dts/keystone-k2g-generic.dtb
      DTC     arch/arm/dts/keystone-k2e-evm.dtb
      DTC     arch/arm/dts/keystone-k2g-ice.dtb
      DTC     arch/arm/dts/keystone-k2hk-evm.dtb
      DTC     arch/arm/dts/keystone-k2l-evm.dtb
      DTC     arch/arm/dts/keystone-k2g-evm.dtb
    arch/arm/dts/keystone-k2hk-evm.dtb: Warning (avoid_unnecessary_addr_size): /soc/netcp@2000000/netcp-devices/gbe@90000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property
    make[2]: 'arch/arm/dts/keystone-k2e-evm.dtb' is up to date.
      SHIPPED dts/dt.dtb
      FDTGREP dts/dt-spl.dtb
      CAT     u-boot-dtb.bin
      COPY    u-boot.dtb
      COPY    u-boot.bin
      MKIMAGE MLO
      MKIMAGE u-boot.img
      MKIMAGE u-boot-dtb.img
      LD      spl/arch/arm/cpu/built-in.o
      CC      spl/common/init/board_init.o
      CC      spl/board/ti/ks2_evm/board.o
      CC      spl/common/spl/spl.o
      LD      spl/board/ti/common/built-in.o
      CC      spl/common/spl/spl_spi.o
      CC      spl/board/ti/ks2_evm/board_k2e.o
      CC      spl/arch/arm/mach-keystone/init.o
      CC      spl/arch/arm/cpu/armv7/cache_v7.o
      LD      spl/common/init/built-in.o
      AS      spl/arch/arm/cpu/armv7/cache_v7_asm.o
      AS      spl/arch/arm/lib/vectors.o
      CC      spl/arch/arm/mach-keystone/psc.o
      CC      spl/board/ti/ks2_evm/ddr3_k2e.o
      AS      spl/arch/arm/lib/crt0.o
      CC      spl/arch/arm/mach-keystone/clock.o
      CC      spl/arch/arm/cpu/armv7/cpu.o
      AS      spl/arch/arm/lib/setjmp.o
      CC      spl/arch/arm/cpu/armv7/cp15.o
      CC      spl/arch/arm/lib/spl.o
      CC      spl/arch/arm/mach-keystone/mon.o
      CC      spl/arch/arm/cpu/armv7/syslib.o
      LD      spl/board/ti/ks2_evm/built-in.o
      LD      spl/common/spl/built-in.o
      CC      spl/arch/arm/mach-keystone/msmc.o
      CC      spl/arch/arm/lib/zimage.o
      CC      spl/arch/arm/mach-keystone/ddr3.o
      CC      spl/common/ddr_spd.o
      CC      spl/common/console.o
      CC      spl/common/dlmalloc.o
      CC      spl/arch/arm/mach-keystone/keystone.o
      CC      spl/arch/arm/cpu/armv7/arch_timer.o
      CC      spl/arch/arm/lib/bootm-fdt.o
      AS      spl/arch/arm/cpu/armv7/start.o
      AS      spl/arch/arm/lib/memset.o
      CC      spl/arch/arm/mach-keystone/ddr3_spd.o
      CC      spl/common/malloc_simple.o
      CC      spl/cmd/nvedit.o
      AS      spl/arch/arm/lib/memcpy.o
      CC      spl/env/common.o
      LD      spl/arch/arm/cpu/armv7/built-in.o
      CC      spl/env/env.o
      CC      spl/arch/arm/lib/sections.o
      CC      spl/arch/arm/lib/stack.o
      CC      spl/cmd/elf.o
      CC      spl/arch/arm/lib/interrupts.o
      CC      spl/arch/arm/lib/reset.o
      CC      spl/disk/part.o
      LD      spl/arch/arm/mach-keystone/built-in.o
      LD      spl/env/built-in.o
      CC      spl/disk/part_dos.o
      CC      spl/disk/part_efi.o
      CC      spl/common/image.o
      CC      spl/arch/arm/lib/cache.o
      LD      spl/cmd/ti/built-in.o
      CC      spl/lib/sha1.o
      CC      spl/arch/arm/lib/cache-cp15.o
      LD      spl/cmd/built-in.o
      CC      spl/lib/sha256.o
      CC      spl/arch/arm/lib/psci-dt.o
      CC      spl/lib/bitmap.o
      CC      spl/lib/hashtable.o
      AS      spl/arch/arm/lib/ashldi3.o
      CC      spl/common/memsize.o
      AS      spl/arch/arm/lib/ashrdi3.o
      CC      spl/arch/arm/lib/div0.o
      CC      spl/common/stdio.o
      AS      spl/arch/arm/lib/div64.o
      CC      spl/drivers/block/blk_legacy.o
      CC      spl/common/cli.o
      AS      spl/arch/arm/lib/lib1funcs.o
      CC      spl/drivers/i2c/i2c_core.o
      AS      spl/arch/arm/lib/lshrdi3.o
      LD      spl/drivers/block/built-in.o
      LD      spl/dts/built-in.o
      CC      spl/lib/errno.o
      CC      spl/drivers/i2c/davinci_i2c.o
      AS      spl/arch/arm/lib/muldi3.o
      LD      spl/disk/built-in.o
      CC      spl/lib/display_options.o
      CC      spl/fs/fs_internal.o
      CC      spl/lib/crc32.o
      AS      spl/arch/arm/lib/uldivmod.o
      CC      spl/common/command.o
      LDS     spl/u-boot-spl.lds
      CC      spl/drivers/mtd/spi/sf_probe.o
      CC      spl/arch/arm/lib/eabi_compat.o
      LD      spl/fs/built-in.o
      AS      spl/arch/arm/lib/crt0_arm_efi.o
      CC      spl/arch/arm/lib/reloc_arm_efi.o
      LD      spl/drivers/power/built-in.o
      LD      spl/drivers/i2c/built-in.o
      CC      spl/lib/ctype.o
      CC      spl/drivers/mtd/spi/spi-nor-tiny.o
      CC      spl/drivers/mtd/spi/spi-nor-ids.o
      CC      spl/common/s_record.o
      LD      spl/arch/arm/lib/built-in.o
      AR      spl/arch/arm/lib/lib.a
      CC      spl/lib/hang.o
      CC      spl/lib/div64.o
      CC      spl/common/xyzModem.o
      CC      spl/lib/linux_compat.o
      LD      spl/drivers/power/mfd/built-in.o
      LD      spl/drivers/power/pmic/built-in.o
      CC      spl/lib/linux_string.o
      CC      spl/lib/slre.o
      CC      spl/lib/membuff.o
      CC      spl/lib/string.o
      CC      spl/lib/tables_csum.o
      CC      spl/lib/time.o
      LD      spl/common/built-in.o
      LD      spl/drivers/power/regulator/built-in.o
      CC      spl/lib/hexdump.o
      CC      spl/lib/uuid.o
      LD      spl/drivers/mtd/spi/spi-nor.o
      LD      spl/drivers/mtd/spi/built-in.o
      CC      spl/lib/rand.o
      CC      spl/lib/panic.o
      CC      spl/drivers/serial/serial.o
      CC      spl/drivers/serial/serial_ns16550.o
      CC      spl/drivers/serial/ns16550.o
      CC      spl/lib/vsprintf.o
      CC      spl/lib/strmhz.o
      CC      spl/lib/strto.o
      CC      spl/drivers/spi/spi.o
      CC      spl/drivers/spi/spi-mem-nodm.o
      LD      spl/drivers/soc/ti/built-in.o
      CC      spl/drivers/spi/davinci_spi.o
      LD      spl/drivers/soc/built-in.o
      LD      spl/drivers/serial/built-in.o
      LD      spl/drivers/spi/built-in.o
      LD      spl/drivers/built-in.o
      LD      spl/lib/built-in.o
      LD      spl/u-boot-spl
      OBJCOPY spl/u-boot-spl-nodtb.bin
      COPY    spl/u-boot-spl.bin
      MKIMAGE spl/u-boot-spl.gph
      CAT     u-boot-spi.gph
    ===================== WARNING ======================
    This board does not use CONFIG_DM_USB. Please update
    the board to use CONFIG_DM_USB before the v2019.07 release.
    Failure to update by the deadline may result in board removal.
    See doc/driver-model/MIGRATION.txt for more info.
    ====================================================
      CFGCHK  u-boot.cfg
    shankari@shankari-Latitude-E7470:~/ti-processor-sdk-linux-k2e-evm-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3$ make u-boot-spi.gph ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
      CHK     include/config/uboot.release
      CHK     include/generated/version_autogenerated.h
      CHK     include/generated/timestamp_autogenerated.h
      UPD     include/generated/timestamp_autogenerated.h
      CHK     include/generated/generic-asm-offsets.h
      CHK     include/generated/asm-offsets.h
      HOSTCC  tools/mkenvimage.o
      HOSTLD  tools/mkenvimage
      HOSTCC  tools/fit_image.o
      HOSTCC  tools/image-host.o
      HOSTCC  tools/dumpimage.o
      HOSTLD  tools/dumpimage
      HOSTCC  tools/mkimage.o
      HOSTLD  tools/mkimage
      CC      cmd/version.o
      LD      cmd/built-in.o
      CC      common/main.o
      LD      common/built-in.o
      CC      lib/efi_loader/efi_reloc.o
      CC      lib/efi_loader/helloworld.o
      LD      lib/efi_loader/helloworld_efi.so
      OBJCOPY lib/efi_loader/helloworld.efi
    rm lib/efi_loader/helloworld_efi.so lib/efi_loader/helloworld.o
      CC      lib/smbios.o
      CC      lib/display_options.o
      LD      lib/built-in.o
      LD      u-boot
    make[2]: 'arch/arm/dts/keystone-k2e-evm.dtb' is up to date.
      CC      spl/common/spl/spl.o
      LD      spl/common/spl/built-in.o
      CC      spl/lib/display_options.o
      LD      spl/lib/built-in.o
      LD      spl/u-boot-spl
      OBJCOPY spl/u-boot-spl-nodtb.bin
      COPY    spl/u-boot-spl.bin
      MKIMAGE spl/u-boot-spl.gph
      OBJCOPY u-boot-nodtb.bin
      CAT     u-boot-dtb.bin
      COPY    u-boot.bin
      MKIMAGE u-boot.img
      CAT     u-boot-spi.gph
    shankari@shankari-Latitude-E7470:~/ti-processor-sdk-linux-k2e-evm-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3$
    ================================

    Regards

    Shankari G

  • 4. Building u-boot

    ===============

    cd /home/shankari/ti-processor-sdk-linux-k2e-evm-06.03.00.106/board-support/u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3

    make distclean ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    make k2e_evm_config ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    make -j8 all ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    make u-boot-spi.gph ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    ----------------------------

    The same steps are captured as a snapshot/ video below.

    make distclean ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    make k2e_evm_config ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    make -j8 all ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

    make u-boot-spi.gph ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-


    Videos for ease of use

    Regards

    Shankari G