[U-Boot-Users] U-Boot ADS5121 USB_TTY

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

Dear Peter,
in message OFF62DC45D.4FD98D03-ONC12573D9.0038E3DC-C12573D9.003AAD1C@bang-olufsen.dk you wrote:
I have a FreeScale ADS5121 board and would like to use USB_TTY with U-Boot on this board.
You mean, you have added a USB driver for the MPC5121e? That's great news!
When i try to build the newest U-Boot snapshot with the FreeScale LTIB toolchain i get this error
...
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'
You should not try to build any MPC8xx code on a MPC5121e system - this makes no sense.
can anyone help me with suggestions to fix this error
Check your configursation - hy does it compile the 8xx driver instead of your newly added 512x one?
--=_alternative 003AAD18C12573D9_= Content-Type: text/html; charset="US-ASCII"
And please, don't post HTML on this list!
Best regards,
Wolfgang Denk

Hi Wolfgang
I have unfortunately not added an USB driver for the MPC5121e, and now i know why my USB_TTY is not working in U-Boot ;-)
there needs to be implemented an USB driver for the device
Regards
Peter
wd@denx.de wrote on 23-01-2008 12:12:54:
Dear Peter,
in message <OFF62DC45D.4FD98D03-ONC12573D9.0038E3DC-C12573D9. 003AAD1C@bang-olufsen.dk> you wrote:
I have a FreeScale ADS5121 board and would like to use USB_TTY with
U-Boot
on this board.
You mean, you have added a USB driver for the MPC5121e? That's great news!
When i try to build the newest U-Boot snapshot with the FreeScale LTIB
toolchain i get this error
...
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'
You should not try to build any MPC8xx code on a MPC5121e system - this makes no sense.
can anyone help me with suggestions to fix this error
Check your configursation - hy does it compile the 8xx driver instead of your newly added 512x one?
--=_alternative 003AAD18C12573D9_= Content-Type: text/html; charset="US-ASCII"
And please, don't post HTML on this list!
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de The only solution is ... a balance of power. We arm our side with exactly that much more. A balance of power -- the trickiest, most difficult, dirtiest game of them all. But the only one that preserves both sides. -- Kirk, "A Private Little War", stardate 4211.8

Dear Peter,
in message OF8463BB67.1E817B58-ONC12573D9.00423D69-C12573D9.00435FE4@bang-olufsen.dk you wrote:
I have unfortunately not added an USB driver for the MPC5121e, and now i
What a pity...
know why my USB_TTY is not working in U-Boot ;-)
there needs to be implemented an USB driver for the device
Indeed, that has to be the first step. Are you going to work on such a project?
Best regards,
Wolfgang Denk
participants (2)
-
Peter Langgaard Jensen
-
Wolfgang Denk