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 Oreo 8.1 source code shinymetal 10 1,573 07-18-2019, 01:37 PM
Last Post: dazza5000
  How to build Android 9 for the Rock64 dazza5000 1 71 07-17-2019, 11:47 AM
Last Post: dazza5000
  Rock64 poor community situation totalgaara 2 204 07-13-2019, 03:12 AM
Last Post: totalgaara
  Android 9 for Rock64? Blinky 38 5,212 07-08-2019, 06:37 PM
Last Post: tllim
  Android Images (ROCK64) pineadmin 59 32,778 06-27-2019, 09:25 AM
Last Post: AlexS
  Cannot flash android 9 rockchip tool totalgaara 0 94 06-22-2019, 03:47 AM
Last Post: totalgaara
  Rock64 Android 9 source code now available jonsmirl 4 296 06-13-2019, 07:28 PM
Last Post: jonsmirl
  Rooting Android TV 7.1 for Rock64? x79ftw 0 144 05-30-2019, 12:17 AM
Last Post: x79ftw
  RK3328 officially updated to Android 9 ycllwl 3 746 04-29-2019, 12:05 AM
Last Post: kostaman
  Android 8.1 Bluesman 1 272 04-14-2019, 11:55 PM
Last Post: Blinky

Forum Jump:


Users browsing this thread: 1 Guest(s)