Jump to content

Recommended Posts

Posted
  On 3/3/2019 at 7:56 AM, Werner said:

Check top for load. With 3.10.65 image it stabilizes at 3 which means three of four cores are permanently under full load which also explains the temperature issues. Did not test on OPi3 though as I do not have one but on OPi1+ which comes with H6 as well. 4.17 with initial support for H6 fixed this for me.

Expand  

Oh my, I didn't notice. It's even worse than you describe! I left for half an hour the OPi3 idling and its load average is around 7, with cfinteractive taking 100% of the CPU...
I managed to compile the kernel from https://github.com/orangepi-xunlong/OrangePiH6_Linux4.9 but now I have to figure out how to convert the image to u-boot format (this u-boot thing is new to me).

@krachlatte did you receive your board? I'd like to help with testing but the instruction here: https://github.com/krachlatte/armbian-orangepi3/blob/master/README.md are not clear to me.

I'll try with the latest image from https://github.com/krachlatte/armbian-orangepi3/releases/

Posted
  On 3/3/2019 at 9:07 AM, FrancescoT said:

@krachlatte did you receive your board? I'd like to help with testing but the instruction here: https://github.com/krachlatte/armbian-orangepi3/blob/master/README.md are not clear to me.
 

Expand  

A bit unclear, yes. There is a folder userpatches after first run of compile.sh with subfolders for kernel and u-boot. Put the patches there.

Posted

I just received OPI 3 2G + 8G EMMC and trying your image.

 

I flashed following image

https://github.com/krachlatte/armbian-orangepi3/releases/download/v0.11/v0.11_Armbian_5.76_Orangepi3_Ubuntu_bionic_dev_4.20.12.img.bz2

 

HDMI was on until Loading Kernel written on screen then red power light illuminated. I waited nearly 1 hour but nothing happened.  What is the meaning of ages as objective? :) 

 

I will try to help by attaching logs but can someone basicly provide info about how to do it?

 

Note : Image file Armbian_5.59.180824_Orangepioneplus_Ubuntu_bionic_dev_4.18.0-rc7 successfully booted with HDMI & w/o network

 

Posted (edited)

Here is the outputs

 

U-Boot says 

 

Err:   vidconsole
Net:   No ethernet found.

 

Can someone put HDMI related lines of Armbian_5.59.180824_Orangepioneplus_Ubuntu_bionic_dev_4.18.0-rc7 to OPI3 image? Isn't that much easy?

  Reveal hidden contents

 

Edited by Tido
added spoiler - for better reading, please do that yourself next time. thx
Posted (edited)

If I add

 

/etc/network/interfaces.d/eth0

 

auto lo eth0

allow-hotplug eth0

iface eth0 inet dhcp

hwaddress ether **************

 

It stucks at Starting kernel ...

 

after 6 min it successfully booted still without network

Edited by obenturk
Update
Posted
  On 3/3/2019 at 1:42 PM, hojnikb said:

a second working sbc can also double as a serial adapter.

Expand  

Brilliant idea!! 

I attached an arduino to the OPi3 serial port with an old cdrom audio connector (where I moved a pin in order to have three adjacent pins connected) and three male-male pin cables, now I can see the output :thumbup:

Posted
  On 2/28/2019 at 8:35 PM, krachlatte said:

v0.11 released and available for download

Expand  

 

This is the serial port output when booting v0.11:

 

  Reveal hidden contents


And then goes on like this

Posted

I see in the download notes that there is a MAC address issue and I have also experienced it with my testing. Is this a hardware issue or is it on the OS side of things?  I also had something similar with the aml-s905x-cc and I seem to remember I partially fixed it by hard-defining a MAC address.

 

If it's on the Armbian side of things I will just wait for the stable build to release but otherwise I would like to fix it if I can.

 

Also, does anybody have a recommended heatsink size or even a specific amazon listing they can point to?

Posted
  On 3/3/2019 at 8:43 PM, datsuns said:

Also, does anybody have a recommended heatsink size or even a specific amazon listing they can point to?

Expand  

 

Heatsinks for the Raspberry Pi will work, although ~1mm small. Copper > aluminum in my experience. Check out AliExpress or eBay

Posted (edited)
  On 3/3/2019 at 3:49 PM, obenturk said:

Here is the outputs

 

U-Boot says 

 

Err:   vidconsole
Net:   No ethernet found.

 

Can someone put HDMI related lines of Armbian_5.59.180824_Orangepioneplus_Ubuntu_bionic_dev_4.18.0-rc7 to OPI3 image? Isn't that much easy?

 

U-Boot SPL 2018.09-rc1-armbian (Feb 28 2019 - 21:27:18 +0100)
DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.0(debug):64503b2
NOTICE:  BL31: Built : 21:26:49, Feb 28 2019
NOTICE:  BL31: Detected Allwinner H6 SoC (1728)
NOTICE:  BL31: Found U-Boot DTB at 0xc070f88, model: OrangePi 3
INFO:    ARM GICv2 driver initialized
NOTICE:  PMIC: Probing AXP805
NOTICE:  PMIC: AXP805 detected
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2018.09-rc1-armbian (Feb 28 2019 - 21:27:18 +0100) Allwinner Technology

CPU:   Allwinner H6 (SUN50I)
Model: OrangePi 3
DRAM:  2 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Failed (-5)
Using device 'sun50i_dw_hdmi', disp_uc_priv=00000000b9f33320
fb=be000000, size=1920 1080
In:    serial
Out:   vidconsole
Err:   vidconsole
Net:   No ethernet found.
starting USB...

 

Expand  

did you try to do an insmod realtek, because here it is missing

 

still did not receive the ornagepi 3 to do tests.

 

Edited by Tido
shorted quote - for better reading
Posted
  On 3/4/2019 at 5:47 PM, krachlatte said:

did you try to do an insmod realtek, because here it is missing

 

still did not receive the ornagepi 3 to do tests.

 

Expand  

Curious, did you get a shipping update yet? I'll try your image as well if I can figure out my serial drivers

Posted (edited)

I tried modprobe realtek

then

/etc/init.d/networking restart
 

root@orangepi3:~# ifup eth0
ifup: waiting for lock on /run/network/ifstate.eth0

Nothing happens I need to stop it ctrl+z

 

root@orangepi3:~# ifconfig -a
eth0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether 72:d6:05:4f:b9:3b  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 17

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 

 

Edited by obenturk
I forget to add with Armbian_5.59.180824_Orangepioneplus_Ubuntu_bionic_dev_4.18.0-rc7 network lights are illuminating even w/o networking but with your image no lights
Posted
  On 3/4/2019 at 8:03 PM, max-cldx said:

@Krachlatte v0.11 ubuntu work USB and works with a usb-ethernet
I have compiled the image of debian with your patches but usb does not work. What changes are necessary for the USB?

Expand  

does that mean usb not working in v0.11 ?

 

still waiting for the package to arive

Posted (edited)

I have watched this thread and decided to check the status of the mainline kernel 5.0 for the H6 with the @Icenowy 's work on top of it.

I can say it works really nice (tested on Orange Pi 3 H6):

* HDMI

* DVFS

* Gbps / ethernet

 

I have prepared a blindly DT that should work on Opi 3 H6: https://github.com/avafinger/orangepi-h6-ubuntu-base-minimal/tree/master/dts

 @Igor , Basically fetch the mainline kernel 5, apply your patch set on top and add/modify my DT.

 

I have tried to add i2c and spi but it did not work as i expected.

I had something like this:

For the i2c

        i2c0: i2c@5002000 {
            compatible = "allwinner,sun6i-a31-i2c";
            reg = <0x05002000 0x400>;
            interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&ccu CLK_BUS_I2C0>;
            resets = <&ccu RST_BUS_I2C0>;
            status = "disabled";
            #address-cells = <1>;
            #size-cells = <0>;
        };

        i2c1: i2c@5002400 {
            compatible = "allwinner,sun6i-a31-i2c";
            reg = <0x05002400 0x400>;
            interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&ccu CLK_BUS_I2C1>;
            resets = <&ccu RST_BUS_I2C1>;
            status = "disabled";
            #address-cells = <1>;
            #size-cells = <0>;
        };
            i2c0_pins: i2c0_pins {
                pins = "PH5", "PH6";
                function = "i2c0";
            };

            i2c1_pins: i2c1_pins {
                pins = "PD25", "PD26";
                function = "i2c1";
            };

Default i2c in use (PMIC and possibly HDMI):

ls /dev/i2c-*
/dev/i2c-0  /dev/i2c-1

i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: 50 51 52 53 54 55 56 57 -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --          

 

For the SPI0:

 

        spi0: spi@5010000 {
            compatible = "allwinner,sun8i-h3-spi";
            reg = <0x05010000 0x1000>;
            interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
            clock-names = "ahb", "mod";
            dmas = <&dma 23>, <&dma 23>;
            dma-names = "rx", "tx";
            pinctrl-names = "default";
            pinctrl-0 = <&spi0_pins>;
            resets = <&ccu RST_BUS_SPI0>;
            status = "disabled";
            num-cs = <1>;
            #address-cells = <1>;
            #size-cells = <0>;
        };
            spi0_pins: spi0 {
                pins = "PC0", "PC2", "PC3", "PC5";
                function = "spi0";
            };

One thing i noticed was some instability on SD card but resorting to 4.19-rc6 clk values fixed it.

 

Regarding the reboot command, i applied the latest ATF power fix (as suggested by @jernej but reboot works exactly as shutdown -h now

Edited by @lex
reboot issue
Posted
  On 3/6/2019 at 2:10 PM, @lex said:

I have tried to add i2c and spi but it did not work as i expected.

Expand  

In which way ? your i2c tests seems to work, right ?

  On 3/6/2019 at 2:10 PM, @lex said:

Regarding the reboot command, i applied the latest ATF power fix (as suggested by @jernej but reboot works exactly as shutdown -h now

Expand  

We still have to figure out where is the issue ... In another thread, I've mentioned that PineH64, with the same Armbian scripts, does reboot properly, while OrangePiOnePlus doesn't ...

 

Posted

I suspect there might be some issue with PMIC, like improper voltage set to some regulator... I noticed also some clock issues, which I'll investigate.

Posted
  On 3/6/2019 at 2:55 PM, martinayotte said:

In which way ? your i2c tests seems to work, right ?

Expand  

The printed info above (i2cdetect -y 0/1) is from the stock kernel, as soon as i added the i2c entries i2c gets lazy and do not detect the device i attach on PH6 and PH5 (Orange Pi One Plus).

I added:

&i2c0_pins {
    bias-pull-up;
};

just in case. No success.:unsure:

SPI seems to be in the right direction, i tried to drive ili9341 display but kernel complains PC5 is already in use, so i gave up for now.

 

Posted (edited)
  On 3/6/2019 at 3:51 PM, jernej said:

issue with PMIC, like improper voltage set to some regulator

Expand  

Possible, do you mean u-boot? I am using old u-boot with old values,  will re-check and see if it changes something. Thanks for the tip.

Edited by @lex
no regulators on u-boot
Posted

Forgot to print the dma used:

 

         dma: dma-controller@3002000 {
            compatible = "allwinner,sun50i-a64-dma";
            reg = <0x03002000 0x1000>;
            interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&ccu CLK_BUS_DMA>;
            dma-channels = <8>;
            dma-requests = <27>;
            resets = <&ccu RST_BUS_DMA>;
            #dma-cells = <1>;
        };

 

Posted
  On 3/6/2019 at 4:30 PM, @lex said:

Forgot to print the dma used: 

 

         dma: dma-controller@3002000 {
            compatible = "allwinner,sun50i-a64-dma";
            reg = <0x03002000 0x1000>;
            interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&ccu CLK_BUS_DMA>;
            dma-channels = <8>;
            dma-requests = <27>;
            resets = <&ccu RST_BUS_DMA>;
            #dma-cells = <1>;
        };

 

Expand  

 

That won't fly. DMA is not the same as in A64. But fear not, I have patches which I plan to send soon (just before I2S stuff): https://github.com/jernejsk/linux-1/commits/h6_i2s

Posted
  On 3/6/2019 at 3:51 PM, jernej said:

improper voltage set to some regulator.

Expand  

These are the changes from H64 and OpiOne+

 

@@ -161,6 +155,7 @@
                 regulator-min-microvolt = <3300000>;
                 regulator-max-microvolt = <3300000>;
                 regulator-name = "vcc-ac200";
+                regulator-enable-ramp-delay = <100000>;
             };
 
             reg_aldo3: aldo3 {
@@ -219,7 +214,7 @@
             reg_dcdca: dcdca {
                 regulator-always-on;
                 regulator-min-microvolt = <810000>;
-                regulator-max-microvolt = <1160000>;
+                regulator-max-microvolt = <1080000>;
                 regulator-name = "vdd-cpu";
             };
 
 

Posted
  On 3/6/2019 at 4:44 PM, @lex said:

BTW Do you have mali working on your kernel?

Expand  

Yes, with proprietary userspace blobs. Yesterday I posted initial LibreELEC PineH64 image, so most important things from my perspective already work, although not stable yet.

Posted

BTW, newest U-Boot (2019.01) is the most optimal choice for H6. It correctly detects and sets boards with 3 GiB of RAM. It also has some DRAM stability fixes. The only thing you would lose is simplefb HDMI driver, but Linux 5.0 has initial H6 DRM driver anyway. OrangePi DTs don't have HDMI/DE/TCON nodes, but it should be easy to add them (copy over from PineH64). I didn't do it just because I don't have any OrangePi with H6 for testing.

Posted
  On 3/6/2019 at 5:29 PM, jernej said:

OrangePi DTs don't have HDMI/DE/TCON node

Expand  

The opi3-h6.dts i pointed to already have all the nodes. HDMI works like a charm. Those who will try need to compile the kernel with Wifi and BT enabled.

I synced the regulators with H64 but that does not fix the reboot issue.

 

I just noticed the power ON/OFF button works, maybe the H64 does not have this button?

 

Do you have any suggestion about i2c? 

I will use your dma code and see if i get SPI0 to work.

Posted
  On 3/6/2019 at 6:14 PM, @lex said:

The opi3-h6.dts i pointed to already have all the nodes. HDMI works like a charm.

Expand  

Can you please send that patch upstream? There is no reason to hold it up and you would lower patch count when using newer versions of kernel.

 

  On 3/6/2019 at 6:14 PM, @lex said:

I just noticed the power ON/OFF button works, maybe the H64 does not have this button?

Expand  

I didn't pay attention to that functionality.

 

  On 3/6/2019 at 6:14 PM, @lex said:

Do you have any suggestion about i2c? 

I will use your dma code and see if i get SPI0 to work.

Expand  

No suggestions about I2C or SPI. Maybe just compare registers if they are the same and on same addresses, if you plan to use some non-H6 compatible string.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines