Jump to content

Armbian for Amlogic S905X3


Sergey2k

Recommended Posts

5 hours ago, gabe5000 said:

Now I'd like to install the system on the eMMC. I started to follow  the Armbian documentation, but the 'nand-sata-install' command is not recognized.

Could you please help me what to do?

For the Armbian TV box builds, there is a script in the /root folder that you need to run to install into emmc.  There will likely be multiple scripts in this directory, you run the one named appropriately for your device.

Link to comment
Share on other sites

I haven't found that script. 

But I ran into an error after apt upgrade:

 

The following packages will be upgraded:
  linux-image-current-arm-64
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.5 MB of archives.
After this operation, 4,512 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 https://apt.armbian.com bionic/main arm64 linux-image-current-arm-64 arm64 20.05.0 [28.5 MB]
Fetched 28.5 MB in 8s (3,743 kB/s)                                             
(Reading database ... 79635 files and directories currently installed.)
Preparing to unpack .../linux-image-current-arm-64_20.05.0_arm64.deb ...
update-initramfs: Deleting /boot/initrd.img-5.6.0-rc6-arm-64
Unpacking linux-image-current-arm-64 (20.05.0) over (20.05.0) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-current-arm-64_20.05.0_arm64.deb (--unpack):
 unable to make backup link of './boot/dtb/allwinner/sun50i-a64-amarula-relic.dtb' before installing new version: Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-current-arm-64_20.05.0_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 

I'm fairly new to linux and I don't know what it means and how to fix it.

What am I supposed to do?

Link to comment
Share on other sites

2 minutes ago, gabe5000 said:

dpkg: error processing archive /var/cache/apt/archives/linux-image-current-arm-64_20.05.0_arm64.deb (--unpack):

Rename the /boot/dtb directory to /boot/dtb-old and run the update again.

Link to comment
Share on other sites

8 minutes ago, balbes150 said:

Rename the /boot/dtb directory to /boot/dtb-old and run the update again.

 

Thank you, it worked.

 

I would appreciate a more detailed description about installing on emmc, if possible.

 

Link to comment
Share on other sites

4 minutes ago, gabe5000 said:

Thank you, it worked.

 

I would appreciate a more detailed description about installing on emmc, if possible.

Before installation , you must create a full backup (compressed) copy. Run the "sudo ddbr" utility and follow the prompts.

Link to comment
Share on other sites

8 hours ago, gabe5000 said:

I've just installed bionic 20200306 on my x96 air p2 4/64, and it works fine for me, wonderful.

Now I'd like to install the system on the eMMC. I started to follow  the Armbian documentation, but the 'nand-sata-install' command is not recognized.

Could you please help me what to do?

To install it on emmc : sudo /root/install-aml.sh

How did you get started on x96 air?

Can you detail me?

Link to comment
Share on other sites

3 hours ago, almotra said:

To install it on emmc : sudo /root/install-aml.sh

How did you get started on x96 air?

Can you detail me?

1) I burnt Armbian_20.05.0_Arm-64_bionic_current_5.6.0-rc6_desktop_20200326.img on SD card.

2) In uEnv.txt I referred to meson-sm1-sei610-ethfix.dtb 

3) Renamed u-boot.sd to u-boot.ext

4) I reset the box 

I don't know if hdmi sound works as I use usb sound. Wifi works fine.

Link to comment
Share on other sites

8 hours ago, gabe5000 said:

1) I burnt Armbian_20.05.0_Arm-64_bionic_current_5.6.0-rc6_desktop_20200326.img on SD card.

2) In uEnv.txt I referred to meson-sm1-sei610-ethfix.dtb 

3) Renamed u-boot.sd to u-boot.ext

4) I reset the box 

I don't know if hdmi sound works as I use usb sound. Wifi works fine.

My box is an X96 Air P3 with 1 GB ethernet and 4/64GB of memory. The Android 9 build version is  "x96Air_P3_20191204-1754" The Android firmware is "Amlogic/franklin/franklin9/PPR1.180610.011/20191204/userdebug/test-keys/20191204/userdebug/test-keys"

 

The above instructions you provided do work. I can confirm HDMI sound and Bluetooth are not working. What did you do to get WiFi working. On my box the Wifi is not working. The 1GB ethernet connection only connects at 100MB

 

dmesg output attached.

 

 

dmesg

Link to comment
Share on other sites

Ok I started with buster on my x96 max plus.

On sd card, with meson-sm1-sei610-ethfix.dtb and u-boot.ext, I have the image and ethernet works.

After installation on emmc, no ethernet, and blurred image.

How to do ?

Link to comment
Share on other sites

17 hours ago, balbes150 said:

Before installation , you must create a full backup (compressed) copy. Run the "sudo ddbr" utility and follow the prompts.

I have a 16GB Sd card only, with 11GB free space. ddbr warns me that the operation might be destructive.

Do you think that 11GB is enough for the backup? ( I installed nothing on android.)

If not, can I send the backup to a usb drive instead of the sd card?

Link to comment
Share on other sites

21 hours ago, balbes150 said:

Yes

I created the backup file and executed install-aml.sh.

There was one error message:

Quote

Formatting BOOT partition...mkfs.fat 4.1 (2017-01-24)
done.
Cppying BOOT...done.
Edit init config...done.
mv: cannot stat '/ddbr/install/u-boot.sd': No such file or directory
Formatting ROOT partition...

 

Now, if I start armbian from emmc, I have the color problem.

I've read about this color problem in the forum, but honestly I do not understand how to fix it.

Link to comment
Share on other sites

51 minutes ago, gabe5000 said:

mv: cannot stat '/ddbr/install/u-boot.sd': No such file or directory

 

51 minutes ago, gabe5000 said:

I've read about this color problem

During installation, an important file was missing from the media (u-boot.sd). If you are running an EMMC installation from an SD card, make a copy of the file with this name from the file (u-boot.ext).

Link to comment
Share on other sites

16 minutes ago, balbes150 said:

 

During installation, an important file was missing from the media (u-boot.sd). If you are running an EMMC installation from an SD card, make a copy of the file with this name from the file (u-boot.ext).

Thank you, Balbes! Now everything is fine.

I'm quite surprised how fast the system is from the emmc.

I'm very impressed with armbian.

Link to comment
Share on other sites

On 3/29/2020 at 10:47 AM, almotra said:

Ok I started with buster on my x96 max plus.

On sd card, with meson-sm1-sei610-ethfix.dtb and u-boot.ext, I have the image and ethernet works.

After installation on emmc, no ethernet, and blurred image.

How to do ?

 

 

I answer myself.

After booting on the sd card, copy and rename the u-boot.ext file to u-boot.sd with the commands:

cd /boot

then

cp u-boot.ext u-boot.sd

then

cd

then

/root/install-aml.sh

Link to comment
Share on other sites

On 2/14/2020 at 6:26 AM, keynight said:

Can you check with this  dtd files

meson-sm1-sei610-ethfix.dtb 

meson-sm1-sei610-ethfix.dts

meson-sm1-sei610-ethfix.dts 63.42 kB · 63 downloads meson-sm1-sei610-ethfix.dtb 45.73 kB · 72 downloads

I'm running Armbian_20.05.1_Arm-64_buster_current_5.6.2_20200408.img on a X96 Max Plus 4GB, I modified those sections which you changed in the dts file, ethernet is working now, but only 100Mbps. If using the original meson-sm1-sei610.dtb file, I can see through my router that LAN is connected on 1Gbps, but no IP address is issued.

 

Any suggestion to make ethernet working on 1Gbps?

Link to comment
Share on other sites

These are the sections related to ethernet from the android firmware dtb file which 1Gbps is working well, I tried replaced them in the meson-sm1-sei610.dtb, armbian can boot but ethernet still didn't work.

 

	ethernet@ff3f0000 {
		compatible = "amlogic, g12a-eth-dwmac\0snps,dwmac";
		reg = < 0xff3f0000 0x10000 0xff634540 0x08 0xff64c000 0xa0 >;
		reg-names = "eth_base\0eth_cfg\0eth_pll";
		interrupts = < 0x00 0x08 0x01 >;
		interrupt-names = "macirq";
		status = "okay";
		clocks = < 0x02 0x38 >;
		clock-names = "ethclk81";
		pll_val = < 0x9c0040a 0x927e0000 0xac5f49e5 >;
		analog_val = < 0x20200000 0xc000 0x23 >;
		pinctrl-names = "external_eth_pins";
		pinctrl-0 = < 0x11 >;
		mc_val = < 0x1621 >;
		cali_val = < 0x30000 >;
		internal_phy = < 0x00 >;
		phandle = < 0x96 >;
	};
          
		internal_eth_pins {
			phandle = < 0xbf >;

			mux {
				function = "eth";
			};
		};

		internal_gpio_pins {
			phandle = < 0xc0 >;

			mux {
				function = "gpio_periphs";
				bias-disable;
				input-enable;
			};
		};

		external_eth_pins {
			phandle = < 0x11 >;

			mux {
				groups = "eth_mdio\0eth_mdc\0eth_rgmii_rx_clk\0eth_rx_dv\0eth_rxd0\0eth_rxd1\0eth_rxd2_rgmii\0eth_rxd3_rgmii\0eth_rgmii_tx_clk\0eth_txen\0eth_txd0\0eth_txd1\0eth_txd2_rgmii\0eth_txd3_rgmii";
				function = "eth";
				drive-strength = < 0x03 >;
			};
		};

 

Link to comment
Share on other sites

On 4/10/2020 at 6:28 AM, gusnau said:

These are the sections related to ethernet from the android firmware dtb file which 1Gbps is working well, I tried replaced them in the meson-sm1-sei610.dtb, armbian can boot but ethernet still didn't work.

 


	ethernet@ff3f0000 {
		compatible = "amlogic, g12a-eth-dwmac\0snps,dwmac";
		reg = < 0xff3f0000 0x10000 0xff634540 0x08 0xff64c000 0xa0 >;
		reg-names = "eth_base\0eth_cfg\0eth_pll";
		interrupts = < 0x00 0x08 0x01 >;
		interrupt-names = "macirq";
		status = "okay";
		clocks = < 0x02 0x38 >;
		clock-names = "ethclk81";
		pll_val = < 0x9c0040a 0x927e0000 0xac5f49e5 >;
		analog_val = < 0x20200000 0xc000 0x23 >;
		pinctrl-names = "external_eth_pins";
		pinctrl-0 = < 0x11 >;
		mc_val = < 0x1621 >;
		cali_val = < 0x30000 >;
		internal_phy = < 0x00 >;
		phandle = < 0x96 >;
	};
          
		internal_eth_pins {
			phandle = < 0xbf >;

			mux {
				function = "eth";
			};
		};

		internal_gpio_pins {
			phandle = < 0xc0 >;

			mux {
				function = "gpio_periphs";
				bias-disable;
				input-enable;
			};
		};

		external_eth_pins {
			phandle = < 0x11 >;

			mux {
				groups = "eth_mdio\0eth_mdc\0eth_rgmii_rx_clk\0eth_rx_dv\0eth_rxd0\0eth_rxd1\0eth_rxd2_rgmii\0eth_rxd3_rgmii\0eth_rgmii_tx_clk\0eth_txen\0eth_txd0\0eth_txd1\0eth_txd2_rgmii\0eth_txd3_rgmii";
				function = "eth";
				drive-strength = < 0x03 >;
			};
		};

 

As more people mentioned before the sections from factory kernel is not working with the mainline kernel, for example: mc_val, analog_val, cali_val. The functions which handles this sections are missing from the mainline soc ethernet driver. You may try to put these function to the driver or "convert" the functions to the reg section if it's possible...

Link to comment
Share on other sites

20 minutes ago, gcsuri said:

As more people mentioned before the sections from factory kernel is not working with the mainline kernel, for example: mc_val, analog_val, cali_val. The functions which handles this sections are missing from the mainline soc ethernet driver. You may try to put these function to the driver or "convert" the functions to the reg section if it's possible...

Thanks, guess I have to wait for someone who is good at it. I know nothing about this

Link to comment
Share on other sites

1 hour ago, fossxplorer said:

Is there any such box with Gbit Ethernet? 

What are the biggest differences of the these X3s vs the old X905 and X905X which i have several of?

 

 

Yes, I've got one running Coreelec and it's definitely Gigabit (there are 100mbit versions available too)

My model - X96AirP2 4GB/64GB

I guess the biggest differences are faster/better CPU and GPU giving more hardware support for more resolutions, codecs, bitrates etc

Link to comment
Share on other sites

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

Important Information

Terms of Use - Privacy Policy - Guidelines