Firmware Rockchip 3066 (rk3066) devices on the platform | Creating and modifying firmware for devices on Rockchip 3066 (RK3066



Rep: (90)
Firmware devices on the Rockchip 3066 platform (rk3066)

The topic discusses the creation and modification of firmware devices on Rockchip 3066 (rk3066) and its possible analogues
  • To get started, it is strongly recommended to get acquainted with Forum Rules and Rules section "Android - Development and Programming"
  • Before asking a question, look Android OS FAQandGlossary. Respect your and other people's time.
  • The administration of the resource and the authors of the manuals for the erroneous or incorrect actions of the owners with their device are not liable
  • All operations with your phone, You do at your own risk.
  • Sure tomake a full backup before any manipulations with the device!
  • Before posting photos, read the topic Working with Images on the forum
  • Messages that are not related to the topic of discussion (offtopic) are deleted without warning.
Now the market has a lot of devices built on the basis of Rockchip 3066 and its analogues (tablets, phones and computers). Unfortunately, the manufacturer did not open the SDK and the firmware of these devices is a “black box”. It is proposed in this topic to jointly collect information and develop techniques that will improve the firmware.
Actually created a theme in order to find out what tools are required for picking firmware, programming, building custom on the rk3066 platform.
Tell me what's what :-)
This is the place where we will collect all the information on customizing the firmware on Rockchip 3066 (rk3066). For convenience, I have collected all the tablets on this platform under the profile topics spoiler (maybe not all) and you can search for any information and put it here and you will be thanked :)

Attention!!!

H. Members and owners of devices on Rockchip 3066. A team is going to port the Linux distribution to the RK3066 device!
Requirements: CWM on the tablet (required), Knowledge of English, and Linux. Who is interested, I'll be glad to see the knowledgeable people!Testers are not needed yet!


I. Attention. Important information for "experimenters"

Ii. Possible analogues
RK30xx == RK31xx

Iii. Information - links to posts in the topic

Iv. Tools - links to posts in a topic.

Firmware modifications
A patch that allows you to remove the lower status bar
Attention!!! You can perform these actions if you have a working CWM for your device.

1. Go to CWM

When the tablet is turned off:
1) Do not plug the USB cable! Otherwise, go into the firmware mode, instead of CWM!
2) Press and hold the "Back" key (a small button in the upper corner next to Volume).
3) While holding the back button, press the power button until the screen turns on.
If you hold the power button for too long, the tablet will simply turn on.
4) As soon as the screen lights up, release the back button.
5) Wait a few seconds and the CWM menu will appear.

2. Select "Install zip from SD-card", use the Volume buttons to select the desired file and confirm with the Power button
3. Choose "Reboot system now"
From the author. Moved the mode switch button to the physical button "Back" (the one near the Volume). Because of this, it will be problematic to enter the recovery using this button (maybe it just didn't work out for me), I use any application from which you can boot into the recovery (Titanium Backup, etc.)
If you do not have ClockWorkMod Recovery (but have root), then download the archive, extract the system folder, from it, put the files into the appropriate folders (I follow the structure from the system folder) Root Explorer folder!
We try - we unsubscribe.
Attached fileToggleBar.zip(265.21 KB)



Useful

useful links

Profile Topics
All devices on the rk3066 platform are here. If there is something that is not in the list, write a link to the topic in the LAN.
ICOO D70Pro II
ICOO D70Pro - Discussion
iconBIT NetTAB SPACE II - Discussion
Cube U30GT - Discussion
Cube Mini U30GT - Discussion
Cube U20GT
Cube U19GT - Discussion
Cube U9GT3 CHERRY - Discussion
Cube U9GT5 - Discussion
Cube U9GT4
Cube U18GT - Discussion
Pipo p977
Pipo S2 - Discussion
PIPO Smart-S1 - Discussion
PIPO M1 - Discussion
Pipo M2 - Discussion
Pipo M3 - Discussion
PiPo U1 - Discussion
Window N101 / YUANDAO N101 - Discussion
Window N101-II / YUANDAO N101-II - Discussion
WINDOW N90 DUAL CORE 2 - Firmware - Official firmware (OS)
Window N90 FHD
Window n90 Dual Core - Discussion
Window N70 Dual Core - Discussion
Yuandao WXGD97
Ployer MOMO8 Speed ​​Edition - Discussion
Ployer Momo11 Speed ​​- Discussion
Teclast P85 Dual Core RK3066 - Discussion
Teclast A10 - Discussion
Telefunken TF-MID1002G - Official firmware (Android JB 4.1)
Prestigio MultiPad PMP5570C (7.0 PRO DUO) - Discussion
3Q p-pad RC9724C - Discussion
Texet TM-9747 - Discussion
Texet TM-9740 - Discussion
Hyundai Hold X - Discussion
Hyundai Rock X - Discussion
Starway Andromeda S910 - Discussion
ifive MX
FNF ifive 2 - Discussion
FNF ifive X
Globex GU903C
Archos gamepad
Chuwi v99
Newpad A1 dual
Aoson M11 - Discussion
Aoson M30 - Discussion
WoPad i10 - Discussion
Ugood UG802
DNS AirTab M972w - Discussion
DNS AirTab M972g - Discussion, Tablet
DNS AirTab E75 - Discussion
DNS AirTab P82w
Ross & Moor RMD-730 DUAL
GoClever Tab R83 Mini
GoClever Tab R105BK - Discussion
Freelander PD80 - Discussion
Freelander PD90 - Discussion
ACHO C908 - Discussion
Everising 97S - Discussion
VVSUM K7 - Discussion
Perfeo 9706-IPS - Discussion
Modecom FreeTAB 9702 IPS X2 - Discussion
DNS AirTab E74 - Discussion
Ritmix RMD-745 - Discussion
Telefunken TF-MID1002G - Official firmware (Android JB 4.1)
NATPC X2 has no topic yet
------------------------------------------------------------
HDMI PC:
MINIX NEO X5, TV Box Media Player Andriod 4.1 Discussion and Support
Ugood UG802
MK808 Dual Core Android 4.1 TV BOX Mini PC
Ugood UG802
Ugood UG007


Post has been editedderak1129 - 22.11.19, 15:48
Reason for editing: Forum Rules "Android - Development and Programming" § 2.4.



Rep: (922)
http://vondroid.com/threads/progress-on-ke...or-rk3066.1542/


Post has been editedmixmax1982 - 01.11.12, 13:11



Rep: (6)
I found the most interesting thread on SLD about unpacking and repacking firmware from RockChip
http://www.slatedroid.com/topic/19808-rk29xx-imagetools-v21/

even though it is about rk29xx, but it also fits the rk3066 - the firmware format is the same (checked on unpacking two firmware to Pipo M3).
I didn’t check the packing (I’m not interested in this question yet, maybe later)

system.img opens via ext2explorer

still in the treasury -https://github.com/rk3066/rk-tools
I myself have not yet collected ...



Rep: (90)
RK3066 processor specifications and specifications
Attached Image
Description
Attached Image

RK3066 - low-power, high-performance processor for mobile phones, personal mobile Internet devices and other digital media devices. The integrated RK3066 dual-core ARM Cortex-A9 NEON separate and FPU coprocessor. Lots of powerful embedded hardware solutions provide optimal performance for the end application. RK3066 supports full-length decoding video 1080 pixels at 60 frames per second, as supported by H.264 / MVC / VP8 encoding 1080 pixels at 30 frames per second, a high-quality JPEG encoder / decoder, a special preprocessor and postprocessor for image processing. Built-in 3D GPU makes RK3066 fully compatible with OpenGL ES2.0 and OpenGL ES1.1, OpenVG 1.1. Special hardware 2D engine with MMU display increases productivity and provides high smoothness of operation. RK3066 is a high performance interface to external RAM (DDR3, LPDDR2, LVDDR3), capable of supporting bandwidth-hungry types of memory. Also, the processor supports a full list of peripheral interfaces for a flexible support of different applications: ♦ 2 bank 8-bit / 16-bit NOR Flash / SRAM interface ♦ 8 banks of 8-bit / 16-bit asynchronous NAND Flash, LBA NAND Flashinterfeys and 8-bit synchronous ONFI NAND Flash Interface . Both interfaces are 60-bit ECC ♦ 2 memory rank support up to 2 GB address space of 16 bits / 32 bits DDR3-800, LPDDR2-800, LVDDR3-800 ♦ 3 Channel SD / MMC interface enabled 4.41 MMC, SD 3.0 , SDIO 3.0 or eMMC ♦ 2 channel TFT LCD interface supporting up to 5 layers and 3D display 1920 x 1080 maximum size ♦ 2 HDMI TX interface (version 1.4) that supports 3D-video 1080 at up to 30 frames per second ♦ 2 channel 8 bits CCIR656 interface and 10-bit / 12-bit interface raw data preprocessor for processing images ♦ plurality of audio interfaces 2 dual I2S / PCM interfaces, one 8-channel I2S / PCM interface and SPDIF TX interface ♦ one USB OTG 2.0 and one USB Host 2.0 interface ♦ 10M / 100M RMII interface ♦ High-speed ADC and TS stream interface ♦ a lot of low-speed peripheral interfaces: 5 I2C, 4 UART, two SPI, PWM 4

Functions
1. Microprocessor
Attached Image
♦ Dual high-performance and low-power ARM Cortex-A9 MP Core processor
♦ Full implementation of the ARM v7-A architecture and command system, ARM NEON Advanced SIMD support (one instruction, a lot of data) for accelerated signal processing and other media calculations
♦ Superscalar, variable length, with extraordinary execution of the conveyor with the module of dynamic prediction of conditional transitions, 8 levels of the conveyor
♦ Includes VFPv3 hardware for addition, subtraction, division, multiplication, and square root with single and double precision
♦ SCU provides memory alignment between two cores.
♦ Separate timer and watchdog timer for each core
♦ 32 KB cache of instructions of the first level, 32 KB cache of data of the first level with 4-fold associativity
♦ 512 KB combined (instructions + data) second-level cache
♦ Trustzone technology support
♦ Complete ARM CoreSight debug system:
● Availability for debugging and tracing of whole systems
● ETM trace support
● Aggressive (invasive) and non-invasive (non-invasive) debugging
♦ Four separate power domains with support for internal power switching to the cores and processor units and external on / off switching, depending on the scenario selected by the application:
● PD_A9_0: First Cortex-A9 Core + Neon + FPU + L1 instruction and data cache
● PD_A9_1: Second core Cortex-A9 + Neon + FPU + L1 instruction cache and data
● PD_DBG: CoreSight-DK for Cortex A9
● PD_SCU: SCU + L2 Cache
♦ One isolated power domain to support DVFS
♦ The maximum frequency of the processor in the worst case is 750 MHz with a core voltage of 1.0 V, the normal one is 1.1 GHz with a core voltage of 1.1 V, and a maximum of 1.5 GHz.


2. Memory organization
♦ Built-in memory
● 10 KB BootROM (boot flash)
● 64 KB of integrated SRAM for secure and non-secure access. The size of the protected and unprotected area is set by software.
● 256 KB or 512 KB embedded SRAM together with a second-level cache
♦ External memory
● DDR3-800, 16/32 bit data width, 2 ranks, a total of 2 GB (maximum) address space, for one rank also a maximum address space of 2 GB
● LPDDR-400, 32 bit data width, 2 ranks, only 2 GB (maximum) of address space, for one rank also a maximum address space of 2 GB
● LPDDR2-800, 32-bit data width, 2 ranks, a total of 2 GB (maximum) address space, for one rank also a maximum address space of 2 GB
● Asynchronous SRAM / NOR Flash, 8/16 bit data width, 2 banks, 1 MB (maximum) address space per bank
● Asynchronous NAND Flash (including LBA NAND), 8/16 bit data width, 8 banks, 60 bits ECC
● ONFI NAND Flash synchronous, 8-bit data width, 8 banks, 60 bits ECC


3. Internal memory
♦ Built-in BootROM (boot flash)
● Size: 10 KB
● Supports system boot from the following devices:
■ 8/16 bit asynchronous NAND Flash
■ 8 bit ONFI NAND Flash
■ SPI0 interface
■ eMMC interface
● Support for loading system code through the following interfaces:
■ USB OTG interface
■ UART0 interface
♦ Built-in SRAM
● Size: 64 KB
● Support secure and non-secure access
● The size of the protected and non-protected area is set by software.
● A protected area can be 0 KB, 4 KB, 8 KB, 12 KB, 16 KB, ..., 60 KB, 64 KB
♦ 256 KB or 512 KB built-in SRAM together with a second-level cache for Cortex-A9, the size is set by software

4. External memory or storage devices
Attached Image

♦ Dynamic Memory Interface (DDR3 / LPDDR / LPDDR2)
● Compliant with JEDEC DDR3 / LPDDR / LPDDR2 SDRAM standard
● Data rates up to 800 Mbps (400 MHz) for DDR3 / LPDDR2 and up to 400 Mbps (200 MHz) for LPDDR
● Supports up to 2 ranks of memory (CS signals — chip selection), 2 GB (total) of the address space and up to a maximum of 2 GB of address space per rank, which is software configured
● 16 bits / 32 bits data bus width is set by software
● 5 host ports with 64-bit AXI bus interface for system access, AXI bus frequency asynchronous with DDR clock frequency
● Programmable timing parameters to support DDR3 / LPDDR / LPDDR2 SDRAM from various manufacturers
● Advanced scheduling and command swapping for maximum bus utilization.
● Low power modes, such as power off and self-updating for DDR3 / LPDDR / LPDDR2; LPDDR / LPDDR2 SDRAM stop clocking and deep power down
● Compensation of time delays caused by circuit designs and variable delays through programmable conveyors
● Built-in dynamic frequency drift detector in PHY to compensate for these deviations by the controller
● Programmable output and ODT impedance with PVT dynamic compensation
● Support for one power-saving mode: powering off the DDR PHY and most DDR I / O signals, with the exception of two CS and two CKE output signals, SDRAM runs in self-refresh mode to prevent data loss
♦ Static memory interface (ASRAM / Nor Flash)
● Compatible with standard asynchronous SRAM or Nor Flash
● Supports up to two banks (CS - chip select signals), maximum 1MB of address space per bank
● For Bank 0, the data bus width is set by software at 8 bits / 16 bits, for Bank 1, the data bus width is fixed at 16 bits
● Support for individual data bus lines and address bus, as well as support for data bus multiplex mode and address bus for keeping free I / O lines
♦ NAND Flash Interface
● Supports 8 bit / 16 bit asynchronous NAND flash, up to 8 banks
● Supports 8 bit synchronous DDR NAND flash, up to 8 banks
● LBA NAND flash support in asynchronous or synchronous mode
● Hardware ECC up to 60 bits
● For DDR NAND Flash, 1/4 or 1/8 frequency dividers are supported, the maximum operating frequency is 75 MHz
● For asynchronous NAND flash, configurable time settings supported, maximum data transfer rate of 16 bits / cycle
● Built-in dedicated DMA data interface
● Data transfer along with the main DMAC1 in the SoC system is also supported.
♦ eMMC Interface
● Compatible with standard iNAND interface
● MMC 4.41 protocol support
● Provides a sequence of boot commands for external eMMC devices
● Supports one combined FIFO (32 x 32 bits) for data transmission and reception
● Support to prevent overflow and emptying of the FIFO by automatically stopping the card clocking
● Support CRC generation and error detection
● Host support of control signals for card detection and initialization, as well as for write protection
● Internal frequency divider for software data rate control
● Block size support from 1 to 65535 bytes
● 8-bit data bus width
♦ SD / MMC interface
● Compatible with SD 3.0, MMC 4.41
● Supports one combined FIFO (32 x 32 bits) for data transmission and reception
● Support to prevent overflow and emptying of the FIFO by automatically stopping the card clocking
● Support CRC generation and error detection
● Host support of control signals for card detection and initialization, as well as for write protection
● Internal frequency divider for software data rate control
● Block size support from 1 to 65535 bytes
● The data bus width is flexible to support 1 bit / 4 bit for SD mode and 1 bit / 4 bit / 8 bit for MMC mode

5. System components
♦ CRU (clocking and reset module)
● Support individual clocking of all components within RK3066
● Support of reset management both of the entire SoC at once, and individually of each component separately.
● Supports flexible frequency setting, including various frequency sources, frequency multiplexers and frequency dividers
● Up to 1.5 GHz output frequency for all PLL
● One 24 MHz frequency generator and 4 onboard PLLs
♦ PMU (power management module)
● 7 modes of operation (slow mode, normal mode, standby mode, deep standby mode, stop mode, sleep mode, power off mode) to save power using different operating frequencies or individual clocking of internal modules or power on / off
● Many sources of awakening in different modes
● 9 separate power domains with software on / off for various applications
♦ Timers
● 3 built-in 32 bit timers with interrupt support
● Support two modes of operation: free start and user account
● Support for monitoring timer operation status
● Fixed input frequency 24 MHz
♦ PWM (pulse width modulators)
● 4 built-in pulse width modulators with interrupt support
● Programmable 4-bit scaling factor from the bus APB frequency
● Built-in 32 bit timer / counter feature
● Supports single trigger or continuous pulse width modulation
● Masked interrupt support
● Provides a reference mode and output signal of various duty cycle
● Provides a mode of capture and measurement of the duty cycle of the input signal
♦ Watchdog Timer (WDT)
● 32 bits
● The clock frequency of the meter is taken from the APB bus
● The counter counts from the set value to 0, to indicate the timeout
● WDT can perform two kinds of operations when a timeout occurs:
■ Generate system reset
■ First generate an interrupt and if the interrupt handler does not clear the flag, then during the second timeout, generate a system reset
● Programmable reset pulse duration
● Total 16 defined timeout period ranges
♦ Bus architecture
● 64-bit multi-layer AXI / AHB / APB composite bus architecture
● Five built-in AXI connections:
■ The central processor is connected to three 64-bit AXI master, two 64-bit AXI slave, one 32-bit AHB master and a set of 32-bit AHB / APB slave
■ Peripheral modules are connected to two 64-bit AXI master, one 64-bit AXI slave, one 32-bit AXI slave, four 32-bit AHB master and a set of 32-bit AHB / APB slave
■ The display is connected to six 64-bit AXI master and one 32-bit AHB slave
■ The graphics processor is connected to one 128-bit AXI master and one 32-bit APB slave, they are a type of point-to-point AXI-Lite architecture
■ VCODEC (video encoder / decoder) is also connected to one 64-bit AXI master and one 32-bit AHB slave, they are point-to-point AXI-Lite architecture
● For each connection to the AXI / AHB / APB bus, the clock frequency for the AXI / AHB / APB domains is always synchronous, and various integer dividers are supported for it
● Various flexible solutions based on QoS algorithms to improve bus bandwidth
♦ Interrupt Controller
● Supports 3 interrupt sources of PPI type (Private Peripheral Interrupt) and 76 sources of SPI type (Shared Peripheral Interrupt) incoming from various components inside RK3066
● Support 16 software interrupts
● The input interrupt level is fixed and always high.
● Two output interrupts (nFIQ and n IRQ) per core Cortex-A9, both active low
● Support for different priorities for each interrupt source, configurable by software
♦ DMA controller (DMAC)
● DMA is based on micro code programs.
● Special instruction set provides flexibility for programming DMA data transfers
● DMA function list fully supports fragmented input / output (scatter / gather I / O)
● Support for internal instruction cache
● Built-in DMA control flow
● Supports data transfer from memory to memory, from memory to peripheral units, from peripheral units to memory
● Signals the occurrence of various DMA events using interrupt output signals
● Comparison of the relationship of each channel and different interrupt outputs is configured by software
● Two onboard DMA controllers, DMAC0 for CPU and DMAC1 for peripheral systems
● DMAC0 features:
■ 6 channels in total
■ 11 hardware requests from peripheral systems
■ 2 output interrupts
■ Dual APB slave interface for register configuration, defined as protected and unprotected
■ Support for TrustZone technology and protected state for each DMA channel programmatically specified
● DMAC1 features:
■ only 7 channels
■ 13 hardware requests from peripheral systems
■ 2 output interrupts
■ Does not support TrustZone technology
♦ Protection system
● Support TrustZone technology for the following components inside the RK3066:
■ Cortex-A9 - support for protected and unprotected mode, switches by software
■ DMAC0 - support several specialized channels working only in protected mode
■ eFuse - only Cortex-A9 is available in protected mode
■ Built-in memory - part of the space is addressed only in protected mode, the detailed size is set programmatically together with TZMA (TrustZone memory adapter) and TZPC (TrustZone protection controller)

6. Video Encoder / Decoder (Video CODEC)
♦ Shared internal memory and interface with bus for video decoder and encoder
♦ Video Decoder
● Real-time video decoding of MPEG-1, MPEG-2, MPEG-4, H.263, H.264, AVS, VC-1, RV, VP6 / VP8, Sorenson Spark, MVC
● Supports error detection and masking for all video formats.
● YUV420 output data formats are semi-planar, and YUV400 (monochrome) are also supported for H.264
● H.264 to HP 4.2 level: 1080p @ 60fps (1920 × 1010)
● MPEG-4 to ASP level 5: 1080p @ 60fps (1920 × 1010)
● MPEG-2 to MP: 1080p @ 60fps (1920 × 1010)
● MPEG-1 to MP: 1080p @ 60fps (1920 × 1010)
● H.263: 576p @ 60fps (720CH576)
● Sorenson Spark: 1080p @ 60fps (1920 × 1010)
● VC-1 up to AP level 3: 1080p @ 30fps (1920 × 1010)
● RV8 / RV9 / RV10: 1080p @ 60fps (1920 × 1088)
● VP6 / VP8: 1080p @ 60fps (1920 × 1088)
● AVS: 1080p @ 60fps (1920 × 1088)
● MVC: 1080p @ 60fps (1920 × 1088)
● For AVS, 4: 4: 4 sampling is not supported.
● For H.264, image cropping is not supported
● For MPEG-4, GMC is not supported.
● For VC-1, scaling and range display are supported in the postprocessor image
● For MPEG-4 SP / H.263 / Sorenson spark, a modified H.264 loop filter is used to implement a deblocking filter in the postprocessor module
♦ Video Coder
● Video encoder support for H.264 ([email protected], [email protected], [email protected]), MVC and VP8
● Support only I and P layers, B layers are not supported
● Supports error tolerance based on limited intra prediction and layers
● Input Formats:
■ YCbCr 4: 2: 0 planar
■ YCbCr 4: 2: 0 semi-planar
■ YCbYCr 4: 2: 2
■ CbYCrY 4: 2: 2 with alternation
■ RGB444 and BGR444
■ RGB555 and BGR555
■ RGB565 and BGR565
■ RGB888 and BRG888
■ RGB101010 and BRG101010
● Image size from 96 × 96 to 1920 × 1088 (Full HD)
● Maximum frame rate up to 30 frames per second at a resolution of 1920 × 1080
● Supported data rate from 10 Kb / s to 20 Mb / s

7. JPEG encoder / decoder
♦ JPEG decoder
● Input JPEG file formats: YCbCr 4: 0: 0, 4: 2: 0, 4: 2: 2, 4: 4: 0, 4: 1: 1 and 4: 4: 4 samples
● RAW image output formats: YCbCr 4: 0: 0, 4: 2: 0, 4: 2: 2, 4: 4: 0, 4: 1: 1 and 4: 4: 4 semi-planar
● The size of the decoded image from 48 × 48 to 8176 × 8176 (66.8 megapixels)
● Maximum data rate up to 76 million pixels per second
♦ JPEG encoder
● Format of input RAW images:
■ YCbCr 4: 2: 0 planar
■ YCbCr 4: 2: 0 semi-planar
■ YCbYCr 4: 2: 2
■ CbYCrY 4: 2: 2 with alternation
■ RGB444 and BGR444
■ RGB555 and BGR555
■ RGB565 and BGR565
■ RGB888 and BRG888
■ RGB101010 and BRG101010
● Output JPEG file: JFIF format version 1.02 or Non-progressive JPEG
● The size of the encoded image from 96Ч32 to 8192Ч8192 (67.1 Mp)
● Maximum data rate up to 90 million pixels per second

8. Image enhancement
♦ Image Preprocessor
● Only used in conjunction with HD video encoder inside RK3066, does not support offline operation
● Converts RGB color space to YCbCr 4: 2: 0, compatible with BT.601, BT.709 or custom coefficients
● Provides YCbCr4: 2: 2 color space conversion to YCbCr4: 2: 0 color space
● Support for frame cropping operations from 8192Ч8192 to any size supported by the encoder
● Supports image rotation from 90 to 270 degrees
♦ Video stabilization
● Works in combined mode with HD video encoder inside RK3066 and offline
● Adaptive motion compensation filter
● Support scene detection from video stream and keyframe coding when scene change is noticed.
♦ Postprocessor images (built-in video decoder)
● Combined with an HD video decoder and a JPEG decoder, the postprocessor can receive data directly from the decoder output, to reduce the load on the data bus
● Also can work offline, input data can be from the interface with the camera or any other image data stored in external memory
● Input data formats:
■ any format generated by the video decoder in the combined mode of operation
■ YCbCr 4: 2: 0 semi-planar
■ YCbCr 4: 2: 0 planar
■ YCbYCr 4: 2: 2
■ YCrYCb 4: 2: 2
■ CbYCrY 4: 2: 2
■ CrYCbY 4: 2: 2
● Output data formats:
■ YCbCr 4: 2: 0 semi-planar
■ YCbYCr 4: 2: 2
■ YCrYCb 4: 2: 2
■ CbYCrY 4: 2: 2
■ CrYCbY 4: 2: 2
■ Fully configurable ARGB channel lengths and locations in 32 bits, such as ARGB8888, RGB565, ARGB4444, etc.
● Input image size:
■ In the combined mode: from 48 × 48 to 8176 × 8176 (66.8 megapixels)
■ In offline mode: width from 48 to 8176, height from 48 to 8176, and the maximum size is limited to 16.7 megapixels
■ 16 pixel pitch
● Output image size: from 16 × 16 to 1920 × 1088 (horizontal pitch of 8 pixels, vertical pitch of 2 pixels)
● Support scaling zoom:
■ Bicubic polynomial interpolation with a 4th order filter on the horizon and a 2nd order filter on the vertical
■ Arbitrary scale factor separately for both dimensions, support for fractional coefficients
■ Maximum output image width — 3 times the enlarged input
■ Maximum output image height - 3 times increased input
● Support scaling reduction:
■ Arbitrary scale factor separately for both dimensions, support for fractional coefficients
■ Unlimited scale reduction factor
● Provides YUV to RGB color space conversion compatible with BT.601-5, BT.709 or custom coefficients
● Blur support (2x2 ordered spatial blur, for 4,5.6-bit RGB channel accuracy)
● Programmable alpha channel support and alpha blend operation with the following input overlay formats:
■ 8 bits alpha + YUV444, big endian channel with AYUV8888
■ 8 bits alpha +24 bits RGB, big endian channel with ARGB8888
● Support for deinterlacing with conditional spatial deinterlace filtering, compatible only with the input format YUV420
● Support adjustment of contrast, brightness, color saturation of RGB image
● Supports image cropping and digital zoom only for JPEG or offline operation
● Picture-in-picture support
● Supports image rotation (horizontal reflection, vertical reflection, 90.180 or 270 degree rotation)
♦ Postprocessor images (standalone)
● Memory to memory mode
● Input data formats and sizes:
■ RGB888: 16CH16 to 8191CH8191
■ RGB565: 16CH16 to 8191CH8191
■ YUV422 / YUV420: from 16Ч16 to 8190Ч8190
■ YUV444: 16CH16 to 8190CH8190
● Pre-scaler:
■ integer scale reduction factor (coefficients: 1 / 2,1 / 3,1 / 4,1 / 5,1 / 6,1 / 7,1 / 8) with a linear filter
■ Deinterlacing (up to 1080i) to support YUV422 and YUV420 input formats
● Post Scaler:
■ scale reduction with an arbitrary non-integer coefficient from 1/2 to 1
■ scale increase with an arbitrary non-integer coefficient from 1 to 4
■ 4th order vertical and 2nd order horizontal filters
■ Maximum width of the output image after the post-scaler is 4096 pixels
● Supports image rotation 90.180 or 270 degrees and X-reflection, Y-reflection

9. Graphics engine
♦ 3D Graphics Engine
● Compatible with OpenGL ES1.1 and 2.0, OpenVG1.1
● Four built-in kernel shader
● Separation of vertex (geometric) and fragment (pixel) calculations for maximum parallel bandwidth
● Unified shader architecture
● Provides MMU and 128KB L2 Cache
● Triangle building speed: 30 M triangles / sec
● Pixel rendering speed: 1.4 GP / s
♦ 2D Graphics Engine
● Pixel rendering speed: 300 Mp / s without scaling, 150 Mp / s with bilinear scaling, 75 Mp / s with bicubic scaling
● Bit BLIT operations with support for BLIT stretching, simple BLIT and BLIT filter
● Color fill with gradient fill and pattern fill (pattern)
● Drawing lines with a smoothing filter and a certain width
● High-performance stretching and compressing
● Monochrome text rendering extension
● ROP2, ROP3, ROP4 full alpha blending and transparency
● Alpha blending modes, including the Porter-Duff Java 2 composition rules, color rearrangement, and pattern mask.
● 8K x 8K raster 2D coordinate system
● Rotate to any angles with smoothing on each 2D primitive
● Programmable bicubic filter to support image scaling
● Mixing, scaling and rotation are supported in one pass for BLIT stretch operations
● Source formats:
■ ABGR8888, XBGR888, ARGB8888, XRGB888
■ RGB888, RGB565
■ RGBA5551, RGBA4444
■ YUV420 planar, YUV420 semi-planar
■ YUV422 planar, YUV422 semi-planar
■ BPP8, BPP4, BPP2, BPP1
● Output formats:
■ ABGR8888, XBGR888, ARGB8888, XRGB888
■ RGB888, RGB565
■ RGBA5551, RGBA4444
■ YUV420 planar, YUV420 half-planar only in filtering and pre-scaling mode
■ YUV422 planar, YUV422 half-planar only in filtering and pre-scaling mode

10. Video inputs / outputs
♦ Camera Interface
● 2 independent camera interface controllers
● Support up to 5 MP
● 8 bit CCIR656 (PAL / NTSC) interface
● 8 bit / 10 bit / 12 bit RAW interface
● YUV422 input format with YUV adjustable sequence
● YUV422, YUV420 output format with separate Y and UV space
● Picture-in-Picture (PIP) support
● Support for simple image effects such as sepia, negative, artistic freezing, relief, etc.
● Static histogram support statistics and white balance statistics
● Support for cropping an image under any size window
● Scaling support with arbitrary non-integer coefficient from 1/8 to 8
♦ Display Interface
● Two independent controller displays for HDMI and two TFT panel displays
● Support LCD TFT panels with resolution up to 1920 × 1080
● Support HDMI 1.4 output with 1080p @ 30fps resolution
● Supports TV interface with ITU-R BT.656 (8 bit, 480i / 576i / 1080i)
● Parallel RGB LCD interface: RGB888 (24 bit), RGB666 (18 bit), RGB565 (15 bit)
● Serial RGB LCD interface: 3 × 8 bits with support for RGB delta, 3 × 8 bits with the addition of dummy data, 16 bits complemented by 8 bits
● Microcontroller LCD interface: i8080 to 24-bit RGB
● 5 display layers:
■ One background layer with programmable 24 bit color
■ One video layer (win0)
► RGB888, ARGB888, RGB565, YUV422, YUV420, AYUV
► the maximum resolution is 1920 × 1080
► scaling engine with arbitrary non-integer coefficient in the interval from 1/8 to 8
► 256 levels of alpha blending
► Support for color key transparency
► Support 3D display
■ One video layer (win1)
► RGB888, ARGB888, RGB565, YUV422, YUV420, AYUV
► the maximum resolution is 1920 × 1080
► scaling engine with arbitrary non-integer coefficient in the interval from 1/8 to 8
► 256 levels of alpha blending
► Support for color key transparency
■ One OSD layer (win2)
► RGB888, ARGB888, RGB565, 1/2/4 / 8BPP
► 256 levels of alpha blending
► Support for color key transparency
■ Hardware cursor (win3)
► 2 bit color
► maximum resolution 64 × 64
► 3-color and transparency mode
► 2-color + transparency + inverted mode
► 16 levels of alpha mix
● Supports 180 degree rotation in combined mode with LCD controller or separately
● 3 × 256 × 8 bits LUT display tables
● Win0 and Win1 layers may overlap with substitution
● Support color space conversion: YUV to RGB and RGB to YUV
● Support Deflicker (flicker suppression filter) for interlaced output
● Supports replication operations (16 bits to 24 bits) and blurring (24 bits to 16/18 bits)
♦ HDMI TX 1.4
● Compatible with HDMI version 1.4a, HDCP revision 1.4 and DVI version 1.0
● Supports digital TV (DTV) from 480i to 1080i / p HD resolution, and a PC with VGA to UXGA
● Supports 3D and 2048 × 4096 video resolution
● Programmable two-stream space converter
● Compatible with EIA / CEA-861D
● Supports color depths of up to 12 bits per pixel.
● xvYCC improved colorimetry
● Sending the Gamut Metadata package (Palette Metadata)
● Supports input digital video formats RGB, YCbCr including ITU.656
● 36 bits RGB / YCbCr 4: 4: 4, 16/20/24 bits YCbCr 4: 2: 2, 8/10 / 12bit YCbCr 4: 2: 2 (ITU.601 and 656)
● Standard SPDIF support for stereo or compressed audio up to 192 kHz
● Supports PCM, Dolby digital, DTS digital audio formats via four-bit I2S (up to 8 channels) compatible with IEC60958 or IEC61937
● Supports one-bit audio format (Super Audio CD)
● Support high bit rate audio formats
● Master I2C interface to connect to DDC (display data channel)
● Configuration registers are programmed through a parallel interface.
● Broad bandwidth, up to 2.2 Gb / s

11. Audio Interfaces
♦ I2S / PCM 8 channel
● Up to 8 channels (4xTX, 4xRX)
● Audio data width from 16 bits to 32 bits
● Sampling frequency up to 192 kHz
● Provides master and slave operation modes, software configurable
● Supports 3 I2S formats (normal, left-handed alignment, right-handed alignment)
● Support 4 PCM formats (ahead, 1 late, 2 late, 3 late)
● I2S and PCM cannot be used simultaneously.
♦ I2S / PCM 2-channel
● 2 independent channels (2xTX, 2xRX)
● Audio data width from 16 bits to 32 bits
● Sampling frequency up to 192 kHz
● Provides master and slave operation modes, software configurable
● Supports 3 I2S formats (normal, left-handed alignment, right-handed alignment)
● Support 4 PCM formats (ahead, 1 late, 2 late, 3 late)
● I2S and PCM cannot be used simultaneously.
♦ SPDIF
● Audio data length: 16 bit / 20 bit / 24 bit
● Software configurable sampling rate (48 kHz, 44.1 kHz, 32 kHz)
● Stereo voice playback with two channels

12. External interfaces
Attached Image

♦ SDIO interface
● Compatible with SDIO 3.0 protocol
● Supports overflow and empty FIFO prevention by automatically stopping the card clock signal
● 4 bits data bus width
♦ High speed ADC & TS streaming interface
● Supports dual channel 8 bit / 10 bit interface
● Supports DMA and Interrupt Mode
● Support 8 bit streaming TS interface
● PID filter support:
■ Combined with high-speed ADC interface to implement filtering of original TS data
■ Provides PID filter up to 64 PID channels simultaneously
■ Support for sync byte detection in the transport packet header
■ Support for the detection of a lost packet under the condition of limited bandwidth
♦ MAC 10 / 100M Ethernet Controller
● Fully compliant with IEEE802.3u Ethernet Media Access Controller (MAC) standard
● Support 10 MB / s and 100 MB / s data transmission and reception speeds
● Auto-repeat and automatic removal of the collision frame
● Support full duplex
● Support full-duplex flow control with PAUSE frame
● Address filtering (broadcast, multicast, logical, physical)
● Support only RMII mode
● In RMII mode, the clock frequency can be from RK3066 or from an external Ethernet PHY controller
♦ SPI controller
● 2 channels
● Support for software configurable Master and Slave modes
● Supports DMA or Interrupt Mode
● Two built-in 32-by-16-bit FIFOs for TX and RX operations, respectively
● Supports 2 chip select selects in Master mode
♦ UART controller
● 4 channels
● Supports DMA or Interrupt Mode
● For UART1 / UART2 / UART3 two built-in FIFOs of 32B for TX and RX operations, respectively
● For UART0 two built-in FIFOs of 64B for TX and RX operations, respectively
● Support 5 bits, 6 bits, 7 bits and 8 bits of bit data for reception and transmission
● Standard service bits for asynchronous channels, such as start, stop and parity
● Supports various input frequency sources for the UART controller to achieve data transmission / reception speeds of up to 4 Mbaud or other special speeds.
● Support for non-integer clock dividers for generating data transmission and reception speeds
● Automatic flow control mode is provided only for UART0, UART1, UART2
♦ I2C controller
● 5 channels
● Support Multi-master operation mode
● Supports 7-bit and 10-bit addressing
● Software settable data transmission and reception frequency, up to 400 Kb / s in “fast” mode
● Serial 8-bit and bi-directional data transmissions can be performed at a speed of 100 Kb / s in the “standard” mode
♦ GPIO (General Purpose Input / Output - general purpose input / output ports)
● 6 GPIO port groups (GPIO0 ~ GPIO4, GPIO6), 32 GPIO ports per GPIO0 ~ GPIO4 group, and 16 ports on GPIO6, a total of 176 GPIO ports
● All GPIO ports can be used to generate interrupts to Cortex-A9 cores
● GPIO6 ports can be used to “wake up” the system from the stop, sleep or power saving mode
● A pull-up resistor to the power supply (pull-up) or to the ground (pull-down) can be programmatically connected to all GPIO ports.
● All ports are pulled by default to power or ground except for GPIO15 (PWM 3)
● All GPIO ports after power on are in input mode - default mode
♦ USB Host2.0
● Compatible with USB Host2.0 specification
● Mode support: high-speed (480 MB / s), full-speed (12 MB / s) and low-speed (1.5 MB / s)
● Provides 16 channels in Host mode
● Support cyclic transfers in host mode
♦ USB OTG2.0
● Compatible with USB OTG2.0 specification
● Support high-speed (480Mb / s), full-speed (12Mb / s) and low-speed (1.5Mb / s) modes
● Supports up to 9 endpoints in “Device” mode, in addition to end point 0
● Supports up to 6 input endpoints in Device mode, including end point 0
● End points 1/3/5/7 can only be used as input end points.
● Endpoints 2/4/6 can only be used as output endpoints.
● End points 8/9 can be used as input and output end points
● Provides up to 9 channels in “Host” mode

13. The rest
♦ Temperature sensor
● 2 sensors based on bipolar transistors
● 2 channels of 12-bit sequential approximation ADC (SAR ADC)
● Temperature measurement error ± 5 degrees
♦ sequential approximation ADC (SAR-ADC)
● Four 10-bit channels
● Conversion speed varies from 0.1 to 1 Msps (sps - sample per second)
● The frequency of the input signal of the ADC should not exceed 1 MHz
● DNL (differential nonlinearity) is less than ± 1 LSB, INL (integral nonlinearity) is less than ± 2.0 LSB
● Current in power saving mode no more than 0.5 µA for analog and digital logic
● Analog interface power 2.5 V (± 10%)
♦ eFuse
● 256 bits (32 × 8) high density electronic fuse
● Programming conditions: VDDQ should be 2.5 V (± 10%)
● Programming time about 4 ~ 6 µs
● Reading conditions: VDDQ must be 0 V or cast.
● Supports power saving and standby mode
♦ Power supply range
● 1.1 V core power (± 10%)
● Power supply of 3.3V, 2.5V or 1.8V I / O lines and interfaces (± 10%)
♦ Technological process
● TSMC 40 nm LP
♦ Enclosure type
● TFBGA453LD 19 mm x 19 mm (ball size 0.4 mm; ball pitch 0.8 mm)
Attached Image
Attached Image
Attached Image
Attached Image
Attached Image
Attached Image




Post has been editedarturlip - 03.11.12, 13:07



Rep: (90)
Documentation onRockchip RK3066
Short descriptionRockchip RK3066
Brief technical manualRockchip RK3066
Typical layout of the tablet onRockchip RK3066
Technical description of the kernelARM Cortex-A9 MP Core
Technical descriptionARM Cortex-A9 NEON
Technical descriptionARM Cortex-A9 FPU

Post has been editedarturlip - 03.11.12, 16:58



Rep: (90)
Instructions for unpacking the .img firmware image on the RK3066 platform
You need linux for unpacking (you can also use VirtualBox (if you know what you are doing))

1. We load utilities for unpacking. They are available here:
https://github.com/rk3066/rk-toolsas a zip file.
2. Unpack them and run make
If the build fails, you may need to deliver the libssl-devel package
3. Run the unpacker
./img_unpack ./pipo_m1_jb_TNT_R3Y.img result
./afptool -unpack result.
4. The file system is in system.img. Mount it:
mkdir system
sudo mount -o loop ./system.img ./system
5. You can shove files into the archive for study on Windows:
sudo tar -zcvf system.tar.gz ./system
6. Well, you can unmount the unnecessary file system of the device
sudo umount / dev / loop0
the device name (in my case, loop0) can be found by typing mount

Post has been editedarturlip - 03.11.12, 17:12



Rep: (90)
Firmware via RKBatchTool
Firmware via PC, laptop or netbook.

Make sure the drivers are installed correctly. If the drivers are not installed, or the green box does not light up, change the usb port or usb cable, for firmware it is advisable to use the USB port v2.0.

it is necessary:
* the first time you use your PC in conjunction with an android device, install the necessary USB driver.
* Before flashing the tablet, charge the tablet preferably up to 80%, make sure that the driver is installed correctly.
on pc:
* download archive with firmware
* extract the firmware file from the archive (the firmware file extension should be IMG)
* Download the program BatchTool V1.5 for firmware device
* unpack to any convenient folder for you
* run the file RKBatchTool.exe
* click on the "..." button and specify the location of the firmware file
For tablet:
* Turn off the tablet and hold down the "+" button and the "on" button (within 3-5 seconds) and connect the USB cable.
* Wait for the port with number 1 on the PC screen in the BatchTool V1.5 program window to be highlighted in green and release the buttons on the tablet. (only a green square is required)
* After the green square appears, click on the "upgrade" button and wait for the process to finish
In no case do not pull out the usb cable from the tablet / USB ports !!!
* wait until the end of the process
If the firmware is successfully completed, the tablet will turn on and load automatically.
You can then disconnect the USB cable.

Post has been editedarturlip - 09.12.12, 11:18



Rep: (922)
I parse img files using Wendal Tools from under Windows. And the resulting system.img file can be opened using WinImage.



Rep: (6)
mixmax1982 @ 11/08/2012, 23:55*
I disassemble img files with Wendal Tools from under Windows

And I built rk-tools under Cygwin - everything works fine too.



Rep: (922)
By the way, the patch for the removal of the Siatus bar works only for Android 4.0.4! On 4.1 does not want!



Rep: (21)
ubuntu will be soon
http://www.slatedroid.com/topic/40717-ubun...093#entry453093



Rep: (90)
khot
That's how we will discuss everything here: happy:



Rep: (90)
Instructions for obtaining a firmware dump from the device.

What we need: a rudimentary device on the pk3066 and a computer with Windows.
1. (i) downloadhttp://www.mediafire.com/?o8p6j90rrb369fkandhttp://dl.dropbox.com/u/18839428/ADB%20Made%20Easy.msi
(Ii) install "adb made easy" and extract "romdump" into the folder "C: \ Program Files \ ADB Made Easy"
2. Open "Developer Tools" on your device and enable "USB lay-out"
3. Connect the device to the computer and agree to install the drivers.
4. Open "adb made easy" and click on "open cmd for adb cammand"
5. Now we enter

adb push romdump / data / local /
adb shell chmod 04755 / data / local / romdump
adb shell / data / local / romdump


After that you will find the folder "romDump" on the memory card. Simply extract them to your computer and create your own firmware.

Post has been editedarturlip - 16.11.12, 21:36



Rep: (1)
Poured ubuntu to your CUBE U30GT
Adress userdata 0x00152000
If someone understands what I mean: D



Rep: (90)
xxAntoXAxx,
Share the secret: happy:



Rep: (1)
Everything is still very far from being launched, I only uploaded the files to Ubunt.
Right now I will compile the kernel here, if something like that:https://github.com/AndrewDB/rk3066-kernel
This is AndrewDB repository. It was he who launched Ubuntu on this process.proof



Rep: (90)

Is it under ubuntu sources or under android?
+ Fresh! 7 hours ago ...



Rep: (1)
Yes, it is under the Ubuntu kernel



Rep: (1)
After sitting for a couple of hours, I still collected Kernel
Attached filekernel.img(6.67 MB)


Sew it through RKAndroidTool
All ok device starts percent heated, but the screen does not show and the backlight does not work.
For a long time I struggled with this problem, recompiled the kernel with two different compilers.
But that's not the point, the kernel is all okay!
Just the source of our Kernel for the MK808 Mini PC, but it does not have a screen.

So, we sew up this kernel and connect it via hdmi to the TV set!
I do not have a cable to buy continue to work!



Rep: (1)
I apologize for the greater activity in the topic: D
Compiled another Kernel from source:https://github.com/omegamoon/rockchip-rk30xx-mk808
Attached filekernel.img(6.06 MB)

And got a very amazing result!
After flashing this Kernel on my Cube U30GT-H, I launch the tablet and almost immediately two Linux penguins appear in the upper left corner!
I will smoke what kind of penguins: D



Rep: (26)
xxAntoXAxx,
try to put Lubuntu.
P.S at the very lubuntu laptop.
I would help you, only the tablet is not with me now ((.

Post has been editedNeuyazvimyi - 20.11.12, 00:18


Full version    

Help     rules

Time is now: 25/07/20, 20:21