Hybus Co. LTD Revision. 1.0
Table of Contents 1. Revision History 2. Overview 2.1 Product Introduction 2.2 Package Contents 2.3 Black Diagram 3. Features 3.1 Hardware Specification 3.2 Software Specification 3.3 External Interface Introduction 3.3.1 LCD Interface 3.3.2 Camera Interface 3.3.3 I/O Expansion Connector 3.3.4 Debug Serial 3.3.5 Micro SD 3.3.6 Audio Jack & DC Jack 3.3.7 Ethernet 3.3.8 HDMI 3.3.9 USB 4. HOST System Requirements 4.1 Requirement System 4.2 Setting Up Terminal Emulation 5. Getting Started 5.1 Development Package Installations 5.1.1 JDK Installation 5.1.2 Android System Requirement Package Installation 5.1.3 BSP Installation Page 1
6. Development Tutorial 6.1 Build 6.1.1 Kernel Build 6.1.2 Android Build 6.2 Image Writing 6.3 DVD Package Page 2
1. Revision History Revision Data Description Author Remark 1.0 2014.08.11 - Initial Draft - - Page 3
2. Board Overview 2.1 Product Introduction RK1 Board 는 low Power, High Performance 의 AP(Application Processor) 인 RockChips 사의 RK3028A 를기반으로되어있다. RK3028A 는 Cortex-A9 Dual Core(1GHz@1.1V, 25 ) 를중심으로 I2C, SPI, HDMI, USB, SD/MMC, emmc, UART, I2S, Carema, LCD, PWM 등의다양한 Peripheral 로구성되어져있다. 특히 LCD Interface 의경우 LVDS Transceiver 가내장되어있고, Audio CODEC 이내장되어있다. RK1 Board 는아래와같이다양한어플리케이션들에이용할수있다. HMI(Human Machine Interface) PDA Tablets PC PMP MID(Mobile Internet Device) Navigation Device 2.2 Package Contents RK1 Board (90 x 60 cm) RK1 USB to Serial Module (30 x 12 cm) Serial Cable (15 cm) 5V/1.5A Adaptor RK1 Support CD - Schematics - ADB Driver - Rockchip USB Driver - BSP - Image - RKDevelopTool_v1.37 Page 4
Page 5
2.3 Block Diagram Page 6
3. Features 3.1 Hardware Specification System Storage Display Audio Connectivity I/O Expansion Power Supply Processor Memory NAND FLASH SD LVDS Interface LCD Interface HDMI Camera Interface Audio Codec USB 2.0 Host USB2 2.0 OTG Ethernet UART I2C PWM UART SPI GPIO SAR-ADC Specifications Rockchip RK3028A Cortex -A9 Dual Core 1.0GHz 32KB/32KB L1 + 256KB L2 Cache 16KB BootROM + 8KB internal SRAM 512MB DDR3-1066 (2GB max) 4GB Nand Flash(MLC) Micro SD, SD2.0 support 135MHz, LVDS standard support RGB Interface (15, 18,24-Bit) Max output resolution 1920 x 1080 Complies with HDMI 1.4a / 1080p@60Hz Support up to 5M pixels 8bits CCIR656, 8bits raw data interface 18 to 24 bit High Order Sigma-Delta modulation for DAC for >93 db SNR Support 16ohm to 32ohm Head Phone/Speaker Phone Output USB A Type Dual Connector Mini USB 5P Connector RJ45, 10/100Base Debugging Serial 1ch. Up to 400Kbps 2ch. 2ch. Up to 4Mbps 1ch. Support 2 chip- select 6ch. 3-channel single-ended 10-bit SAR analog-to-digital converter(optional) DC 5V/2A Input [3.5Pi DC Jack] Page 7
3.2 Software Specification Item Device Drivers (Kernel ver.3.0.35) Description NAND flash Audio CODEC(earphone & HDMI) WLAN (RTL8188 USB Dongle) SD/MMC (T-flash) 10/100 IEEE802.1 Ethernet USB (2xHost & 1xOTG) UART (debug serial & expansion) Display (LVDS & HDMI) CMOS camera GPIO (expansion) I2C (expansion) SPI (expansion) Platform Android 4.2.2 JellyBean Page 8
3.3 External Interface Introduction 3.3.1 LCD Interfacee No.1 Connector Parts Number : 05002HR-30J01 (Yeon Ho) No. Symbol Description No. Symbol Description 1 VSYS DC 5V 2 VSYS DC 5V 3 VSYS DC 5V 4 VDD_V33DD DC 3.3V 5 VDD_V33D DC 3.3V 6 VDD_V33DD DC 3.3V 7 8 LVDS_TX0N LVDS Data0-9 LVDS_TX0P LVDS Data0 + 10 11 LVDS_TX1N LVDS Data1-12 LVDS_TX1P LVDS Data1 + 13 14 LVDS_TX2N LVDS Data2-15 LVDS_TX2P LVDS Data2 + 16 17 LVDS_CLKN LVDS Clock - 18 LVDS_CLKP LVDS Clock + 19 20 LVDS_TX3N LVDS Data3-21 LVDS_TX3P LVDS Data3 + 22 23 PWM0 PWM(Brightness Control) 24 LCD_GPIO1 GPIO 25 LCD_GPIO2 GPIO 26 LCD_GPIO3 GPIO 27 LCD_IRQ Interrupt( Touch Interrupt) 28 LCD_SCL I2C Serial Clock 29 LCD_SDA I2C Data Line 30 Page 9
3.3.2 Camera Interface No.1 Connector Parts Number : 05002HR-30J01 (Yeon Ho) No. Symbol Description No. Symbol Description 1 VSYS DC 5V 2 VSYS DC 5V 3 4 VDD_V33DD DC 3.3V 5 VDD_V33D DC 3.3V 6 CIF_D0 Camera Data0 7 CIF_D1 Camera Data1 8 CIF_D2 Camera Data2 9 CIF_D3 Camera Data3 10 CIF_D4 Camera Data4 11 CIF_D5 Camera Data5 12 CIF_D6 Camera Data6 13 CIF_D7 Camera Data7 14 15 CIF_HSYNC Horizontal sync 16 CIF_VSYNCC Vertical sync 17 18 CIF_PWREN0 Power Enable0 19 CIF_PWREN1 Power Enable1 20 CIF_GPIO1 GPIO 21 CIF_GPIO2 GPIO 22 CIF_IRQ Camera Interrupt 23 24 CIF_SDA I2C Data Line 25 CIF_SCL I2C Serial Clock 26 27 CIF_MCLK Cameraa Master Clock 28 29 CIF_PCLK Camera Pixel Clock 30 Page 10
3.3.3 I/O Expansionn Connector Connector Parts Number : 2.54mm Female Header Dual Row 32pin (H : 8.5mm) No. Symbol Description No. Symbol Description 1 VSYS DC 5V 2 VDD_V33DD DC 3.3V 3 VSYS DC 5V 4 VDD_V33DD DC 3.3V 5 I2C_SDA0 I2C Data Line 6 VDD_V33DD DC 3.3V 7 I2C_SCL0 I2C Serial Clock 8 9 PWM1 PWM 10 UART_TX2 Serial Transmit(RS232)_ch2 11 12 UART_RX2 Serial Receive(RS232)_ch2 13 GPIO3_D1 GPIO 14 PWM2 PWM 15 GPIO3_D2 GPIO 16 17 GPIO3_D3 GPIO 18 UART_RTSn2 UART 2ch RTS / GPIO 19 VSYS DC 5V 20 UART_CTSn2 UART 2ch CTS / GPIO 21 SPI_MOSI SPI MOSI 22 23 SPI_MISO SPI MISO 24 GPIO3_D4 GPIO 25 SPI_CLK SPI Clock 26 SPI_CSn0 SPI Chip Select0 27 28 SPI_CSn1 SPI Chip Select1 29 GPIO3_D5 GPIO 30 31 GPIO3_D6 GPIO 32 Ext_nReset System Reset Page 11
3.3.4 Debug Serial No.1 RK1 Serial cable RK1 USB to Serial Module Connector Parts Number : 53014-04 ( Molex) RK1 Serial Cable No. Symbol Description No. Symbol Description 1 2 UART_TX0 Debug Serial Transmit 3 UART_RX0 Debug Serial Receive 4 Page 12
3.3.5 Micro SD Micro SD Card : Compatible with SD2..0 FAT32 File System Page 13
3.3.6 Audio Jack & DC Jack DC Plug Audio Plug DC Jack : DC Plug 1.3mmm 사용 ( 1.3 x 3.5 x 9.5mm) Audio Jack : 3.5mm 3 극 Audio Plug 사용 (4 극사용시 earphone detect 기능비활성 ) 3.3.7 RJ45 ACT/LINK LED SPEED LED ACT/LINK LED Speed LED Status Description Status Description Off No Link Off 10Mbps connection Blinking Data Activity On(Orange) 100Mbps connection On(Green) Link Page 14
3.3.8 HDMI HDMI Connector : HDMI Type A Plug Support HDMI 1.4 outpu up to 1080p@30fps Page 15
3.3.9 USB USB A Type USB Mini USB Host : USB A type Plug USB OTG : USB Mini-B (5pin) Page 16
4. HOST System Requirements 4.1 Requirement System CPU : Intel Quad Core 1.7GHz 이상 RAM : 8GB HDD : 100GB (SWAP30GB 포함 ) OS : Ubuntu 13.04 64bit <Notice#1> Android 4.2.2 버전은시스템을빌드시사용하는리소스가크기때문에충분한메모리공간이필요로한다. 최소 4GB 가필요하나, 이경우메모리부족으로빌드에러가종종발생할수있으므로, RAM 8GB 이상을권장합니다. 또한 swap 공간도넉넉히두는것을권장. <Notice#2> Build Image Download 및 Serial Debugging 을위한 USB Port 가 2 개필요로한다. 4.2 Setting Up Terminal Emulation - Debugging Serial 을사용하기한다. 위해서는 RK1 Board 의 Option Board 인 Debug Serial B/D 가필요로 Select COM Port Setting Page 17
Configure the COM Port Parameters as show below Page 18
5. Getting Started 5.1 Development Package Installations 5.1.1 JDK Installation 1. firefox 로아래경로에접속하여 jdk-6u26-linux-x64.bin 을다운받는다. <Link>http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloadsjavase6-419409.html#jdk-6u32-oth-JPR 2. Terminal 을실행. 3. 터미널에서다음과같이입력하여 JDK 설치과정을진행. $ cd Downloads ; download 경로로이동 $ chmod a+x jdk-6u26-linux-x64.bin ; 설치파일실행권한변경 $./jdk-6u32-linux-x64.bin -i console ; 설치파일실행 $ sudo mv jdk1.6.0_32 /usr/lib/jvm/jdk1.6.0_32 ; 자바경로이동 $ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_32/bin/javac 1 $ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_32/bin/java 1 $ sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_32/bin/javaws 1 ; 아래명령어로 default java 를선택한다. ; 아래의세개명령어를실행하였을때나타나는선택목록에서모두 jdk1.6.0_32 를선택한다 ; Nothing to configure. 라고나오면그냥넘어가면된다 $ sudo update-alternatives --config javac $ sudo update-alternatives --config java $ sudo update-alternatives --config javaws ;.bashrc 파일을열어환경변수로 java 를등록해준다. $ vi ~/.bashrc ; vi 편집기로.bashrc 파일을 open ; 다음내용을.bashrc 파일의맨아래에입력후저장 export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_32 PATH=$PATH:$JAVA_HOME/bin; Page 19
5.1.2 Android System Requirement Package Installation $ sudo apt-get install git-core gnupg flex bison gperf g build-essential -y $ sudo apt-get install zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs -y $ sudo apt-get install x11proto-core-dev libx11-dev lib32readline-gplv2-dev lib32z1-dev -y $ sudo apt-get install libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown -y $ sudo apt-get install libxml2-utils xsltproc -y 5.1.3 BSP Installation - 압축된 BSP 파일의압축을해제한다. Ex) tar zxvf 140707 rk3028_rel.tgz Page 20
6. Development Tutorial 6.1 Build - Android platform Build 하려면 Kernel Build 가완료된이미지인 kernel.img가있어야하므로, Kernel Build 먼저실행하고 Android platform Build 진행한다. 6.1.1 Kernel Build 1) kernel 디렉토리로이동. # cd kernel 2) Kernel config 를한다 # make rk3028a_box_defconfig 3) Kernel Build 한다. # make kernel.img j4 (cpu 코어갯수 ) 4) 빌드된이미지확인 # ls kernel.img Page 21
6.1.2 Android Build 1) Kernel Build 후상위디렉토리로이동. # cd.. 2) Android Build # make j4 한다. (cpu 코어갯수 ) Page 22
3) 빌드가끝나면이미지를 생성합니다. #./mkimage.sh 4) 생성된이미지확인 # ls rockdev/image <Notice> Builded Images Path Images kernel.img boot.img system.img recovery.img misc.img kernel/ rockdev/image rockdev/image rockdev/image rockdev/image Path Page 23
6.2 Image Writing 6.2.1 Images required Images Bootloader image Parameter file Kernel image Boot image Android system root image Recovery root image Misc image Paths RK3028ALoader(L)_V2.13..bin parameter_3028 kernel.img boot.img system.img recovery.img Misc.img 6.2.2 Image writing 1) RKDevelopTool.zip의압축해제후 RKAndroidTool. exe 실행 ( 단이미지 Writing 인 RKAndroidTool 은 Windows XP 이상의 PC에서만사용가능.) 1 2 3 4 5 이미지다운로드및 Write 에대한실행로그 6 7 1 Check box 2 Address 3 Name 4 Path 5 Log 6 Run 7 clear Image를 write하기위해 check Image를 write할주소 Image의이름 Image의경로 Image download / write시기록되는로그 Image write Log clear Page 24
2) Image load 3) 타겟보드를 PC에연결하기위해 USB OTG 케이블을연결한다 4) 아래사진에표시되어 있는버튼 (SW4) 을누른 채로전원을인가한다 Page 25
5) PC가새로운디바이스로인식하면 드라이버를 설치한다. 드라이버는 RKDevelopTool\Driver에 있으므로, 환경에맞는 드라이버를 설치한다. 6) 드라이버설치가정상적으로완료되면다음과같이연결된것을확인할수있다. 7) EraseIDB 버튼을누르면 NAND가초기화된다. Page 26
8) RUN 버튼을누르면 fusing이시작된다. 9) Writting 작업이끝나면타겟보드가자동으로재부팅된다. 10) 재부팅이완료되면 자동으로 Android로부팅이완료된다. Page 27
6.3 DVD Package 1) 구성 2) 내용 a. BSP : Boot-loader, Kernel, Android 통합 BSP 압축파일 b. Image : DVD 에 포함된통합 BSP 로 Build 한 Image. c. Schematic : RK1 의회로도 d. Utility : Image Writing 용 Windows 용유틸 RKAndroidTool 및 PC Driver 과 Windows PC 기반개발을위한 ADB Driver Page 28