How to Run Headless Linux on Amlogic S905 Devices Such as MINI MX or K1 Plus

A few week ago, I had been informed that Amlogic S905 U-boot and Linux source code was released, and one person use the code and other resources to load a minimal Ubuntu 14.04 image to his K1 Plus TV box and released the installation instructions and the image (Thanks olin!). I also have K1 Plus here, but since I’ve just finished reviewing Beelink MINI MX, I decided to use the latter instead. The instructions below boot Linux from the (micro) SD card, and can still boot Android if you remove the SD card.

Modifying U-boot environment

The instructions include opening the box, and connecting or soldering a USB to TTL debug board to access U-boot and change some parameters. But later once an image with network is working, you could also build and load fw_setenv and fw_saveenv, and do the same steps with an Android shell and without the need to open the device.

Click to Enlarge
Serial connection to MINI MX (Click to Enlarge)

K1 Plus has the UART headers populated so you don’t have to solder anything, but MINI MX requires a little bit a soldering on the clearly marked Tx, Rx, GND pins.

Connect your USB to TTL debug board to your computer, configure minicom / putty / screen to 115200 8N1, start the board, and press the space bar to interrupt the boot:


You may want to run printenv in order to back the default settings:


Now you can change some settings in U-boot in order to allow for Linux to boot from SD card. If you are doing so directly in Android terminal via adb, you can replace setenv and saveenv by fw_setenv and fw_saveenv (no present in MINI MX firmware):

Flash Ubuntu image to the SD card

First download the Ubuntu image: ubuntu-14.04-headless-arm64.7z.

I’ve done this step in an Ubuntu computer, but you could also perform the same steps in Windows with 7pzip and Win32DiskImager. Install required tools and uncompress the image.


Insert the micro SD card (2GB or greater) in your computer, check the device with lsblk, and flash the image to your SD card by replacing /dev/sdX in the command below by your actual device.

Get the Device Tree File for Your device

If you are trying this on K1 Plus, you can skip that step, but if you are using another device, in my case Beelink MINI MX replacing the device tree file in /boot/dtb.img might be a good idea. For example, MINI MX would only get a Fast Ethernet connection with K1 Plus device tree file, but once I extracted the one from the Android firmware I got an Gigabit Ethernet connection.

If you’ll need to get boot.img either from some firmware update file, or directly from the NAND flash. I don’t have firmwre for MINI NX, so I dumped the boot partition with an adb shell:


Then I followed the instructions to extract a device tree file from Android, until I get boot.img-second.gz file, which I copied to the boot partition in the SD card with Ubuntu

Run Ubuntu in MINI MX

You may want to extend the rootfs partition in the SD card with gparted, or you’ll only have a small part of your SD card used. Now insert the SD into your Amlogic S905 TV box, and connect the power.

After some time getting wasted waiting for the network, you should be able to access to command line by logging in with user debian and password temppwd:


That’s a minimal image so there’s plenty of free space and memory:


All four cores are shown when I check the cpuinfo:


The kernel is build with Android’s option “CONFIG_ANDROID_PARANOID_NETWORK“, so all network configuration must be done with root:


So there’s some work to be done, but at least that’s a start.

[Update: It’s easy to put the case together with the serial wires by cutting the plastic case a little.

Beelink_MINI_MX_with_UART_cables]

 

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.
118 Comments
oldest
newest
maz
maz
8 years ago

“Only one core is shown when I check the CPU however”

One core? You definitely have 4 being up here. It is just an ancient kernel with a deprecated format for /proc/cpuinfo.

olin
olin
8 years ago

Thanks for the write-up.

Regarded the CPU – the kernel config (meson64) has the hot-plug cpu governor set as default (which I was not aware of) so the ‘top’ utility really displayed only one core (after presing key ‘1’) – the rest of the cores was disabled. This also casued issues with installation of cpufreq tools (basically the apt-get install hanged), so I changed the default CPU governor to ondemand in my kernel build, which fixed the installation issue and hopefully might be more convenient for benchmarking purposes etc.

miniNodes
8 years ago

Excellent work Olin, nice to see Linux running on the S905!

m][sko
8 years ago

@olin
So I don’t need anything except original amlogic kernel + device tree file
to boot kernel on amlogic device ??

olin
olin
8 years ago

@m][sko
Correct. You also need a way how to start the kernel from the memory card – that’s what the u-boot scripts are for.

Methanoid
Methanoid
8 years ago

Headless or can we run an Ubuntu with a desktop manager (LXDE or MATE or similar) ??

fossxplorer
fossxplorer
8 years ago

, i have the usb-to-ttl i bought a while back, but where did you get the wiring that’s soldered into the board from? I need to buy it.

fossxplorer
fossxplorer
8 years ago


Awesome. Placing order now! Thx a lot.
Btw, is there a place to buy cheap soldering equips from? 🙂
Never soldered before though.

Movie78
Movie78
8 years ago


Can it run OpenElec or KodiBuntu?

gcsuri
gcsuri
8 years ago


good work!
Is it possible to write the device’s bootenv with booting a modified recovery SDcard?
There is a set_bootloader_env() function in the updater-script.

Whiterat
Whiterat
8 years ago

Should be able to place uboot autoscript commands into “aml_autoscript” on a fat partitioned sdcard or usb, when you hit the physical upgrade button (or IR codes?) while booting It’ll try “usb burning > sd burning > sd recovery > usb recovery” in that order.

loadrunner
loadrunner
8 years ago

Does the S/PDIF output work? What about bluetooth?
Thanks.

olin
olin
8 years ago

@Whiterat @gcsuri
thats a good idea. there is a way how to trigger upgrade from mmc by pressing menu (hamburger) button on the remote during boot, which loads the recovery.img kernel. the only issue right now is the framebuffer doesn’t seem to be working correctly, so virtual console and terminal doesn’t work (nothing is displayed on the screen connected via hdmi) – but maybe it’s just a matter of reconfiguring kernel. so for now ony serial console or ssh works.

Stefan
Stefan
8 years ago

Where to get firmware for Mini MX? I would like to buy that device and run Ubuntu with correct Device Tree File. So I need firmware image to extract it.

Stane1983
8 years ago


I sent you message on hangouts yesterday… 🙂

Amlogic released Linux SDK (Buildroot based) for S905 yesterday with updated kernel and drivers along with fb and x11 arm64 mali libs – http://openlinux.amlogic.com:8000/download/ARM/

gcsuri
gcsuri
8 years ago

@olin
I’ve just got my MXQ and Mini MX.
On MXQ I can use “setprop ubootenv.var.something val” command to change uboot variables from userspace.
It doesn’t work on MiniMX 🙁 – Is there any built-in utility in MiniMX to write /dev/block/env ?

gcsuri
gcsuri
8 years ago

@olin ,

OK, I got the solution to read/write the bootenv without jtag…

dumpsys system_control -b [ set | get ] bootenv [value]

for example:
dumpsys system_control -b get ubootenv.var.bootdelay

Methanoid
Methanoid
8 years ago

I’d love to see some noob friendly instructions to get Linux with desktop running on S905 boxes. Yes, Kodi would be great but for other uses. Or some dual boot instructions?

Stane1983
8 years ago

@Methanoid
That is very optimistic thinking I must say 🙂

One solution is to wait for Odroid C2 board and their emmc with preinstalled Lubuntu 🙂

Number 63
Number 63
8 years ago

Now amlogic have release a updated sdk

Does this mean we may see a openelec build for the mini mx soon?

m][sko
8 years ago

Amlogic has worst display, mali GPU and video decoder drivers
they can’t fix v-sync mali drivers problem since they first release buildroot/kernel
only android drivers are fine

Number 63
Number 63
8 years ago

Erm ok, so is that big up amlogic?

Stane1983
8 years ago

@Number 63
If someone is working on it then yes.

Number 63
Number 63
8 years ago

Thanks i will keep my fingers and toes crossed. Not a lover of android.

Number 63
Number 63
8 years ago

Do you know if anyone is working on it stane?

gcsuri
gcsuri
8 years ago


How did you open MiniMX box? 🙂

Number 63
Number 63
8 years ago

Its just clipped in underneath

mdel
mdel
8 years ago

very nice tutorial i’ll test that on my s802/s812 boxes, both run openelec images but i’d like to have regular distros. I’ve located the unpopulated rs232 headers on both boards, looks like most of them will have those debug pins. I wanted to know if you had a chance to test the gigabit performance (iperf) with that kernel on your mini mx box, and if you noticed the same duplex behavior as in your review. Also you mention the Android / Linux kernel, i’m a bit confused as to what amlogic actually released and if there’s a difference between the… Read more »

mdel
mdel
8 years ago

@Jean-Luc Aufranc (CNXSoft) i believe my s812 M8S box only has 100Mbit eth, but i’m quite familiar with those “usb gigabit” boards (pcduino), which are limited to usb bandwidth so 480Mbps at best, usually 300Mbps. I was going to buy an M8S+ box (s812 with “GBe”) but i can’t find the s812 block diagram to see if it has hardware GBe interface, apparently the S805 diagram has GBe. Thx for the kernel info, i’ll try building one for my S8xx boards and serial u-boot them over the weekend. A couple of questions more on topic : if a box can… Read more »

gcsuri
gcsuri
8 years ago

Could any “distro” run X in this box?

mdel
mdel
8 years ago

gcsuri : Could any “distro” run X in this box? My knowledge on the matter is quite limited, so @Jean-Luc Aufranc (CNXSoft) will probably tell you more. There are gpu drivers in the amlogic tarballs, so X should be able to run with some 2D acceleration, but “running” X does necessarily mean much, some basic use case could be barely functional (videos). But so far i was able to boot and ubuntu (lxde) filesystem, using an openelec 6 kernel, on an s805 box and the desktop was running “fine”. It also works on similar platforms like raspberry pi, odroid, orange… Read more »

gcsuri
gcsuri
8 years ago

ok, I got X and LXDE run on my MiniMX. X uses fbdev. There are some graphic error around fonts and window frames but it works. 🙂

gcsuri
gcsuri
8 years ago

I’ve just made a simple network perf test with nc.
nc 10.1.0.55 3333|dd of=/dev/null bs=1024 count=1024000
1 GB copied, 10.6484s, 98.4MB/s
I think the eth interface works on full bandwidth 😉

my SDcard reading speed is about 10MB/sec
internal mmc is around 40MB/s

mdel
mdel
8 years ago

@gcsuri
most impressive gigabit stats.
too bad s805 boxes don’t make use of the chip gigabit capabilities (according to hardkernel datasheet).

Concerning your X test, did you build a kernel with the gpu driver or use the image provided by olin ?
Not sure which module X should load with a working gpu driver but fbdev is not accelerated so..

gcsuri
gcsuri
8 years ago

I’m using fbdev on X. Windows moving fast enough. There is a bug in the amlogic fb code so 32bpp doesn’t work well (there are a lot of black area in the screen). I had to define 24bpp in x.conf and changed the kernel driver to 24bit init to get fbcon work perfectly.
Now I’m working on the USB boot because it’s 4x faster than cardreader…

luyi
luyi
8 years ago

@gcsuri
You can use following u-boot command to boot from usb.
usb start
fatload usb 0 0x1080000 kernel.img
fatload usb 0 0x1000000 dtb.img
boots 0x1080000

luyi
luyi
8 years ago

@gcsuri
Can you tell me how to get fbcon working?
I already compile kernel with fbcon.
I only see the boot logo after “echo 0 > /sys/class/graphics/fb0/blank”.

gcsuri
gcsuri
8 years ago

You need to map the console. fbcon=map:0

hxm
hxm
8 years ago

hi,

can it be possible to make the mini mx dual boot so we can launch openelec from SD card ?

AC
AC
8 years ago

Hi,
I am newbie, trying to run headless Ubuntu server on MQX (s805) with Odroid c1 Ubuntu release.
I used the above procedure with minor changes according to the Odroid boot.ini.
The MQX boots from the SD but I get some errors and it get stuck after 3 seconds.
Can anyone help?

Steeve Morin
Steeve Morin
8 years ago

Ok so I managed to boot the Ubuntu 16.04 from the ODROID C2 on an MXQ Pro. I can ssh to it fine but X11 doesn’t show up on the screen. Only the boot logo stays. I’ll release the image for people to test.

ss
ss
8 years ago

Hi, I’ve a geniatech box ATV495 with S905. Last night i used this doc(http://openlinux.amlogic.com:8000/download/doc/linux-3.14-buildroot-pkg-201512-release-v1.0.pdf) to flash buildroot linux from on nand. Its working fine. But now I want to test ubuntu on this box like u did. Here is what I found on ubuntu-14.04-headless-arm64.img $ fdisk -l ubuntu-14.04-headless-arm64.img Disk ubuntu-14.04-headless-arm64.img: 2002 MB, 2002780160 bytes 255 heads, 63 sectors/track, 243 cylinders, total 3911680 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000857db Device Boot Start End Blocks Id System ubuntu-14.04-headless-arm64.img1… Read more »

AC
AC
8 years ago

Hi
I manged to install ubuntu on the S905 with the above instructions. Thank you!!
It seems like Wifi is not detected. Can it be that the Wifi drivers wasn’t compiled?

balbes150
8 years ago

You can use two scripts, the first is making a universal change to the settings of u-boot, the second uses the personal settings for each version OS of the system. The first stage – change settings via the launch of the first script in update mode : aml_autoscript for example with this content : echo Start script update env aml_autoscript setenv preboot “run factory_reset_poweroff_protect;run upgrade_check;run bootmode_check;run init_display;run storeargs;run update_key;run irremote_update;run start_autoscript;run switch_bootmode;” setenv start_autoscript “if mmcinfo; then run start_mmc_autoscript;fi;if usb start; then run start_usb_autoscript;fi;” setenv start_mmc_autoscript “if fatload mmc 0 1020000 s905_autoscript; then autoscr 1020000; fi” setenv start_usb_autoscript “if fatload… Read more »

balbes150
8 years ago

Script s905_autoscript for Ubuntu to run an image from this theme

fatload mmc 0:1 0x10800000 kernel.img
fatload mmc 0:1 0x1000000 img.dtb
bootm 0x10800000

The command to build the necessary scripts
mkimage -A arm -O linux -T script -C none -d s905_autoscript.txt s905_autoscript

mko905
mko905
8 years ago

Can anyone send the device tree file to me?

balbes150
8 years ago

Check out the catalog dtb_files

https://yadi.sk/d/gZW-PXc7qU4v7

Dasaki
8 years ago

Anyone who managed to set up ubuntu with X would like to share the steps or the images/rootfs?
My tv box is a KI Plus.
I’ve already followed these instructions without sucess: http://openlinux.amlogic.com:8000/download/doc/linux-3.14-buildroot-pkg-201512-release-v1.0.pdf
I only managed to get burn on the nand a the newly compiled u-boot and a bare filesystem (no apt-get,… etc), although the “release” build configurations do build the X…
Be aware that if you install the C2’s uboot on the nand it will brick the box and you will have to flash it shorting some nand pins: http://mbox.co.za/forum/viewtopic.php?f=62&t=182&start=20#p3748

balbes150
8 years ago

You can try this option. But if something goes wrong, you will need a UART. The method is universal and can work on all devices based on Amlogic S905. http://freaktab.com/forum/tv-player-support/amlogic-based-tv-players/s905/tronsmart-ac/firmware-roms-tools-at/565449-running-linux-from-sd-card-or-usb-flash-drive-using-balbes150-method-and-files If damaged, the boot loader image from Odroid C2. Easily restored. Prepare the SD card with the file with the firmware update for Your device. Assemble u-boot for your device. Make u-boot for your device to get the files u-boot.bin.bin.sd.bin and u-boot.bin. Or download the finished files from the site at the link. In Linux, run the commands : dd if=u-boot.bin.sd.bin of=/dev/mmcblk0 bs=1 count=442 dd if=u-boot.bin.sd.bin of=/dev/mmcblk0 bs=512 skip=1 seek=1… Read more »

Dasaki
8 years ago

@balbes150 Ok, thanks. Last morning I tried the Telos Odroid C2 Ubuntu mate image (copied to an sd card with dd: https://github.com/150balbes/Amlogic_s905/wiki/Openelec-for-Tronsmart-Vega-S95-Telos-(English) ), with my device’s dtb and modified u-boot, and it worked. However, what I want to do is flash the internal nand. The telos odroid C2 image doesn’t include the nand drivers module, so it won’t detect the filesystem. What I’ve managed so far is to build the sources following this guide http://openlinux.amlogic.com:8000/download/doc/linux-3.14-buildroot-pkg-201512-release-v1.0.pdf (with some tweaks) and include the nand memory driver into the kernel (in the built rootfs: lib64/modules/3.14.29/kernel/amlogic/nand/aml_nftl_dev.ko). The guide shows also how to burn the… Read more »

Dasaki
8 years ago

Another useful information… one of the ways to change the telos ubuntu language from russian to english:

Edit /etc/default/locale and change all ru_RU to en_US
Edit ~/.pam_environment and change all ru_RU to en_US

reboot

(info found here: http://askubuntu.com/questions/132347/gnome-classic-language-turned-into-chinese-how-do-i-change-it-back-to-english)

Koxx
Koxx
8 years ago

Hi,
could you please share the MiniMx dtb.img ?
It would be awesome to boot the Minimx on Linux :p

balbes150
8 years ago

Hi.

What version MiniMx ? Have seen information that there are options. Therefore, for each variant it is better to use your file dtb.img . This file can be taken from a firmware image file for Your device.

balbes150
8 years ago

By the way, i make a new version of the script aml_autoscript. Changed the point of call. Now works fine, stop function in UART download in the presence of media s905_autoscript. In the first version, if there is a script s905_autoscript, you cannot stop booting to the console UART.

Edgar
Edgar
8 years ago

Hi, I have been trying the identify and use the WiFi chip of an Acemax K3 board I have been dealing with. I managed to install Debian for Odroid C2 on it, using the Telos method. Once Debian was installed I tried to identify the hardware using dmesg, lshw, lsusb, lsmod but nothing came across. Then I booted the device in Android and downloaded a couple of hardware detection apps and nothing. I opened the device. To my surprise, the device has 2 antennas but one of them is connected to nothing! They are just using the 2 antennas to… Read more »

Edgar
Edgar
8 years ago

Thanks balbes150, I imagined it involved adding something to the kernel related to this:

http://openlinux.amlogic.com:8000/download/ARM/wifi/

I’ll have a look to those openelec images to figure out what drivers need to be added to the 3.14.29 odroid C2 kernel so audio, bluetooth and wifi work.

It would be nice finding a kernel that is ready for these TV devices, maybe I should build one and upload it to github.

Thanks for the information, I’ll have a play with it.

Ali
Ali
8 years ago

If your sd card is mounted at /dev/mmcblkXpY
flash the ubuntu to sd card with
sudo dd if=ubuntu-14.04-headless-arm64.img of=/dev/mmcblkX bs=16M

Edgar
Edgar
8 years ago

Hi again. I have been reading the freaktab forums but still haven’t had any luck with the broadcom driver. I managed to merge the wifi sources of bcmdhd_1_201_59_x listed in http://openlinux.amlogic.com:8000/download/ARM/wifi/ with the Odroid C2 kernel and got an operating version of the dhd module, but when I load it, it doesn’t seem to try to search the nvram.txt or firmware from the directory I set. dhd seems to load ok with no errors, but I still don’t have a usable wlan0 interface. Do I need to load another module after dhd? Does anybody know if there is a 3.14.29… Read more »

Edgar
Edgar
8 years ago

I found the answer to my own question: The firmware and nvram get loaded with this command: ifconfig wlan0 up It tried to load a firmware and nvram but they were not the right ones for the adapter. I needed to find the right ones for this adapter. With the log of dhd I had some clues, with this line: F1 signature OK, socitype:0x1 chip:0x4335 rev:0x1 pkg:0x0 Then I went to this page https://wireless.wiki.kernel.org/en/users/drivers/brcm80211 and found out that the chip: 0x4335 corresponds to the Broadcom BCM4335 (The page says that it also belongs to BCM4338). The easiest way to find… Read more »

Shimon
Shimon
8 years ago

Hi,

I’ve got myself an M8S mini in the hope it could run the Odroid C2’s Linux image.
Has anyone tried that mod yet?
Thx.

Edgar
Edgar
8 years ago

Hi again, now I have been dealing with a different device: a MXQ PRO 4K P200 TV Box. I have been trying to modify the bottloader environment to be able to boot other operating systems from the sdcard or usb ports as explained in the Telos method. The way the bootloader saves it environment in this box seems to be different to traditional bootloaders, where you can edit and save environment using fw_printenv or fw_saveenv. If I try to run fw_printenv, it says: Cannot access MTD device /dev/block/env: No such file or directory Then with the command: adb logcat –d… Read more »

balbes150
8 years ago

Judging by this fragment : firecovery_from_sdcard=if fatload mmc 0 ${loadaddr} aml_autoscript; then autoscr ${loadaddr}; fi;if fatload mmc 0 ${loadaddr} recovery.img; then if fatload mmc 0 ${dtb_mem_addr} dtb.img; then echo sd dtb.img loaded; fi;bootm ${loadaddr};fi;recovery_from_udisk=if fatload usb 0 ${loadaddr} aml_autoscript; then autoscr ${loadaddr}; fi;if fatload usb 0 ${loadaddr} recovery.img; then if fatload usb 0 ${dtb_mem_addr} dtb.img; then echo udisk dtb.img loaded; fi;bootm ${loadaddr};fi; Activation multi-boot should work. The script uses native u-boot resources aml_autoscript. It does not depend on the type of NAND or eMMC. I know that the users Trebor of the website http://www.FreakTab.com successfully used multiboot on the device… Read more »

Edgar
Edgar
8 years ago

Thanks balbes150. I have tried activating multi-boot with the aml_autoscript, but I don’t know why it is not working. If I try to reboot the system in recovery mode, then when I try to install the aml_autoscript.zip, the system complains it is not a signed package. If I use OTA Updater to install unsigned packages from within android, I get the boot splash screen for 45 seconds or so (and I can’t see what’s going on) then the system reboots but the changes don’t get saved into the nand. I’m using a fat32 formatted sd card with these files inside… Read more »

balbes150
8 years ago

You used test aml_autoscript. Is no save command parameters. Instead of printenv should be the command saveenv. It was the first script is for those who have a UART, is to see the result. Not all versions of u-boot supports output redirection. You can try to write a test script to test this possibility.

Edgar
Edgar
8 years ago

Thank you balbes150. Sometimes we have the answer in front of us but we just don’t see it. I replaced printenv with saveenv and it worked. So now I have a wonderful MXQ Pro 4Q running debian from SD Card. I’m using my “adapted” Odroid C2 kernel and even the WiFi with the 8089es module is working perfectly. Below is the new aml_autoscript Thanks again echo Start script update env aml_autoscript sleep 5 setenv preboot “run factory_reset_poweroff_protect;run upgrade_check;run bootmode_check;run init_display;run storeargs;run update_key;run start_autoscript;run switch_bootmode;” setenv start_autoscript “if mmcinfo; then run start_mmc_autoscript;fi;if usb start; then run start_usb_autoscript;fi;” setenv start_mmc_autoscript “if fatload… Read more »

balbes150
8 years ago

I recommend to use the new version of the script. It works correctly the ability to stop start process from console UART. In the first version of the script, if the detected file s905_autoscript, you can’t stop the download in console. In the new version it works correctly.

https://github.com/150balbes/Amlogic_s905/tree/master/script/s905_uboot

Where can I see the config file for the kernel You are using ?
Can I add MXQ 4Q Pro in the list on the WiKi ?

Edgar
Edgar
8 years ago

Thanks balbes150, I’ll correct the script. The kernel I’m using is a merge of the Odroid C2 kernel and some Amlogic drivers I downloaded from here: http://openlinux.amlogic.com:8000/download/ARM/ The config file is here: https://github.com/episani/amlogic_s905_kernel_merges/blob/master/linux/.config Basically I replaced the files Kconfig and Makefile in the drivers/amlogic folder with new ones I created myself, you can find them here: https://github.com/episani/amlogic_s905_kernel_merges/tree/master/linux/drivers/amlogic When I tried to compile those drivers I got a few errors with the Linaro toolchain I was using. I edited the WiFi drivers one one one to stop the errors. They seem to be working ok, but I haven’t done extensive tests… Read more »

Cango
Cango
8 years ago

@Edgar
Could you kindly release your sdard image backup?I have a same board.

Edgar
Edgar
8 years ago

@Cango which image are you talking about? The Debian one?

Cango
Cango
8 years ago

Yes please.Boot+rootfs partition backup i need.At least kernel+modules.

Fossxplorer
Fossxplorer
8 years ago

@Edgar
Does gbit LAN work with Acemax K3 in Linux image you got?

balbes150
8 years ago

Edgar :
I guess you can add anything you want to the WiKi. I haven’t seen the WiKi, what’s the address of the WiKi?

Add for Wiki
https://github.com/150balbes/Amlogic_s905/wiki

Edgar
Edgar
8 years ago

@Cango here’s the Debian image for the MXQ Pro 4K. By changing the dtb file it can be used with other devices. I compiled all the amlogic wifi devices as modules in the kernel, so it should literally work with any board as long as you have the firmware. There are a few firmwares in /lib/firmware/wifi. The username is root and the password is odroid. https://mega.nz/#!VcYVzL6T!3sKJQbUYis6_10VlQ432_ZMfkCdy3Q2OUBbb-da_BbA @balbes150 Nice Wiki in Russian 🙂 It would be great to detect the board in u-boot and select a dtb file accordingly, that way a single image could be used for multiple devices. @Fossxplorer… Read more »

Cango
Cango
8 years ago

Thanks friend.

Henrique
Henrique
8 years ago

Hi guys,

Do you know of a Smart TV device (currently available or coming soon) that could run X? What are the chances the described devices could start running it?

Fossxplorer
Fossxplorer
8 years ago

@Edgar, Speed: 100Mb/s : so they are lying about 1gbit when it’s 100mbits.
I just got Beelink mini MXIII, let’see what it can do.

Edgar
Edgar
8 years ago

@Fossxplorer I double checked the specs of the page where I got the MXQ Pro 4K and it actually says 100Mb/s so it was my mistake. The Acemax KII has 1000Mb/s Ethernet and bluetooth. I ordered an MXQ Pro (without the 4K) that claims it has 1000Mb/s and bluetooth and is only about $5 more the the MXQ Pro 4K. I’m still waiting for it. I will post the results as soon as I get it.

Edgar
Edgar
8 years ago

Can anybody guide me in how to install Linux in the internal memory of these devices? When I boot the MXQ Pro from external SD card, the system gets mounted on /dev/mmcblk1. I can see there is a /dev/mmcblk0, /dev/mmcblk1boot0 and /dev/mmcblk1boot1. I’d like to be able to boot from /dev/mmcblk0, is that possible?
Thanks for your help guys.

balbes150
8 years ago

Possible. There are several options. 1. To use an existing breakdown of the sections. To replace existing sections in the file need. Add or change u-boot the boot line. This will require to change the kernel built for Linux. Taking into account the root partition in the internal memory. 2. To change sections. This will require a change u-boot. To create a new table and new teams.

Luis
Luis
8 years ago

@Edgar
Hello, I apologize for my ignorance, but how can I update my mxqpro 4k with debian, thank you.

tpc010
tpc010
8 years ago

Hi, thank you for your how to, I successfully run Armbian on a Mini M8S ( S905 with 2GB Ram).

More Details see here http://forum.armbian.com/index.php/topic/1143-armbian-for-amlogic-s905/?p=11236

Thanks for your support.

Peuw
Peuw
8 years ago

Hi, I hope someone can help me. I am trying to flash my mk808b plus (armlogic m805) with Ubuntu. But I can’t boot from sdcard. For some reason the reset button doesn’t work. I tried pressing the reset button while booting but the device keep booting normally.

Is there anyway to force booting from sdcard programmatically (via adb)?

I know this post is about another product but I am running out of ideas. Thanks

Peuw
Peuw
8 years ago

Thanks for your response. I am following instructions from freaktab but I can’t make my device boot from sdcard

Peuw
Peuw
8 years ago


I have tried another SD card with the same result. I don’t have and never use TTL debug board before.

So there is no config on the Android that can be altered to force it to boot from SD Card?

Shimon
Shimon
8 years ago

@Peuw Did you use the multiboot script on Android followed by replacing dtb.img with the dtb file from your own device?

Also, try Armbian, I’ve just discovered frequency scaling works. (unlike Ubuntu)

balbes150
8 years ago

@Peuw
You have TV box for Amlogic S805 ?

Peuw
Peuw
8 years ago

@balbes150
This is exactly what I have http://www.gearbest.com/tv-box/pp_126894.html It says Armlogic M805. I am not sure what’s the difference between M805 and S805

Peuw
Peuw
8 years ago

@Shimon
I was following this instruction: http://freaktab.com/forum/tv-player-support/amlogic-based-tv-players/s805/others-ab/520884-ubuntu-14-04-and-15-04-on-mk808b-plus

Could you please point me to more information about multiboot script on Android?

According to the instruction above, the device should just boot from SD Card if I press the reset button while powering it on. I have tried different SD Card too but no avail.

Shimon
Shimon
8 years ago

Ah, sorry, didn’t notice you were on S805, same hardware as in Odroid C1. (this thread is about S905 based devices)

I looked at the relevant freaktab thread and it’s supposed to work OTB.
Either the image you’re trying to flash is corrupt or your SDcards are not liked by the device or the button simply doesn’t work.

I have no idea if a software solution (like the multiboot script for S905) exists. Hopefully @balbes150 will tell you more.

meteorza
meteorza
8 years ago

I am running Olin’s 14.04 Headless Ubuntu on K1 Plus S905. Runs very well.

I need to get the K1 Plus built-in (S2/T2) tuner to work. Has anyone managed it to get it to work in the Ubuntu image?

I know with Amlimux Media K1 and Vitmod OS OpenElec versions have drivers, but it is not opensource.

brann
brann
8 years ago

@Dasaki
Hi, could you tell me how do you got the aml_nftl_dev.ko. Do you compiled the driver from the amlogic nand driver source code or you take the module directly?. I’m having some problem copmpiling the aml_ntfl_new. Thank you.

Fossxplorer
Fossxplorer
8 years ago

@Edgar
Got the new board?

Edgar
Edgar
8 years ago

@Fossxplorer, yes got the MXQ Pro (without the 4K) and works beautifully. I has GB Ethernet which is what I wanted. There seem to be millions of S905 based TV boxes. So far my favorite is the Acemax KIII, but this one is a pretty good one too: http://www.aliexpress.com/item/MXQ-Pro-With-New-Chip-Amlogic-S905-Quad-Core-Andorid-5-1-TV-BOX-BT4-0/32565877807.html

Edgar
Edgar
8 years ago

@Luis sorry for the late reply, but if you read the comments here I guess you’ll find the way. First you need to prepare an SD card that will alter the u-boot environment variables and will allow your device to boot from SD card instead of the internal memory. Once you prepare that SD card using the @balbes150 method, you have to boot your device in Android, put the SD card in your device (that will have a zip file) and run a software upgrade from and app called OTAUpgrade, selecteing the zip file in the SD card. OTAUpgrade allows… Read more »

balbes150
8 years ago

This manual was written by RISCy Dude.

rose
rose
8 years ago
mdel
mdel
8 years ago

here’s another tool to extract your dtb from the android /dev/block/boot partition.

It’s in C so you don’t need perl or python :
https://github.com/csimmonds/boot-extract

Also a small tip to check your uboot configuration directly in android adb, at least on one of my s905 boxes :
“strings /dev/block/env”
You can also cat /dev/block/env directly but it won’t have proper line returns.

That’s was useful for checking uboot configuration after applying some boot patch that didn’t work and couldn’t connect a serial to the board.

ss
ss
8 years ago


Hi,

W.R.T comments #49 & #50

I had some spare time last night and followed your instructions finally.
1. Extracted dtb for my board using android upgrade image (if anyone needs it I can send)
2. Formatted SD card with one FAT partition conatining dtb and kernal images and other with rootfs

My board bootsup properly but it fails on chroot …
bootlog attached http://pastie.org/10920345

meteorza
meteorza
8 years ago

Has anyone managed to get K1 Plus built-in (S2/T2) tuner to work in a headless Linux (ubuntu)?

meteorza
meteorza
8 years ago

@Jean-Luc Aufranc (CNXSoft) Thanks for the reply. However we re-purpose the K1 Plus to receive IP data over DVB. We tried Vitmod RC3, 5 and 6. All of them have problems creating a virtual DVB network interface and receiving data on them. This works well on the Wetek Play running Ubuntu with AVL6211 built-in tuner for example. The problems we experience could be related to the Vitmod Openelec kernel and not really specific to S2/T2 itself. So basically I am after the S2/T2 kernel module so that we can use it for Ubuntu. But this does not seem to exist… Read more »

Pankaj
Pankaj
8 years ago

I have an MX Plus with S905 1GB Ram and 8 GB eMMC.

I would like to run Ubuntu LXDE or another lightweight GUI Linux over it. Does anyone have it working. Please share steps.

So far I’ve been able to modify uboot using UART and boot Ubuntu headless but when it boots linux, it does not report any network adapters. While in android the gigabit ethernet adapater works just fine.

Pankaj
Pankaj
8 years ago

@Methanoid
Hi, I’m trying to do the same with my MX Plus (S905 with 1GB RAM). Were you able to get a lightweight GUI desktop working ? If yes, can you share the steps please. Thanks.

Rick
Rick
8 years ago

I wonder it this would work on leelbox M9S clr h-ram DRAM: 2 GiB relocation Offset is: 2feb4000 show partition table: part: 0, name : logo, size : 2000000 part: 1, name : recovery, size : 2000000 part: 2, name : misc, size : 2000000 part: 3, name : boot, size : 2000000 part: 4, name : system, size : 40000000 part: 5, name : cache, size : 20000000 part: 6, name : data, size : end aml_card_type=0x100 MMC: [mmc_register] add mmc dev_num=0, port=1, if_type=6 [mmc_register] add mmc dev_num=1, port=2, if_type=6 SDIO Port B: 0, SDIO Port C: 1 register… Read more »

Boardcon Rockchip and Allwinner SoM and SBC products