mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Henrik Leon <henrik@leotec.se>
To: barebox@lists.infradead.org
Subject: Testing dfu support, build error (beagle)
Date: Fri, 02 Jul 2010 01:50:19 +0200	[thread overview]
Message-ID: <1278028219.8621.860.camel@henke-laptop> (raw)

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

                 reply	other threads:[~2010-07-01 23:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1278028219.8621.860.camel@henke-laptop \
    --to=henrik@leotec.se \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox