How to create the img file to use with etcher once you build the android SDK?
#1
How do we construct the single .img file like the one that is distributed on the wiki after we build the Android ROM?

I found these steps for flashing:

rkdeveloptool is here: http://opensource.rock-chips.com/wiki_Rkdeveloptool
Get the board into bootrom mode. Short the two pins next to the LEDs and hit reset.

Code:
cd rockdev/Image-rk3328_box
rkdeveloptool db MiniLoaderAll.bin
rkdeveloptool ef
rkdeveloptool gpt parameter.txt
rkdeveloptool ppt
rkdeveloptool ul MiniLoaderAll.bin
rkdeveloptool wlx uboot uboot.img
rkdeveloptool wlx trust trust.img
rkdeveloptool wlx misc misc.img
rkdeveloptool wlx baseparameter baseparameter.img
rkdeveloptool wlx resource resource.img
rkdeveloptool wlx kernel kernel.img
rkdeveloptool wlx dtbo dtbo.img
rkdeveloptool wlx vbmeta vbmeta.img
rkdeveloptool wlx boot boot.img
rkdeveloptool wlx recovery recovery.img
rkdeveloptool wlx system system.img
rkdeveloptool wlx vendor vendor.img
rkdeveloptool wlx oem oem.img
rkdeveloptool rd
#2
There is a file at the very bottom here:


https://wiki.pine64.org/index.php/ROCKPr...re_Release


Under the section: Miscellaneous tools

I would like to know how to do this same process on linux
#3
Hi, dazza5000,
Did you manage to write the compiled OS on your RockPro? I\'ve compiled mine from sources and I've just written a few partitions but now it boots directly into Maskrom.\

I haven't had any luck in the past with Android 7.1 compiled from sources either.
Not sure what I'm doing wrong but it drives me crazy, especially that I only need to modify something in the device tree (enable SPI bus).

Also when I'm deflating the SDK archive, tar tells me that there are some corrupted files, still I was able to compile it without any fatal errors.

I did use your Docker container for the build environment, it's a very big help, thank you!

Do you have any advice for me? I would greatly appreciate some help.

Thanks,
Octavian
#4
(07-18-2019, 01:02 PM)dazza5000 Wrote: How do we construct the single .img file like the one that is distrIibuted on the wiki after we build the Android ROM?

I found these steps for flashing:

rkdeveloptool is here: http://opensource.rock-chips.com/wiki_Rkdeveloptool
Get the board into bootrom mode. Short the two pins next to the LEDs and hit reset.

Code:
cd rockdev/Image-rk3328_box
rkdeveloptool db MiniLoaderAll.bin
rkdeveloptool ef
rkdeveloptool gpt parameter.txt
rkdeveloptool ppt
rkdeveloptool ul MiniLoaderAll.bin
rkdeveloptool wlx uboot uboot.img
rkdeveloptool wlx trust trust.img
rkdeveloptool wlx misc misc.img
rkdeveloptool wlx baseparameter baseparameter.img
rkdeveloptool wlx resource resource.img
rkdeveloptool wlx kernel kernel.img
rkdeveloptool wlx dtbo dtbo.img
rkdeveloptool wlx vbmeta vbmeta.img
rkdeveloptool wlx boot boot.img
rkdeveloptool wlx recovery recovery.img
rkdeveloptool wlx system system.img
rkdeveloptool wlx vendor vendor.img
rkdeveloptool wlx oem oem.img
rkdeveloptool rd

I believe the tool you're looking for is located in `$SDK_ROOT/RKTools/Linux/Linux_Pack_Firmware`.
Reading the `mkupdate.sh` script, it seems to be doing exactly that. Not sure how the OTA packages for install in recovery are created, but those should have a .zip extension.
#5
Hi octavian - i downloaded the sources a few times and each time the tool indicated a corruption during expansion.

I have successfully built the image, but haven't got the board to try it on yet.

These are the instructions I used:

https://forum.pine64.org/showthread.php?...1#pid47621
#6
(07-18-2019, 01:02 PM)dazza5000 Wrote: How do we construct the single .img file like the one that is distributed on the wiki after we build the Android ROM?

I found these steps for flashing:

rkdeveloptool is here: http://opensource.rock-chips.com/wiki_Rkdeveloptool
Get the board into bootrom mode. Short the two pins next to the LEDs and hit reset.

Code:
cd rockdev/Image-rk3328_box
rkdeveloptool db MiniLoaderAll.bin
rkdeveloptool ef
rkdeveloptool gpt parameter.txt
rkdeveloptool ppt
rkdeveloptool ul MiniLoaderAll.bin
rkdeveloptool wlx uboot uboot.img
rkdeveloptool wlx trust trust.img
rkdeveloptool wlx misc misc.img
rkdeveloptool wlx baseparameter baseparameter.img
rkdeveloptool wlx resource resource.img
rkdeveloptool wlx kernel kernel.img
rkdeveloptool wlx dtbo dtbo.img
rkdeveloptool wlx vbmeta vbmeta.img
rkdeveloptool wlx boot boot.img
rkdeveloptool wlx recovery recovery.img
rkdeveloptool wlx system system.img
rkdeveloptool wlx vendor vendor.img
rkdeveloptool wlx oem oem.img
rkdeveloptool rd

Hi dazza5000,

This is the tool you're looking for, to create images that can be written with etcher. SD_Firmware_Tool._v1.46, you can find this in the RKTools directory in the SDK, however it's only for windows.

Btw, did you get your board? I was able to build mine but I'm having some weird problems with the U-boot from the SPI flash, it works if I just bypass it though Smile
#7
I need a linux tool! I got my board yesterday and have been able to boot one of the android 7.1 images, but not the others. I think I might not have enough power, but also not sure.
#8
Try the SDCard versions as well (on an SDCard of course) It seems to be way more stable at the moment, slower but stable.
tllim said he'll release 8.1 SDK as well, so it might be worth giving the precompiled images a chance as well, I remember n the past that 8.1 worked nicely.
#9
Hello,

I am also interested to do so, were you successfull ? could you help ?

Thanks

Aurel


Possibly Related Threads…
Thread Author Replies Views Last Post
  Difficulty installing Android on Rockpro64 spammycheese 0 2,685 02-17-2023, 05:31 AM
Last Post: spammycheese
  Using Android and the Playstore grobbs 0 2,590 06-04-2022, 12:18 AM
Last Post: grobbs
  Android TV miguelangelaj 2 2,881 06-03-2022, 11:23 AM
Last Post: miguelangelaj
  Control Fan in Android miguelangelaj 2 2,363 06-03-2022, 11:22 AM
Last Post: miguelangelaj
  Slash TV Android for RockPro64 Wizzard 12 10,784 04-24-2022, 08:13 AM
Last Post: Rocklobster
  DRM support in Android Wizzard 2 2,613 02-03-2022, 09:16 PM
Last Post: Johnmo89
  Install Playstore on Android 8.1.0 Domo 14 24,491 04-16-2021, 02:13 AM
Last Post: Wizzard
  Install Playstore on Android 7.1.2 Domo 6 13,820 04-16-2021, 02:10 AM
Last Post: Wizzard
  Kodi crashing in Android 9 Wizzard 2 3,930 04-16-2021, 02:03 AM
Last Post: Wizzard
  Install Playstore on Android 9 image ddimension 18 27,464 02-13-2021, 12:52 AM
Last Post: chisteven

Forum Jump:


Users browsing this thread: 1 Guest(s)