Jump to content

OrangePi Zero2 - Allwinner H616


Werner

Recommended Posts

Thanks a lot for you answers and you work!!! :beer:

 

@Igor I totally understand what you says about voluntary work in open source projects i'm also a programmer... It's incredible to see how far armbian are getting with the work and efforts of this community.

 

Could somebody explain me how the process continues now?

How the changes in the jernej repo merges with armbian?

 

Thanks again!

Link to comment
Share on other sites

1 hour ago, Andyvec said:

Could somebody explain me how the process continues now?

 

Standard way, with additional parameter EXPERT=yes which is not documented by purpose. Things can fail and nobody will react.

https://docs.armbian.com/Developer-Guide_Build-Preparation/

 

1 hour ago, Andyvec said:

How the changes in the jernej repo merges with armbian?

 

https://github.com/armbian/build/commit/cf45b970c1101625f6522208d62d6d3f8e6a343d

 

Just build the image. 

 

 

Link to comment
Share on other sites

Hi!

 

Many thanks for helping my and the work you are doing :love:


I've tried building my own image and also with the "Groovy nightly" (21/01/12), and burning it with hash verification you suggested.

There is something new, but still not booting on the zero2.

 

In both cases the green light now turns on 5 seconds after getting power (in OrangePi build it's only 1 second), but the red one never turns on, not ever for a second like in the OrangePi build.

I also get no image at all, all black my screen.

 

Any clues?

Link to comment
Share on other sites

Branch https://github.com/apritzel/linux/commits/h616-v2 is currently the best we have. With it following peripherals are supported and nothing more:

- serial

- ethernet

- SD card

- RTC

- watchdog (needed for reset)

- GPIO/I2C/SPI/UART (if you enable them manually)

- SPI flash

 

HDMI, USB and other more complex stuff is not understood enough to be implemented. If you need it, use images from OrangePi, but don't expect support here.

Link to comment
Share on other sites

Hi Gentleman,

I have this board on my desk and trying from couple of day to utilize this board and run some os on it.
Unfortunately those from armbian download is not working.
After that decided to compile my own image, but problem seems are the same.
Problem with booting because no image found.
Any suggestion from your side, where to fix the issue ? 

 

U-Boot SPL 2021.01-rc4-armbian (Jan 05 2021 - 03:01:27 +0100)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.4(debug):7eee1da-dirty
NOTICE:  BL31: Built : 03:01:19, Jan  5 2021
NOTICE:  BL31: Detected Allwinner H616 SoC (1823)
NOTICE:  BL31: Found U-Boot DTB at 0x4a084bd0, model: OrangePi Zero2
INFO:    ARM GICv2 driver initialized
INFO:    PMIC: Probing AXP305 on I2C
INFO:    PMIC: aldo1 voltage: 3.300V
INFO:    PMIC: aldo2 voltage: 3.300V
INFO:    PMIC: aldo3 voltage: 3.300V
INFO:    PMIC: bldo1 voltage: 1.800V
INFO:    PMIC: dcdcd voltage: 1.500V
INFO:    PMIC: dcdce voltage: 3.300V
INFO:    Changed devicetree to reserve BL31 memory.
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
WARNING: BL31: cortex_a53: CPU workaround for 1530924 was missing!
NOTICE:  PSCI: System suspend is unavailable
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2021.01-rc4-armbian (Jan 05 2021 - 03:01:27 +0100) Allwinner Technology

CPU:   Allwinner H616 (SUN50I)
Model: OrangePi Zero2
I2C:   ready
DRAM:  1 GiB
MMC:   
Loading Environment from FAT... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   phy interface7
eth0: ethernet@5020000
starting USB...
No working controllers found
Autoboot in 1 seconds
No MMC device available
starting USB...
No working controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No working controllers found
ethernet@5020000 Waiting for PHY auto negotiation to complete.... done
BOOTP broadcast 1
DHCP client bound to address 10.100.2.115 (3 ms)
*** Warning: no boot file name; using '0A640273.img'
Using ethernet@5020000 device
TFTP from server 10.100.2.1; our IP address is 10.100.2.115
Filename '0A640273.img'.
Load address: 0x42000000

 

Link to comment
Share on other sites

1 hour ago, Darkness said:

After that decided to compile my own image, but problem seems are the same.


Images build from sources works - I happens that I made one image today. But there is no much change since 1st test build.

Link to comment
Share on other sites

12 minutes ago, jernej said:

h616-v2, which is already in latest Armbian master


May you paste whole command for built ?
If it is in branch master, then this change i have it.

Which image then i should use to built ? 

I`m using repo from armbian as it is mentioned in dev documentation (https://github.com/armbian/build/), not this one

https://github.com/apritzel/linux/commits/h616-v2

 

Link to comment
Share on other sites

Hi,

I did compile the image yesterday and now did it again since Igor says it was working.... but it is not in my case.

 

I don't care for USB of video output. I just need Ethernet and ssh for my project.
The OS seems to start booting at least, but never establish an Ethernet connection.

 

The system seems to boot now, because in 5 seconds the green light turn on (but this is also different from OrangePi build where red light turns on prior to the green one) and the Ethernet port start blinking both lights.
But the the lights keep blinking in a wired way and never got connected to my router.
If I do a ping command (to any address) in another computer from the same network then the Ethernet light start blinking quicker.
My router config is with automatic DNS and all PnP tested with other boards.

 

This is what I did to compile the image:

Following the guide: https://docs.armbian.com/Developer-Guide_Build-Preparation/
Doing a new checkout from git in a clean folder
./compile.sh EXPERT=yes
1 - Building: Full image for flashing
2 - Do not change the kernel configuration
3 - Board: orangepizero2
4 - Kernel branch: current
5 - Ubuntu Focal LTS
6 - Standard image with console interface
Burning the img with etcher and verifying the hash matches.
Boot in the board and wait 15 minutes just in case the first boot was slower.

 

@Igor: Did you do something different to build the image?

@Darkness: You should already have this change, check this file "config/sources/families/sun50iw6.conf", you shuld have BOOTBRANCH='branch:h616-v2' instead of v1.

Link to comment
Share on other sites

1 hour ago, Andyvec said:

Hi,

I did compile the image yesterday and now did it again since Igor says it was working.... but it is not in my case.

 

I don't care for USB of video output. I just need Ethernet and ssh for my project.
The OS seems to start booting at least, but never establish an Ethernet connection.

 

The system seems to boot now, because in 5 seconds the green light turn on (but this is also different from OrangePi build where red light turns on prior to the green one) and the Ethernet port start blinking both lights.
But the the lights keep blinking in a wired way and never got connected to my router.
If I do a ping command (to any address) in another computer from the same network then the Ethernet light start blinking quicker.
My router config is with automatic DNS and all PnP tested with other boards.

 

This is what I did to compile the image:

Following the guide: https://docs.armbian.com/Developer-Guide_Build-Preparation/
Doing a new checkout from git in a clean folder
./compile.sh EXPERT=yes
1 - Building: Full image for flashing
2 - Do not change the kernel configuration
3 - Board: orangepizero2
4 - Kernel branch: current
5 - Ubuntu Focal LTS
6 - Standard image with console interface
Burning the img with etcher and verifying the hash matches.
Boot in the board and wait 15 minutes just in case the first boot was slower.

 

@Igor: Did you do something different to build the image?

@Darkness: You should already have this change, check this file "config/sources/families/sun50iw6.conf", you shuld have BOOTBRANCH='branch:h616-v2' instead of v1.



Hi, yes everything is fine with this image.
Thanks for all for help.

My bad that i used precompiled images instead of compiling new one.
After that when i choose the correct option everything is fine.

I can login using some uart devices, and have console access.
But i cannot setup networking.

when i do 
 

ls /sys/class/net



Then listing lo and eth0 interfaces.
when putting configuration to /etc/network/interfaces 

 

 auto eth0
 allow-hotplug eth0
 iface eth0 inet dhcp


It`s booting but there is a problem to raisup interfacerange pi
 

● networking.service - Raise network interfaces
     Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor pr>
     Active: failed (Result: timeout) since Wed 2021-01-13 23:14:26 UTC; 27s ago
       Docs: man:interfaces(5)
    Process: 388 ExecStart=/sbin/ifup -a --read-environment (code=exited, statu>
   Main PID: 388 (code=exited, status=0/SUCCESS)

Jan 13 23:09:19 orangepizero2 ifup[388]: ifup: waiting for lock on /run/network>
Jan 13 23:14:15 orangepizero2 systemd[1]: networking.service: start operation t>
Jan 13 23:14:15 orangepizero2 ifup[388]: Got signal Terminated, terminating...
Jan 13 23:14:26 orangepizero2 systemd[1]: networking.service: Failed with resul>
Jan 13 23:14:26 orangepizero2 systemd[1]: Failed to start Raise network interfa>
Warning: journal has been rotated since unit was started, output may be incompl>


 

[  +0.020481] systemd[1]: Starting Raise network interfaces...
[  +0.185134] dwmac-sun8i 5020000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211F Gigabit Ethernet] (irq=POLL)
[  +0.001655] dwmac-sun8i 5020000.ethernet eth0: No Safety Features support found
[  +0.000020] dwmac-sun8i 5020000.ethernet eth0: No MAC Management Counters available
[  +0.000007] dwmac-sun8i 5020000.ethernet eth0: PTP not supported by HW
[  +0.000669] dwmac-sun8i 5020000.ethernet eth0: configuring for phy/rgmii-id link mode
[  +0.546623] random: crng init done


 

Any suggestion ? 

Seems like USB port is not working as well.
Hub is identifying but plugged devices are not recognized
 

orangepizero2:~:# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
orangepizero2:~:#


 

Link to comment
Share on other sites

5 hours ago, Darkness said:

Seems like USB port is not working as well.
Hub is identifying but plugged devices are not recognize

As I quote myself...

 

On 1/12/2021 at 5:48 PM, Werner said:

As I quote:

This means no HDMI, no USB, no GPIO, no .....

 

Link to comment
Share on other sites

Just another data point, the following code initializes an ili9341 display on DRM, but there is something else wrong with SPI or driver (but tested driver and it works under H6). One could see the display initializes under X, but the mouse pointer is kind of messed up (1st pic), also X terminal is garbled (2nd pic) . X would then eventually shut down because of lack of input device or something else.

 

_1180349.JPG.1f35c524f5a6c16672be10a4e9cdb2e5.JPG_1180350.JPG.0c7c07667a48e027bf172a5a30b4f388.JPG

1_ili9341.dts

 

Note: Same behavior with fbdev driver.

Link to comment
Share on other sites

Ladies and gentlemen, there's an official open source Linux 4.9 implementation. Links:

https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-4.9-sun50iw9

Device Tree:

https://github.com/orangepi-xunlong/linux-orangepi/tree/orange-pi-4.9-sun50iw9/arch/arm64/boot/dts/sunxi

 

Linux 4.9 has no mali GPU support, so I'm hoping the newest mainline or linux-sunxi would get it work.

Link to comment
Share on other sites

Hi all! 

 

I've bought two OPi Zero 2 from Ali. Taken for them SanDisk Extreme A1 microSD cards. Used recommended here SD Memory card Formatter, formated cards, and used balenaEtcher to burn ISO on the card. ISO were taken from https://www.armbian.com/orange-pi-zero-2/#kernels-archive-all. After burning, checking process shown that all is correct. For power sully I tried typical phone charger with 5V/2A output, another phone charger with 5V/3A output and finally dedicated power supply with 5V/5A output. SBCs were connected to monitor by microHDMI cable that was preliminarily tested. Both SBCs show nothing, totally, nor LED flash, nor any data on monitor, nothing. While connected to each of used power supplies I checked the voltage on 2 and 6 pins, it was 4.8V, 4.9V and 5.9V respectively. Now I'm at dead end with all my efforts, don't know what to do more. Thanks for reading this strengthless moaning.1xySN9CfhMT8OV_3ma6wz-O28_yhOX_x8gWZ79s3

Edited by yar83
May be a photo will reveal something more.
Link to comment
Share on other sites

The short and hurting answer: Next time buy a board that has proper software support

 

The long and.... hurting answer: The H616 is quite new and its support status is to be considered experimental AT MOST. For now you are stuck with experimental Armbian images which can break at any time and nobody will invest time to fix asap. Or use vendor provided images which are usually poor quality and build on top of outdated software.

If you really wanna do serious stuff with it do what I did: Put it on the shelf and let it sit there for about a year from now. Then come back to it.

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