878bf1d2e9
Use pkg-config to locate libusb-1.0
...
This fixes the build on NetBSD (still requires GNU make though).
2017-10-19 16:16:40 +02:00
Chris Burton
bc1fe9e833
Directory overlay support ( #23 )
...
* Add boot directory overlay support (USB path)
* Sleep before libusb_control_transfer seems to prevent timeout errors??
* Cleanup (removing unneeded sleep/spacing)
Break out of "file_server" loop if the device no longer exists (prevents getting stuck in the loop)
Sleep longer in the main detection loop (reduces CPU usage)
* Cleanup merged code
* Add delay option to reduce CPU usage (e.g. 500 = 7% CPU usage, 5000 = 1% CPU usage)
* Require space between "-m" option and delay value.
2017-10-12 13:55:15 +01:00
Serge Schneider
94c872753e
Change rpiboot behaviour to check /usr/share/rpiboot/msd
...
Add lintian overrides
2017-09-26 16:43:03 +01:00
ghollingworth
6623b999fc
Windows fails with ERROR_IO not ERROR_NO_DEVICE
2017-08-16 10:42:40 +01:00
ghollingworth
8e85bc1d67
Drop out of file loop if device goes away
2017-08-16 09:26:25 +01:00
Gordon Hollingworth
9df17b5809
Change timeout in ep_read to 2 seconds
...
Fixes a small number of booting problems
2017-06-12 06:37:04 +01:00
ghollingworth
63391cb52a
Fix uninitialised variable
2017-05-27 09:20:53 +01:00
ghollingworth
50fc0f49ea
Fix Pi Zero and some CM3 MSD boot cases, also secure boot support
2017-05-26 11:38:12 +01:00
ghollingworth
ec9155c978
Fix problem with enabling MSD on some CM / CM3 devices
2017-05-13 10:28:40 +01:00
Andrew Onyshchuk
b23f9fa668
Perform USB device reset after done serving boot files.
...
Without the reset Pi Zero W doesn't boot the kernel.
2017-04-21 21:25:47 -05:00
miks
f15abb02e0
Flush stdout buffer immediately
...
Enable immediately stdout flushing for better integration with
automated sdout parsing from external application.
2017-04-05 22:14:04 +03:00
hexameron
96fc04cb4f
Fix memory leak.
2017-01-25 15:33:40 +00:00
Ton van Overbeek
394589d87c
Execute both sending bootcode.bin and second stage boot server when
...
loop=0
2017-01-20 20:42:25 +01:00
Gordon Hollingworth
c2894f315a
Remove loop by default
2017-01-20 15:08:50 +00:00
Gordon Hollingworth
8c6a3a6b09
Added fix from lurch and ED6E0F17 for 64 bit systems.
2017-01-20 11:22:44 +00:00
Gordon Hollingworth
091f8f5029
Don't require sudo to get help...
2017-01-20 11:19:40 +00:00
Gordon Hollingworth
a76bbdb695
Add extra verbose logging and check return from libusb_control_transfer
2017-01-20 11:11:06 +00:00
ghollingworth
d7b97b343f
Changes to add filesystem boot mode
2017-01-20 11:10:49 +00:00
Gordon Hollingworth
1deea82c75
Add CM3 support
2016-10-03 15:28:47 +01:00
James Adams
7dfdce9f7e
Update to run under Cygwin
2016-10-03 15:28:46 +01:00
tmcolby
f563eec252
Update main.c
...
Added check at top of main() to test if user is running as sudo. Print message and exit if not run as sudo.
2016-10-03 15:28:46 +01:00
Diego Herranz
2652a9420f
usbboot: Use "%ld" in printf for ftell return value (long int).
2016-10-03 15:28:46 +01:00
Gordon Hollingworth
be1bc64249
Add buildroot.elf installation and cmdline parameters
2016-10-03 15:28:46 +01:00
Gordon Hollingworth
06f4a981fe
Add usb boot from buildroot image
2016-10-03 15:28:46 +01:00
Gordon Hollingworth
ae2822cc75
Add installation target to makefile
2016-10-03 15:28:46 +01:00
Andrew Scheller
08e4ed8244
Fix typo
2016-10-03 15:28:46 +01:00
ghollingworth
922c74c826
Oops... Forgot closing brace!
2016-10-03 15:28:46 +01:00
ghollingworth
a2374b3620
Exit from program when you program it
2016-10-03 15:28:46 +01:00
Gordon Hollingworth
4579a83a74
Added functionality to boot BCM2835 over the USB
2016-10-03 15:28:46 +01:00