57 57
balbes150

ARMBIAN for Amlogic S905 and S905X (ver 5.44 =<)

Recommended Posts

2 hours ago, jock said:

I extracted the device tree binary from my Nexbox MXQ-Pro S905 (not X) device, which has 1GB of RAM and 8GB of eMMC and found that the file is exactly the same as the Nexbox-A95X shipped along with the images prepared by balbes150.

 

In my setup I used the "generic" gxbb_p201.dtb file: the device booted and it worked well enough, but the wifi (8192es) module didn't load automatically and also sometimes the audio over hdmi get stuck and I have to reboot.

 

I thought that nothing fit better than the dtb file from my own device, so I extracted it from the original android image which is still on the eMMC of the device. It ends up being exactly the same dtb as the Nexbox-A95x. When I try to use the dtb extracted from my own device, the device doesn't boot anymore: it stays stuck at boot with the Nexbox logo after reading some data from the USB hard drive.

 

I supposed that the original dtb file would fit perfectly in the process.

Can be a problem with a missing kernel module or what else?

The dtb file and kernel must match. If you use android dtb with balbes kernel,  bables kernel can not found variables from the different dtb file. To load kernel modules at boot, put the module name to the /etc/modules file. Hdmi audio uses cpu time, maybe a custom kernel with 1000Hz timer could help. Balbes uses 100Hz timer  kernels that is too low. 

Share this post


Link to post
Share on other sites
4 hours ago, debianxfce said:

The dtb file and kernel must match. If you use android dtb with balbes kernel,  bables kernel can not found variables from the different dtb file. To load kernel modules at boot, put the module name to the /etc/modules file. Hdmi audio uses cpu time, maybe a custom kernel with 1000Hz timer could help. Balbes uses 100Hz timer  kernels that is too low. 

 

You didn't read accurately my post. The dtb file I extracted from my device is exactly the same as the one provided by balbes150 with name Nexbox-A95x in his ubuntu mate package. Actually both don't work, but I guess balbes provides a valid dtb file and the problem is somewhere else.

 

The problem about hdmi audio is that the driver hangs somewhere, as much as like IRQs are not honored anymore and the DMA is supplying always the same buffer, so when the hdmi audio hangs, it just repeats infinitely the last buffer. I thought there may be an issue with the dtb file as long as I think the problem sits between the software to hardware interface. Most probably it is an issue with the driver though.

Share this post


Link to post
Share on other sites
5 hours ago, jock said:

 

The problem about hdmi audio is that the driver hangs somewhere, as much as like IRQs are not honored anymore and the DMA is supplying always the same buffer, so when the hdmi audio hangs, it just repeats infinitely the last buffer. I thought there may be an issue with the dtb file as long as I think the problem sits between the software to hardware interface. Most probably it is an issue with the driver though.

S905 uses Mali gpu driver so there is two drivers for hdmi audio. Hdmi audio is mixed to the hdmi video data in the gpu driver.  With Amlogic S912, mpv hangs like you described but the chromium browser plays audio and video fine.

 

Share this post


Link to post
Share on other sites

Image Yocto with kernel 4.12 (for S905X).  (v20170825)

To download the image. Unzip. To record on the SD card. Rename the /boot partition file of the dtb to the "dtb.img". To download the script s905_autoscript. Add on the SD card in the /boot partition. On TV Boxing should be informed (with other images) is activated multiboot. Connect the SD card to TV box. To turn the power on. After running the screen is in hibernation (from your watch) for desktop display you have to press a key on the keyboard or moving the mouse.

 

https://yadi.sk/d/f5HsAL913HYksf

 

 

USB works in the kernel 4.12.9 (kernel source Neil Armstrong).

Share this post


Link to post
Share on other sites

New image 20170828  kernel 4.12.9.

In this way there is support for USB on the platform S905X. You can run the system from SD cards and USB flash drives. Changed the activation system monitor, now it is built into the kernel itself. To change the screen resolution, you need to use standard tools from control monitor on a desktop. The resolution changes on the fly (directly on desktop). Not working yet WiFi. There are problems with the dtb files (requires the edit and debug under different models). For s905x recommend to use a file meson-gxl-s905x-nexbox-a95x or meson-gxl-s905x-khadas-vim1. For the model s905 - meson-gxbb-odroidc2.

Share this post


Link to post
Share on other sites

Version update TEST kernel 4.13.0_next_20170907. Added support for sound for all models S905X and S912. Pay attention to one feature of the work of sound - on the desktop has to be set 1920x1080 resolution. Not clear to me yet why the sound only works in this screen resolution.

For some recent images to use these additions, you can only download the kernel and dtb files (deb packages are in the directory TEST\deb) to install in the existing system (don't forget to update the file "dtb.img" to a new version).

Share this post


Link to post
Share on other sites
On 9/1/2017 at 9:54 PM, balbes150 said:

New image 20170901  kernel 4.13.0-rc6 and next-4.13.0-rc7 for S905X.  Working USB.

 

Since i got a couple of S905X boxes at home, i gave Nexbox A95X S905X a try, boots with multiple DTB, but only meson-gxbb-nexbox-a95x.dtb seems to be able to boot into ldm/mate.

But there is no response from USB mouse nor keyboard.  As USB is supported now, what could this be?

 

 

EDIT: images being tested are from 20170907.

 

 

 

Share this post


Link to post
Share on other sites

Armbian_5.32_S9xxx_Ubuntu_xenial_4.13.0-next-20170908_mate.img.xz successfully boots into a green textured mate on my X96 (1+16) box. USB wired mouse and USB keyboard both work fine. I can play the movie and access folders but little else. The settings file (config) opens but there are few options, and I have not discovered how to access the console or enable wifi yet.  I assume HDMI is working at 720p. Have not checked audio. Am using the A95x dtb file.

Share this post


Link to post
Share on other sites
On 09.09.2017 at 9:48 PM, fossxplorer said:

Since i got a couple of S905X boxes at home, i gave Nexbox A95X S905X a try, boots with multiple DTB, but only meson-gxbb-nexbox-a95x.dtb seems to be able to boot into ldm/mate.

But there is no response from USB mouse nor keyboard.  As USB is supported now, what could this be?

1. If the system runs with file gxbb , then this is the version with the chip S905 (no X).

2. Try all the dtb files, the title of which is "gxbb".

 

7 hours ago, intelmarico said:

enable wifi yet

WiFi in this kernel version is not supported.

 

7 hours ago, intelmarico said:

I assume HDMI is working at 720p

Sound only works with 1080p resolution (you can switch the screen resolution on the fly in a working system, via the settings menu of the monitor group Settings).

Share this post


Link to post
Share on other sites

@balbes150 how can i configure uboot ethernet connection to boot through tftp ? i have a Kii pro S905 box, tried to set the ip address and gateway in u-boot but still whenever i ping a host in the network it says the host is not alive? is this a bug or i'm missing a setting ?my u-boot version is 2015.01-g3fb479f-dirty (Oct 13 2016 - 19:22:50)

Share this post


Link to post
Share on other sites
5 hours ago, MOHAMMAD HADI said:

how can i configure uboot ethernet connection to boot through tftp ? i have a Kii pro S905 box, tried to set the ip address and gateway in u-boot but still whenever i ping a host in the network it says the host is not alive? is this a bug or i'm missing a setting ?my u-boot version is 2015.01-g3fb479f-dirty (Oct 13 2016 - 19:22:50)

Have you read this information ?

http://docs.khadas.com/develop/SetupTFTPServer/

Share this post


Link to post
Share on other sites

balbes150

thank you very much for your excellent work!

I have a KM8P S912 - on firmware at the 20170908 with the kernel 4.13 works USB-mouse and the keyboard, there is a sound at the resolution of the screen 1920х1080.

As I understand it, there a problem when installing this firmware on EMMC?

Share this post


Link to post
Share on other sites
9 hours ago, balbes150 said:

Have you read this information ?

http://docs.khadas.com/develop/SetupTFTPServer/

Yes i have but it's not working on my box.

my box and my laptop are connected to the same router the router ip is 172.16.1.1 running dhcp server i tried to setup a tftp server in my main os (arch linux) and then tried it in a ubuntu 16.04.2 vm and still can't get it to work.

gxb_p20x#setenv ipaddr 172.16.1.44
gxb_p20x#setenv serverip 172.16.1.241
gxb_p20x#setenv gatewayip 172.16.1.1
gxb_p20x#saveenv
Saving Environment to aml-storage...
mmc env offset: 0x27400000 
Writing to MMC(1)... done
gxb_p20x#ping 172.16.1.1
Amlogic Ethernet Init
Success: reset mac OK!(0)
ETH PHY hardware reset OK
find net phy id=0x2430c54, phyad=0
set_mac_mode(2)
final_addr[rx-tx]: 0000000073efe8e0-0000000073efeee0
Ethernet reset OK
MAC address is 00:15:18:01:81:31
duplex
100m
Using Meson_Ethernet device
ping failed; host 172.16.1.1 is not alive
gxb_p20x#tftp 1080000 Image   
Using Meson_Ethernet device
TFTP from server 172.16.1.241; our IP address is 172.16.1.44
Filename 'Image'.
Load address: 0x1080000
Loading: T T T T T T T T T T 
Retry count exceeded; starting again
Using Meson_Ethernet device
TFTP from server 172.16.1.241; our IP address is 172.16.1.44
Filename 'Image'.
Load address: 0x1080000
Loading: *
Abort

This might be a bug in u-boot of the box that was fixed in kvim u-boot ? have you ever tried this on a box and worked ?

Share this post


Link to post
Share on other sites
56 minutes ago, purplepumkin said:

Would the S905W work? I'm seeing S905W devices going quite cheap. Less than $20 for a Tanix TX3 mini with 1GB RAM and 16GB eMMC. 

I have no such models, so until the owner of such a model itself will not check, we do not know.

Share this post


Link to post
Share on other sites

@balbes150 how to get fw_printenv and fw_setenv working in mainline kernel images ?

when running a 3.14 kernel the tools works fine by using /dev/env which doesn't exist in mainline kernel.

looking at dmesg in 3.14 kernel it output the environment offsets

[    2.369744@2] [mmcblk0p04]                  env  offset 0x000027400000, size 0x000000800000 

u-boot also report the same offsets

        name                        offset              size              flag
===================================================================================
   0: bootloader                         0            400000                  0
   1: reserved                     2400000           4000000                  0
   2: cache                        6c00000          20000000                  2
   3: env                         27400000            800000                  0
   4: logo                        28400000           2000000                  1
   5: recovery                    2ac00000           2000000                  1
   6: rsv                         2d400000            800000                  1
   7: tee                         2e400000            800000                  1
   8: crypt                       2f400000           2000000                  1
   9: misc                        31c00000           2000000                  1
  10: instaboot                   34400000          20000000                  1
  11: boot                        54c00000           2000000                  1
  12: system                      57400000          40000000                  1
  13: data                        97c00000         30c200000                  4

i tried to put these offsets in /etc/fw_en.config file but still the fw_printenv tools is printing the default environment

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
57 57