Archive

Posts Tagged ‘allwinner’

Allwinner H2 Linux & Android SDK, and Allwinner XR819 WiFi Driver Released

November 10th, 2016 23 comments

Orange Pi Zero is an interesting little ARM Linux board thanks to its low price, but also because it features a new Allwinner H2 / H2+ quad core Cortex A7 processor very similar to Allwinner H3 minus the 4K video decoding part, as well as Allwinner XR819 WiFi module, which I have not seen on any other boards so far.

allwinner-h2-linux-android

But hardware without software is pretty much useless, so developers will be happy to find out that Allwinner H2 SDK with Linux (lichee) and Android has been released or leaked, and it also includes the Allwinner XR819 WiFi driver.

You’ll find the SDK on Zoobab server with three main directory / files:

  • Android folder – Android 4.4.2 SDK
  • lichee folder – Linux 3.4.39 source code. However you’d probably better use Linux 3.4.113 currently released by sunxi-linux, or Linux mainline. The latter does have some limitations, and may or may not be suitable for your project.
  • H2-V1.2.tar.bz2 – The tar file with both Android and lichee folder in case you want to download the full SDK on your computer

If another hardware comes with Allwinner XR819 WiFi module and you just need the Linux driver, you’ll find it in linux-3.4/drivers/net/wireless/xradio directory.

tkaiser managed to enable XR819 on armbian after disabling dhd driver:

Orange Pi Zero Allwinner H2+ Board with WiFi and Ethernet is Up for Sale for $7 and Up

November 2nd, 2016 70 comments

Orange Pi Zero development board powered by Allwinner H2+ quad core Cortex A7 processor with 256 to 512MB RAM, Ethernet, and USB ports is now available for sale on Aliexpress for just $6.99, which shipping adding $3.39 in my case bringing the total to $10.38.

orange-pi-zero-board

Orange Pi Zero specifications:

  • SoC – Allwinner H2(+) quad core Cortex A7 processor @ 1.2 GHz with Mali-400MP2 GPU @ 600 MHz
  • System Memory – 256 to 512 MB DDR3-1866 SDRAM
  • Storage – micro SD card slot
  • Connectivity – 10/100M Ethernet + 802.11 b/g/n WiFi (Allwinner XR819 WiFi module) with u.FL antenna connector and external antenna
  • USB – 1x USB 2.0 host ports, 1x micro USB OTG port
  • Expansion headers – Unpopulated 26-pin “Raspberry Pi B+” header + 13-pin header with headphone, 2x USB 2.0, TV out, microphone and IR receiver signals
  • Debugging – Unpopulated 3-pin header for serial console
  • Misc – 2x LEDs
  • Power Supply – 5V via micro USB port or optional PoE
  • Dimensions – 52 x 46 mm
  • Weight – 26 grams

Based on the hardware features and likely good availability it’s a serious contender to Raspberry Pi Zero (and Nano Pi NEO) for headless applications, and provided Allwinner H2+ is close enough to Allwinner H3 software support should be fairly good, as I expect armbian support very soon. Allwinner XR819 is a completely new WiFi module, at least to me, so there may be driver issues, but if it is working in the firmware image provided by Orange Pi (none so far), it should be possible to add this to other Linux images too. [Update: Orange Pi Zero schematics are now available]

orange-pi-zero-descriptionThe Aliexpress page explains the default version has 256MB RAM, but it’s not really clear whether / how we can buy the 512MB version. [Update: The 512MB version now available on Aliexpress for $8.99 + shipping]

Thanks to OvCa77 for the tip.

C.H.I.P Board and Allwinner A13/R8 SoCs To Get VPU Support in Linux Mainline

August 30th, 2016 3 comments

Allwinner has mixed relationships with open source communities such as Kodi, especially due to issues with its closed-source CedarX VPU drivers, and some GPL violations. However to address the former, linux-sunxi community has been working on open source Cedrus library for the video processor unit on Allwinner processors, that’s been successfully tested on boards such as Orange Pi One. Free Electrons has gone  further, as they’ve made sure Cedrus now works with Linux mainline kernel, currently Linux 4.8, and tested it on Allwinner R8 based Pocket CHIP.

Pocketchip_Cedrus_Linux-4.8The work has been done by Florent Revest, a 19 years old intern at the company, who delivered a new sunxi-cedrus driver, a Video4Linux (V4L2) memory-to-memory decoder kernel driver, and corresponding VA-API backend, with the implementations currently available on Github here and there respectively. Currently only MPEG2 and MPEG4 are working, but adding other codecs such as H.264, and video encoding is possible using the current framework.

The short demo below shown VideoLAN playing an MPEG2 video using Cedrus on Linux 4.8 on PocketCHIP.

A patchset has already been sent to the Linux Kernel mailing list, so support should become available in one of the upcoming Linux releases, and they’ve also updated linux-sunxi Cedrus Wiki to explain how to reproduce this setup on other Allwinner A13 boards.

Allwinner R40 Quad Core ARM Processor, Successor of Allwinner A20, Supports SATA & Gigabit Ethernet

August 17th, 2016 26 comments

One of the most common complaints I get from readers when I publish news about new ARM processor is “Why didn’t they include SATA?”. So far Allwinner A20 is the only really low cost ARM processor that includes a SATA port, but it’s been released a few years, and its dual core Cortex A7 processor is getting old. We’ve been hearing rumors about an upgraded version for one or two years with Allwinner A40 or more recently Allwinner A20E, and finally the company has now published details about Allwinner R40 processor on their revamped website, which they claim to be the successor of Allwinner A20.

Allwinner_R40

Allwinner R40 Block Diagram

Allwinner R40 key specifications:

  • CPU – Quad-core ARM Cortex-A7 Processor
  • GPU – Mali-400 MP2 GPU
  • Memory I/F – 32-bit DDR3/DDR3L/LPDDR2/LPDDR3
  • Storage I/F – 8-bit NAND flash, SD3.0,  eMMC 5.0, and 1x SATA

    Allwinner R40 System-on-Module

    Photoshopped Allwinner R40 System-on-Module

  • Networking – 2x MAC: 1x EMAC (10/100M Ethernet), 1x GMAC  (Gigabit Ethernet)
  • Display – RGB/LVDS/HDMI/MIPI DSI/TV Out
  • Video – [email protected] decoding and H.264 HP [email protected] encoding
  • Audio – Up to 2x I2S/PCM interfaces, eight channels of Time Division Multiplexing(TDM) with sampling precision up to 32bit/192KHz
  • Camera-  2x Parallel MIPI CSI interfaces
  • USB – 3x USB 2.0 host
  • I/Os – 8x UART, 4x SPI,  5x TWI/I2C
  • STB interfaces – 1x smart card, 2x TS
  • Misc – 2x PS2 1x 8×8 keypad, 2x IR receiver, 2x KEYADC, RTP
  • Package – 16×16 mm FBGA468

Compared to Allwinner A20, the company explains that R40 is an “Allwinner A20 upgrade edition” with four cores instead of two, 40nm process instead of 55nm, lower power consumption, and a smaller package. They also mention the processor will be supported by their lightweight open source Tina operating system based on Linux.

One of the first devices to use the new processor, beside the unnamed CPU module shown above (Update: that’s a photoshopped C.H.I.P board), will be Banana Pi M2 Ultra development board, which will come with 2GB RAM, 8GB flash, and expose the SATA interface.

Allwinner H5 is a Quad Core Cortex A53 Processor for 4K OTT TV Boxes

August 17th, 2016 24 comments

Last year, we found that Allwinner was preparing to launch Allwinner H64 and H5 quad and octa processors in their roadmap, but there have been some changes, and the compny seems to have dropped H64 name, and has now introduced Allwinner H5 quad core Cortex A53 processor designed for 4K TV boxes.

Allwinner H5 Block Diagram - Click to Enlarge

Allwinner H5 Block Diagram – Click to Enlarge

Allwinner H5 main specifications:

  • CPU – quad core Cortex A53 with NEON, FPU, 64KB I/D cache per core, and 512KB L2 cache
  • 3G GPU – ARM Mali-450MP GPU with 4 pixel processor cores, and 2 geometry cores with support for OpenGL ES 2.0/1.1/1.1, OpenVG 1.1 and EGL
  • 2D GPU (Graphics and Display Processor) – Dual display; Main display: 4 video layers, 12 graphics layers, 4 alpha blending channels; Auxiliary display: 4 video layers, 4 graphics layers, and 2 alpha blending channels
  • Memory I/F – DDR3/3L SDRAM interface up to 32-bit data width
  • Storage I/F – SPI NOR flash, SPI NAND flash, NAND flash (SLC/MLC with 64-bit ECC), and eMMC 5.0 flash interfaces
  • Video Decoding – Up to 4K decoding of H.265/HEVC Main10, H.264/AVC, VP6/VP8/VP9, MPEG1/2/4, AVS-P16, VC1
  • Image Decoding – YUV400/YUV420/YUV422/YUV444; Picture scale and rotate
  • Video & Image Encoding – 1080p60 or 2x 1080p30, or 4x 72030 video encoding with AVC or JPEG
  • Audio Encoding/Decoding – MPEG L1/L2, AAC-LC, HE AAC V1/V2, APE, FLAC, OGG, AMR-WB, G.711 (u/a) decoding; G.711(u/a), AMR-NB, AMR-WB, and AAC-LC encoding
  • TS Demultiplexing/PVR – 4x TS inputs using SSI or SPI modes, DVB-CSA/AES/DES descrambling, recording of scrambled and non-scrambled streams
  • Security – TEE, Secure OS, secure boot, 2K bits EFuse, DRM, conditional access, HDCP 1.4 protection
  • A/V Interfaces
    • PAL and NTSC, HDMI Tx with HDCP, CVBS, HD and SD output from same source. 480i to 4K2K resolutions
    • Analog videos – 1x CVBS, 1x embedded VDAC
    • Audio interfaces – 2x stereo input interfaces, 1x stereo output interface, 1x S/PDIF, 2x ADAC, 2x I2S/PCM, HDMI audio
  • Peripherals
    • 3x USB 2.0 host, 1x USB 2.0 OTG
    • 10/100M Ethernet with integrated PHY, Gigabit Ethernet MAC
    • 3x 4-bit SDIO 3.0 interfaces
    • 5x UART, 4x TWI (I2C), 2x SPI, multiple GPIOs, 2x PWM
    • 2x smart card interfaces (ISO7816)
    • LED and keypad control interface, IR receiver
    • 1x CSI camera
  • Boot program download over serial port or USB port
  • Low power CPU – For standby power as low as 30 mW power consumption

Allwinner is actually pushing the limit of “generally accepted marketing principles” by calling Allwinner H5 a “Deca-core 4K OTT Box Total Solution” by adding 4 CPU cores to 6 GPU cores… They also done a “good job” at hiding whether HDMI 2.0 is supported, as the HDMI version is not mentioned, nor the maximum framerate for video codec @ 4K2K. [Update: Allwinner H-Series comparison table shows H.265 @ 4K30Hz, so it’s most likely limited to HDMI 1.4]

The processor will apparently run Android 5.1, and while features look similar to Allwinner A64, the GPU is quite faster, I’ve been told video processing is better by Allwinner marketing team, and I can also see some interfaces (TS input and smartcard) that would make it suitable for Android Digital TV receivers with DVB, ISDB-C and ATSC tuners.

 

Image Source: ARMBIAN

Orange Pi PC 2 – Image Source: ARMBian

Linux support is also likely as two of the first platforms to use the new processor will be Shenzhen Xunlong Orange Pi 3 and Orange Pi PC 2 (pictured above) development boards.

More details can be found on Allwinner H5 product page.

Thanks to Thomas for the tip.

Allwinner and Qualcomm Partner on Android and Windows 10 LTE Tablets

July 5th, 2016 7 comments

Allwinner, a leading tablet SoC vendor, and Qualcomm have decided to collaborate, and introduced three new LTE tablet reference designs based on Qualcomm Snapdragon 425, 430, and 435 available to Chinese OEMs, on top of Snapdragon 210, 212 and 410 designs released last year.

Allwinner_Qualcomm_PartnershipThe full technical technical details about the reference designs are only available to OEMS who signed an NDA, but the key specifications are as follows:

  • SoC – Qualcomm Snapdragon 420, 430, 435 application processors
  • System Memory – 2G DRAM
  • Storage – 32GB internal memory
  • Connectivity – CAT 6 LTE band

The tablet will run Android, but Windows 10 is also being worked on. The agreement only covers tablets, so Allwinner will not be involved in LTE smartphones.

Since both Allwinner and Qualcomm are silicon vendors, and competitors, you may wonder why they’ve partnered. Allwinner only provides WiFi and Bluetooth tablets with their own processors, so partnering with Qualcomm allows then to offer LTE tablets. Many Chinese manufacturers don’t have a license agreement with Qualcomm, so those will be able to provide Qualcomm tablets solution through Allwinner.

The responsibilities of each stakeholders is well explained in the first chart: Qualcomm will provide the chips, global marketing, and technical support, Allwinner will design the reference designs and work on the SDKs, both to be released to design houses such as Emdoor, working for manufacturers.

The only Snapdragon tablets currently offered on Aliexpress are made by Huawei, and certainly not designed through this program. But the tablets based on the first generation of reference designs, such as the ones made by Cube, have been showcased at Mobile World Congress Shanghai 2016 last week, so we should be expecting low cost Snapdragon based LTE tablets to competing with Mediatek ones in the near future.

Allwinner Virtual Reality 2016 – 2017 Roadmap: H8vr, VR9 and VR10 Solutions

May 31st, 2016 4 comments

Virtual reality has gotten a lot of hype in the last year or so, and so far there’s basically three ways to implement virtual reality: smartphone + VR headset, all-in-one headset, and PC + headset. Currently the former is the most popular option as it’s much cheaper than the other two, while PC based virtual reality provides the best user experience, but it’s quite pricey. Allwinner is now at Computex 2016 promoting their virtual reality solutions, and they see smartphone based VR peak in 2018, PC based VR have a slower growth, with All-in-one VR becoming the dominant force in 2020 and beyond.

Virtual_Realite_Smartphone_All-in-one-PCSo the company is focusing on all-in-one Android VR headsets, starting with H8vr board featuring Allwinner H8 octa-core processor with 2GB RAM and 16GB storage, and mainly targeting 4K virtual reality videos, since the performance of current mobile processors does not really provide a good experience for games. Allwinner claims to have 20 partners working on their H8vr solutions, and boasts low power consumption, lower weight, low heat, low lag (< 20 ms), and long battery life with over 3 hours of video playback.

Allwinner_Roadmap_2016-2017-Virtual_RealityBeyong H8vr available now, Allwinner has two new VR solutions in the pipeline for late 2016 and 2017:

  • Allwinner VR9 (Q4 2016) – Four times the performance over H8vr and mobile VR game support
  • Allwinner VR10 (Q2 2017) – LTE and artificial intelligence support, 50% lower power consumption and twice the performance of VR9.

Charbax talked with the company at Computex 2016 about their current and future virtual reality plans, as well as 360 degree video recording solutions based on Allwinner V3 processor.

Allwinner News – Root Exploit in Linux and Fake Pine A64 Boards

May 13th, 2016 13 comments

There’s been a lot of buzz about a root exploit in Linux 3.4 kernel for Allwinner H3/H83T SoCs found by linux-sunxi & armbian developers in the last few days. Since the kernel for H3 / H83T is stuck to 3.4, and not always updated on the vast majority of hardware platforms, it’s quite likely there are many ways to breach into such systems, and even the majority of Android devices are not secure, not only the ones powered by Allwinner. So I did not really pay attention at first, but it went viral with  stories reporting a hidden backdoor, and hitting to ill-intent. But is that really the case? That’s the code from github, now removed from the master branch, but still in A83T branch.

allwinner_rootmydeviceIt’s now super easy to gain root access by simply running one command which works for any users:

That’s obviously pretty bad, but is that a hidden backdoor? Considering Allwinner released the source code, and the kernel log would show “now you are root” each time the method would be used, that would be very stupid backdoor, and it’s not hidden since the code was there for everyone to see. A developer most probably added the code to sunxi_debug in order to ease debugging, and did not realize there was a security issue. I’ve been told the exploit only affect Allwinner H3 & A83T processors, so if you have devices with one of those, you’d better check if the exploit works, and if it does, get an updated firmware, or kernel. Using proper code review procedures, or going Linux mainline,  would avoid such PR disasters. Speaking of which, Allwinner issued the following statement in response:

Allwinner Technology committed to resolving Linux Kernel software issue

Zhuhai, China – Allwinner Technology.Co.Ltd (SHE: CN:300458) is working with its device manufacturers to fix a current software issue. We are aware that code, which was supplied to device manufacturers for the purpose of developing products, should have been removed prior to shipping. We recommend that anyone who is concerned about this issue should contact the relevant device manufacturer.

In relation to the source code on Github, it is released for the open source community only and not for shipping certain devices. Since a debugging function is not needed it has subsequently been removed.

Allwinner is committed to producing quality SoCs with security a key priority. We are currently working hard to address this issue and revising our current processes so we can continue to evolve our range of SoCs in the future.

In other news, one of Pine64 managers informed me that fake/copy versions of Pine A64 development board, based Allwinner H64 SoC, had started selling on Taobao.

Fake_Pine_A64It’s unclear if those are exact copies, but to be safe, you should probably avoid purchasing Pine A64 on Taobao, or Taobao forwarding services.