Advertisement

Quick Links

G3128
Single Board Computer
Development Manual
Shenzhen Graperain Technology Co., Ltd.
www
.graperain.com/

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the G3128 and is the answer not in the manual?

Questions and answers

Summary of Contents for Graperain G3128

  • Page 1 G3128 Single Board Computer Development Manual Shenzhen Graperain Technology Co., Ltd. .graperain.com/...
  • Page 2: Copyright Statement

    Copyright Statement Copyrights of this manual belong to Shenzhen Graperain Technology Co., Ltd. and all rights are reserved. Any companies or individuals are not allowed to extract part or all of this manual, and violators will be prosecuted under law.
  • Page 3 Release Notes Version Release Date Author Description Rev.01 2018-8-20 David Revision...
  • Page 4 Any questions about the manuals, you can call our landline or email us. Website: http://www.graperain.com Landline:+86 755 23025312 E-mail: supports@graperain.com Sales and Service Network Shenzhen Graperain Technology Co., Ltd. Website: http://www.graperain.com Landline: +86 755 23025312 E-mail: sales@graperain.com Address: Building A, Huafeng Tech. & Innov. Park Baoan Wisdom Valley, Xixiang, Baoan...
  • Page 5: Table Of Contents

    Catalogue Copyright Statement.....................2 1.1 Install Ubuntu OS by U-disk....................7 Chapter 1 Setting up Android Platform Development Environment......7 1.2 Install Dependent Package of Android Source Code............8 1.3 Install Cross-complier Tool....................10 1.4 Specify GCC Cross-complier..................... 10 2.1 Install Android Source Code Package................12 Chapter2 Compiling Android Source Code Package...........
  • Page 6 5.2.2 Connect Device....................... 27 5.2.3 Take AndroidTool Update Firmware..............28 Chapter 6 Product Portfolio..................34 5.3 Update Firmware When Off-line................31 System on Module Series................... 34 Development Board Series..................34 Single Board Computer (SBC) Series................34...
  • Page 7: Chapter 1 Setting Up Android Platform Development Environment

    Chapter 1 Setting up Android Platform Development Environment Please install Linux operating system in PC which could fully play PC performance as compiling Android source could ask for high requirements in PC hardware. We use Ubuntu14.04 64bit system in this chapter. Please keep the same as our version. 1.1 Install Ubuntu OS by U-disk Tool:...
  • Page 8: Install Dependent Package Of Android Source Code

    Step3: Re-start computer, and enter into BIOS setting menu, and take U-disk launch. Generally, the desktop computer press DEL key, and notebook computer F2, or F10 enter into BIOS. Done setting, save and quit. Step4: Re-start it one more time, and Ubuntu installation interface will be, please check your language and go on;...
  • Page 9 JDK 8 JDK 7 git-core,gnupg,flex,bison,gperf,libsdl-dev,libesd0-dev,libwxgtk2.6-dev, libwxgtk2.8-dev,build-essential,zip,curl,libncurses5-dev,zlib1g-dev,libxml2-utils, genromfs,lsb-core,libc6-dev-i386,g++-multilib,lib32z1-dev,lib32ncurses5-dev, u-boot-tools, android-tools-fastboot,Texinfo,lib32readline-gplv2-dev,gcc-multilib,libswitch-perl, gcc-arm-linux-gnueabihf All software package needed: sudo apt-get update sudo apt-get upgrade sudo apt-get install g it-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev libwxgtk2.8-dev build-essential zip curl libncurses5-dev zlib1g-dev libxml2-utils genromfs lsb-core libc6-dev-i386 g++-multilib lib32z1-dev lib32ncurses5-dev u-boot-tools android-tools-fastboot Texinfo...
  • Page 10: Install Cross-Complier Tool

    root@david:/usr/lib/jvm# java -version Till now, done JDK8 installation. Install manually DK7: Install manually jdk1.7 in Ubuntu: Step1: Execute following order: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-set-default Step2: Re-start the system Step3: Check Java version: root@david:/usr/lib/jvm# java -version Till now, done jdk7 installation.
  • Page 11 Solution: Install 4.4 version sudo apt-get install gcc-4.4 g++-4.4 g++-4.4-multilib Done installation, and downgrading version gcc cd /usr/bin sudo mv gcc gcc.bk sudo ln -s gcc-4.4 gcc sudo mv g++ g++.bk sudo ln -s g++-4.4 g++ Check version and done downgrading: david@david-work:~$ gcc -version gcc: unrecognized option '-version' gcc: no input files...
  • Page 12: Chapter2 Compiling Android Source Code Package

    Chapter2 Compiling Android Source Code Package G3128 single board computer is of eMMC memory as fault. State: Take ordinary permissions when compiling image. Done compiling, following images happen: uboot.img,kernel.img,resource.img,boot.img,recovery.img,misc.img, system.img,update.img。 uboot.img: bootloader, which used to guide kernel kernel.img:kernal image resource.img: source files image system.img: android file system image...
  • Page 13: Compiling Source Code

    2.3 Compiling Source Code 2.3.1 Checking Compiling Assistance Do following command to checking usage of mk script ./mk.sh –h 2.3.2 Compiling Uboot Do following command and compiling uboot. Save uboot.img file into out/release catalogue when compiling done. ./mk.sh -u -j=4 2.3.3 Compiling Kernel Do following command to compiling Android kernel in Android source code catalogue: ./mk.sh...
  • Page 14 2) make menuconfig ARCH=arm (Manual configuration, and save it.) 3) cp kernel/.config kernel/arch/arm/configs/g3128_defconfig (Updating configuration files.) 4) ./mk.sh -k (Compiling kernel one more time.)
  • Page 15: Chapter 3 Compiling Linux Qt Source Code

    Chapter 3 Compiling Linux QT Source Code G3128 single board computer is of standard eMMC. State: Take ordinary permissions when compiling image. Done compiling, following images will be happend: uboot.img,kernel.img,resource.img,linux_system.img, uboot.img: bootloader, which used to be guide kernel. update_linux.img。 kernel.img: which is kernel image.
  • Page 16: Compiling Uboot

    Do following command to check mk script details out: ./mk.sh –h 3.3.2 Compiling Uboot Do following command to compiling uboot in Linux source code catalogue and then save the image uboog.img into out/release: ./mk.sh -u -j=4 Do following command to compiling kernel in Linux source code catalogue : 3.3.3 Compiling Kernel ./mk.sh -k -j=4...
  • Page 17: Configuration File System

    2) make menuconfig ARCH=arm (Manual configuration and save it when done configuration) 3) cp kernel/.config kernel/arch/arm/configs/g3128_defconfig ( Update configuration files) 4) ./mk.sh -k (Compiling kernel again) 3.5 Configuration File System The name of configuration file is rootfs/buildroot/configs/rk3128_rootfs_defconfig,and configuration process is: 1) cp configs/rk3128_rootfs_defconfig .config (Copy it) 2) make menuconfig (Manual configuration in rootfs/buildroot, and save it after...
  • Page 18: Chapter 4 Programming Android Image Files

    In Ubuntu Environment to upgrade firmware. Preparation: Insert power charger with G3128 single board computer, and connect OTG cable with PC, and connect serial cable with PC, and open serial terminal and command terminal; Power on, and press Update key, meanwhile press Reset key, and upgrade automatically.
  • Page 19: Connect Device

    Notice: 1)Support xp,win7_32,win7_64,win8_32,win8_64 OS. 2)Done installation of XP OS, still hint find new device, please take automount “自动安装” 3)Click quit drive and install drive then if old drive version found before installation. 4.2.2 Connect Device Run AnroidTool.exe tool in AndroidTool, and find following interface: 1)...
  • Page 20 Press Update key, and connect G3128 single board computer with PC through OTG cable. Done connection, take off Update key will be ok. And the board will enter into MASKROM, and waiting for programming to upgrade. 2)When the G3128 single board computer have been programmed firmware before: Power the board, and connect the board with PC through OTC, press Update key, and meanwhile press Reset key, re-start the board, take off Update key will be ok.
  • Page 21: Take Androidtool To Upgrade Firmware

    4.2.3 Take AndroidTool to Upgrade Firmware In last sections described how to install RK USB drive and how to connect with PC. No matter blank board or upgraded board, once done upgraded and connect well, just upgrade its firmware will be ok: Or upgrade uboot, kernel and resource firmwares one by one, or upgrade its firmware update.img.
  • Page 22: Update Firmware By Tf Card When Off-Line

    LOADER mode: Update every firmware, and check the firmware which need to be upgraded, and click‘执行’ Or upgrade unit firmware update.img, check update.img, and click ‘升级’ 4.3 Update Firmware by TF Card When Off-line. When board power on, the CPU will boot from SD card boot preferentially, and then guide. There are two functions of SD Card Boot: Upgrade and Run.
  • Page 23 function: Tool:SD_Firmware_Tool.exe Steps: Step1, Run SD_Firmware_Tool.exe in PC, and like following picture: Step2, Insert TF into PC, and software tool will find TF card, like: Step3, In function mode, check “固件升级”, “选择升级固件” ( which means zipped firmware update-android.img in Android) Step4, Click “开始创建”...
  • Page 24 check format not, yes, upgrade then. Upgrading: Step 5, Done upgrade.
  • Page 25 Step6, Pull out TF card, and insert it into the board, and power, and it upgrade automate. Done upgrade, following printing information shows: 85.661371] ret = 0 86.507524] ret = 0 librkupdate_ INFO:Start to download uboot,offset=0x2000,size=4194304 librkupdate_ INFO:Start to download misc,offset=0x6000,size=49152 librkupdate_ INFO:Start to download resource,offset=0x8000,size=3768320 librkupdate_ INFO:Start to download kernel,offset=0x10000,size=20463636 librkupdate_ INFO:Start to download boot,offset=0x1c000,size=1991896...
  • Page 26: Chapter 5 Programme Linux-Qt Image File

    Preparation: Power on G3128 sbc, connect the board with PC through OTG cable, and serial ports too. Visit serial terminal and command terminal in PC. Then, press Update key, and meanwhile press Reset key, and enter into upgrade mode.
  • Page 27: Connect Device

    Notes: Support XP, Win7_32, Win_64, Win8_32, Win8_64 OS. Please take automate installation when XP done installation, but the system still hint  find new device.  Click quit drive and then install drive if old version drive found before installation. ...
  • Page 28: Take Androidtool Update Firmware

    and waiting for programme. 4)For the board which have been programmed firmware before. Power on, connect the board with PC through OTG cable, press Update key, and meanwhile press Reset key, and re-start the board. Pull off Update key will be ok. And then the board will enter into LOADER mode, and waiting for programme, and interface likes: 5.2.3 Take AndroidTool Update Firmware In last sections described how to install RK USB drive and how to connect board with PC.
  • Page 29 firmware in one time. Run AndroidTool.exe tool in AndroidTool file. MASKROMM mode updating: Update every firmwares separetly: click wanted firmware, and click ‘执行’; Or update unit firmware update_linux.img: Check update_linux.img, and click ‘ 升 级 ’ LOADER mode updating: Update every firmwares separately: Check firmware and click ‘执行’...
  • Page 30 Or update unit firmware update_linux.img: Check firmware update_linux.img, and click ‘升 级 ’...
  • Page 31 5.3 Update Firmware When Off-line When board power on, the CPU will boot from SD card boot preferentially, and then guide. There are two functions of SD Card Boot: Upgrade and Run. Here is SD card upgrade function: Tool:SD_Firmware_Tool.exe Details: Step1, Run SD_Firmware_Tool.exe in PC ( Here is SD_Firmware_Tool._v1.46), likes: Step2, Insert TF card into PC, and software will find TF, likes:...
  • Page 32 Check “固件升级”, and check the firmwares (here means update-android.img in Android) which need to be updated . Click “开始创建”, and updating. One dialog box pops up when click “开始创建”, hints format or not, yes “是”, and start updating. Updating: Done update.
  • Page 33 Pull out TF card, and insert it into G3128 board, power on, and it will upgrade automatically. Done upgrade, and its printing information goes as: 85.661371] ret = 0 86.507524] ret = 0 librkupdate_ INFO:Start to download uboot,offset=0x2000,size=4194304 librkupdate_ INFO:Start to download misc,offset=0x6000,size=49152...
  • Page 34: System On Module Series

    G6818 SOM ( Samsung S5P 6818) G3288 SOM (Rockchip RK3288 stamp hole) GR3288 SOM (Rockchip RK3288 Immersion Gold MXM ) G3128 SOM (Rockchip RK3128 Immersion Gold MXM ) G3399 SOM (Rockchip RK3399 stamp hole) GR3399 SOM (Rockchip RK3399 Immersion Gold MXM )

Table of Contents