Jump to content

Single Armbian image for RK + AML + AW (aarch64 ARMv8)


Recommended Posts

Posted

I can confirm that high temperature issues I ran with @balbes150 kernel from git repository are related to Panfrost.

 

Blacklisting Panfrost also makes you able to reboot as @balbes150 pointed out.

 

Still working on bluetooth :)

 

Posted

I was able to reinstate sound via HDMI after a kernel update by running

 

amixer -c0 sset 'AIU HDMI CTRL SRC' I2S

 

There it is, in case it helps anybody out.

Posted
  On 4/30/2020 at 5:08 PM, Povl H. Pedersen said:

no kernel upgrade, but linux-image-current-arm-64

Expand  

Yeah, and the linux-image package, it's for beautiful Wallpapers on the screen ....  B)

 

  On 4/30/2020 at 5:08 PM, Povl H. Pedersen said:

Now, how do I upgrade everything ? Is there an easy way ?

Expand  

Restore the regular Android firmware and if you do not know how the system works , exactly follow the instructions that you are given .

 

  On 4/30/2020 at 5:08 PM, Povl H. Pedersen said:

One reason I picked 905x3 is that it performs well for the price according to

Expand  

Listen less to all the stuff that has nothing to do with Linux (Armbian).

 

  On 4/30/2020 at 5:08 PM, Povl H. Pedersen said:

Way better than H6 and RK3328.

Expand  

Exactly the opposite. Worse than Rockchip and Allwinner

 

  On 4/30/2020 at 5:08 PM, Povl H. Pedersen said:

then we are close to Intel land

Expand  

This shit is even free not of interest.

 

 

Posted
  On 4/28/2020 at 10:31 AM, Didikdw said:

Hello.. 

 

Is there avaible armbian  5.8.7 or above for s905x debian 9 stretch

I need armbian with libqt4 for ibstall hyperion ambianlight

Ihave instal with armbian ver 5.8.4 work but my wifi device cant active 

Sorry bad my english

🙏🙏 

Expand  

Would you do me a favor and upload that image for me? 

Posted

I'm glad to announce I have WiFi and Bluetooth working with kernel 5.7.0-rc1 pulled from @balbes150 git repository!

 

The box in question is a H96 Pro+ 3GB/32GB (S912).

 

First we must build the kernel with the following options:

 

# CONFIG_STANDALONE is not set
# CONFIG_PREVENT_FIRMWARE_BUILD is not set

#
# Firmware loader
#
CONFIG_FW_LOADER=y
CONFIG_EXTRA_FIRMWARE=""

 

Now me must copy the firmware files to /lib/firmware.

 

You can obtain the firmware for example from here: https://github.com/chewitt/qca-firmware

 

Rename fbtfw11.tlv to rampatch_00230302.bin

 

Also rename tfbtnv11.bin to nvm_00230302.bin.

 

Now create a new meson-gxm-q200-h96proplus.dts file in the arch/arm64/boot/dts directory and add a Makefile rule to it.

 

DTB should be as follows:

 

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2016 Endless Computers, Inc.
 * Author: Carlo Caione <carlo@endlessm.com>
 */

/dts-v1/;

#include <dt-bindings/input/input.h>

#include "meson-gxm.dtsi"
#include "meson-gx-p23x-q20x.dtsi"

/ {
	compatible = "amlogic,q200", "amlogic,s912", "amlogic,meson-gxm";
	model = "Amlogic Meson GXM (S912) Q200 Development Board";

	adc-keys {
		compatible = "adc-keys";
		io-channels = <&saradc 0>;
		io-channel-names = "buttons";
		keyup-threshold-microvolt = <1710000>;

		button-function {
			label = "Update";
			linux,code = <KEY_VENDOR>;
			press-threshold-microvolt = <10000>;
		};
	};

	gpio-keys-polled {
		compatible = "gpio-keys-polled";
		#address-cells = <1>;
		#size-cells = <0>;
		poll-interval = <100>;

		button@0 {
			label = "power";
			linux,code = <KEY_POWER>;
			gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>;
		};
	};
};

/* Q200 has exclusive choice between internal or external PHY */
&ethmac {
	pinctrl-0 = <&eth_pins>;
	pinctrl-names = "default";

	/* Select external PHY by default */
	phy-handle = <&external_phy>;

	amlogic,tx-delay-ns = <2>;

	/* External PHY is in RGMII */
	phy-mode = "rgmii";
};

&external_mdio {
	external_phy: ethernet-phy@0 {
		/* Realtek RTL8211F (0x001cc916) */
		reg = <0>;
		max-speed = <1000>;

		/* External PHY reset is shared with internal PHY Led signal */
		reset-assert-us = <10000>;
		reset-deassert-us = <30000>;
		reset-gpios = <&gpio GPIOZ_14 GPIO_ACTIVE_LOW>;

		interrupt-parent = <&gpio_intc>;
		/* MAC_INTR on GPIOZ_15 */
		interrupts = <25 IRQ_TYPE_LEVEL_LOW>;
	};
};

&uart_A {
        status = "okay";
        pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
        pinctrl-names = "default";
        uart-has-rtscts;

        bluetooth {
                compatible = "qcom,qca9377-bt";
                enable-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
                max-speed = <2000000>;
                clocks = <&wifi32k>;
                clock-names = "lpo";

        };
};

 

Build the kernel and enjoy!

Posted
  On 5/2/2020 at 6:08 PM, geraldog said:

I'm glad to announce I have WiFi and Bluetooth working with kernel 5.7.0-rc1 pulled from @balbes150 git repository!

 

 

Expand  

 

By the way if any of you try this fix, remember to comment out the relevant &uart_A section in meson-gx-p23x-q20x.dtsi otherwise you may have problems!

Posted
  On 5/2/2020 at 6:08 PM, geraldog said:

First we must build the kernel with the following options:

Expand  

These options have been used in the kernel for a long time, and don't need to enable anything.

 

  On 5/3/2020 at 4:12 AM, geraldog said:

By the way if any of you try this fix, remember to comment out the relevant &uart_A section in meson-gx-p23x-q20x.dtsi otherwise you may have problems!

Expand  

This is not required. When using all new values, they replace the values from the included file.

Posted
  On 5/3/2020 at 8:31 AM, balbes150 said:

These options have been used in the kernel for a long time, and don't need to enable anything.

Expand  

 

$cd Amlogic_s905-kernel-master
$mv .config .some_traces_but_working
$make defconfig
$/scripts/diffconfig .config .some_traces_but_working > .config.diff

$cat .config.diff | grep STANDALONE
STANDALONE y -> n

$cat .config.diff | grep PREVENT_FIRMWARE_BUILD
PREVENT_FIRMWARE_BUILD y -> n

 

Default kernel won't even try to load firmware from /lib/firmware via FW_LOADER after mounting rootfs with these options set! :)

 

 

  On 5/3/2020 at 8:31 AM, balbes150 said:

These options have been used in the kernel for a long time, and don't need to enable anything.

 

This is not required. When using all new values, they replace the values from the included file.

Expand  

 

https://github.com/150balbes/Amlogic_s905-kernel/blob/master/arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi

 

&uart_A {
	status = "okay";
	pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
	pinctrl-names = "default";
	uart-has-rtscts;

	bluetooth {
		compatible = "brcm,bcm43438-bt";
		shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>;
		max-speed = <2000000>;
		clocks = <&wifi32k>;
		clock-names = "lpo";
	};
};

 

It may reolace the compatible but it will make a royal mess when loading module hci_uart with both enable-gpios and shutdown-gpios assigned to the same GPIO.

Posted

Hi

 

Maybe my messages doesn't show up to this thread but I'm trying to ask about Armbian Strecth image. I hope someone has it and would share it for us. I'm looking also 32bit distro for the s905w but looks like the armbian doesn't have support for that? I would be very grateful for the help

 

@balbes150 Have you deleted those old versions?

Posted

Hello there!

 

@balbes150, can you update img on mega cloud please?

 

People already run Panfrost on S905X3 (odroid-c4 board), someone get Mali-G31 (in S905X3) work with acceleration on H96 Max X3?

 

I bought H96 Max X3 box and have happy hour with DTB/Mesa/Panfros cooking :blink: but stay on llvm renderer.

 

But get some result - BT now is working, for get this - put to folder "/lib/firmware/brcm" file bcm4335c0.hcd from:

https://github.com/kszaq/brcmfmac_sdio-firmware-aml/blob/master/firmware/brcm/bcm4335c0.hcd

with name "BCM4335C0.hcd" and reboot.

 

Try compare DTB from Odroid-C4 / H96 Max X3 Android 9 / and presented here by @ramoncio and get obviously zero error in dmesg, here my files:

https://drive.google.com/drive/folders/1FToRIJFOjJudNKrRr7S_GgNX0Q-3DmmF?usp=sharing 

 

Don't get working yet 3D acceleration and video encoding but dmesg tell me about proper loading wifi, eth, bt, vpu, gpu and fb.

Posted
  On 5/4/2020 at 2:54 PM, dbsharpe said:

 

The only stretch I have is Armbian_5.44_S9xxx_Debian_stretch_3.14.29_xfce_20180601.img.xz
and I've uploaded it to https://mega.nz/file/ArB2iQaL#iiPzjAjSFjLTdeq-OZt_kwYhjoXeDam9Xq0E_5PfNVc
760820516 bytes on disk with md5sum de4c8de5f5a360b8d41e67c32a9cf90d.

Expand  

Got failed to start systemd-modules-load.service kernel module. So no luck whit just this image on my Android unit.  Many thanks to you anyway! Looks like I have to buy another rasbperry pi to get the Strech Debian for my Gimx usage

Posted
  On 5/7/2020 at 6:02 PM, Jamboa said:

Got failed to start systemd-modules-load.service kernel module. So no luck whit just this image on my Android unit.  Many thanks to you anyway! Looks like I have to buy another rasbperry pi to get the Strech Debian for my Gimx usage

Expand  

 

I think you can build it yourself in bullseye.

 

https://gimx.fr/wiki/index.php?title=Development_on_Linux

 

Sure, it doesn't list Armbian Bullseye, but it seems to be just a case of hunting out dependencies, checking out from git, building and setting up permissions.

Posted (edited)

Hello there!

 

@balbes150, thanks!

 

At last two week people already run Panfrost on S905X3 (odroid-c4 board).

 

Someone here get Mali-G31 (in S905X3) work with acceleration?

Who here with similar box as H96 Max X3 (with S905X3), can you share your DTS/DTB files and few words about what is working and how your filing?

 

Maybe some tall me how properly check panfrost kernel module is working or only loaded?

 

Thanks :D

Edited by root-stas
Posted

Is anyone running a Beelink GT-King and does your box remain stable OR lock-up/freeze when transferring data to/from SD/USB?

 

Mine freezes completely when I transfer data around. My full post on it is here 

 

My system is a version 2.2 board the SA9X model.

 

 

I also see an "Internal error: Oops: 96000004 [#1] PREEMPT SMP" in the UART logs (See spoiler for full logs)

 

  Reveal hidden contents

 

If your system is running stable... be it any revision, please let me know.... and if there are any tweaks/changes anyone can suggest to try.....???

 

Many thanks

Posted
  On 5/8/2020 at 1:34 PM, erew said:

Mine freezes completely when I transfer data around. My full post on it is here 

Expand  

Where did you get the image ? Why did you change the scripts ?

Posted

Hello.

Big thanks to balbes150 for supporting this project and everyonelse answering questions as well.

I was able to boot from the USB drive into Armbian but run into an issue when copying to eMMC.

It is intermittent, but it seems that Armbian is not seeing my internal memory. In those rare cases when it does (mutliple reboot tries) it throws errors (see below) when I run install script.

At this moment of time I am about to give up, as I've spent 2 days on this issue trying different images. 

Is there anything else I can do? 

Thank you.

NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0      179:0    0  7.2G  0 disk
mmcblk0boot0 179:32   0    4M  1 disk
mmcblk0boot1 179:64   0    4M  1 disk
mmcblk2      179:96   0  7.4G  0 disk
├─mmcblk2p1  179:97   0  512M  0 part /boot
└─mmcblk2p2  179:98   0  6.8G  0 part /
zram0        254:0    0   50M  0 disk /var/log
zram1        254:1    0  399M  0 disk [SWAP]
root@arm-64:~# sh install-aml-s905-emmc.sh
Start script create MBR and filesystem
/dev/mmcblk0
Start backup u-boot default
dd: error reading '/dev/mmcblk0': Input/output error
0+0 records in
0+0 records out
0 bytes copied, 0.00227871 s, 0.0 kB/s
Start install u-boot to eMMC
dd: writing to '/dev/mmcblk0': Input/output error
1+0 records in
0+0 records out
0 bytes copied, 0.00114721 s, 0.0 kB/s
Done
Start copy system for eMMC.
Formatting BOOT partition...mkfs.fat 4.1 (2017-01-24)
mkfs.vfat: unable to open /dev/mmcblk0p1: No such file or directory
done.
mount: /ddbr/install: special device /dev/mmcblk0p1 does not exist.

 

Posted

Thanks @balbes150 for releasing 20.05.4 images!

Armbian_20.05.4_Arm-64_bionic_current_5.7.0-rc3_desktop_20200508.img.xz runs as expected nice on x96mini 2/16 (on this newer V4.0-PCB with working wifi&bt) preparing for headless use(with hdmi-display-dongle) on eMMC after testing from card for an hour or so. So I didn't test eth yet(time to sleep here now..) and also usb sound is just on other V1.x-box connected, but I don't expect big problems when installing on several other p281-pcbs later too..

Posted

Hi @balbes150 and everyone,

 

Armbian_20.05.4_Arm-64_bionic_current_5.7.0-rc3_desktop_20200508.img.xz runs as expected on Mecool KIII pro ( burn the image on the eMMC method).

 

All running well such as Sound, Bluetooth and HDMI display. but Ethernet LAN and WIFI cannot work.

 

Already try meson-gxm-mecool-kiii-pro.dtb and meson-gxm-q200.dtb, it still didn't work.

Could you or anyone can advice what should i do to checking/debugging further?

 

Thanks.

Posted
  On 5/8/2020 at 11:56 PM, truemad said:

Is there anything else I can do? 

Expand  

 

  On 5/9/2020 at 7:46 AM, mrrobot said:

Could you or anyone can advice what should i do to checking/debugging further?

Expand  

Contact the hardware manufacturer to develop and source the correct DTB for the mainline kernel with support for all devices for your models.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines