<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Downloading to board works with Ubuntu VM but not with Gentoo native</title>
		<link>http://forums.leaflabs.com/topic.php?id=1369</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:16:30 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=1369" rel="self" type="application/rss+xml" />

		<item>
			<title>tormod on "Downloading to board works with Ubuntu VM but not with Gentoo native"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1369#post-10357</link>
			<pubDate>Wed, 25 Apr 2012 16:26:14 +0000</pubDate>
			<dc:creator>tormod</dc:creator>
			<guid isPermaLink="false">10357@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;As I have written in &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=1410#post-10356&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=1410#post-10356&#60;/a&#62; I hope dfu-util 0.6 will work around this firmware bug.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kwesadilo on "Downloading to board works with Ubuntu VM but not with Gentoo native"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1369#post-8445</link>
			<pubDate>Fri, 02 Mar 2012 04:31:30 +0000</pubDate>
			<dc:creator>kwesadilo</dc:creator>
			<guid isPermaLink="false">8445@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks for the advice. My Kubuntu VM has &#60;code&#62;dfu-util&#60;/code&#62; 0.3, so what you're saying makes sense.&#60;/p&#62;
&#60;p&#62;On Gentoo, I downgraded to &#60;code&#62;dfu-util&#60;/code&#62; 0.4. (Only 0.1, 0.4, and 0.5 are available in the repository). Unfortunately, it immediately segfaults when I try to upload a program or list devices. This being Gentoo, that is conceivably a fixable problem. I saw some Debian bugs from a few months back mentioning something like that, but I don't know what the resolution was yet. I'll dig into it a little more unless anyone already knows what's going on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tormod on "Downloading to board works with Ubuntu VM but not with Gentoo native"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1369#post-8424</link>
			<pubDate>Thu, 01 Mar 2012 06:54:40 +0000</pubDate>
			<dc:creator>tormod</dc:creator>
			<guid isPermaLink="false">8424@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;UPDATE 2: The firmware &#34;fix&#34; I pointed to above is only partial and was apparently not tested enough. So all currently shipping firmwares are broken. I will start a new thread and get in touch with the right developers to have this sorted out properly. In the meantime, dfu-util 0.5 will not work with Maple devices.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tormod on "Downloading to board works with Ubuntu VM but not with Gentoo native"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1369#post-8413</link>
			<pubDate>Wed, 29 Feb 2012 03:19:30 +0000</pubDate>
			<dc:creator>tormod</dc:creator>
			<guid isPermaLink="false">8413@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Your last run with dfu-util above is using some earlier version of dfu-util which did not have DFU 1.1a (DfuSe) support, and it is just treating the device as a DFU 1.0 device. So it seems like your device is really 1.0 but declares itself as 1.1a. Who wrote this firmware?&#60;/p&#62;
&#60;p&#62;The 0a5c:2110 device you see with dfu-util -l is a bluetooth controller, which also can be updated over DFU.&#60;/p&#62;
&#60;p&#62;UPDATE: I found what I think is the Maple firmware source and this version issue was fixed two years ago: &#60;a href=&#34;https://github.com/leaflabs/maple-bootloader/commit/95e1150ddcbb6e0e4c4e2ff9f85a0e6d9d620407&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/maple-bootloader/commit/95e1150ddcbb6e0e4c4e2ff9f85a0e6d9d620407&#60;/a&#62; (well, it seems it was corrected to 0.1 instead of 1.0)&#60;/p&#62;
&#60;p&#62;Why is the older, unfinished code in use? Was it released and shipped on commercial units?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kwesadilo on "Downloading to board works with Ubuntu VM but not with Gentoo native"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1369#post-8411</link>
			<pubDate>Tue, 28 Feb 2012 22:39:32 +0000</pubDate>
			<dc:creator>kwesadilo</dc:creator>
			<guid isPermaLink="false">8411@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Dang, I figured it would email me when people replied. I should have been on this sooner.&#60;/p&#62;
&#60;p&#62;I don't think I'm getting a 64-bit executable/32-bit library linking error. &#60;code&#62;dfu-util&#60;/code&#62; runs. It just doesn't upload the program. It might be the Maple firmware version thing.&#60;/p&#62;
&#60;p&#62;I set up a 32-bit Kubuntu VM using VirtualBox. When I try to &#60;code&#62;make install&#60;/code&#62; using that, I get&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;abe@vbox1:~/libmaple$ make install
Install target: flash
./support/scripts/reset.py &#38;amp;&#38;amp; sleep 1                  &#38;amp;&#38;amp; dfu-util -a1 -d 1EAF:0003 -D build/maple.bin -R
Could not find Maple serial port; defaulting to /dev/maple.
Using /dev/maple as Maple serial port
Failed to open serial port /dev/maple for reset
dfu-util - (C) 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

Opening DFU USB device... ID 1eaf:0003
Found Runtime: [0x1eaf:0x0003] devnum=3, cfg=0, intf=0, alt=1, name=&#38;quot;DFU Program FLASH 0x08005000&#38;quot;
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Device returned transfer size 1024
bytes_per_hash=589
Copying data from PC to DFU device
Starting download: [##################################################] finished!
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The program I sent appears to run on the Maple.&#60;/p&#62;
&#60;p&#62;However, I had to verify this using someone else's computer, because I can't complete the instructions for connecting with &#60;code&#62;screen&#60;/code&#62;. I have installed the &#60;code&#62;udev&#60;/code&#62; rules (on host and guest machines), but when I plug the Maple in after resetting it, I see no file matching &#60;code&#62;/dev/ttyACM*&#60;/code&#62;. On my native machine (Gentoo), I see&#60;br /&#62;
&#60;code&#62;Found Runtime: [0a5c:2110] devnum=0, cfg=1, intf=3, alt=0, name=&#38;quot;UNDEFINED&#38;quot;&#60;/code&#62;&#60;br /&#62;
when I run &#60;code&#62;dfu-util -l&#60;/code&#62;, and I see the device in &#60;code&#62;lsusb&#60;/code&#62; output. However, there is no &#60;code&#62;/dev/ttyACM*&#60;/code&#62; device. There is not even the usual &#60;code&#62;/dev/ttyUSB&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;On my 32-bit VM (Kubuntu), I can see the Maple using &#60;code&#62;dfu-util&#60;/code&#62; when it is in persistent debug mode. But after I reset into normal mode, I can't see anything from Kubuntu using &#60;code&#62;dfu-util -l&#60;/code&#62;. There is no &#60;code&#62;/dev/ttyACM*&#60;/code&#62; either. My partner has a similar issue with her Mac: She can see the device in normal mode from OSX but not from her Ubuntu VM.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tormod on "Downloading to board works with Ubuntu VM but not with Gentoo native"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1369#post-8393</link>
			<pubDate>Sun, 26 Feb 2012 11:37:39 +0000</pubDate>
			<dc:creator>tormod</dc:creator>
			<guid isPermaLink="false">8393@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi, there is something wrong with your Maple firmware. It reports DFU version 1.1a which is the version reported by DfuSe enabled devices, but the interface name does not indicate a DfuSe device - there is no encoded memory map in it. This is why dfu-util quits with an error.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "Downloading to board works with Ubuntu VM but not with Gentoo native"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1369#post-8308</link>
			<pubDate>Wed, 22 Feb 2012 02:02:35 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">8308@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Actually, what I just wrote might be total out-of-date FUD:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=261#post-1938&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=261#post-1938&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "Downloading to board works with Ubuntu VM but not with Gentoo native"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1369#post-8307</link>
			<pubDate>Wed, 22 Feb 2012 01:59:03 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">8307@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;hi kwesadilo!&#60;/p&#62;
&#60;p&#62;IIRC we had problems with the &#34;most recent&#34; version of dfu-util as of a year or two ago and shipped the Maple IDE with an older version instead. You should be able to use the 32bit statically compiled binary on a 64bit debian-based machine, and hopefully Gentoo as well:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://github.com/leaflabs/maple-ide/blob/master/build/linux/dist/tools/dfu-util&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/maple-ide/blob/master/build/linux/dist/tools/dfu-util&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I get:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
$ ./dfu-util -V&#60;br /&#62;
dfu-util - (C) 2007 by OpenMoko Inc.&#60;br /&#62;
This program is Free Software and has ABSOLUTELY NO WARRANTY&#60;/p&#62;
&#60;p&#62;dfu-util version 0.1+svnexported&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Send the leafblowers an email with your results and bug them to update the toolchain docs!&#60;/p&#62;
&#60;p&#62;[disclaimer: not an official developer]
&#60;/p&#62;</description>
		</item>
		<item>
			<title>kwesadilo on "Downloading to board works with Ubuntu VM but not with Gentoo native"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1369#post-8304</link>
			<pubDate>Wed, 22 Feb 2012 00:32:22 +0000</pubDate>
			<dc:creator>kwesadilo</dc:creator>
			<guid isPermaLink="false">8304@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;My class project group just got a Maple board, and we are trying to set up our development environments. None of us have used Maple before. My partner uses a Mac, and she couldn't get access to make and gcc through XCode, so we installed VirtualBox on her machine and set up a VM with Ubuntu 11.10 (32-bit). She was then able to get through the entire toolchain setup guide at &#60;a href=&#34;http://leaflabs.com/docs/unix-toolchain.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/unix-toolchain.html&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;I run Gentoo (64-bit) natively. I was able to get down through the compilation part without issue. But when I run &#60;code&#62;make install&#60;/code&#62; I get the following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Install target: flash
./support/scripts/reset.py &#38;amp;&#38;amp; sleep 1 &#38;amp;&#38;amp; dfu-util -a1 -d 1EAF:0003 -D build/maple.bin -R
You appear to be using 64-bit Linux. Let us know if this works.
Could not find Maple serial port; defaulting to /dev/maple.
Using /dev/maple as Maple serial port
Failed to open serial port /dev/maple for reset
dfu-util 0.5

(C) 2005-2008 by Weston Schmidt, Harald Welte and OpenMoko Inc.
(C) 2010-2011 Tormod Volden (DfuSe support)
This program is Free Software and has ABSOLUTELY NO WARRANTY

dfu-util does currently only support DFU version 1.0

Filter on vendor = 0x1eaf product = 0x0003
Opening DFU USB device... ID 1eaf:0003
Run-time device DFU version 011a
Found DFU: [1eaf:0003] devnum=0, cfg=1, intf=0, alt=1, name=&#38;quot;DFU Program FLASH 0x08005000&#38;quot;
Claiming USB DFU Interface...
Setting Alternate Setting #1 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 1024
No valid DFU suffix signature
Warning: File has no DFU suffix
Error: Could not read name, sscanf returned0
Error: Failed to parse memory layout
make: *** [install] Error 1&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;When I Google for these errors, all I get are listings of the dfu-util source code. My suspicion is that the last two lines are the only ones that are actually problems, but I don't know what any of it means. I can still see the board. When I run &#60;code&#62;dfu-util -l&#60;/code&#62; (while in perpetual boot mode), I get this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;Found Runtime: [0a5c:2110] devnum=0, cfg=1, intf=3, alt=0, name=&#38;quot;UNDEFINED&#38;quot;
Found DFU: [1eaf:0003] devnum=0, cfg=1, intf=0, alt=0, name=&#38;quot;DFU Pro&#38;quot;
Found DFU: [1eaf:0003] devnum=0, cfg=1, intf=0, alt=1, name=&#38;quot;DFU Program FLASH 0x08005000&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I note that &#60;code&#62;make install&#60;/code&#62; expressed doubt about whether this should work on 64-bit Linux. To drill down further, I might try setting up a 32-bit VM on my machine, but I would really like to get this working natively. Does anyone have any ideas?&#60;/p&#62;
&#60;p&#62;According to the Git log, I have the latest library version, which was updated on 10/20/11, if that matters. Also, this is my first post on a bbPress forum, so I'm sorry if my formatting is messed up.&#60;/p&#62;
&#60;p&#62;I would appreciate it if someone could shed some light on this.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
