public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marcel <korgull@home.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot] {Spam?} u-boot-usb DFU working but need some ideas
Date: Sat, 5 Feb 2011 22:20:27 +0100	[thread overview]
Message-ID: <201102052220.27750.korgull@home.nl> (raw)

Hi,

I finally got things working well with my SAM9G45 USB devcie controller and 
continued to implement DFU for it. 
I implemented it using the new gadget layer and should be compatible with the 
at91_udc driver.

I have managed to get DFU working in such way that it transfers the file to 
RAM.  There's still a lot to do, but most things are in place and working 
well. Basically after transfer to RAM,  a u-boot script can handle additional 
actions, so I'm in doubt about the following :

The DFU implementation I used as a basis came from openmoko. This implements 
directly flashing the device.
However, my thought is that it's much better to just write the file to RAM and 
let a script in u-boot handle what should happen with it (verify, boot, flash)
The DFU spec seems to handle this with the bitManifestationTolentant bit, but 
the current dfu-utils don't use this bit (that can be updated of course, which 
I already did).

About the way it currently works :
1) I start u-boot
2) I issue the dfuinit command (new)
3) the host can now download a file to RAM.
Any thoughts on what would be the most preferred way to do this ?

Additionally I think I will implement this as a composite driver so that both 
(usb)CDC and DFU are available via USB. I have both working, but currently 
must select it at compile time.
My current implementation basically is just DFU as it assumes the application 
(not u-boot) to be the firmware to be updated, so no need to switch on 
descriptor layer level.

Any reply on this would be nice, even if my above thoughts are in line.
I hope to be able to post my changes in 1-2 weeks. After that my time is 
extremely limited due to long time travel. If anyone is interested in helping 
me out posting the changes it would be very much appreciated.

Best regards,
Marcel

             reply	other threads:[~2011-02-05 21:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-05 21:20 Marcel [this message]
2011-02-08 10:40 ` [U-Boot] {Spam?} u-boot-usb DFU working but need some ideas Detlev Zundel
2011-02-10  7:46   ` Marcel
2011-02-10  8:04     ` Wolfgang Denk
2011-02-10 19:15       ` Marcel
2011-02-10 19:26         ` Wolfgang Denk
2011-02-11 18:30           ` Marcel

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=201102052220.27750.korgull@home.nl \
    --to=korgull@home.nl \
    --cc=u-boot@lists.denx.de \
    /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