Commit b23f9fa6685d417f6f1dcdcdd5b474ef39e5b44f
1 parent
4bcf22e1
Perform USB device reset after done serving boot files.
Without the reset Pi Zero W doesn't boot the kernel.
Showing
1 changed file
with
1 additions
and
0 deletions
main.c
| @@ -494,6 +494,7 @@ int main(int argc, char *argv[]) | @@ -494,6 +494,7 @@ int main(int argc, char *argv[]) | ||
| 494 | printf("Second stage boot server\n"); | 494 | printf("Second stage boot server\n"); |
| 495 | file_server(usb_device); | 495 | file_server(usb_device); |
| 496 | } | 496 | } |
| 497 | + libusb_reset_device(usb_device); | ||
| 497 | 498 | ||
| 498 | libusb_close(usb_device); | 499 | libusb_close(usb_device); |
| 499 | sleep(5); | 500 | sleep(5); |