Skip to content

Commit

Permalink
Add support for Pi4 (raspberrypi#42)
Browse files Browse the repository at this point in the history
The BCM2711 can also boot in USB device mode. Note that the boot ROM
code now sets the iSerialNumber to 3, but it does not expect the
second stage boot server, instead it downloads a single image over
USB.

Signed-off-by: Petr Tesarik <[email protected]>
  • Loading branch information
ptesarik authored and ghollingworth committed Jul 16, 2019
1 parent 56a8bd4 commit ecb8797
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ libusb_device_handle * LIBUSB_CALL open_device_with_vid(

if (desc.idVendor == vendor_id) {
if(desc.idProduct == 0x2763 ||
desc.idProduct == 0x2764)
desc.idProduct == 0x2764 ||
desc.idProduct == 0x2711)
{
if(verbose == 2)
printf("Found candidate Compute Module...");
Expand Down Expand Up @@ -644,7 +645,7 @@ int main(int argc, char *argv[])
while (ret);

last_serial = desc.iSerialNumber;
if(desc.iSerialNumber == 0)
if(desc.iSerialNumber == 0 || desc.idProduct == 0x2711)
{
printf("Sending bootcode.bin\n");
second_stage_boot(usb_device);
Expand Down

0 comments on commit ecb8797

Please sign in to comment.