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
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]
  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 9.0 and Pluto on Rock64-1G missdeenola 1 1,084 03-12-2021, 01:38 PM
Last Post: Wizzard
  broken android microsd images jbach50 1 872 01-16-2021, 09:57 PM
Last Post: jimsurvak
  Android on Rock64 SD Problem ElBoluTony 3 1,563 10-07-2020, 12:10 PM
Last Post: ElBoluTony
  Error! Android Rockchip tools method BowerR64 0 669 09-18-2020, 08:12 PM
Last Post: BowerR64
Lightbulb Any older versions of Android for the Rock64? BowerR64 2 1,333 09-18-2020, 07:58 PM
Last Post: BowerR64
  Can't boot android 9 on rock64 maks2204 5 2,742 09-09-2020, 08:44 AM
Last Post: BowerR64
  Boot Android from USB? Max_H 3 2,244 09-09-2020, 08:26 AM
Last Post: BowerR64
Question Regular Android build for Rock64? fender90 18 8,796 09-09-2020, 08:04 AM
Last Post: BowerR64
  Cannot flash android 9 rockchip tool totalgaara 2 1,750 09-09-2020, 07:05 AM
Last Post: BowerR64
  Utility to make Android SDCard image jonsmirl 2 1,838 09-09-2020, 06:59 AM
Last Post: BowerR64

Forum Jump:


Users browsing this thread: 1 Guest(s)