rkflashkit non-functional

I am attempting to flash the rk 3399 board using this guide: http://wiki.t-firefly.com/index.php/Firefly-RK3399/Flash_image/en

When atempting to use firefly’s forked rkflashkit(0.1.4) the rk3399 is not even identified by the flashkit. Link:
https://github.com/TeeFirefly/rkflashkit

Using linuxerwang’s flaskit(0.1.5) it identifies the rk3399 board but all the options are greyed out.

any ideas on why this is happening?

1 ,did you useing the firefly-rk3399 board? or another board?
2 did you pressed the recovery button before power up?
3 have you try the maskrom mode?

  1. I am using the RK 3399
  2. i have pressed recovery key before power up
  3. i have not tried masked rom mode

I am able to use android tool on windows to flash. however i still want to flash from linux(ubuntu 16)

when i try to reboot the device from command line i get :

:~$ sudo rkflashkit reboot
Found devices:
0x2207:0x330c
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=2
Traceback (most recent call last):
  File "/usr/bin/rkflashkit", line 17, in <module>
    sys.exit(app.main(sys.argv[1:]))
  File "/usr/share/rkflashkit/lib/rkflashkit/climain.py", line 99, in main
    self.parse_and_execute(args)
  File "/usr/share/rkflashkit/lib/rkflashkit/climain.py", line 130, in parse_and_execute
    self.reboot()
  File "/usr/share/rkflashkit/lib/rkflashkit/climain.py", line 205, in reboot
    op.reboot()
  File "/usr/share/rkflashkit/lib/rkflashkit/rktalk.py", line 361, in reboot
    self.__init_device()
  File "/usr/share/rkflashkit/lib/rkflashkit/rktalk.py", line 130, in __init_device
    2, ''.join(prepare_cmd(0x80, 0x00060000, 0x00000000, 0x00000000)))
  File "/usr/share/rkflashkit/lib/rkflashkit/usb1.py", line 1145, in bulkWrite
    return self._bulkTransfer(endpoint, data, sizeof(data), timeout)
  File "/usr/share/rkflashkit/lib/rkflashkit/usb1.py", line 1129, in _bulkTransfer
    raise libusb1.USBError(result)
rkflashkit.libusb1.USBError: LIBUSB_ERROR_IO [-1]

Hi cmi,
rkflashkit did not work for me either.
So I used rkdeveloptool.

#!/bin/sh

../rkdeveloptool/rkdeveloptool db ../rkbin/rk33/rk3399_loader_v1.08.106.bin
sleep 2
../rkdeveloptool/rkdeveloptool wl 64 idbspl.img
../rkdeveloptool/rkdeveloptool wl 512 bl3.itb
../rkdeveloptool/rkdeveloptool rd

please use upgrade_tool for instead.

fivetechno Posted at 6/23/2017 20:50
Hi cmi,
rkflashkit did not work for me either.
So I used rkdeveloptool.

Can the rkdeveloptool flash the entire packaged update image?

I am having issues with the linux_upgrade_tool as well : https://drive.google.com/file/d/0B7HO8lbGgAqAendKNTZMQlBXS2c/view

when i try to run it gives me permission denied

bash: ./upgrade_tool: Permission denied

sudo gives me

sudo: upgrade_tool: command not found

sudo bash gives me :

upgrade_tool: upgrade_tool: cannot execute binary file

from what i can tell this is a 32 bit application. Is it possible that its having problems with my 64bit Ubuntu 16?

Found a solution using Linux_upgrade_tool 1.2 instead of 1.24 seems to work fine. Ver 1.2

yes works for me as well on the RK3399, how ever the upgrade_tool is somewhat tricky, i did not use the command line as described.
Instead here is what i did …

sudo ./upgrade_tool

then you get the tools cryptic interface promting you to choose either rescan/quit or the number of the device it detected. there i just typed 1
after that you get a list of commands you can execute among them UF (or lf to low format first)

you choose (by typing) uf update.img

Now here is the tricky bit!! (i am not sure why it does not work by giving a path to the .img file)
I downloaded the ubuntu image from the firefly website (after download, extract, the result is a cryptic name starting with Firefly_RK3399…bla.img)
rename this file to update.img and move it into the directoy where the upgrade_tool is located. then restart the upgrade tool and choose 1 then when the list appears choos uf update.img … then it starts to test and upload, when its done the firefly will restart automatically and it worked …

fine :slight_smile:

I have the same problem and I have used the recommendations here to install Linux upgrade_tool 1.2.
Everything looks right but my Ubuntu host downt recognize the RK3399 device. I have a message
“ List of rockusb connected” no found rockusb… and I quit.

I have downloaded Ubuntu 1604 2017 0511 1112.img from firefly website.
I have renamed and installed everything according to the information here.

I have Ubuntu 16.10 64 bit on my host.

I have tried both recommended methods with the C-connection and Recovery and Reset keys.
Nothing I do makes the my Ubuntu Host to recognize the device!?

Please advise

stentmartin

I found a third method to set the device in “Loader Mode”. The method what’s totally different from the other instructions on Internet. However this time it worked and I can start the upgrade_tool and chose my device.

However when I try to low format and flash the device I get an error: “creating comm object failed”!

It seems as the memory in the device can not be formatted or flashed for some reason. Maybe the memory is protected?
There is also many different Ubuntu.img on the website. Which one is the correct to use?

The messages I have is as follows when I do “upgrade_tool uf update.img”.

  1. Loading firmware
  2. Support type: RK330C?? FW Ver: 6.0.01
  3. Loader Version: 1.05
  4. Creating comm object failed

When I try to do low format “upgrade_tool lf”, I have the following messages:

  1. Lower format quit, Creating comm object failed.

Anyone else with this problem!

stentmartin

“creating comm object failed”: http://bbs.t-firefly.com/forum.php?mod=viewthread&tid=2079&extra=page%3D1#postmessage_9166

Your article is absolutely captivating, thank you for sharing! Wish me all the best as I face the MB-700 latest test camp file exam soon!

I am genuinely inspired by this article, thank you for sharing! The Exam CIPP-E objectives pdf questions are free for everyone. Good luck on your exams!

I’m completely in awe of your article, thank you for sharing! The H12-811_V1.0-ENU valid torrent content is truly helpful, and it’s offered without any cost.

I’m in awe of the quality of your article, thank you for sharing it! Free Terraform-Associate-004 reliable exam camp questions to improve your IT knowledge. Wishing you all the best!