mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2025-04-21 12:27:27 +03:00
[xboot] output the cpu type
This commit is contained in:
@@ -87,7 +87,6 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
xburst_h = open_xburst_device();
|
xburst_h = open_xburst_device();
|
||||||
if (xburst_h) {
|
if (xburst_h) {
|
||||||
printf("\nInfo - found XBurst boot device.\n");
|
|
||||||
if (send_request(xburst_h, "set_addr", STAGE1_ADDRESS)) {
|
if (send_request(xburst_h, "set_addr", STAGE1_ADDRESS)) {
|
||||||
close_xburst_device(xburst_h);
|
close_xburst_device(xburst_h);
|
||||||
continue;
|
continue;
|
||||||
@@ -172,12 +171,12 @@ struct usb_dev_handle* open_xburst_device()
|
|||||||
fprintf(stderr, "Error - more than one XBurst boot device found.\n");
|
fprintf(stderr, "Error - more than one XBurst boot device found.\n");
|
||||||
goto xout;
|
goto xout;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
xburst_dev = usb_dev;
|
xburst_dev = usb_dev;
|
||||||
// keep searching to make sure there is only 1 XBurst device
|
// keep searching to make sure there is only 1 XBurst device
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!xburst_dev) {
|
if (!xburst_dev) {
|
||||||
fprintf(stderr, "Info - no XBurst boot device found.\n");
|
fprintf(stderr, "Info - no XBurst boot device found.\n");
|
||||||
goto xout;
|
goto xout;
|
||||||
@@ -228,6 +227,7 @@ struct usb_dev_handle* open_xburst_device()
|
|||||||
goto xout_xburst_h;
|
goto xout_xburst_h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("\nInfo - found XBurst CPU: JZ%x device\n", xburst_dev->descriptor.idProduct);
|
||||||
return xburst_h;
|
return xburst_h;
|
||||||
|
|
||||||
xout_xburst_h:
|
xout_xburst_h:
|
||||||
|
|||||||
Reference in New Issue
Block a user