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
  Reply
#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
  Reply
#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
  Reply
#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.
  Reply
#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
  Reply
#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
  Reply
#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.
  Reply
#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.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Exclamation Android 9: HDMI and PCI not working cetygamer 0 45 08-20-2019, 03:46 AM
Last Post: cetygamer
  Android Geekbench Results dazza5000 0 162 08-19-2019, 09:45 AM
Last Post: dazza5000
  Android 7.1.2 Source Code dazza5000 3 60 08-18-2019, 12:38 AM
Last Post: tllim
  Android 9 from eMMC with ayufan SPI uboot octavian 1 78 08-17-2019, 07:39 PM
Last Post: dazza5000
  android Tv SBCraok 3 164 08-06-2019, 04:12 PM
Last Post: dazza5000
  How to build Android P SDK licux 4 280 07-18-2019, 12:39 PM
Last Post: dazza5000
  RockPro64 Build Environment Docker Container dazza5000 0 68 07-17-2019, 01:22 PM
Last Post: dazza5000
  Source code Android pececitozipi 30 3,376 07-16-2019, 10:24 AM
Last Post: dazza5000
  Kernel files (to be able to build kernel modules) cetygamer 1 313 07-11-2019, 06:50 AM
Last Post: cetygamer
  Install Playstore on Android 8.1.0 Domo 4 2,514 07-06-2019, 05:09 PM
Last Post: Diesel141

Forum Jump:


Users browsing this thread: 1 Guest(s)