46 46
constantius

Orangepi 3 h6 allwiner chip

Recommended Posts

On 8/4/2019 at 8:11 PM, Werner said:

I added OPi 3 Buster image as well as kernel debs to my builds and will be available tomorrow following the link mentioned in my signature below.

Thank you

Share this post


Link to post
Share on other sites

Hi Verner,

I tried this one on muy opi3

 

https://laet.pw/index.php/s/M2eXJKll5sdnlBN/download?path=%2F0808&files=Armbian_5.93_Orangepi3_Debian_buster_dev_5.2.6.img.gz

 

but it can't start. 

there is a kernel panic:

 

U-Boot 2019.04-armbian (Aug 08 2019 - 07:28:48 +0000) Allwinner Technology      
                                                                                
CPU:   Allwinner H6 (SUN50I)                                                    
Model: OrangePi 3                                                               
DRAM:  2 GiB                                                                    
MMC:   mmc@4020000: 0, mmc@4022000: 1                                           
Loading Environment from EXT4... ** File not found /boot/boot.env **            
                                                                                
** Unable to read "/boot/boot.env" from mmc0:1 **                               
In:    serial@5000000                                                           
Out:   serial@5000000                                                           
Err:   serial@5000000                                                           
Net:   No ethernet found.                                                       
starting USB...                                                                 
No controllers found                                                            
Hit any key to stop autoboot:  0                                                
switch to partitions #0, OK                                                     
mmc0 is current device                                                          
Scanning mmc 0:1...                                                             
Found U-Boot script /boot/boot.scr                                              
3042 bytes read in 2 ms (1.5 MiB/s)                                             
## Executing script at 4fc00000                                                 
U-boot loaded from SD                                                           
Boot script loaded from mmc                                                     
181 bytes read in 1 ms (176.8 KiB/s)                                            
27919 bytes read in 9 ms (3 MiB/s)                                              
4161 bytes read in 5 ms (812.5 KiB/s)                                           
Applying kernel provided DT fixup script (sun50i-h6-fixup.scr)                  
## Executing script at 44000000                                                 
8244348 bytes read in 835 ms (9.4 MiB/s)                                        
14954504 bytes read in 1514 ms (9.4 MiB/s)                                      
## Loading init Ramdisk from Legacy Image at 4fe00000 ...                       
   Image Name:   uInitrd                                                        
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)                  
   Data Size:    8244284 Bytes = 7.9 MiB                                        
   Load Address: 00000000                                                       
   Entry Point:  00000000                                                       
   Verifying Checksum ... OK                                                    
## Flattened Device Tree blob at 4fa00000                                       
   Booting using the fdt blob at 0x4fa00000                                     
   Loading Ramdisk to 49823000, end 49fffc3c ... OK                             
   Loading Device Tree to 00000000497b3000, end 0000000049822fff ... OK         
                                                                                
Starting kernel ...                                                             
                                                                                
[    6.356324] Unable to handle kernel NULL pointer dereference at virtual addr1
[    6.365113] Mem abort info:                                                  
[    6.367901]   ESR = 0x96000004                                               
[    6.370951]   Exception class = DABT (current EL), IL = 32 bits              
[    6.376861]   SET = 0, FnV = 0                                               
[    6.379909]   EA = 0, S1PTW = 0                                              
[    6.383043] Data abort info:                                                 
[    6.385918]   ISV = 0, ISS = 0x00000004                                      
[    6.389746]   CM = 0, WnR = 0                                                
[    6.392709] user pgtable: 4k pages, 48-bit VAs, pgdp=00000000b4bed000        
[    6.399138] [0000000000000501] pgd=0000000000000000                          
[    6.404009] Internal error: Oops: 96000004 [#1] SMP                          
[    6.408877] Modules linked in: snd_soc_hdmi_codec snd_soc_core snd_pcm_dmaenx
[    6.428770] CPU: 2 PID: 514 Comm: haveged Not tainted 5.2.6-sunxi64 #5.93    
[    6.435547] Hardware name: OrangePi 3 (DT)                                   
[    6.439637] pstate: 40000085 (nZcv daIf -PAN -UAO)                           
[    6.444431] pc : account_user_time+0x18/0xd8                                 
[    6.448695] lr : account_process_tick+0xf8/0x118                             
[    6.453304] sp : ffff000010013d80                                            
[    6.456612] x29: ffff000010013d80 x28: ffff800077bb0228                      
[    6.461916] x27: ffff800077bafd00 x26: 0000000000000040                      
[    6.467220] x25: 0000000000000080 x24: 000000017a9bdad6                      
[    6.472524] x23: 0000000000000001 x22: 0000000000000001                      
[    6.477827] x21: 0000800066db4000 x20: 00000000003d0900                      
[    6.483131] x19: 0000000000000001 x18: 0000000000000000                      
[    6.488435] x17: 0000000000000000 x16: 0000000000000000                      
[    6.493739] x15: 0000000000000000 x14: 0000000000000000                      
[    6.499043] x13: 0000000000000000 x12: 0000000000000000                      
[    6.504346] x11: 0000000000000000 x10: 0000000000000040                      
[    6.509650] x9 : ffff000010e32a78 x8 : ffff000010e32a70                      
[    6.514954] x7 : ffff800075000290 x6 : 0000000010b2a35f                      
[    6.520258] x5 : 0000800066db4000 x4 : ffff000010e18000                      
[    6.525562] x3 : 0000000000000000 x2 : 00000000003d0900                      
[    6.530865] x1 : 00000000003d0900 x0 : 0000000000000001                      
[    6.536170] Call trace:                                                      
[    6.538614]  account_user_time+0x18/0xd8                                     
[    6.542531]  account_process_tick+0xf8/0x118                                 
[    6.546797]  update_process_times+0x20/0x58                                  
[    6.550977]  tick_sched_handle.isra.5+0x30/0x48                              
[    6.555501]  tick_sched_timer+0x48/0x98                                      
[    6.559331]  __hrtimer_run_queues+0xfc/0x218                                 
[    6.563593]  hrtimer_interrupt+0xf8/0x2d0                                    
[    6.567599]  arch_timer_handler_phys+0x28/0x40                               
[    6.572038]  handle_percpu_devid_irq+0x80/0x140                              
[    6.576564]  generic_handle_irq+0x24/0x38                                    
[    6.580567]  __handle_domain_irq+0x5c/0xb0                                   
[    6.584658]  gic_handle_irq+0x58/0xa8                                        
[    6.588315]  el0_irq_naked+0x4c/0x54                                         
[    6.591887] Code: a90153f3 aa0003f3 f90013f5 aa0103f4 (f9428000)             
[    6.597972] ---[ end trace 51151885df76d1d1 ]---                             
[    6.602582] Kernel panic - not syncing: Fatal exception in interrupt         
[    6.608929] SMP: stopping secondary CPUs                                     
[    6.612846] Kernel Offset: disabled                                          
[    6.616328] CPU features: 0x0002,20002004                                    
[    6.620330] Memory Limit: none                                               
[    6.623382] Rebooting in 10 seconds..          

sorry... :(

Share this post


Link to post
Share on other sites

Sorry to hear but no clue.

 

These images come directly from the build script located here https://github.com/armbian/build and I did not add any modifications. They are just pre-build to save some time setting up a build environment and run the whole thing. Maybe someone does not even have a chance to built such images themselves.

And also they are some kind of control as if something is missing there must have been a change that breaks the build process.

 

The support for the Allwinner H6 SoC (which is the heart of boards like the OrangePi One Plus, Lite2 and OrangePi 3) is still under development and dev images can break at any time for any reason. Feel free to give older images a try and if you find one that actually works let us know so we might be able to track the issue down.

 

Here you can find even older images: https://dl.armbian.com/orangepi3/

Share this post


Link to post
Share on other sites

Hi Werner,
by chance, do you know how to tell the Armbian build script, to prepare for example an Armbian 5.88 with kernel 5.0.x for OPI3?

Now we are at 5.93 with kernel 5.2.6 but I would like to be able to compile builds with kernel of the 5.0.x series, because although sometimes they were hung and the audio does not work, at least they can be used.
Right now I'm using an old build to write to you, but I don't dare to update it in case something breaks.

Share this post


Link to post
Share on other sites
37 minutes ago, maxlinux2000 said:

Now we are at 5.93 with kernel 5.2.6 but I would like to be able to compile builds with kernel of the 5.0.x series, because although sometimes they were hung and the audio does not work, at least they can be used.
Right now I'm using an old build to write to you, but I don't dare to update it in case something breaks.

This is working very well for me (only 5 days uptime due to local power outage - otherwise it "just works" :-)

Screenshot_2019-08-09_12-39-38.png

 

Screenshot_2019-08-09_12-42-51.png

Share this post


Link to post
Share on other sites
59 minutes ago, GeorgeP said:

otherwise it "just works" :-)

In my case, with 5.2.0 built 3 weeks ago :

  ___  ____  _   _____ 
 / _ \|  _ \(_) |___ / 
| | | | |_) | |   |_ \ 
| |_| |  __/| |  ___) |
 \___/|_|   |_| |____/ 
                       
Welcome to Debian Stretch with Armbian Linux 5.2.0-sunxi64
System load:   0.08 0.02 0.01  	Up time:       3 days		
Memory usage:  4 % of 1997MB 	IP:            169.254.8.74 10.111.111.81
CPU temp:      25°C           	
Usage of /:    21% of 7.1G   	

 

Share this post


Link to post
Share on other sites

From a quick look there were three commits in the past 21 days besides commits directly to mainline.

 

https://github.com/armbian/build/commit/414f304b138a0cdd9ba9756b5201d61b7400fa05

https://github.com/armbian/build/commit/5412aa7d9c9406b084f5be07773e7d3ea107a2e6

https://github.com/armbian/build/commit/307c1daaa181151ea5b9c8e3507f145463fb82eb#diff-80b9f0b99e69776b772e470f0afc5e8c

 

The easiest to test is the added CPU_THERMAL function by simply trying an image that were made at least four days ago that does not include this most recent commit: https://laet.pw/index.php/s/M2eXJKll5sdnlBN?path=%2F0508

 

Other is more difficult to figure out what has been changed to cause break.

Share this post


Link to post
Share on other sites
On 8/4/2019 at 8:11 PM, Werner said:

I added OPi 3 Buster image as well as kernel debs to my builds and will be available tomorrow following the link mentioned in my signature below.

 

Did you have any luck with BT support?

 

https://megous.com/git/linux/commit/?h=opi3-5.2&id=9c296799c4d3dd90986833cfded392098c1979bd

 

I tried that but after all the steps it did not work at the end. And I could never figure out what I did wrong. 

Share this post


Link to post
Share on other sites
25 minutes ago, SchmuseTigger said:

 

Did you have any luck with BT support?

 

https://megous.com/git/linux/commit/?h=opi3-5.2&id=9c296799c4d3dd90986833cfded392098c1979bd

 

I tried that but after all the steps it did not work at the end. And I could never figure out what I did wrong. 

I do not own this board, so sorry, no clue. I just provide pre-built images to save others some time building their own.

Share this post


Link to post
Share on other sites

Any idea how to make HDMI sound work? I added LibreElec sound patch for OPi3 (https://github.com/LibreELEC/LibreELEC.tv/blob/master/projects/Allwinner/devices/H6/patches/linux/05-sound-hack.patch) to "patch/kernel/sunxi-dev/sound-hack.patch" and built desktop stretch image with Kernel 5.2.8. Patch was applied successfully as mentioned on the trailing log of building process. System boots to xfce4 and I see HDMI Analog Sound device in Pulse Audio Manager and AlsaMixer but I don't get sound. I notice poor graphics when sound patch is applied. May be I am missing something..... help will be appreciated. 

When we getting Sound from Armbian by the way? :)

Share this post


Link to post
Share on other sites
27 minutes ago, jernej said:

Try to apply also projects/Allwinner/patches/linux/0001-hdmi-sound-improvements.patch

Just tried but failed while compiling..... "[ failed ]" while the other patch was still applied before this. Anything to do with changing order of both sound patches?

Share this post


Link to post
Share on other sites
3 minutes ago, sadnblueish said:

Anything to do with changing order of both sound patches?

Maybe or it could also be that Armbian already includes some patches which are in conflict with those.

Share this post


Link to post
Share on other sites

Tried the following image, unable to boot and ended up with this message:

[ OK ] Started Armbian hardware optimization.

_

Armbian_5.93_Orangepi3_Ubuntu_bionic_dev_5.2.8_desktop.img

Armbian_5.93_Orangepi3_Ubuntu_bionic_next_4.19.66.img

Armbian_5.93_Orangepi3_Debian_buster_dev_5.2.8_desktop.img

Armbian_5.88_Orangepi3_Ubuntu_bionic_dev_5.1.7.img

Armbian_5.90.190705_Orangepi3_Ubuntu_bionic_dev_5.1.15.img

Armbian_5.90_Orangepi3_Debian_buster_dev_5.1.15.img

Armbian_5.90_Orangepi3_Ubuntu_bionic_dev_5.1.15.img

 

https://www.aliexpress.com/item/32969768551.html?spm=a2g0s.9042311.0.0.48ae4c4dJolXaF

SBC: OrangePi 3 2GB DDR3 + 8GB eMMC + 5V 3A adapter

 

Previously successful image that can boot is back at March:
Armbian_5.77_Orangepi3_Ubuntu_bionic_dev_5.0.1_desktop.img

 

i am not the only one affected, right?

Share this post


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

Tried the following image, unable to boot and ended up with this message:

 


[ OK ] Started Armbian hardware optimization.

_

 

Armbian_5.93_Orangepi3_Ubuntu_bionic_dev_5.2.8_desktop.img

Armbian_5.88_Orangepi3_Ubuntu_bionic_dev_5.1.7.img

Armbian_5.90.190705_Orangepi3_Ubuntu_bionic_dev_5.1.15.img

Armbian_5.90_Orangepi3_Debian_buster_dev_5.1.15.img

Armbian_5.90_Orangepi3_Ubuntu_bionic_dev_5.1.15.img

 

https://www.aliexpress.com/item/32969768551.html?spm=a2g0s.9042311.0.0.48ae4c4dJolXaF

SBC: OrangePi 3 2GB DDR3 + 8GB eMMC + 5V 3A adapter

 

Previously successful image that can boot is back at March:
Armbian_5.77_Orangepi3_Ubuntu_bionic_dev_5.0.1_desktop.img

 

i am not the only one affected, right?

I used Buster... I felt some stability issues but it booted fine.  Before that couple of June versions also worked for me..... Check your SDcard....with some cheap cards I felt issues with Balena but same cards Win32DiskImager worked.... I don't think I was super lucky to have Buster booted for me only.... :)

Share this post


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

I used Buster... I felt some stability issues but it booted fine.  Before that couple of June versions also worked for me..... Check your SDcard....with some cheap cards I felt issues with Balena but same cards Win32DiskImager worked.... I don't think I was super lucky to have Buster booted for me only.... :)

I used three different SDs card but it still can't boot up.

If i can use the same SD card with another image to boot up in another board, does it prove that the SD card is fine?

 

I plan to switch from Etcher to Win32DiskImager, switch from SanDisk/Kingston to Samsung. See whichever solves it.

 

Note that I have yet to flash the board. It's still running the Android image that it came with. The adapter came with the set that OrangePi sold with the board.

Share this post


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

I used three different SDs card but it still can't boot up.

If i can use the same SD card with another image to boot up in another board, does it prove that the SD card is fine?

 

I plan to switch from Etcher to Win32DiskImager, switch from SanDisk/Kingston to Samsung. See whichever solves it.

 

Note that I have yet to flash the board. It's still running the Android image that it came with. The adapter came with the set that OrangePi sold with the board.

Good luck....awaiting update!

Share this post


Link to post
Share on other sites
On 8/12/2019 at 2:40 PM, 062621AM said:

Tried the following image, unable to boot and ended up with this message:


[ OK ] Started Armbian hardware optimization.

_

Armbian_5.93_Orangepi3_Ubuntu_bionic_dev_5.2.8_desktop.img

Armbian_5.93_Orangepi3_Ubuntu_bionic_next_4.19.66.img

Armbian_5.93_Orangepi3_Debian_buster_dev_5.2.8_desktop.img

Armbian_5.88_Orangepi3_Ubuntu_bionic_dev_5.1.7.img

Armbian_5.90.190705_Orangepi3_Ubuntu_bionic_dev_5.1.15.img

Armbian_5.90_Orangepi3_Debian_buster_dev_5.1.15.img

Armbian_5.90_Orangepi3_Ubuntu_bionic_dev_5.1.15.img

 

https://www.aliexpress.com/item/32969768551.html?spm=a2g0s.9042311.0.0.48ae4c4dJolXaF

SBC: OrangePi 3 2GB DDR3 + 8GB eMMC + 5V 3A adapter

 

Previously successful image that can boot is back at March:
Armbian_5.77_Orangepi3_Ubuntu_bionic_dev_5.0.1_desktop.img

 

i am not the only one affected, right?

 

You need to change the DTB file to version 5.88.190601 - 5.1.5

Located on the SD card: /boot/dtb-5.1.7-sunxi64/allwinner/sun50i-h6-orangepi-3.dtb

That fixed it for me on 5.88 dev 5.17.

 

Version linux-dtb-dev-sunxi64 version 5.90.190630 should work too, but I've not tested it.

 

Check post: 

 

 

 

 

Share this post


Link to post
Share on other sites

Hi guys,

 

Can you make it clear about Sunxi-Cedrus, please:

 

According to information here Cedrus for H6 and Lima/Panfrost drivers were merged into 5.2 linux kernel. Does this mean that when Armbian will be switched to 5.2.y,  it will be possible to HW decode H.264 using FFMPEG? Or everything is more complicated?)

Share this post


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

Does this mean that when Armbian will be switched to 5.2.y,  it will be possible to HW decode H.264 using FFMPEG? Or everything is more complicated?

Later is true. While Panfrost is merged in 5.2, it doesn't support Mali T720 yet, which is present in H6. It's true that Cedrus is in kernel, but currently only supports decoding MPEG2. Very basic support for H.264 will come with 5.3. On top of that, interface to this type of drivers (Cedrus is first of it's kind, RK VPU drivers being second) is not stable and thus not exposed in kernel API. Because of that no userspace program officially supports it, although ffmpeg fork exist which implements support for them.

Share this post


Link to post
Share on other sites
48 minutes ago, jernej said:

Later is true. While Panfrost is merged in 5.2, it doesn't support Mali T720 yet, which is present in H6. It's true that Cedrus is in kernel, but currently only supports decoding MPEG2. Very basic support for H.264 will come with 5.3. On top of that, interface to this type of drivers (Cedrus is first of it's kind, RK VPU drivers being second) is not stable and thus not exposed in kernel API. Because of that no userspace program officially supports it, although ffmpeg fork exist which implements support for them.

Thanks for clarifying, jernej

Share this post


Link to post
Share on other sites

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.

Loading...
46 46