You may remember from my last post that I can't compile Maple on my laptop because of strange conflicts with other things on my system. I thought it might be nice to set up a virtual machine to circumvent these problems (and I also feel much more productive in Linux than I do in Windows 7 so there are other benefits as well!). Here's what I've done so far:
1. Made a 64-bit Ubuntu VM with VMware and an ubuntu 12.04 ISO
2. Ran into weird errors relating to some things being 32-bit and others being 64-bit
3. Made a 32-bit VM
4. Followed the instructions here: http://leaflabs.com/docs/unix-toolchain.html
5. Successfully compiled main.cpp.example
6. Successfully compiled examples/test-session.cpp main.cpp
7. But it won't upload with make install
even when the Maple is in continuous bootloader mode.
Here's the output:
@ubuntu:~/libmaple$ make installInstall target: flash
./support/scripts/reset.py && sleep 1 && 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 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="DFU Program FLASH 0x08005000"
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
How can I fix this? I think the VM is blameless because the Maple is definitely getting all the way to ubuntu; if I unplug it I get a different error (Device not found).