DFU u-boot patch with beagleboard-xM support

Hi all,

I've been working on loading images into RAM using DFU on the
BeagleBoard-xM. It seemed that there were several bitrotting patches
around. I've merged the best of each into something that works for
me for loading images into RAM on the -xM (but flash support is
broken and untested).

For posterity, attached is a patch against u-boot releases 2010.12
and 2011.03-rc1 (applies to either). It's still not in a clean
enough state for merging into u-boot, but I thought this list may
appreciate it.

I've had to revert to an older version of the musb_udc driver to get
it working, as the one in mainline u-boot seems to have a broken
state machine (which I was able to fix), and did not support High
Speed gadget mode (which I couldn't easily fix).

Thanks also go to Matthew Warton at OK Labs.

Cheers,
Bernard.

Hi Bernard,

How do I make this patch work? My system is a bit different as I am suing overo gumstix so I modified the omap3_overo.h with the lines below:

#define CONFIG_CMD_MTDPARTS /* Enable MTD parts commands /
#define CONFIG_MTD_DEVICE /
needed for mtdparts commands */

#define MTDIDS_DEFAULT “nand0=nand”
#define MTDPARTS_DEFAULT “mtdparts=nand:512k(x-loader),”
“1920k(u-boot),128k(u-boot-env),”
“4m(kernel),-(fs)”

/*

  • Board USB Info.
    /
    /
    USB */
    #define CONFIG_MUSB_UDC 1
    #define CONFIG_USB_OMAP3 1
    #define CONFIG_TWL4030_USB 1

//#define CONFIG_USB_GADGET 1

/* USB device configuration */
#define CONFIG_USB_DEVICE 1
#define CONFIG_USB_TTY 1

#define CONFIG_USBD_DFU 1
#define CONFIG_USBD_DFU_XFER_SIZE 0x1000
#define CONFIG_USBD_DFU_INTERFACE 2

But still I cannot make it work with the dfu-util. he device is already being detected as Netchip U-boot 2011.12 by my Linux machine. But running dfu-util gives the logs below and no extra logs in u-boot console. Am I missing any step?

$ dfu-util -l
dfu-util - © 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

dfu-util does currently only support DFU version 1.0

Thanks and best regards,
Andy

hi guys,

finally got it working to download the images to the ram. how to make this DFU patch write directly to the nand partitions?

thanks and best regards,
andy

Got it. Sorry for the bother.