PINE64
how to build Stock Android Oreo 8.1 from source code for rock64? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Android on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=87)
+--- Thread: how to build Stock Android Oreo 8.1 from source code for rock64? (/showthread.php?tid=6882)



how to build Stock Android Oreo 8.1 from source code for rock64? - frankwz - 11-26-2018

i build the Android source 8.1,but not succcess boot from sd card,anybody know why ??
i just want to run the sdcard boot image for rock64 board by build it myself by http://files.pine64.org/os/sdk/ROCK64/ROCK64_RK3328_android8.1.tar.gz source code.
rock64 img from (http://wiki.pine64.org/index.php/ROCK64_Software_Release#Android_8.x_eMMC) this is ok,
but why myself build is not work

any guy know why?
how  should i do , or change something?

I have a rock64  board(mem  1g),and i have download the ROCK64 Android Oreo ver8.1 SDK from link http://files.pine64.org/os/sdk/ROCK64/ROCK64_RK3328_android8.1.tar.gz.
i have setup the android build environment for ubuntu16.04.1 LTS desktop,and build the source success
source build.sh

and i get the image in rockdev/Image-rk3328_box
vps@ubuntu:~/rk3328v81_box$ uname -r
4.15.0-39-generic
vps@ubuntu:~/rk3328v81_box$ uname -a
Linux ubuntu 4.15.0-39-generic #42~16.04.1-Ubuntu SMP Wed Oct 24 17:09:54 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
vps@ubuntu:~/rk3328v81_box$ ls -al rockdev/Image-rk3328_box/
total 2727264
drwxrwxr-x 2 vps vps       4096 Nov 23 07:49 .
drwxrwxr-x 3 vps vps       4096 Nov 23 07:47 ..
-rwxrwxr-x 1 vps vps    1048576 May 15  2018 baseparameter.img
-rw-rw-r-- 1 vps vps    1491516 Nov 23 07:47 boot.img
-rw-rw-r-- 1 vps vps   18970644 Nov 23 02:44 kernel.img
-rw-rw-r-- 1 vps vps     162126 Nov 23 02:31 MiniLoaderAll.bin
-rwxrwxr-x 1 vps vps      49152 May 15  2018 misc.img
-rw-rw-r-- 1 vps vps     168060 Nov 23 07:49 oem.img
-rwxrwxr-x 1 vps vps        981 May 15  2018 parameter.txt
-rw-rw-r-- 1 vps vps      49152 May 15  2018 pcba_small_misc.img
-rw-rw-r-- 1 vps vps      49152 May 15  2018 pcba_whole_misc.img
-rw-rw-r-- 1 vps vps    9260688 Nov 23 07:47 recovery.img
-rw-rw-r-- 1 vps vps      95232 Nov 23 02:50 resource.img
-rw-rw-r-- 1 vps vps 1201701108 Nov 23 07:48 system.img
-rw-rw-r-- 1 vps vps    4194304 Nov 23 02:31 trust.img
-rw-rw-r-- 1 vps vps    4194304 Nov 23 02:31 uboot.img
-rw-rw-r-- 1 vps vps 1396378072 Nov 23 07:49 update.img
-rw-rw-r-- 1 vps vps  154861692 Nov 23 07:49 vendor.img

but when i flash the update.img to sd card,
Win32DiskImager or SD_Firmware_Tool.

the board could note boot success!
[Image: rock64.jpg]


RE: how to build Stock Android Oreo 8.1 from source code for rock64? - shripal17 - 01-31-2019

Hi, did you figure out a solution yet? I am facing the exact same issue


RE: how to build Stock Android Oreo 8.1 from source code for rock64? - jonsmirl - 03-13-2019

The Android source is set up to use the flash. You are booting from SD card and don't have a flash module. I tried screwing around with the source to adjust it to work from only SD card. I gave up after a while and bought a flash module.

It is unable to mount things because it is trying to mount them from the flash device.


RE: how to build Stock Android Oreo 8.1 from source code for rock64? - aurel - 03-16-2019

Hi,

What is the way to compile ? I tried 'source build.sh' but Build uboot failed ? Am I missing some tools ?

Thanks


RE: how to build Stock Android Oreo 8.1 from source code for rock64? - shripal17 - 03-17-2019

(03-13-2019, 02:52 PM)jonsmirl Wrote: The Android source is set up to use the flash. You are booting from SD card and don't have a flash module. I tried screwing around with the source to adjust it to work from only SD card. I gave up after a while and bought a flash module.

It is unable to mount things because it is trying to mount them from the flash device.

I don't have an EMMC Module and don't wish to buy one as I am using Rock64 in one of my products and EMMC Module is costlier as compared to SD Cards.

It would be better if Pine64 provides a patch file to fix things. They have released Android Oreo 8.1.0 Image for SD Boot so they should have the working source code with them.

(03-16-2019, 06:16 AM)aurel Wrote: Hi,

What is the way to compile ? I tried 'source build.sh' but Build uboot failed ? Am I missing some tools ?

Thanks

Probably. Posting the error logs on del.dog and sending the link here would allow me to help you