1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-25 19:09:43 +02:00

[xboot] output the cpu type

This commit is contained in:
Xiangfu Liu 2010-06-09 23:34:06 +08:00
parent b43ca37f46
commit 2b60170c9c

View File

@ -87,7 +87,6 @@ int main(int argc, char** argv)
xburst_h = open_xburst_device();
if (xburst_h) {
printf("\nInfo - found XBurst boot device.\n");
if (send_request(xburst_h, "set_addr", STAGE1_ADDRESS)) {
close_xburst_device(xburst_h);
continue;
@ -172,12 +171,12 @@ struct usb_dev_handle* open_xburst_device()
fprintf(stderr, "Error - more than one XBurst boot device found.\n");
goto xout;
}
}
xburst_dev = usb_dev;
// keep searching to make sure there is only 1 XBurst device
}
}
}
}
if (!xburst_dev) {
fprintf(stderr, "Info - no XBurst boot device found.\n");
goto xout;
@ -228,6 +227,7 @@ struct usb_dev_handle* open_xburst_device()
goto xout_xburst_h;
}
printf("\nInfo - found XBurst CPU: JZ%x device\n", xburst_dev->descriptor.idProduct);
return xburst_h;
xout_xburst_h: