* Testing dfu support, build error (beagle)
@ 2010-07-01 23:50 Henrik Leon
0 siblings, 0 replies; only message in thread
From: Henrik Leon @ 2010-07-01 23:50 UTC (permalink / raw)
To: barebox
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
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-01 23:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-01 23:50 Testing dfu support, build error (beagle) Henrik Leon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox