how to build Stock Android Oreo 8.1 from source code for rock64?
#1
Photo 
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/RO...8.1.tar.gz source code.
rock64 img from (http://wiki.pine64.org/index.php/ROCK64_...d_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/RO...8.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
[email protected]:~/rk3328v81_box$ uname -r
4.15.0-39-generic
[email protected]:~/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
[email protected]:~/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]
  Reply
#2
Hi, did you figure out a solution yet? I am facing the exact same issue
  Reply
#3
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.
  Reply
#4
Hi,

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

Thanks
  Reply
#5
(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
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Android Images (ROCK64) pineadmin 63 35,182 09-20-2019, 09:54 AM
Last Post: elik745i
  Android 9 for Rock64? Blinky 41 6,421 09-15-2019, 05:39 PM
Last Post: R_V
  port Rock64 to Lineage OS? noob 9 1,799 09-11-2019, 10:11 PM
Last Post: noob
  ROCK64 USB WIFI 802.11B/G/N (RTL8188EU) admiral_andersen 0 49 09-07-2019, 04:21 AM
Last Post: admiral_andersen
  Stock Android Oreo 8.1 release tllim 48 18,139 08-27-2019, 09:34 PM
Last Post: Trispy
  Latest Android Build and associated kernel source Vasant 4 248 08-20-2019, 07:01 PM
Last Post: Vasant
  Android 9 + DAC addon card with rock64 AlexS 0 79 08-08-2019, 03:10 AM
Last Post: AlexS
  How to build Android 9 for the Rock64 dazza5000 10 558 07-30-2019, 12:42 AM
Last Post: AlexS
  Storage in Android kevin 1 213 07-29-2019, 07:05 PM
Last Post: DonnaAlfaro
  Android Oreo 8.1 source code shinymetal 10 1,818 07-18-2019, 01:37 PM
Last Post: dazza5000

Forum Jump:


Users browsing this thread: 1 Guest(s)