Power & Source of Big Ideas

RKdev Tool does not work

Moderators: chensy, FATechsupport

I have a R5S used for development. I loaded in eMMC an image which failed. It has an uboot loader, and for this reason it is no longer possible to boot on a SD card without masking the eMMC. The only possible way to repair the device is to use the tool RKdev. Everything I tried failed.
Connection is OK, I see "Found one MASKROM Device".
I tried to send the MiniLoaderAll.bin I see :
    Downoad boot start
    Download boot failed
All other options show : Test device start / Test device failed
Dev Partition returns : Failed to read partition table
Everything I try send an error message.

I was able to load a firmware under the tab Upgrade Firmware, but when I click Erase Flash (which is what I want), I get the message Download Boot Failed

Was anyone able to use this tool ?
Similar here: Sadly in my case, additionally also loading any other OS image from "Upgrade Firmware" tab > "Firmware" button (tried with a custom one, as well as the official R5S Debian image) fails with "Loading firmware failed!".

"EraseFlash", any erase or read info button from "Advanced Function", as well as "Dev Partition" from "Download Image" all fail.

The problem is that, as of testing and developing a custom image, I currently have an unbootable image on the eMMC (flashed when booted from functional SD card). Since it uses no FriendlyELEC bootloader, it is preferred and hence boot always fails as long as maskrom botton is not pressed while functional image on SD card attached. With pressed maskrom, however, the eMMC isn't accessible from booted SD card system either, so I cannot flash any image to eMMC from there. With the drivers/RKdev tool not working, I have now not any option to flash anything else to eMMC and am doomed to press the maskrom button on every boot/reboot from SD card.
If the maskrom botton is released while the first firmware messages are displayed on the serial console, the booting system can probe the eMMC and it will be accessible. Of course, the booting system must support eMMC access.
Thanks, indeed on another attempt I recognised that the eMMC drive was visible from the SD card booted system. So timing is the key here :).

Would be still great if flashing via USB would work, to not rely on a system on SD card.
Unfortunately, I have been unable to reproduce what you say : even with the shortest time possible which allows booting on the SD card, the eMMC is not visible. I sent a message to the technical support but never got an answer. Excellent device, but total lack of technical support. This is regrettable.
Without providing a serial console log collected via the debug UART, no one knows what's going on and no more comprehensive support can be provided.
usual user wrote:
Without providing a serial console log collected via the debug UART, no one knows what's going on and no more comprehensive support can be provided.


I don't think UART data is useful. There is no problem about the boot process, it is very well known : if a system with a non Friendly Elec is loaded on the eMMC, the device will always boot from the eMMC, never from the SD card. This is by design. If this system starts booting and fails, there is no way to start the device with access to eMMC. The only way to start from the SD card is to mask the eMMC. But then, you no longer see it and it is not possible to erase it. All this is normal and by design.

RKdev Tool was offered to provide a way to load something on the eMMC without booting, or to erase the eMMC to regain the possibility to start from SD card. But this tool always fails, and this is our question. I doubt UART will show anything about it. But there is a log file. Here is a typical example, after use of several commands.

Code: Select all

22:10:13 457   LoadConfig-->PathFileExists Chinese.ini failed
22:11:21 400   LoadConfig-->PathFileExists Chinese.ini failed
22:12:57 256   RKDevTool v2.8.4.0 start run
22:13:13 426   RKDevTool v2.8.4.0 start run
22:14:27 402   RKDevTool v2.8.4.0 start run
22:14:42 256   Error:RKU_Write-->WriteFile failed,bRet=0,err=31,size=31,write=0
22:15:04 260   INFO:RKU_ResetPipe-->DeviceIoControl OK
22:15:04 261   Error:RKU_Write-->WriteFile failed,bRet=0,err=31,size=31,write=0
22:15:21 840   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:15:23 842   ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
22:15:23 843   <LAYER 3-1> ERROR:TestDevice-->RKU_TestDeviceReady failed,RetCode(-3),path=\\?\USB#VID_2207&PID_350A#5&3167A853&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
22:15:29 845   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:15:31 846   ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
22:15:31 847   <LAYER 3-1> ERROR:TestDevice-->RKU_TestDeviceReady failed,RetCode(-3),path=\\?\USB#VID_2207&PID_350A#5&3167A853&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
22:15:37 850   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:15:39 851   ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
22:15:39 852   <LAYER 3-1> ERROR:TestDevice-->RKU_TestDeviceReady failed,RetCode(-3),path=\\?\USB#VID_2207&PID_350A#5&3167A853&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
22:15:50 581   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:15:52 583   ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
22:15:52 584   Error:ResetDeviceProc-->RKU_ResetDevice failed,err=-3
22:16:03 664   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:16:05 666   ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
22:16:05 667   Error:ResetMaskromProc-->RKU_ResetDevice failed,err=-3
22:16:17 002   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:16:17 002   Error:ListStorageProc-->RKU_ReadCapability failed,err=-3
22:16:29 525   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:16:29 526   Error:DetectSMProc-->RKU_ReadCapability failed,err=-3
22:16:39 684   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:16:44 688   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:16:46 689   ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
22:16:46 690   Error:ExportImageProc-->RKU_ReadComData failed,err=-3
22:17:04 732   Error:Loading boot failed,err=-1
22:17:12 650   RKDevTool v2.8.4.0 start run
22:17:26 115   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:17:58 438   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:18:00 439   ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
22:18:00 440   ERROR:ErasePartition-->RKU_ReadFlashID failed,err=-3
22:18:18 911   Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
22:18:20 912   ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31

I tried with an older version of RKDevTool (2.58). The result is the same.

14:00:44 896 Error:RKU_Write-->WriteFile failed,bRet=0,err=31,size=31,write=0
14:00:57 442 ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=995
14:00:57 443 <LAYER 1-1-3> ERROR:TestDevice-->RKU_TestDeviceReady failed,RetCode(-3),path=\\?\USB#VID_2207&PID_350A#6&1B228727&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
14:01:03 445 Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
14:01:15 452 ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=995
14:01:15 453 <LAYER 1-1-3> ERROR:TestDevice-->RKU_TestDeviceReady failed,RetCode(-3),path=\\?\USB#VID_2207&PID_350A#6&1B228727&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
14:01:21 455 Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
14:01:23 457 ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
14:01:23 458 <LAYER 1-1-3> ERROR:TestDevice-->RKU_TestDeviceReady failed,RetCode(-3),path=\\?\USB#VID_2207&PID_350A#6&1B228727&0&3#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
14:01:51 043 Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
14:01:53 045 ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
14:01:53 046 Error:ResetMaskromProc-->RKU_ResetDevice failed,err=-3
14:02:00 889 Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
14:02:02 890 ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
14:02:02 891 Error:ResetDeviceProc-->RKU_ResetDevice failed,err=-3
14:02:30 657 Error:CheckDownloadItem--> is not existed!
14:02:33 800 Layer<>: RunProc is ending, ret=0
14:02:44 149 Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
14:02:46 150 ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
14:02:46 152 Error:ReadDevicePartTableProc-->During checking gpt or parameter RKU_ReadLBA failed,err=-3
14:03:09 476 Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
14:03:11 477 ERROR:RKU_ResetPipe-->DeviceIoControl failed,err=31
14:03:11 478 Error:ReadChipInfoProc-->RKU_ReadChipInfo failed,err=-3
14:03:18 852 Error:RKU_Write-->WriteFile failed,bRet=0,err=995,size=31,write=0
14:03:18 853 Error:ReadCapabilityProc-->RKU_ReadCapability failed,err=-3

Is there a way to "redeem" a R5S or R5C with a bad system on eMMC ?
Thanks, indeed on another attempt I recognised that the eMMC drive was visible from the SD card booted system. So timing is the key here :).
Fortunately, there is now another solution. With a recent eFlasher, even if I had to mask the eMMC to start it from the SD card, it was able to recognize the eMMC and to flash a FriendlyElec OS on it. So the problem is now solved for me.
Thanks, indeed on another attempt I recognised that the eMMC drive was visible from the SD card booted system. So timing is the key here :).
Hubspot partner agency
Mehendi designs

Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 5 minutes)
Most users ever online was 5185 on Wed Jan 22, 2020 1:44 pm

Users browsing this forum: No registered users and 4 guests