e8db6e60

This is the standard Rockchip build instructions

Please refer to the build instructions in device_buzztime_common for the Scorpio build instructions

get the source

  mkdir scorpio_src
  cd scorpio_src
  tar -xvf <source-path>/3128-6003-6.0_hw_20170517.tgz
  tar -xvf <source-path>/repo_6003.tgz
  mv .repo 3128-6003-6.0

Build Steps

  1. uboot compile
make distclean
make clean
make rk3128_defconfig
make 

After completed compile, uboot.img will be created in u-boot root directory

  1. kernel compile
make rockchip_dy_defconfig
verify [Suport USB UART Bypass Function] is not checked  
  cd kernel  
  make menuconfig  
  System Type---> 
     [] Support USB UART Bypass Function
  <Save>, <Exit>
make rk3128-86v.img

if kernel was cleaned or build fails for missing gsl_point_id.o : cp kernel/drivers/input/touchscreen/gsl_point_id.o.bak kernel/drivers/input/touchscreen/gsl_point.o

After completed compile, kernel.img, resource.img will be created in kernel root directory

  1. Android compile SDK root directory provided build.sh script, it used for config the JDK7 environment variable, please config the JDK according to actual compile environment, and execute "make" command.
 source build/envsetup.sh
 lunch

choice rk312x-userdebug °∞For example£∫

Lunch menu... pick a combo:
     1. aosp_arm-eng
     2. aosp_arm64-eng
     3. aosp_mips-eng
     4. aosp_mips64-eng
     5. aosp_x86-eng
     6. aosp_x86_64-eng
     7. mini_emulator_arm64-userdebug
     8. m_e_arm-userdebug
     9. mini_emulator_mips-userdebug
     10. mini_emulator_x86_64-userdebug
     11. mini_emulator_x86-userdebug
     12. rk312x-eng
     13. rk312x-user
     14. rk312x-userdebug

Which would you like? [aosp_arm-eng]
input£∫14°±

make -j8

After completed compile, execute mkimage.sh script which under SDK root directory, it will create firmware to rockdev/Image-rk312x directory.

  1. Create firmware image TODO: bring this step up to speed. Currently afptool,rkImageMaker, parameter.txt and package-file need to be copied into rockdev, but rockdev isn't created until the ./mkimage step. ./mkimage.sh

  2. Source Updates: RKUpdateService
    StorageSettings.java