Commit 2989957c0ff2f503fa5c28f309d48fb1b1eeb9fa
Committed by
Phil Elwell
1 parent
ecb87972
Fix serial check for BCM2711 (#46)
The second stage can/will support file-server so don't force bootcode.bin for 2711. The second stage will (probably) reply with SerialNumber==1 when it wants the file-server as on Pi3.
Showing
1 changed file
with
2 additions
and
2 deletions
main.c
| @@ -614,7 +614,7 @@ int main(int argc, char *argv[]) | @@ -614,7 +614,7 @@ int main(int argc, char *argv[]) | ||
| 614 | { | 614 | { |
| 615 | int last_serial = -1; | 615 | int last_serial = -1; |
| 616 | 616 | ||
| 617 | - printf("Waiting for BCM2835/6/7\n"); | 617 | + printf("Waiting for BCM2835/6/7/2711...\n"); |
| 618 | 618 | ||
| 619 | // Wait for a device to get plugged in | 619 | // Wait for a device to get plugged in |
| 620 | do | 620 | do |
| @@ -645,7 +645,7 @@ int main(int argc, char *argv[]) | @@ -645,7 +645,7 @@ int main(int argc, char *argv[]) | ||
| 645 | while (ret); | 645 | while (ret); |
| 646 | 646 | ||
| 647 | last_serial = desc.iSerialNumber; | 647 | last_serial = desc.iSerialNumber; |
| 648 | - if(desc.iSerialNumber == 0 || desc.idProduct == 0x2711) | 648 | + if(desc.iSerialNumber == 0 || desc.iSerialNumber == 3) |
| 649 | { | 649 | { |
| 650 | printf("Sending bootcode.bin\n"); | 650 | printf("Sending bootcode.bin\n"); |
| 651 | second_stage_boot(usb_device); | 651 | second_stage_boot(usb_device); |