Testing dfu support, build error (beagle)
Henrik Leon
henrik at leotec.se
Thu Jul 1 19:50:19 EDT 2010
I'm not a skilled programmer so please bare with me if the solution to
this is trivial...
I tried to build a "Device Firmwire Upgrade gadget" on a beagle target,
but a build error occured:
drivers/built-in.o: In function `usb_composite_unregister':
dfu.c:(.text.usb_composite_unregister+0x14): undefined reference to
`usb_gadget_unregister_driver'
drivers/built-in.o: In function `usb_composite_register':
dfu.c:(.text.usb_composite_register+0x54): undefined reference to
`usb_gadget_register_driver'
drivers/built-in.o: In function `usb_dfu_register':
dfu.c:(.text.usb_dfu_register+0x4c): undefined reference to
`usb_gadget_poll'
I also tried to build (with the experimental code flag set)
USB_GADGET_SERIAL, but it failed in a similar way:
drivers/built-in.o: In function `usb_composite_register':
f_acm.c:(.text.usb_composite_register+0x54): undefined reference to
`usb_gadget_register_driver'
drivers/built-in.o: In function `do_mycdev':
f_acm.c:(.text.do_mycdev+0x38): undefined reference to `fsl_udc_irq'
drivers/built-in.o: In function `serial_putc':
f_acm.c:(.text.serial_putc+0x60): undefined reference to `fsl_udc_irq'
So then I tried changing barebox/drivers/usb/gadget/Makefile:
---obj-$(CONFIG_USB_GADGET_SERIAL) += u_serial.o serial.o f_serial.o
f_acm.o
+++obj-y(CONFIG_USB_GADGET_SERIAL) += u_serial.o serial.o f_serial.o
f_acm.o
and now it compiles cleanly. Unfortunately, I don't have any hardware to
test the binary on =/
I'm using codesourcery 2009q3 compiler, barebox 'next' git branch.
My goal with this exercise is to see if I can bring a fresh custom
AM3517-board up to kernel-life using nothing but a USB-cable.
//Henrik
More information about the barebox
mailing list