How to Resize Partitions and Update Firmware in MXQ-4K TV Box (Rockchip RK3229)

Since I’ve received MXQ-4K Android TV box yesterday, I have started to play with it, and so far I can’t say I’m impressed, as while the device automatically detected the maximum resolution (3840×2160 @ 60 Hz) for my television, I could not play any of my 4K samples smoothly with either the pre-installed Kodi 15.2, Video and Video Player apps, there’s no power off mode (only standby), and the “internal partition” is only 0.96GB large which can quickly become an issue if you plan on installing several apps.

MXQ-4K_Storage

Since GeekBuying has released the stock firmware, I decided to try to adapt the method to resize the partitions for GeekBox (RK3368) to MXQ-4K.

Rockchip RK3229 Firmware Modding

I’ve used a computer running Ubuntu 14.04, and assume you have most tools pre-installed. The first step is to download the firmware (MXQ-4K_ota_ok_20160127.img update.img), and install the tools to extract it :


The last step will do the job, and the output should look like:


You’ll need to download and run RK_ParamEd.exe. It’s a windows program, but it runs just fine in Ubuntu with wine :


Now open output/parameter-rk322x-trust in the program, and change userdata partition size to a value larger than currently, and to be safe I increased the size to 4096 MB.

Click to Enlarge
Click to Enlarge

Now save the file overwriting parameter-rk322x-trust.

Now you are supposed to us mkupdate.sh script to create the firmware file, but remember the tools we have installed are for Rockchip RK3368 based Geekbox device, so we have to make a few modifications. First edit mkupdate.sh and replace the line:


with:


We can also see Loader.bin is linked to RK3368 bootloader, and it’s probably a good way to brick your device if you don’t change this:


So let’s do use RK3229 bootloader instead


Copy one more file and run the script:


That’s the output of the script:


So now our new update.img should have a cool 4096MB partitions. Let’s check this by flashing the firmware.

Flashing MXQ-4K (Rockchip RK3229) Firmware

You’ll need a toothpick or other non-conductive sharp object, and a USB type A to USB type A cable.

Make sure MXQ-4K is turned off, insert the toothpick in the S/PDIF connector until you press the button, and keeping pressing while you power on the device, and release the button after a few seconds. If nothing shows on the HDMI screen, it’s probably a good sign.

Now connect the USB cable between the USB port on the rear panel of MXQ-4K and your computer, and the following upgrade_tool command if you are using Linux:


If successful, the output should look like:


The complete process will take a while, and the system will automatically boot to Android with the very first boot taking a little longer than usual. I could then get to the Android launcher, so at least I did not brick the device. But what about the partition size?
MXQ-4K_Larger_PartitionNot quite the 4GB space I expected, but 3.81GB is still good to me. Missing accomplished. I’ll share my image (887 MB) if somebody is interested.

If you are using Windows, you should be able to upgrade the firmware by using RKBatchTool 1.8, and following these instructions.

If you want other tips and tricks for MXQ-4K,  you may want to check out Carlos Garcés’ Blog where you’ll find how to root the device, and enter recovery mode.

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK Pi 4C Plus

20 Replies to “How to Resize Partitions and Update Firmware in MXQ-4K TV Box (Rockchip RK3229)”

  1. @marchi
    OK. I’ll upload it, it will take a few hours. You’ll need to use use upgrade_tool in Linux, or one of the Windows based Android tool (RKbatchTool I think).

    @CGarces
    It’s not mandatory, and actually you can edit the parameter file with any text editor, it’s just safer to use RK_ParamEd.exe. I did not know about resize.sh script, and if it does the same then it’s a better option.

  2. @cnxsoft
    Do you know if the March stock rom has the same partitions size than february version? If it has the same, it will be in your mind in the future to make the same partitions size changes and update your image? Thanks!

  3. @Marko_vl
    I’ve tested it. They’ve increased the size to 1.44GB. I don’t plan to provide the firmware each time, as I’ve already posted the instructions, and I hope somebody else with thee box will be motivated to do it, and share the file.

  4. @Hany
    I don’t think SD cards can be used as “internal storage” partition in Android, can they? That is unless you boot Android from the SD card, but I don’t think there’s an image yet.

  5. if can give me the link for custom firmware ? pls upload the edit room here or send it to my email

  6. @olivier
    You can install VirtuboxBox on Windows 10, and run Ubuntu from there.
    Alternatively, a Windows 10 “Anniversary update” is coming by the beginning of next month with “Windows Subsystem for Linux”, so you’d be able to run the command above right within Windows.

  7. Hello and thank you for your answer. unfortunately I do not know .I do ‘m going back to 4.4 because no other solution . thank you

Leave a Reply

Your email address will not be published. Required fields are marked *

Khadas VIM4 SBC
Khadas VIM4 SBC