Armbian for Amlogic S905X3


Recommended Posts

I am still not able to use the u-boot-fix described above to address the hdmi color issues.  I have a TX3 s905x3 box using the meson-sm1-sei610.dtb.  When I boot from the SD card with the patch applied (boot.ini, s905_autoscript, u-boot.ext) the boot fails and I am left with a green screen.  In attempting to figure this out myself, I have captured console logs from both a successful boot without the patch and the failed boot with the patch (see attached).  Any ideas why this is not working for me?  I have tried booting from both usb and sdcard and both are failing with the patch applied.

 

screenlog.ok.txt screenlog.fail.txt

Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?

I  fixed device tree file for my X96Air. Now wifi and ethernet work. In file phy-mode is changed from rgii to rgmii and added some strings from other file for this mode. Network, BT  work good, audio is not, and i've some error In log:

Dec 16 05:48:39 rk3399 kernel: OCFS2 User DLM kernel interface loaded
Dec 16 05:48:39 rk3399 kernel: EINJ: ACPI disabled.
Dec 16 05:48:39 rk3399 kernel: mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
Dec 16 05:48:39 rk3399 kernel: mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
Dec 16 05:48:39 rk3399 kernel: mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
Dec 16 05:48:39 rk3399 kernel: mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
Dec 16 05:48:39 rk3399 kernel: mmc0: queuing unknown CIS tuple 0x81 (9 bytes)
Dec 16 05:48:39 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet: IRQ eth_wake_irq not found
Dec 16 05:48:39 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet: IRQ eth_lpi not found
Dec 16 05:48:39 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet: PTP uses main clock
Dec 16 05:48:39 rk3399 kernel: dwc2 ff400000.usb: ff400000.usb supply vusb_d not found, using dummy regulator
Dec 16 05:48:39 rk3399 kernel: dwc2 ff400000.usb: ff400000.usb supply vusb_a not found, using dummy regulator
Dec 16 05:48:39 rk3399 kernel: dwc3 ff500000.usb: Failed to get clk 'ref': -2
Dec 16 05:48:39 rk3399 kernel: gpio-keys gpio-keys: Unable to get irq number for GPIO 0, error -6
Dec 16 05:48:39 rk3399 systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
Dec 16 05:48:39 rk3399 kernel: meson-g12a-pinctrl ff634400.bus:pinctrl@40: pin GPIOZ_2 already requested by ff3f0000.ethernet; cannot claim for ff661000.audio-control
Dec 16 05:48:39 rk3399 kernel: meson-g12a-pinctrl ff634400.bus:pinctrl@40: pin-2 (ff661000.audio-controller) status -22
Dec 16 05:48:39 rk3399 kernel: meson-g12a-pinctrl ff634400.bus:pinctrl@40: could not request pin 2 (GPIOZ_2) from group pdm_din0_z  on device pinctrl-meson
Dec 16 05:48:39 rk3399 kernel: axg-pdm ff661000.audio-controller: Error applying setting, reverse things back
Dec 16 05:48:39 rk3399 kernel: axg-pdm: probe of ff661000.audio-controller failed with error -22
Dec 16 05:48:39 rk3399 systemd-udevd[505]: link_config: could not get ethtool features for eth0
Dec 16 05:48:39 rk3399 systemd-udevd[505]: Could not set offload features of eth0: Device or resource busy
Dec 16 05:48:39 rk3399 kernel: debugfs: Directory 'ff800280.cec' with parent 'regmap' already present!
Dec 16 05:48:40 rk3399 kernel: meson_vdec: module is from the staging directory, the quality is unknown, you have been warned.
Dec 16 05:48:40 rk3399 kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
Dec 16 05:48:40 rk3399 kernel: platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
Dec 16 05:48:40 rk3399 kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Dec 16 05:48:40 rk3399 kernel: brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.seirobotics,sei610.txt failed with error -2
Dec 16 05:48:40 rk3399 kernel: brcmfmac mmc0:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43455-sdio.seirobotics,sei610.txt
Dec 16 05:48:40 rk3399 kernel: bluetooth hci1: Direct firmware load for brcm/BCM4345C0.hcd failed with error -2
Dec 16 05:48:40 rk3399 kernel: bluetooth hci1: Falling back to sysfs fallback for: brcm/BCM4345C0.hcd
Dec 16 05:48:41 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet eth0: PTP not supported by HW
Dec 16 05:48:41 rk3399 kernel: ext4 filesystem being mounted at /var/log supports timestamps until 2038 (0x7fffffff)
Dec 16 05:48:42 rk3399 kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Dec 16 05:48:43 rk3399 kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04

Link to post
Share on other sites
On 12/9/2019 at 3:07 AM, Sergey2k said:

You are right. I extracted image on SD card and system booted normally (see photo below). Thank you.

Next problem is wired network (wifi works good).
There is log of errors:


Dec 09 10:45:37 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet: IRQ eth_wake_irq not found
Dec 09 10:45:37 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet: IRQ eth_lpi not found
Dec 09 10:45:37 rk3399 kernel: dwc3 ff500000.usb: Failed to get clk 'ref': -2
Dec 09 10:45:37 rk3399 kernel: gpio-keys gpio-keys: Unable to get irq number for GPIO 0, error -6
Dec 09 10:45:37 rk3399 kernel: debugfs: Directory 'ff800280.cec' with parent 'regmap' already present!
Dec 09 10:45:38 rk3399 kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Dec 09 10:45:39 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
Dec 09 10:45:39 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
Dec 09 10:45:39 rk3399 dhclient[655]: send_packet: Network is down
Dec 09 10:45:39 rk3399 dhclient[655]: dhclient.c:2445: Failed to send 300 byte long packet over eth0 interface.
Dec 09 10:45:39 rk3399 dhclient[655]: receive_packet failed on eth0: Network is down
Dec 09 10:45:40 rk3399 kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Dec 09 10:45:41 rk3399 kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
Dec 09 10:45:47 rk3399 dhclient[655]: send_packet: Network is down
Dec 09 10:45:47 rk3399 dhclient[655]: dhclient.c:2445: Failed to send 300 byte long packet over eth0 interface.
Dec 09 10:45:49 rk3399 bluetoothd[829]: Sap driver initialization failed.
Dec 09 10:45:49 rk3399 bluetoothd[829]: sap-server: Operation not permitted (1)
Dec 09 10:45:50 rk3399 NetworkManager[846]: ((src/settings/nm-settings.c:899)): assertion '<dropped>' failed
Dec 09 10:45:50 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet eth0: no phy at addr -1
Dec 09 10:45:50 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)

 

IMG_20191209_153715427_HDR.jpg

My TV Box is Ugoos X3 Plus I have tried Armbian_5.99_Aml-g12_Debian_buster_dev_5.4.0-rc6_20191110.img and Armbian_5.99_Aml-g12_Ubuntu_bionic_dev_5.4.0-rc6_desktop_20191110.img .The images are extracted to TF cards, but I still have the same color and network issues as you posted. What did you do to fix color?

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

You forgot to add the file "u-boot.ext"

Pardon me for my ignorance. Where can I get u-boot.ext and what file should I change? According to this post, since I am not installing Armbian into eMMC, I should be fine only updating uEnv.ini with dtb_name=/dtb/amlogic/meson-sm1-sei610.dtb. Please be a bit specific or forward me link to instructions. Do I need to root into my device to find out information about network driver? Thanks!

Link to post
Share on other sites
12 hours ago, lazydino said:

Pardon me for my ignorance. Where can I get u-boot.ext and what file should I change? According to this post, since I am not installing Armbian into eMMC, I should be fine only updating uEnv.ini with dtb_name=/dtb/amlogic/meson-sm1-sei610.dtb. Please be a bit specific or forward me link to instructions. Do I need to root into my device to find out information about network driver? Thanks!

 

Link to post
Share on other sites
15 hours ago, lazydino said:

Pardon me for my ignorance. Where can I get u-boot.ext and what file should I change?

I've included the files to make the color look correct as attachment to this message. Just unpack and copy to the boot partition. 

@balbes150 I couldn't find them in your downloads either. I still had them on an SBC.

------------------------------------

Here my review video about the X96Air. Not my best work. I rushed it a bit too much and forgot to mention many things. Like the boot.ini files to adjust the wrong color. I also couldn't make my PS3 controller to work in Android. I forgot to mention the transfer speeds.... 

X96Air   
------
                 | Clock S/C    | B/C         | Blender   | 7z S/C    | 7Z B/C  | glxgears | CPUMiner  | SBCBench
Armbian Buster     1.91Ghz                      37m36s      1775                               7.1       http://ix.io/2481
Armbian Bionic     1.91Ghz                      42m07       1739                               6.5       http://ix.io/2490

Temperatures
------------
Idle  55C
86C maxed out after +30 minutes. No throttling.

Transfer speeds
---------------
Armbian Buster 5.4.1
On-Board sd-card reader read : 20MB/s
                       write : 17MB/s
SSD over USB3           read : 378.7MB/s
                       write : 290.7MB/s
Armbian Bionic 5.4.1

On-Board sd-card reader read : 23MB/s

SSD over USB3           read : 402.8MB/s
                       write : 365.8MB/s     

 

boot.S905X3.7z

Link to post
Share on other sites
On 12/22/2019 at 7:16 PM, Sergey2k said:

On X96 Air wired network works if to set "negotiation" to "manual" and "speed" to "100 mb duplex" only. On Auto don't see connected cable.

On my Ugoos X3 Plus, if I use meson-g12b-odroid-n2.dtb , I can use ethernet port and dmesg and other linux tools say that I have giga network connectivity while speedtest.net just show a fraction of the right speed... I won't be able to get wifi working with odroid-n2 dtb file but if I use sm1-sei610.dtb, wifi is good but it can't see connected ethernet cable.

Link to post
Share on other sites

i dont know if its offtopic

i recently purchase a box called x96air with 2/16gb no 5ghz wifi, no bluetooth variant. i tried to install armbian using this img (Armbian_19.11.4_Arm-64_bionic_current_5.4.1_desktop_20191228.img) and this dtb meson-sm1-sei610.dtb. when i toothpick my box, it did boot but all i had was this error (mmc1: error -84 whilst initialising sd card) 

i too tried odroid-n2 dtb but no luck. im booting from TF card samsung 32gb.

can someone with the same config help me? thank you

 

Link to post
Share on other sites
On 12/20/2019 at 6:30 PM, NicoD said:

I've included the files to make the color look correct as attachment to this message. Just unpack and copy to the boot partition. 

@balbes150 I couldn't find them in your downloads either. I still had them on an SBC.

------------------------------------

Here my review video about the X96Air. Not my best work. I rushed it a bit too much and forgot to mention many things. Like the boot.ini files to adjust the wrong color. I also couldn't make my PS3 controller to work in Android. I forgot to mention the transfer speeds.... 


X96Air   
------
                 | Clock S/C    | B/C         | Blender   | 7z S/C    | 7Z B/C  | glxgears | CPUMiner  | SBCBench
Armbian Buster     1.91Ghz                      37m36s      1775                               7.1       http://ix.io/2481
Armbian Bionic     1.91Ghz                      42m07       1739                               6.5       http://ix.io/2490

Temperatures
------------
Idle  55C
86C maxed out after +30 minutes. No throttling.

Transfer speeds
---------------
Armbian Buster 5.4.1
On-Board sd-card reader read : 20MB/s
                       write : 17MB/s
SSD over USB3           read : 378.7MB/s
                       write : 290.7MB/s
Armbian Bionic 5.4.1

On-Board sd-card reader read : 23MB/s

SSD over USB3           read : 402.8MB/s
                       write : 365.8MB/s     

 

boot.S905X3.7z 244.2 kB · 54 downloads

 

Thank for your video. I heard you said use toothpick to click on a hidden button near AV jack to boot from sd card but I could'nt see it.  Can you upload an image point to that button ?. Many thank.

 

20203ea312bd-e872-49c6-bde5-23880adb594a

Edited by Haohao
Link to post
Share on other sites
On 1/1/2020 at 10:34 AM, dichton said:

i dont know if its offtopic

i recently purchase a box called x96air with 2/16gb no 5ghz wifi, no bluetooth variant. i tried to install armbian using this img (Armbian_19.11.4_Arm-64_bionic_current_5.4.1_desktop_20191228.img) and this dtb meson-sm1-sei610.dtb. when i toothpick my box, it did boot but all i had was this error (mmc1: error -84 whilst initialising sd card) 

i too tried odroid-n2 dtb but no luck. im booting from TF card samsung 32gb.

can someone with the same config help me? thank you

 

Just use another card, I passed the error with the same as yours

Link to post
Share on other sites
On 12/16/2019 at 7:58 AM, Sergey2k said:

I  fixed device tree file for my X96Air. Now wifi and ethernet work. In file phy-mode is changed from rgii to rgmii and added some strings from other file for this mode. Network, BT  work good, audio is not, and i've some error In log:

Dec 16 05:48:39 rk3399 kernel: OCFS2 User DLM kernel interface loaded
Dec 16 05:48:39 rk3399 kernel: EINJ: ACPI disabled.
Dec 16 05:48:39 rk3399 kernel: mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
Dec 16 05:48:39 rk3399 kernel: mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
Dec 16 05:48:39 rk3399 kernel: mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
Dec 16 05:48:39 rk3399 kernel: mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
Dec 16 05:48:39 rk3399 kernel: mmc0: queuing unknown CIS tuple 0x81 (9 bytes)
Dec 16 05:48:39 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet: IRQ eth_wake_irq not found
Dec 16 05:48:39 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet: IRQ eth_lpi not found
Dec 16 05:48:39 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet: PTP uses main clock
Dec 16 05:48:39 rk3399 kernel: dwc2 ff400000.usb: ff400000.usb supply vusb_d not found, using dummy regulator
Dec 16 05:48:39 rk3399 kernel: dwc2 ff400000.usb: ff400000.usb supply vusb_a not found, using dummy regulator
Dec 16 05:48:39 rk3399 kernel: dwc3 ff500000.usb: Failed to get clk 'ref': -2
Dec 16 05:48:39 rk3399 kernel: gpio-keys gpio-keys: Unable to get irq number for GPIO 0, error -6
Dec 16 05:48:39 rk3399 systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
Dec 16 05:48:39 rk3399 kernel: meson-g12a-pinctrl ff634400.bus:pinctrl@40: pin GPIOZ_2 already requested by ff3f0000.ethernet; cannot claim for ff661000.audio-control
Dec 16 05:48:39 rk3399 kernel: meson-g12a-pinctrl ff634400.bus:pinctrl@40: pin-2 (ff661000.audio-controller) status -22
Dec 16 05:48:39 rk3399 kernel: meson-g12a-pinctrl ff634400.bus:pinctrl@40: could not request pin 2 (GPIOZ_2) from group pdm_din0_z  on device pinctrl-meson
Dec 16 05:48:39 rk3399 kernel: axg-pdm ff661000.audio-controller: Error applying setting, reverse things back
Dec 16 05:48:39 rk3399 kernel: axg-pdm: probe of ff661000.audio-controller failed with error -22
Dec 16 05:48:39 rk3399 systemd-udevd[505]: link_config: could not get ethtool features for eth0
Dec 16 05:48:39 rk3399 systemd-udevd[505]: Could not set offload features of eth0: Device or resource busy
Dec 16 05:48:39 rk3399 kernel: debugfs: Directory 'ff800280.cec' with parent 'regmap' already present!
Dec 16 05:48:40 rk3399 kernel: meson_vdec: module is from the staging directory, the quality is unknown, you have been warned.
Dec 16 05:48:40 rk3399 kernel: platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
Dec 16 05:48:40 rk3399 kernel: platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
Dec 16 05:48:40 rk3399 kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Dec 16 05:48:40 rk3399 kernel: brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.seirobotics,sei610.txt failed with error -2
Dec 16 05:48:40 rk3399 kernel: brcmfmac mmc0:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43455-sdio.seirobotics,sei610.txt
Dec 16 05:48:40 rk3399 kernel: bluetooth hci1: Direct firmware load for brcm/BCM4345C0.hcd failed with error -2
Dec 16 05:48:40 rk3399 kernel: bluetooth hci1: Falling back to sysfs fallback for: brcm/BCM4345C0.hcd
Dec 16 05:48:41 rk3399 kernel: meson8b-dwmac ff3f0000.ethernet eth0: PTP not supported by HW
Dec 16 05:48:41 rk3399 kernel: ext4 filesystem being mounted at /var/log supports timestamps until 2038 (0x7fffffff)
Dec 16 05:48:42 rk3399 kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
Dec 16 05:48:43 rk3399 kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04

 

Hi @Sergey2k I managed to install current Armbian_19.11.4_Arm-64_bionic_current_5.4.1_20191228 on the X96Air applied the uboot. I'm able to boot but eth0 does not work as you mention before. I follow your advance here and it seems the it's needed to patch the dtb for ethernet. Could you please share the working dtb or explain how to patch it. I'm using /boot/dtb/amlogic/meson-sm1-sei610.dtb.

 

Thanks!

 

 

 

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

 

Thank for your video. I heard you said use toothpick to click on a hidden button near AV jack to boot from sd card but I could'nt see it.  Can you upload an image point to that button ?. Many thank.

 

20203ea312bd-e872-49c6-bde5-23880adb594a

Check this.

IMG_0148.jpg

Link to post
Share on other sites
1 hour ago, nguyen said:

Did you seccess to boot armbian. I can make it booted but stuck nand-sata-install. My wifi doesn't work. Enthernet is ok.

 

I'm able to boot from sd card using Armbian_19.11.4_Arm-64_bionic_current_5.4.1_20191228 + /boot/dtb/amlogic/meson-sm1-sei610.dtb + uboot-fix-g12. 

Wifi works ok but ethernet not.

I did not installed it to sata or emmc memory yet.

 

Regards,

 

 

Link to post
Share on other sites

any one can help me to install Armbian_19.11.4_Arm-64_bionic_current_5.4.1_20191228.img +  uboot-fix-g12. to emmc. My device is A95X F3 slim.  I can run it on sdcard or usb but do not know how to install it to emmc. I do not know where to get and use install.sh script.

thanks.

Link to post
Share on other sites
16 hours ago, nguyen said:

any one can help me to install Armbian_19.11.4_Arm-64_bionic_current_5.4.1_20191228.img +  uboot-fix-g12. to emmc. My device is A95X F3 slim.  I can run it on sdcard or usb but do not know how to install it to emmc. I do not know where to get and use install.sh script.

thanks.

I also want to konw how to install armbian to emmc.

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

I also want to konw how to install armbian to emmc.

HI ak4490

I Just do discover by myself how to install to eMMC but not do it because of being outside of my home.

After flashing armbian, config everything you want, in terminal: cd /root

./install-aml.sh

I found 3 cscripts in /root

Sorry if it is not working, just knowing how to do it

I am new to linux, i am Windows user.

Cheer.

Link to post
Share on other sites
2 hours ago, nguyen said:

HI ak4490

I Just do discover by myself how to install to eMMC but not do it because of being outside of my home.

After flashing armbian, config everything you want, in terminal: cd /root

./install-aml.sh

I found 3 cscripts in /root

Sorry if it is not working, just knowing how to do it

I am new to linux, i am Windows user.

Cheer.

It seems need mutliboot before write the system to EMMC, by the way, can you tell me how do you boot from SD or USB? by adb? 

下载.png

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

Hi! 

 

My X96 Max+ eth0 is active, but can not get ip from dhcp and not work If use static ip... Any idea about this problem?

IMG_20200126_080612.jpg

 

 I had same problem on X96Air. I solved by modifying the max-speed=<100> in pyh section of the dts. The downside is that only works at 100Mbps.

 

Regards,

 

 

 

 

 

Link to post
Share on other sites
On 1/26/2020 at 11:10 PM, ldiaz said:

 

 I had same problem on X96Air. I solved by modifying the max-speed=<100> in pyh section of the dts. The downside is that only works at 100Mbps.

Regards,


Can you share the image & dtb to boot X96Air?

Tks,

Link to post
Share on other sites
  • TRS-80 changed the title to Armbian for Amlogic S905X3
  • Werner locked this topic
Guest
This topic is now closed to further replies.