
Hi
I have a FreeScale ADS5121 board and would like to use USB_TTY with U-Boot on this board.
To enable USB_TTY i have added these lines to the u-boot/include/configs/ads5121.h file
#define CONFIG_USB_DEVICE 1 #define CONFIG_USB_TTY 1 #define CFG_Console_IS_IN_ENV 1
#define CONFIG_USBD_VENDORID 0x0525 /* Linux/NetChip */ #define CONFIG_USBD_PRODUCTID_GSERIAL 0xa4a6 /* gserial */ #define CONFIG_USBD_PRODUCTID_CDCACM 0xa4a7 /* CDC ACM */ #define CONFIG_USBD_MANUFACTURER "DAS U_BOOT" #define CONFIG_USBD_PRODUCT_NAME U_BOOT_VERSION
When i try to build the newest U-Boot snapshot with the FreeScale LTIB toolchain i get this error
<snip>
powerpc-e300c3-linux-gnu-gcc -g -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xFFF00000 -I/home/pdj/code/u-boot_test/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/freescale/usr/local/gcc-4.1.69-eglibc-2.5.69-1/powerpc-e300c3-linux-gnu/lib/gcc/powerpc-e300c3-linux-gnu/4.1.2/include -pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC512X -DCONFIG_E300 -ffixed-r2 -ffixed-r29 -msoft-float -mcpu=603e -Wall -Wstrict-prototypes -c -o ns7520_eth.o ns7520_eth.c In file included from /home/pdj/code/u-boot_test/u-boot/include/commproc.h:24, from /home/pdj/code/u-boot_test/u-boot/include/usbdcore_mpc8xx.h:23, from usbtty.h:30, from usbtty.c:33: /home/pdj/code/u-boot_test/u-boot/include/asm/8xx_immap.h:493: error: redefinition of 'struct immap' /home/pdj/code/u-boot_test/u-boot/include/asm/8xx_immap.h:509: error: redefinition of typedef 'immap_t' /home/pdj/code/u-boot_test/u-boot/include/asm/immap_512x.h:568: error: previous declaration of 'immap_t' was here usbtty.c:161: warning: 'packed' attribute ignored for field of type 'struct usb_endpoint_descriptor[2]' usbtty.c:291: warning: 'packed' attribute ignored for field of type 'struct usb_interface_descriptor[1]' usbtty.c:293: warning: 'packed' attribute ignored for field of type 'struct usb_endpoint_descriptor[3]' make[1]: *** [usbtty.o] Error 1 make[1]: Leaving directory `/home/pdj/code/u-boot_test/u-boot/drivers/serial' make: *** [drivers/serial/libserial.a] Error 2 make: *** Waiting for unfinished jobs....
</snip>
can anyone help me with suggestions to fix this error
Best Regards
Peter L. Jensen