Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

Linux Flashing Tools

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Linux Flashing Tools

    rkImageMaker allows you to build an 'update.img' file that can be flashed to a device using either the Linux 'upgrade_tool'
    or the Windows 'RKBatchTool.exe'. It is available in the recently released Android 4.4.2 SDK
    under <path_to_SDK>/rk3188/RKTools/linux/Linux_Upgrade_Tool_v1.16


    To make them more readily available I've bundled the Linux tools as flash-tool.7z and they can be used as follows:


    1. Download and unzip flash-tool.7z (https://drive.google.com/file/d/0B99...FlwTW91Z3p1a1E)
    2. cd to flash-tool
    3. Link your component image files that you want to flash
    e.g. ln -s <path_to_file>/boot.img boot.img
    4. Link your parameter file as parameter
    e.g. ln -s <path_to_file>/parameter parameter
    5. Link your bootloader file as RK3188Loader
    e.g. ln -s <path_to_file>/RK3188Loader\(L\)_V1.24.bin RK3188Loader
    6. Edit config.ini and package-file and check the image files are correct
    i.e. add or remove lines related to the images required
    7. Make the 'update.img' file
    ./MAKE-FLASH


    To flash the 'update.img' file first connect the device bootloader mode and then enter:


    ./upgrade_tool lf
    ./upgrade_tool uf


    or if it includes changing the bootloader then enter:


    ./upgrade_tool ef
    ./upgrade_tool uf


    You can also use the tool interactively by just entering './upgrade_tool' as this will first display whether it has found your device and also show its mode (i.e. Loader or Maskrom). Maskrom mode allows you to use the 'db' command to download a new bootloader and you can enter the Maskrom mode by erasing the flash with the 'ef' command.


    The tool also allows you to flash individual image files (boot, misc, kernel, recovery and system) as well as the ability to flash the parameter file (e.g. 'di -p' where it will use 'config.ini' for the location of the file) so it can be used similar to the Windows 'RKAndroidTool.exe'.


    For many users one of the key benefits of the 'upgrade_tool' is there is no need to install drivers unlike the Windows tools. For developers it means you can compile, build and flash all from the same Linux machine.

    #2
    Great post! i will be trying it on RR1.8KK soon =]

    Comment


      #3
      process failed

      Hello linuxium,

      I have tried your solution but got a failure message.
      What does I do wrong ?
      Is it possible to use it for RK3086 ?

      Thank you

      MAKEFILE ./MAKE-FLASH: Started ...
      Android Firmware Package Tool v1.0
      ------ PACKAGE ------
      Error:<ParseParamFile> open file failed,err=2!
      ------ FAILED ------
      MAKEFILE ./MAKE-FLASH: Command 'afptool' failed ... exiting.

      Comment


        #4
        Originally posted by patdut View Post
        Hello linuxium,

        I have tried your solution but got a failure message.
        What does I do wrong ?
        Is it possible to use it for RK3086 ?

        Thank you

        MAKEFILE ./MAKE-FLASH: Started ...
        Android Firmware Package Tool v1.0
        ------ PACKAGE ------
        Error:<ParseParamFile> open file failed,err=2!
        ------ FAILED ------
        MAKEFILE ./MAKE-FLASH: Command 'afptool' failed ... exiting.
        The message says there is no parameter file - did you follow step 4 above and have you checked that it is defined correctly in config.ini and package-file?

        Comment

        Working...
        X