mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
Jz4740 USB tool:
* Add a slight delay, so that the pre-boot code gets time to execute * Remove an unneeded check git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20616 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4f98d45c3e
commit
c5a3c8c670
1 changed files with 4 additions and 6 deletions
|
|
@ -518,6 +518,7 @@ int send_rockbox(usb_dev_handle *dh, const char* filename)
|
|||
upload_data(dh, 0x080000000, jz_xloader, LEN_jz_xloader);
|
||||
}
|
||||
boot(dh, 0x080000000, false);
|
||||
_SLEEP(1);
|
||||
|
||||
fsize = read_file(filename, &buffer);
|
||||
upload_data(dh, 0x080004000, buffer, fsize);
|
||||
|
|
@ -676,12 +677,9 @@ int jzconnect(int address, unsigned char* buf, int len, int func)
|
|||
}
|
||||
}
|
||||
|
||||
if (dev == NULL)
|
||||
{
|
||||
fprintf(stderr, "[ERR] Device not found.\n");
|
||||
fprintf(stderr, "[ERR] Ensure your device is in USB boot mode and run usbtool again.\n");
|
||||
return -4;
|
||||
}
|
||||
fprintf(stderr, "[ERR] Device not found.\n");
|
||||
fprintf(stderr, "[ERR] Ensure your device is in USB boot mode and run usbtool again.\n");
|
||||
return -4;
|
||||
|
||||
found:
|
||||
if ( (dh = usb_open(dev)) == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue