Hi All!
I am trying to compile Uboot with PinMux Configuration. But compile error is occured.
Steps for compling:
1.mux.h and pinmux.h are generated by PinMuxUtility.
2.Refer the below URL.
http://processors.wiki.ti.com/index.php/Pin_Mux_Utility_for_ARM_MPU_Processors_v2
at "Using the Generated Header Files (AM35x / AM37x / OMAP35x)",
The steps are:
Before rebuilding U-BOOT for your system, the following steps are neccessary:
1) Replace the mux.h header file with the mux.h output file from Pin Mux Utility
2) Copy the pinmux.h output file from Pin Mux Utility into the directory containing the evm.h file.
3) Modify the original evm.h file, commenting out or deleting the original section of code that
makes the pin mux programming macro calls.
4) Replace this code with #include "pinmux.h"
3.Make(compile)
As a result, compile error is occured.I attach a compile error message file(CompileError.txt).
make -C arch/arm/cpu/armv7/am33xx/ make[1]: Entering directory `/home/ys/git/invillage_am3352/u-boot-2013.01.01-psp06.00.00.00/arch/arm/cpu/armv7/am33xx' arm-buildroot-linux-uclibcgnueabihf-gcc -g -Os -fno-common -ffixed-r8 -msoft-float -mno-unaligned-access -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x80800000 -I/home/ys/git/invillage_am3352/u-boot-2013.01.01-psp06.00.00.00/include -fno-builtin -ffreestanding -nostdinc -isystem /home/ys/git/invillage_am3352/toolchain/arm-linux/usr/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabihf/4.7.3/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage -o mux.o mux.c -c mux.c:24:38: warning: 'struct module_pin_mux' declared inside parameter list [enabled by default] mux.c:24:38: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] mux.c: In function 'configure_module_pin_mux': mux.c:31:2: error: invalid use of undefined type 'struct module_pin_mux' mux.c:31:25: error: dereferencing pointer to incomplete type mux.c:32:3: warning: implicit declaration of function 'MUX_CFG' [-Wimplicit-function-declaration] mux.c:32:3: error: invalid use of undefined type 'struct module_pin_mux' mux.c:32:22: error: dereferencing pointer to incomplete type mux.c:32:3: error: invalid use of undefined type 'struct module_pin_mux' mux.c:32:42: error: dereferencing pointer to incomplete type make[1]: *** [mux.o] Error 1 make[1]: Leaving directory `/home/ys/git/invillage_am3352/u-boot-2013.01.01-psp06.00.00.00/arch/arm/cpu/armv7/am33xx' make: *** [arch/arm/cpu/armv7/am33xx/libam33xx.o] Error 2 ys@ys-AO533:~/git/invillage_am3352/u-boot-2013.01.01-psp06.00.00.00$
How can I resolve this issue?
BR
Taira