<br><font size=2 face="sans-serif">Hi</font>
<br>
<br><font size=2 face="sans-serif">I have a FreeScale ADS5121 board and
would like to use USB_TTY with U-Boot on this board.</font>
<br>
<br><font size=2 face="sans-serif">To enable USB_TTY i have added these
lines to the u-boot/include/configs/ads5121.h file</font>
<br>
<br><font size=2><tt>#define CONFIG_USB_DEVICE 1</tt></font>
<br><font size=2><tt>#define CONFIG_USB_TTY
1</tt></font>
<br><font size=2><tt>#define CFG_Console_IS_IN_ENV
1</tt></font>
<br>
<br><font size=2><tt>#define CONFIG_USBD_VENDORID 0x0525
/* Linux/NetChip */</tt></font>
<br><font size=2><tt>#define CONFIG_USBD_PRODUCTID_GSERIAL 0xa4a6
/* gserial */</tt></font>
<br><font size=2><tt>#define CONFIG_USBD_PRODUCTID_CDCACM 0xa4a7
/* CDC ACM */</tt></font>
<br><font size=2><tt>#define CONFIG_USBD_MANUFACTURER "DAS U_BOOT"</tt></font>
<br><font size=2><tt>#define CONFIG_USBD_PRODUCT_NAME U_BOOT_VERSION</tt></font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">When i try to build the newest U-Boot
snapshot with the FreeScale LTIB toolchain i get this error</font>
<br>
<br><font size=2 face="sans-serif"><snip></font>
<br>
<br><font size=2><tt>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</tt></font>
<br><font size=2><tt>In file included from /home/pdj/code/u-boot_test/u-boot/include/commproc.h:24,</tt></font>
<br><font size=2><tt>
from /home/pdj/code/u-boot_test/u-boot/include/usbdcore_mpc8xx.h:23,</tt></font>
<br><font size=2><tt>
from usbtty.h:30,</tt></font>
<br><font size=2><tt>
from usbtty.c:33:</tt></font>
<br><font size=2><tt>/home/pdj/code/u-boot_test/u-boot/include/asm/8xx_immap.h:493:
error: redefinition of 'struct immap'</tt></font>
<br><font size=2><tt>/home/pdj/code/u-boot_test/u-boot/include/asm/8xx_immap.h:509:
error: redefinition of typedef 'immap_t'</tt></font>
<br><font size=2><tt>/home/pdj/code/u-boot_test/u-boot/include/asm/immap_512x.h:568:
error: previous declaration of 'immap_t' was here</tt></font>
<br><font size=2><tt>usbtty.c:161: warning: 'packed' attribute ignored
for field of type 'struct usb_endpoint_descriptor[2]'</tt></font>
<br><font size=2><tt>usbtty.c:291: warning: 'packed' attribute ignored
for field of type 'struct usb_interface_descriptor[1]'</tt></font>
<br><font size=2><tt>usbtty.c:293: warning: 'packed' attribute ignored
for field of type 'struct usb_endpoint_descriptor[3]'</tt></font>
<br><font size=2><tt>make[1]: *** [usbtty.o] Error 1</tt></font>
<br><font size=2><tt>make[1]: Leaving directory `/home/pdj/code/u-boot_test/u-boot/drivers/serial'</tt></font>
<br><font size=2><tt>make: *** [drivers/serial/libserial.a] Error 2</tt></font>
<br><font size=2><tt>make: *** Waiting for unfinished jobs....</tt></font>
<br>
<br><font size=2 face="sans-serif"></snip></font>
<br>
<br><font size=2 face="sans-serif">can anyone help me with suggestions
to fix this error </font>
<br>
<br><font size=2 face="sans-serif">Best Regards</font>
<br>
<br><font size=2 face="sans-serif">Peter L. Jensen</font>