I must be doing something wrong! Got my Pi zero and want to experiment with the usb device mode. I am having trouble with the simple use of rpiboot.
I have compiled and installed the rpiboot program on Ubuntu 14.10 PC. Got a pi zero with empty sd slot, usb micro to USB A cable connected to USB slot.
Plug in Pi0 to USB port on Ubuntu PC and get the
Code: Select all
lsusb
Bus 002 Device 005: ID 0a5c:2763 Broadcom Corp.
So far so good.
Code: Select all
sudo rpiboot -v
Waiting for BCM2835 ...
Found serial = 0: writing file /usr/share/rpiboot/usbbootcode.bin
libusb_bulk_transfer returned 0
Writing 16674 bytes
libusb_bulk_transfer returned 0
Successful
Waiting for BCM2835 ...
and it just waits...
Looking at the rpiboot code (main.c) it seems that it enumerates with serial=0, successfuly sends the usbbootcode.bin, and reads the response which is OK ie 0.
It then waits for the Pi0 to enumerate serial = 1 before it progresses to stage 2. Mine seems not to re-enumerate.
The lsusb listing disappears after the read response.
Looking at posts here and there it seems that most people are not having problems with this and the pi0 re-enumerates quickly.
I've tried same procedure but with PiB2 (ARCH 4.1.17) as host with same result. I've even used USB port on powered hub to exclude (as far as I can) power issues.
I must be doing something stupid since it appears to be working elsewhere and recently too.
can anyone help?
regards
Andy