Archive

Posts Tagged ‘aosp’

Android 8.0 Oreo Launched, OS Images, and AOSP Source Code Released

August 22nd, 2017 No comments

Google has now formally announced Android O version and name: Android 8.0 Oreo. We already had seen the new Features in Android O-reo during the first preview release with picture-in-picture support, autofill APIs, adaptive icons and so on. There’s also a new Android Oreo character…

If you want to run the latest Android 8.0 on your device, you can do so on Nexus 5X, Nexus 6P, Nexus Player, Pixel C, Pixel, and Pixel XL by getting the firmware in the download page, unless you are enrolled in Android Beta Program in which case you should receive it automatically. What I did not see (yet) is a joint announcement for a new Android 8.0 phone like last year LG V20 smartphone with Android 7.0, and Google simply said that “by the end of this year, hardware makers including Essential, General Mobile, HMD Global Home of Nokia Phones, Huawei, HTC, Kyocera, LG, Motorola, Samsung, Sharp and Sony are scheduled to launch or upgrade devices to Android 8.0”.

You can also get Android 8.0 source code in AOSP using android-8.0.0_r4 tag:

 

Getting Started with MediaTek X20 Android Development Board

July 17th, 2017 No comments

Thanks to CNX for helping me get a hand on the 96Boards compliant Mediatek X20 board that was generously donated by Seeed Studio. In this article, I will walk through the steps to get the board up and running and also compile Android from the source code. The current Android is version 6.

Unboxing the Beast

Figure-1 : DHL Packet

Figure-2 : MediaTek X20 Box

Figure-3 : Standoff, board and instructions

Figure-4 : Front Facing

Figure-5 : Powerful tiny MediateTek chip

Figure-6 : Side Shot

Figure-7 : Backside Shot

Figure-8 : Multiple Antenna

First Boot Up

The board boots up from the eMMC, and the first time you boot up you will get Android screen as shown in Figure-9. This is the default Android image from the factory, which surprisingly looks like it was setup for a phone screen mode, which is not sufficient for a HDMI monitor. It would be better to install the images that are made available at Linaro website or build your own. See the other section to flash the board with different images.

Figure-9 : Out-of-the-box Android

Figure-10 : Partition mount information

Switching to Fastboot Mode

Flashing image files are done using fastboot tool in bootloader mode. There are 2 ways to switch to bootloader mode. To prepare the board to be flashed it will need pin 3 (USB Host Set) located at the back of the board as shown in Figure-11 to be set to OFF

Figure-11 : Switch OFF pin 3

Method 1

The first method requires that you boot your board into Android. Power the board and let it boot to Android. Once it boots to Android you can switch to bootloader mode by typing

Once it switch to bootloader mode you can use the fastboot to flash the image

Method 2

The 2nd method require the xflash tool which can be downloaded from the following link http://builds.96boards.org/releases/helio-x20/mediatek/aosp/16.10/mediatek-x20-aosp-16.10.tar.xz. Unzip the file and you will see something like Figure-12.

Figure-12 : Tools and Image files

Extract xflash.tar.gz and you will see something like Figure-13.

Figure-13 : Inside xflash.tar.gz

Unplug the power supply, and plug your computer USB cable to the micro USB cable of the board and run the xflash tool as follow

The location of MT6797_Android_scatter.txt can be found inside the <your_unzip_mediatek>/Images/Normal Image/ as shown in Figure-14

Figure-14: Scatter File

Power up your board after running the xflash tool. You will see print out on the screen as shown below.

Once you see the text ‘END’ the board has been switched to bootloader mode, and is ready to be flashed.

Flashing Android Image

Before flashing the new Android image make sure your board is indeed in bootloader mode by running the following command

You know that you are in bootloader mode, once you get a reply like the following

You can either flash using the image files provided by Linaro or build your own custom image. You can download a ready made image file from http://builds.96boards.org/releases/helio-x20/mediatek/aosp/16.10/mediatek-x20-aosp-16.10.tar.xz (the image file are inside the <directory>/Images/Normal Image).

The extracted mediatek-x20-aosp-16.10.tar.xz wil look like Figure-15.

Figure-15: All image files

Copy all the different files inside /Normal Image and /Special Image to a separate folder and flash the files using the fastboot command as follows:

Building From Source

Android 6.0 is supported on the X20 board. Use the following command to checkout the AOSP source code

You will need to download the binary drivers from Linaro website. The driver binary can be downloaded from https://builds.96boards.org/releases/helio-x20/mediatek/aosp/latest/. Download the file called sla.tar.gz and unzip it. You will see something like Figure-16.

Figure-16 : Content of sla.tar.gz

Copy the contents of device/, prebuilts/ and vendor/ into the AOSP directory. After completing the copy steps follow the steps below to start compiling

  1. source build/envsetup.sh
  2. lunch
  3. You will be shown the selection like Figure-17

    Figure-17 : Lunch menu

  4. Select 8 (or even 9)
  5. make -j10

Once the build process is complete, you will see list of files as shown in Figure-18.

Figure-18 : Local image files

The image files are now ready to be flashed to the board. Use the same flashboot commands as above to flash the new compiled image.

Mediatek X20 Board Info and Antutu Benchmark

I’ll complete this guide by showing the info provided by CPU-Z and Antutu benchmark for the board for people wanting such details.

Click to Enlarge

Click to Enlarge

Click to Enlarge

If you’re interested in the board, you can purchase it for $199 plus shipping on Seeed Studio.

References:

  1. http://builds.96boards.org/releases/helio-x20/mediatek/aosp/16.10/
  2. http://www.96boards.org/documentation/ConsumerEdition/MediaTekX20/Downloads/ThirdParty/AOSP/LinuxFastboot.md/

96Boards Compliant HiKey 960 ARM Cortex A73 Development Board is Now Available for $239

April 26th, 2017 37 comments

The most powerful 96boards development board – HiKey 960 – has finally been launched, and can be purchased for $239 on Aliexpress, Amazon US, Switch Sense (Japan), Seeed Studio, or All Net (Germany).

HiKey 960 specifications have not changed much since we found out about the board:

  • SoC – Kirin 960 octa-core big.LITTLE processor with 4x ARM Cortex A73 cores @ up to 2.4 GHz, 4x Cortex A53 cores @ up to 1.8 GHz, and a Mali-G71 MP8 GPU
  • System Memory – 3GB LPDDR4 SDRAM (PoP)
  • Storage – 32GB UFS 2.1 flash storage + micro SD card slot
  • Video Output / Display Interface – 1 x HDMI 1.2a up to 1080p, 1x 4-lane MIPI DSI connector
  • Connectivity – Dual band 802.11 b/g/n/ac WiFi and Bluetooth 4.1 with on-board antennas
  • USB – 2x USB 3.0 type A host ports, 1x USB 2.0 type C OTG port
  • Camera – 1x 4-lane MIPI CSI, 1x 2-lane MIPI CSI
  • Expansion
    • PCIe Gen2 on M.2 Key connector
    • 40 pin low speed expansion connector with +1.8V, +5V, DC power, GND, 2x UART, 2x I2C, SPI, I2S, 12x GPIO
    • 60 pin high speed expansion connector: 4L MIPI DSI, 2L+4L MIPI CSI, 2x I2C, SPI (48M), USB 2.0
  • Misc – LEDs for WiFi & Bluetooth, 4x user LEDs, power button, copper heatsink for CPU
  • Power Supply –  8V-18V/2A via 4.75/1.7mm power barrel (EIAJ-3 Compliant); 12V/2A power supply recommended; PMU: Hi6421GWCV530, Hi6422GWCV211, Hi6422GWCV212;
  • Dimensions – 85mm x 55mm

The board officially supports Android Open Source Project (AOSP) with Linux 4.4. Binary images, and instructions to build from source are available in the Documentation page. You’ll also find the hardware manual and schematics over there. There’s no firm commitment to a Linux distributions release, but based on comments from the launch video (embedded below), there could be some later on, and Linux mainline is also being worked on. Stocks are currently limited so you can buy one or two boards, but larger quantities would require a longer lead time. LeMaker also mentions kits with power supply, mini PCIe card… being available soon.

The video will eventually be uploaded to YouTube, but in the meantime I’ve embedded the Facebook video.

HiKey 960 Development Board Powered by Hisilicon Kirin 960 Cortex A73/A53 Processor To Sell for $239

March 4th, 2017 19 comments

LeMaker is about to launch a successor to Hikey board with a new 96Boards compliant development board with HiKey 960 featuring the powerful Hisilicon Kirin 960 processor found in Huawei Mate 9 smartphone, as well as 3GB LPDDR4 memory, 32GB UFS storage, HDMI, USB 3.0 ports and so on.

Hikey 960 board specifications:

  • SoC – Kirin 960 octa-core big.LITTLE processor with 4x ARM Cortex A73 cores @ up to 2.4 GHz, 4x Cortex A53 cores @ up to 1.8 GHz, and a Mali-G71 MP8 GPU
  • System Memory – 3GB LPDDR4 SDRAM
  • Storage – 32GB UFS flash storage + micro SD card slot
  • Video Output / Display Interface – 1 x HDMI 1.4 up to 1080p, 1x 4-lane MIPI DSI connector
  • Connectivity – Dual band 802.11 b/g/n/ac? WiFi and Bluetooth 4.1 with two antennas
  • USB – 2 x USB 3.0 type A host ports, 1x USB 2.0 type C OTG port
  • Camera – 1x 4-lane MIPI CSI, 1x 2-lane MIPI CSI
  • Expansion
    • PCIe Gen2 on M.2 Key connector
    • 40 pin low speed expansion connector with +1.8V, +5V, DC power, GND, 2x UART, 2x I2C, SPI, I2S, 12x GPIO
    • 60 pin high speed expansion connector: 4L MIPI DSI, 2L+4L MIPI CSI, 2x I2C, SPI (48M), USB 2.0
  • Misc – LEDs for WiFi & Bluetooth, 4x user LEDs, power button, reset button
  • Power Supply –  8V-18V/2A via 4.75/1.7mm power barrel (EIAJ-3 Compliant); 12V/2A power supply recommended; PMU: Hi6421GWCV530, Hi6422GWCV211, Hi6422GWCV212;
  • Dimensions – 85mm x 55mm

The board will support Android Open Source Project (AOSP) and Linux. Some instructions  to build AOSP from source code and get started with the board can be found on Github, and a Wiki page has also been setup, but it’s basically empty right now, except for a short comparison between Hikey (620) and Hikey 960. Linux support will be done via Linaro Reference Platform Build (RPB), which should mean Debian support.

You may be able to find more information on LeMaker’s Hikey 960 product page, and the board is currently listed for $239 on Lenovator, but out of stock.

Thanks to Theguyuk for the tip.

Linaro Home Group Releases “AOSP” Android TV for Hikey Board

February 3rd, 2017 1 comment

The Linaro Home Group (LHG) was setup to work on “open source software for ARM-based set top boxes, smart TVs, media boxes, TV dongles and home gateway products”, and after having worked on OP-TEE (Open Portable Trusted Environment Execution) firmware as one of their first endeavors, they’ve now ported Android Open Source Project (AOSP) Android TV to 96Boards compliant Hikey board.

Click to Enlarge

Android TV is based on Android, but adds the TV Input Framework and the Lean Back APIs with the user interface designed for larger displays. LHG has not changed the apps and higher level software from AOSP, but they’ve made sure it could work on Hikey board by working on the Linux drivers and Android user space stack to make sure the Live TV App and Android TV Channel Service implemented in AOSP can work properly on the hardware.

If you want to try it on your own Hikey board, you can do so by building AOSP Android TV from sources.

Hikey Board – Click to Enlarge

Now that does not mean any random Chinese TV box manufacturer will be able to ship TV boxes running “Android TV” instead of Android for phone or tablet, as AOSP lacks Google Mobile Services (GMS), and Android TV solutions must be licensed and approved by Google, and must pass various tests such as the Android Compatibility Test Suite (CTS), the Compatibility Definition Document (CDD) and various audio & video performance criteria. But at least most of the low level software should be taken care of, so it would simplify and speed up development.

Android TV Sample App – Click to Enlarge

Hikey board hardware complies with 96Boards “Consumer Edition” specifications, but lacks typical TV box features such as an IR receiver, which is why 96Boards TV Platform specifications were published last year. LHG probably started with Hikey because development has been going on for a longer time, and the platform is more mature, but one of the next steps will be to work on 96Boards TV Platform compliant boards such as HiSilicon Poplar board.

LeMaker HiKey 96Boards Board Sells for $29.70 (Promo)

November 29th, 2016 18 comments

[Update: The promo is over back!]

You’d think Cyber Monday should be over by now, but ITEAD Studio still has a clearance with real 70% discount, as 96Boards hardware compliant LeMaker Hikey board is now sold for just $29.70 instead of the usual $99 price.

96boards-discountA quick reminder of the specifications:

  • SoC – HiSilicon Kirin 620 octa core Cortex A53 processor @ 1.2 GHz with ARM Mali-450MP4 GPU
  • System Memory – 2 GB LPDDR3 @ 800 MHz
  • Storage – 8GB eMMC + micro SD slot
  • Video Output / Display – HDMI up to 1080p, MIPI-DSI interface
  • Connectivity – 802.11 a/b/g/n Wi-Fi, Bluetooth 4.1 LE (WL1835MOD module)
  • USB – 2x USB 2.0 host ports, 1x micro USB OTG
  • Camera – MIPI CSI interface
  • Debugging – UART header), unpopulated 10-pin JTAG header (back)
  • Expansion headers
    • 40-pin LS (Low Speed) Expansion connector – UART, I2C, 12x GPIOs, SPI, PCM, PWM, SYS_DCIN, 1.8V, 5V, and GND,
    • 60-pin HS (High Speed) Expansion connector – SDIO, MIPI_DSI, MIPI_CSI, I2C, USB 2
  • Misc – Power button, jumper for power/boot/user, LEDs for Wi-Fi/Bt, and 4x User LED
  • Power Supply – 8-18V @ 3A as per 96Boards specs via 4.5/1.7mm power jack. Hi6553V100 PMU
  • Dimensions – 85 x 55 mm

You’ll be able to run Android and Debian images provided by Linaro. The board is also one the rare development board to be officially supported by AOSP.

You may also be interested in LeMaker Guitar quad core ARM Cortex A9 board sold for $13.50 with 1GB RAM.

Thanks to Nanik for the tip.

$79 HiSilicon Poplar is the First 96Boards TV Platform Compliant Board

August 30th, 2016 38 comments

At the end of last month I wrote about 96Boards TV Platform specifications, and noticed Hisilicon had one such boards, but details were sparse. Linaro has now officially unveiled HiSilicon Poplar board, the first 96Boards TV Platform board, sold for $79 + shipping on Aliexpress.

Click to Enlarge

Click to Enlarge

Poplar board specifications:

  • SoC – HiSilicon Hi3798C V200 quad-core 64-bit ARM Cortex-A53 CPU up to 2.0 GHz per core with ARM Mali-T720 GPU supporting OpenGL ES 3.1/3.0/2.0/1.1/1.0, OpenVG 1.1, OpenCL 1.2/1.1 Full Profile, RenderScript, and Microsoft DirectX 11 FL9_3
  • Memory – 1 or 2 GB DDR3 (Specs are conflicting depending where you look)
  • Storage – 8GB eMMC flash + micro SD card slot
  • Video Output – HDMI 2.0a with HDCP 2.2 up to 4K @ 60Hz
  • Video Decoding – H.265/HEVC Main/Main10 and VP9 up to 4K @ 60 fps
  • Audio Output – HDMI, optical S/PDIF, 3.5mm audio jack
  • Connectivity – Gigabit Ethernet, 802.11 b/g/n/ac WiFi and Bluetooth
  • USB – 1x USB 3.0 port, 2xUSB 2.0 host ports, 1x micro USB OTG port for console
  • Expansion
    • 40-pin Low Speed (LS) connector with UART, SPI, I2S, 2x I2C, 12x GPIO
    • 1x PCIe 2.0 interface
    • 12-pin Smart Card connector (unpopulated)
    • 24-pin connector for tuner (unpopulated)
  • Debugging – 1x JTAG port, 1x UART connector
  • Misc – IR receiver, boot selection jumper, LEDs, power button
  • Security – ARM Trustzone, trusted execution environment, secure boot, secure storage, secure video path, DRM, DCAS
  • Power Supply – 12V / 2A
  • Dimensions – 160 x 120 mm (96Boards TV platform specs)
  • Temperature Range – 0°C to +70°C

Hisilicon Hi3798C V200 is quite an interesting processor with many high speed and media interfaces, and while they used most of them, they did not leverage support for SATA. Luckily, there’s still USB 3.0 and PCIe if you need faster storage.

Hi3798C V200 Block Diagram - Click to Enlarge

Hi3798C V200 Block Diagram – Click to Enlarge

The board is sold with Android 5.1.1, but it will be the main development platform of Linaro Digital Home Group which aims “to continue creating optimized, high-performance secure media solutions for ARM on both Linux- and Android-based platforms. Licensees of the RDK (Linux) will be able to create Open Embedded/Yocto RDK builds for Poplar. The Poplar board will also serve as a common development platform for Android TV (AOSP) as well as for TVOS-based STB solutions used in China.”

In the meantime, you may find some information on Tocoding Poplar page, or access directly the hardware user manual. Eventually, 96Boards Poplar page will be a good place to look.

96Boards Hikey Development Board is Now Officially Supported in AOSP

March 11th, 2016 2 comments

Hikey is a one of the first 96Boards compliant development board manufactured by either LeMaker in China and CircuitCo in the US, and while the hardware requirements of 96Boards specifications are rather easy to meet, the software requirements including “bootloader (open source), accelerated graphics support (binary or open source), a Linux kernel buildable from source code based from mainline, or the latest Google-supported Android kernel version” are much harder to comply with. Linaro had a very good news for Linaro Connect Bangkok as they announced Hikey board was supported in Android Open Source Project (AOSP).

Lemaker_Hikey_Android_Open_Source_ProjectSo that means Hikey board will run the latest version of Android like Google Nexus devices, with the advantage of also getting more recent devices.

If you want to build an Android image from AOSP just retrieve the source code:

Grab & extract vendors binaries for Hikey from Google.com. and complete the build:

And you can find the instructions to load the resulting image to the board on Android.com Devices page.

If you are interested in finding out how Linaro managed to do this feat, and what kind of challenges they had to overcome, you may want to watch Linaro Connect “HiKey and AOSP collaborative experience” presentation.

You can also download the presentation slides for a quick look. Some interesting tidbits in the talk include that Google plans to use Linaro’s Linux 4.4 experimental tree, and Rockchip is also working on doing porting some hardware to AOSP.