Tool/software: Linux
Hi Ti expert,
================Environmental description===========================================
- Custom Board with processor AM3352
- SDK-File:ti-processor-sdk-linux-am335x-evm-04.03.00.05
- Boot via SD-CARD, Using the create-sdcard.sh to build a 2 partition sd card (boot and rootfs)
- Base of our configuration is the AM335x-EVMSK configuration
===============================================================================
I found the E2E thread title of "U-boot can't find DTS file" and I to try practice the steps in the content.
Because I need to create a customer new platform the name is "IWA_board" base on am335x-evmsk board structure.
So, I try to modified file content and step by step and below is my change history , After a successfull build process, i copied the MLO and the u-boot.bin file to the boot partition
then, after boot on is no any boot message in the putty debug console.
=======================================History====================================================================
color define : ADD Modify remove
1. ~/ti-processor-sdk-linux-am335x-evm-04.03.00.05/board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd/arch/arm/kconfig
Add Line:1060
source "board/ti//IWA_am335x/Kconfig
2.~/ti-processor-sdk-linux-am335x-evm-04.03.00.05/board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd/arch/arm/dts
Add Line:125~133
dtb-$(CONFIG_AM33XX) += am335x-boneblack.dtb am335x-bone.dtb \
am335x-draco.dtb \
am335x-evm.dtb \
am335x-evmsk.dtb \
am335x-bonegreen.dtb \
am335x-icev2.dtb \
am335x-pxm50.dtb \
am335x-rut.dtb \
IWA_board.dtb
3.board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd/arch/arm/mach-omap2/am33xx/Kconfig
Add Line :47~51
config TARGET_IWA_BOARD
bool "Support IWA_board"
select DM
select DM_SERIAL
select DM_GPIO
4.board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd/configs/IWA_Board_defconfig
CONFIG_ARM=y
CONFIG_AM33XX=y
CONFIG_TARGET_IWA_BOARD=y
CONFIG_DEFAULT_DEVICE_TREE="IWA_board"
CONFIG_SPL_OF_LIBFDT=y
CONFIG_OF_LIBFDT=y
CONFIG_SPL_STACK_R_ADDR=0x82000000
CONFIG_DISTRO_DEFAULTS=y
CONFIG_SYS_EXTRA_OPTIONS="NAND"
CONFIG_SYS_CONSOLE_INFO_QUIET=y
CONFIG_VERSION_VARIABLE=y
CONFIG_SPL=y
CONFIG_SPL_STACK_R=y
CONFIG_SPL_MTD_SUPPORT=y
CONFIG_SPL_MUSB_NEW_SUPPORT=y
CONFIG_SPL_NET_SUPPORT=y
CONFIG_SPL_USB_GADGET_SUPPORT=y
CONFIG_SPL_USBETH_SUPPORT=y
CONFIG_SPL_OS_BOOT=y
# CONFIG_CMD_IMLS is not set
CONFIG_CMD_ASKENV=y
# CONFIG_CMD_FLASH is not set
CONFIG_CMD_MMC=y
CONFIG_CMD_SF=y
CONFIG_CMD_SPI=y
CONFIG_CMD_I2C=y
CONFIG_CMD_USB=y
CONFIG_CMD_DFU=y
CONFIG_CMD_GPIO=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_EXT4_WRITE=y
CONFIG_OF_CONTROL=y
CONFIG_OF_LIST="IWA_board"
# CONFIG_BLK is not set
CONFIG_DFU_MMC=y
CONFIG_DFU_NAND=y
CONFIG_DFU_RAM=y
CONFIG_DM_I2C=y
CONFIG_DM_MMC=y
# CONFIG_DM_MMC_OPS is not set
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_WINBOND=y
CONFIG_SYS_NS16550=y
CONFIG_TIMER=y
CONFIG_OMAP_TIMER=y
CONFIG_USB=y
CONFIG_USB_MUSB_HOST=y
CONFIG_USB_MUSB_GADGET=y
CONFIG_USB_STORAGE=y
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_G_DNL_MANUFACTURER="Texas Instruments"
CONFIG_G_DNL_VENDOR_NUM=0x0451
CONFIG_G_DNL_PRODUCT_NUM=0xd022
CONFIG_USE_TINY_PRINTF=y
CONFIG_RSA=y
CONFIG_FIT=y
CONFIG_MISC=y
CONFIG_DM_USB=y
CONFIG_USB_MUSB_TI=y
CONFIG_SPL_LOAD_FIT=y
CONFIG_OF_BOARD_SETUP=y
CONFIG_DM_NAND=y
CONFIG_SPL_NET_VCI_STRING="AM335x U-Boot SPL"
CONFIG_SPL_ETH_SUPPORT=y
5. board-support/u-boot-2017.01+gitAUTOINC+c68ed086bd-gc68ed086bd/include/configs/am335x_evm.h
modify Line:114
"fdtfile=IWA_board.dtb\0" \ This will force u-boot to use the IWA device tree file.
I copied the same am335x-evmsk.dts file and I only modified the file name to WIA_board.dts and stored it under u-boot \ arch \ arm \dts florder
remove below :
"findfdt="\
"if test $board_name = A335BONE; then " \
"setenv fdtfile am335x-bone.dtb; fi; " \
"if test $board_name = A335BNLT; then " \
"setenv fdtfile am335x-boneblack.dtb; fi; " \
"if test $board_name = BBG1; then " \
"setenv fdtfile am335x-bonegreen.dtb; fi; " \
"if test $board_name = A33515BB; then " \
"setenv fdtfile am335x-evm.dtb; fi; " \
"if test $board_name = A335X_SK; then " \
"setenv fdtfile am335x-evmsk.dtb; fi; " \
"if test $board_name = A335_ICE; then " \
"setenv fdtfile am335x-icev2.dtb; fi; " \
"if test $fdtfile = undefined; then " \
"echo WARNING: Could not determine device tree to use; fi; \0" \
If I want to customize the dedicated IWA platform to boot on the system, I also need to modify or set what place?
BR
Egbert Liu