Hi,
i'm trying to flashing a compute module EMMC but I've some problems with rpiboot.
First of all, when I run make command I've this error:
main.c:262:34: error: 'LIBUSB_LOG_LEVEL_WARNING' undeclared (first use in this function)
main.c:262:34: note: each undeclared identifier is reported only once for each function it appears in
make: *** [rpiboot] Error 1
I'm trying to patch this issue by adding this in main.c:
#ifndef LIBUSB_LOG_LEVEL_WARNING /* older libusb didn't define these */
#define LIBUSB_LOG_LEVEL_WARNING 2
#endif
Now I'm able to compile, but rpiboot fail with this error:
Waiting for BCM2835 ...
Initialised device correctly
Found serial number 0
Found serial = 0: writing file ./usbbootcode.bin
Successful read 4 bytes
Waiting for BCM2835 ...
Initialised device correctly
Found serial number 1
Found serial = 1: writing file ./msd.elf
Failed to read correct length, returned 0
How can I fix this error?
I'm using a Raspberry PI like board with a debian wheezy.
Thanks
Giacomo