Perform USB device reset after done serving boot files.

Without the reset Pi Zero W doesn't boot the kernel.
This commit is contained in:
Andrew Onyshchuk
2017-04-21 21:25:47 -05:00
parent 4bcf22e159
commit b23f9fa668

1
main.c
View File

@@ -494,6 +494,7 @@ int main(int argc, char *argv[])
printf("Second stage boot server\n");
file_server(usb_device);
}
libusb_reset_device(usb_device);
libusb_close(usb_device);
sleep(5);