I am trying to flash compute module using a RPI 2 from this manual: I did the following:
Clone the usbboot tool repository:
git clone --depth=1 https://github.com/raspberrypi/tools
cd tools/usbboot
libusb must be installed. If you are using Cygwin, please make sure libusb is installed as previously described. On the Raspberry Pi or other Debian-based Linux enter the following command:
sudo apt-get install libusb-1.0-0-dev
Now build and install the usbboot tool:
make
sudo make install
I get the following errors:
pi@raspberrypi ~/tools/usbboot $ make
cc -g -o rpiboot main.c -lusb-1.0
main.c: In function ‘main’:
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
Makefile:2: recipe for target 'rpiboot' failed
make: *** [rpiboot] Error 1
How to patch?