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...
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:...
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;...
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...
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.)
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.
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...
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...
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.
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.
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.
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 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...
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.
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. ...
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...
Need help?
Do you have a question about the G3128 and is the answer not in the manual?
Questions and answers