0ed25c4ecc
Fix build with BSD make
...
This allows building with GNU make or BSD make interchangeably.
2017-10-19 16:16:47 +02:00
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
Serge Schneider
95e9e05808
Install msd files without creating a subdirectory
2017-09-26 14:58:23 +01:00
Serge Schneider
5a1573b3b8
Add Debian packaging
2017-09-26 14:13:46 +01:00
ghollingworth
467bee5f32
Change some naming to be more generic and use files in place
2017-08-16 15:49:29 +01:00
ghollingworth
f77c0c9464
Merge in win32 installer from Wren6991
2017-08-16 13:01:18 +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
c0af212f2f
Add configurable eMMC re-enabling value
2017-06-02 09:56:03 +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
Gordon Hollingworth
e89ead9a80
Merge pull request #17 from oandrew/usb_reset
...
Perform USB device reset after done serving boot files.
2017-04-22 13:45:58 +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
Gordon Hollingworth
4bcf22e159
Merge pull request #15 from miks/master
...
Flush stdout buffer immediately
2017-04-06 07:40:09 +01: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
Gordon Hollingworth
c01bd3b4c2
Merge pull request #11 from ED6E0F17/fixes
...
Fix memory leak.
2017-01-25 15:52:35 +00:00
hexameron
96fc04cb4f
Fix memory leak.
2017-01-25 15:33:40 +00:00
Gordon Hollingworth
20a3c87385
Merge pull request #9 from tvoverbeek/fix-loop-logic
...
Always re-enumerate BCM2835 after sending bootcode.bin to run the boot file server
2017-01-21 07:15:53 +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
c7fab44e59
add ./ for rpiboot executable
...
Since we no longer install rpiboot into /usr/bin then we need ./rpiboot to make it run from the current directory...
2017-01-20 15:11:00 +00:00
Gordon Hollingworth
7343c3e557
Merge pull request #6 from JamesH65/master
...
Removed unnecessary make install step from readme
2017-01-20 15:09:28 +00:00
Gordon Hollingworth
c2894f315a
Remove loop by default
2017-01-20 15:08:50 +00:00
James Hughes
650183454d
Removed unnecesary make install step from readme
2017-01-20 14:15:50 +00:00
Gordon Hollingworth
873e6b933c
Remove old binaries
2017-01-20 11:53:36 +00:00
Gordon Hollingworth
9e6ff777bb
Remove installation of rpiboot to /usr/bin
2017-01-20 11:29:04 +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
e368f77398
Add a little documentation
2017-01-20 11:11:06 +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
18a8985586
Remove replaced files
2017-01-20 10:43:22 +00:00
ghollingworth
f4e3f0f9a3
Update msd.elf to support customised Raspberry Pis
2016-10-03 15:28:47 +01:00
Stephen Warren
83c7ed72a3
Add .gitignore files
...
This makes "git status" ignore some generated files that shouldn't be
added.
2016-10-03 15:28:47 +01: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
Alistair Buxton
eeba0a9bc4
Fix rpiboot command example.
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
Gordon Hollingworth
f4ff1f08d8
Make sure EMMC_DISABLE gpio on GPIO47 is driven low
2016-10-03 15:28:46 +01:00
Diego Herranz
0519ddafe4
usbboot: Add uninstall target to Makefile plus .PHONY targets.
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
8d709206d5
Change the 2nd stage to download the data over USB2.0 This accelerates
...
the download of code 10x
2016-10-03 15:28:46 +01:00
ghollingworth
f76f278737
Change buildroot config name
2016-10-03 15:28:46 +01:00
ghollingworth
250225bc7c
Update to reflect renamed .elf file
2016-10-03 15:28:46 +01:00
ghollingworth
a941465a6e
Fix markup
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