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.

Linux/AM4378: Custom board U-boot fails

Part Number: AM4378
Other Parts Discussed in Thread: TPS65218

Tool/software: Linux

board.c: In function 'get_lcdtype':
board.c:504:2: warning: pointer targets in return differ in signedness [-Wpointer-sign]
return get_header_subtype(&header);
^
board.c: In function 'optargs_lcdset':
board.c:522:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
new_optargs = malloc(new_optargs_len);
^
board.c:522:14: warning: assignment makes pointer from integer without a cast
new_optargs = malloc(new_optargs_len);
^
board.c:552:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
free(new_optargs);
^
board.c:525:8: warning: unused variable 'saveptr' [-Wunused-variable]
char *saveptr;
^
board.c: In function 'lcd_identify':
board.c:591:17: warning: assignment discards 'const' qualifier from pointer target type
if (!(lcd_type = get_lcdtype()))
^
board.c: In function 'init_pmic':
board.c:640:3: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
printf("%s: Set LS2 current limit to 500 mA failed!\n");
^
board.c:648:3: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
printf("%s: Turn off LS2(vbus0) failed!\n");
^
board.c:662:3: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
printf("%s: Set LS3 current limit to 500 mA failed!\n");
^
board.c:671:3: warning: format '%s' expects a matching 'char *' argument [-Wformat=]
printf("%s: Turn ON LS3(vbus1) failed!\n");
^
board.c: In function 'misc_init_r':
board.c:696:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
myir_header.c: In function 'check_header':
myir_header.c:31:3: warning: format '%X' expects argument of type 'unsigned int', but argument 2 has type 'char *' [-Wformat=]
err_msg("Invalid header: 0x%04X\n", header->header);
^
board/ti/am43xx/libam43xx.o: In function `init_pmic':
/home/yangyongsheng/ti-processor-sdk-linux-am437x-evm-03.02.00.05/board-support/u-boot-2016.05+gitAUTOINC+6c5519b6fc-g6c5519b6fc/board/ti/am43xx/board.c:626: undefined reference to `tps65218_init'
/home/yangyongsheng/ti-processor-sdk-linux-am437x-evm-03.02.00.05/board-support/u-boot-2016.05+gitAUTOINC+6c5519b6fc-g6c5519b6fc/board/ti/am43xx/board.c:636: undefined reference to `tps65218_set_bits'
/home/yangyongsheng/ti-processor-sdk-linux-am437x-evm-03.02.00.05/board-support/u-boot-2016.05+gitAUTOINC+6c5519b6fc-g6c5519b6fc/board/ti/am43xx/board.c:644: undefined reference to `tps65218_set_bits'
/home/yangyongsheng/ti-processor-sdk-linux-am437x-evm-03.02.00.05/board-support/u-boot-2016.05+gitAUTOINC+6c5519b6fc-g6c5519b6fc/board/ti/am43xx/board.c:658: undefined reference to `tps65218_set_bits'
/home/yangyongsheng/ti-processor-sdk-linux-am437x-evm-03.02.00.05/board-support/u-boot-2016.05+gitAUTOINC+6c5519b6fc-g6c5519b6fc/board/ti/am43xx/board.c:666: undefined reference to `tps65218_set_bits'
arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2016.02) 2.24.0.20141017 Linaro 2014_11-3-git assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64-ex40/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro_binutils-2_24-branch/bfd/elf32-arm.c:7710
arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2016.02) 2.24.0.20141017 Linaro 2014_11-3-git assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release/label/tcwg-x86_64-ex40/target/arm-linux-gnueabihf/snapshots/binutils-gdb.git~linaro_binutils-2_24-branch/bfd/elf32-arm.c:7710
arm-linux-gnueabihf-ld.bfd: error: required section '.rel.plt' not found in the linker script
arm-linux-gnueabihf-ld.bfd: final link failed: Invalid operation
make: *** [u-boot] Error 1

what's wrong maybe???