Review & Quick Start Guide for Khadas Vim Pro Development Board with Ubuntu 16.04

Khadas Vim is the only Amlogic S905X development board I’m aware of. There are 4 or 5 versions of the board, but currently only two models are sold: Khadas Vim with 8GB flash and single band WiFi + BLE 4.0, and Khadas VIM Pro with 16GB flash, and dual band WiFi + BLE 4.2. SZWesion, the company behind the board, has sent Khadas Vim Pro for evaluation. Today, I’ll take a few pictures of the board and its accessories, and report my experience playing with Ubuntu 16.04.2 on the board. They’ve also released Android, LibreELEC, and dual boot Android/Ubuntu (for Vim Pro only) images, which you can find in the firmware resources page.

Khadas Vim Pro Unboxing and Photos

My parcel included Khadas package that looks like a book, an HDMI cable, and the same IR remote control sent with GeekBox, the first board made by the company, and powered by a Rockchip RK3368 processor.


You can indeed open the package like a book, and you’ll find the board and a USB to USB type C cable inside, as well as some basic specifications.

Click to Enlarge

You can verify you’ve got the right model on that back of the package which shows the memory and storage, in my case 2 GB + 16 GB.

The board comes with a neat acrylic case with openings for headers and ports. The top of the board features a 40-pin header, the Amlogic S905X processor (no heatsink), two RAM chips, the eMMC flash, the wireless module (AP6255), and most ports with two USB 2.0 ports, a USB type C port, HDMI 2.0a, and Fast Ethernet. There’s also a separate header close to the USB-C port giving access to Vin in case you don’t want to power your board through USB.

Click to Enlarge

There’s also 2-pin battery connector on the left of the board for the real-time clock (RTC). The bottom side of the board includes two more RAM chips, and the micro SD slot.

Click to Enlarge

Power, “function” and reset buttons can also be found on the side of the board, and there’s an IR receiver on the right of the 40-pin header.

Click to Enlarge

Ubuntu 16.04 on Khadas Vim (Pro)

While you can download the firmware on the “Firmware Resources” page, I recommend you check the Announcements & News section on the forums, as they normally include a changelog and some tips to configure your board. An Ubuntu 16.04 + XFCE image was released last month, but the company uploaded a Ubuntu 16.04.2 server image yesterday, so that’s the one I’m going to use today. A new Ubuntu 16.04 + XFCE image with better graphics support will be released sometimes next week.

My plan is to do the update in my Linux computer. The firmware is distributed through Mediafire, so you’ll have to download it through your web browser. I also downloaded  Vim_Uboot_170121.7z on the Firmware Resources pge since it’s needed for the SD card update method. Once we’ve got the firmware and U-boot binaries we can extract them with 7z.


Now insert the micro SD card inside your computer, find the device with lsblk, and check if it has more than one partition. Replace /dev/sdX with your own device.


If it has no partition or more than one, you’ll need to change the partition table using tools like fdisk, or gparted. The instructions provided on Khadas website are basically the same as I wrote in the post “How to Create a Bootable Recovery SD Card for Amlogic TV Boxes“.


Mount the partition, for example by removing and re-inserting the micro SD card into your computer, and copy two files needed for update:


Eject the micro SD card:


Now connect your board with the cables would want to use (e.g. Ethernet, HDMI, etc…), and possibly connect a USB to TTL debug board to access the serial console in case of errors. I also connect a USB hub with my RF dongles for the air mouse and a USB keyboard.

Click to Enlarge

The board comes pre-loaded with Android 6.0.1 with Linux 3.14, so you can connect the power first to make sure the board is working properly. Note that you’ll need to provide your own USB power supply. I used a 5V power supply, and not a fast charger found in some phones and starting at 12V. Now we can insert the micro SD card we’ve just prepared into the board, and boot into Upgrade Mode by keeping pressing on the power button (closest to the 40-pin header), pressing a short time on the reset button (closest to the USB port), and releasing the power button two or three seconds later. At this point, you should get a firmware upgrade interface on the HDMI display with a green progress bar, and once completed you’ll get a “Successful Android” logo.

This is what it looks like in the serial console during the update:


So I pressed Control-C in the serial console (if you have not set it up just reboot the board), and it failed to boot with the multiple error messages:


I contacted SZWesion about the issue, and they told me the SD card method did not work despite being documented on their website, and I had to use Amlogic USB Burning Tool in Windows instead. So I fired up a Windows 7 virtual machine, and I had no problem (for once) flashing the “update.img” file extract from Vim_Ubuntu-server-16.04_V170211.7z to the board.

Click to Enlarge

This time it works and the board booted properly. Here’s the complete boot log for reference.

Once the boot is complete, you’ll be presented with a boot prompt on the HDMI monitor and the serial console:


After login with root / khadas crendentials, we can check some of the system details:


As expected we have a quad core Cortex A53 processor, about 14GB storage available fromthe 16 GB eMMC flash, 1.7 GB free for Linux, a Linux 3.14 kernel, and Ubuntu 16.04.2 LTS.

Normally, you don’t really want to login as root for all your tasks, so we’re being asked to create a new khadas user manually:


I would have expected this to be done by default in the image… I’ll keep using root in the rest of the instructions below.

The link status LED is on on my Ethernet switch, but let’s see if the network is up:


Again, I would have expected the network to start automatically, so we’d have to set that up ourselves as instructed in the release notes:


I could get an IP from my router:


Good. Now let’s check loaded modules and GPIO:


GPIOs are enabled, but we’d have to export the pin to use them, and I could not find specific documentation yet, except the GPIO pinout.

We can however control the LED on the board using one the states listed below


So we can want to turn off the red LED:


or make it blink depending on activity on the eMMC flash:


The Mali driver is loaded, but I’ve been told the drivers in the server image only works with non-X programs. I tried to install mesa-utils-extra for es2gears, and glmark-es2, but neither packages are available. That’s because several repositories are not enabled by default (e.g. multiverse and universe), but it’s easy to change:


Now I use install both packages:


But to test those we need grphics support. An easy way to enable support is to install a desktop environment such as Ubuntu MATE (2.4GB extra used on disk):


I could run both sample, but the message “LibEGL warning: DRI2: authentication failed” probably means we are using software rendering instead.

Click to Enlarge

This was expected as I’ve been old that the “current server built-in the Mali & DRM Linux driver, but the user-space binary driver is for non-X version(Desktop with Xorg should with X version)”, so next week, we may get an image with working 3D graphics acceleration. Note that for most applications it’s not that important to have OpenGL ES support, as most 3D desktop apps require OpenGL.

The release notes also mentions we can install Gnome mplayer to play some videos, so that’s what I did:


I played a Big Buck Bunny 1080p60 H.264 video from a SAMBA share, and then copy the video to the internal storage to try again. The results were the same: audio playing fine but the video is playing in slow motion, with a low frame rate (1 second video takes about 5 seconds to play). So if you plan on using the platform as a media player, you’d better install the LibreELEC image, while the platform is just not ready for applications like digital signage, where you may need text, photos and videos playing at the same time.

I also installed iozone3 in order to test the eMMC flash performance after updating /etc/apt/sources.list with more multiverse lines.


Results:


Read performance @ 121 MB/s is pretty good, and write performance is more limited at up to 36 MB/s. Random IO performance looks OK.

Khadas developers have made a working Ubuntu image, but as you can see from my experience, there’s still work to do to make it a “flash and play” Linux board… It’s quite possible the Android image works better, but then you have a lot of other choices with Amlogic S905X TV boxes. Both boards can be purchased on GearBest with Khadas Vim board with 8GB flash going for $49.99, and Khadas Vim Pro board, reviewed here, selling for $64.99. Note that the remote control and HDMI cable I received with the board are sold separately for respectively $4.59 and  $2.68.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
37 Comments
oldest
newest
memeka
memeka
7 years ago

es2_info might work from console (not X11), and see what mali driver is included. i also think es2gears has a dri version, so u can try running it from console too…

kc
kc
7 years ago

your iozone paste got cut, but if one will look more closely 4k block read/write is 12/4 MB/s. also, this board REQUIRES heatsink and at least low speed fan to operate without overheating/throttling

tkaiser
tkaiser
7 years ago

@Jean-Luc Aufranc (CNXSoft): Thanks for the eMMC numbers. Module used looks quite capable even if sequential write speeds are somewhat low but 4K random IOPS are multiple times higher than ‘A1 performance profile’ would require (part of new SD5.1 specs and maybe worth an own blog post to educate your readers about both ‘Android Adoptable storage’ and the importance of random IO): https://forum.armbian.com/index.php/topic/954-sd-card-performance/?p=25272 S905X without heatsink ‘makes perfectly sense’ so at least peak CPU performance will be limited to a few seconds before throttling jumps in. The AP6255 WiFi-/BT modules looks interesting (dual band and not just 2.4GHz) unless you… Read more »

tkaiser
tkaiser
7 years ago

:
Just curious since I’m not following Amlogic progress in Armbian forum that much (or at all). Do balbes150’s S905X images run on the Vim (though you need the .dtb from original OS image)?

https://forum.armbian.com/index.php/topic/2419-armbian-for-amlogic-s905-and-s905x/

zoobab
7 years ago

@tkaiser
wayland maybe?

tkaiser
tkaiser
7 years ago

@zoobab
I’ve really no idea that’s why I’m asking. Just did a web search regarding Wayland, came across a blog post called ‘Gnome Wayland on Amlogic S905 Mali 450’ and am impressed by the amount/complexity of problems and the lack of any solution.

Memeka
Memeka
7 years ago

What that post doesn’t say is that wayland drivers require DRM, and amlogic does not have a drm driver neither in 3.14 or 4.x kernel. So even if the hikey drivers could work on s905, wayland still won’t work.

theguyuk
theguyuk
7 years ago

There is a version of this type of board with 3G/4G LTE wcdma module at sztomato

Amlogic Linux is a work in progress according to linux-meson.com unoffical Amlogic linux site.

If you are into gentoo read here.

https://forums.gentoo.org/viewtopic-t-1055606-start-0-postdays-0-postorder-asc-highlight-.html?sid=5fdd9dc97ccc8e3f9059a16253e37d46

kc
kc
7 years ago

@tkaiser: ask thelinuxbug, he bought it recently and came to conclusion that heatsink alone is not enough

GanjaBear
GanjaBear
7 years ago

An interesting test to see whether GLES 1.1 is working across the board (pun intended):

https://github.com/ptitSeb/gl4es

Compile for Odroid and start any OpenGL 1.5 game/app.

R. D.
R. D.
7 years ago

“You can also power the board with a battery via the 2-pin connector on the left of the board.” There is no battery management, that two pin connector is only for RTC battery. The 4 pin connector behind USB-C port can be used to power the Vim, but again, no battery management. So while a battery(power pack) could be used to power the Vim, the battery will have to be managed/maintained elsewhere. Great little box, I have had a lot of fun with it. Khadas support team has been very responsive and productive so far. The Khadas forum is growing… Read more »

theguyuk
theguyuk
7 years ago

@kc On the fan and heatsink issue, you can treat this like a very small TV box and just use a large metal plate. I opened my Alfawise s912 ( Amlogic s912 soc ) the other day. There is a square of heat sink putty and a metal plate is fixed to the case top section. Those who have used air cooled heat sinks, with no fan, video cards will understand . * I am not a trained electrician or in electronics * With that out of the way, I can power my Khadas Vim by plugging the supplied power… Read more »

Jeroen
7 years ago

Pitty it hasn’t got gigabit nic, whitout it it can’t realy be used as a 4K media center

Paul M
Paul M
7 years ago

@Jeroen a 100M network port is sufficient to carry 4K video.

Mike Schinkel
7 years ago

I have been working with a Khasas VIM for several months now, trying to set it up as the basis for a product we plan to offer; a headless linux server running our application software. I love this device in many ways and have been getting great support from Gouwa (unlike the (lack of) support I got from BananaPi), but there are a few issues I still have with it: 1. Need to get Docker working on it (Gouwa claims this is coming.) 2. Need to get USB OTG to provide a TCP/IP connection (Gouwa claims this is coming.) 3.… Read more »

Gouwa
7 years ago

@tkaiser
Hi, Balbes150 is also a user of Khadas VIM, and he ported may ROM like Ubuntu and LibreELEC on the VIM.

http://forum.khadas.com/users/balbes150/activity

Gouwa
7 years ago

@Memeka
Both DRM and Mali driver is available for S905X, you can check Khadas Github for the source code:
https://github.com/khadas/android_hardware_arm_gpu

Amlogic provide the drivers for both Android & Buildroot separately with linux kernel, and Khadas team will built-in the drivers into linux kernel and release in this week after more testing.

And as the mainline linux, there also some users have ported to VIM, you can check Martin’s Github for the info(Martin is a upstream Linux kernel developer):
https://github.com/xdarklight

theguyuk
theguyuk
7 years ago

@Mike Schinkel Mr Schinkel the Khadas Vim case comes a part so you could replace the top yourself, or just make a top, stick on plate, to attach to the top. Many Amlogic s905 – s912 TV boxes, already are running and being used with no fan!. Go look at the Mi Box review here on CNX-software dated 12th Feb 2017. On the teardown photo, on the left of the photo is the inside of the Mi box and you can see a large passive heatsink with the marks of the Silicone thermal pad still on it. If anyone is… Read more »

tkaiser
tkaiser
7 years ago

@Gouwa
Ah, good to know Armbian build system can be used with Khadas Vim (Pro) already 🙂

Just a small note: we all should stop recommending dd and other uncapable tools to write OS images to storage. There are better alternatives available and people should know that they must check their SD cards and USB thumb drives (flash storage in general) directly after purchase: https://docs.armbian.com/User-Guide_Getting-Started/#how-to-prepare-a-sd-card

I had numerous occurences where dd ‘burned’ OS images to SD card that failed later where Etcher reported media errors either immediately or at verify stage.

Quintus23M
7 years ago

I just received a VIM Pro, thanks to @Gouwa.

Has anybody a mainline kernel 4.9 (or later) running on the VIM Pro and could share his kernel repo? Or has already included AUFS in the standard 3.14.29 kernel? I’m just asking because these are the both options to get container support (aka Docker) for the VIM and VIM Pro.

Gouwa
7 years ago

@tkaiser

Hi, tkaiser:
I’m not quite understand what you mean about:
“Just a small note: we all should stop recommending dd and other uncapable tools to write OS images to storage.”

I’ve read the link you posted and found that same ‘dd’ approach too write OS images to storage was used.

Gouwa
7 years ago

@Quintus23M

I will contact Martin about the mainline kernel information and reply if I got response.

As the AUFS, you can take a reference with Odroid C2, I’ve saw AUFS as built-in the linux-3.14.29 in their source code:
https://github.com/hardkernel

tkaiser
tkaiser
7 years ago

@Gouwa
Thanks for the heads up. I removed the dd examples now (will be updated soon on official doc site) since it saves a lot of time only recommending Etcher any more.

Peter
Peter
7 years ago

50 MB application to write SD card? And what is wrong with dd? Newer saw it fail. And in this case verify confirms data integrity.

tkaiser
tkaiser
7 years ago

Peter : what is wrong with dd? It works only based on the assumption it operates on storage without failures which is obviously not the case with many SD cards. Since I do a lot of testing I came across four SD cards over the years that are defective. With dd I can burn OS images to all four of them without getting any notification. Symptoms later vary: with the worst one (cheap ‘class 4’ crap) fortunately even first boot might fail so you get a clear indication that’s something’s wrong, with the three others it’s different and symptoms always… Read more »

tkaiser
tkaiser
7 years ago

@Jean-Luc Aufranc (CNXSoft) I got the same behaviour on Linux too. My Armbian build host is an amd64 box where I flashed OS images automagically with dd before. There I experienced first failure of the internal card reader and then also USB front ports (most probably both due to bad cabling) and checked a few months back with 2 of the defective SD cards. Not a single complain with dd but image on SD card was always corrupted. That was a crucial experience and now I’m always verifying since I wasted too much time hunting non-existing bugs. Thanks for mentioning… Read more »

GanjaBear
GanjaBear
7 years ago

Anyone tried compiling and using gl4es yet?

Gouwa
7 years ago

Voices from the open source communities will be passed to Amlogic, check the link below for info:

http://forum.khadas.com/t/voices-from-the-open-source-communities-will-be-passed-to-amlogic/376

Gouwa
7 years ago

Android Nougat(7.1.1) ROM bate version release on Khadas VIM:

http://forum.khadas.com/t/android-nougat-7-1-1-rom-release/412

And the Android Nougat source code are also uploading to Khadas Github at the same time.

Stane1983
7 years ago

@Gouwa
I have mixed feelings about it. It’s good for open source community. On other hand…
I’m figting with Amlogic since 2012 for their legally obtained sources then some good Samaritan from China uploads almost up to date latest sdk to github with no questions asked?

Boardcon Rockchip and Allwinner SoM and SBC products